Income Taxes - Reconciliation of Unrecognized Tax Benefits (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Oct. 31, 2018 |
Oct. 31, 2017 |
Oct. 31, 2016 |
|
| Reconciliation of the beginning and ending amount of unrecognized tax benefits, excluding interest and penalties | |||
| Unrecognized tax benefits, beginning balance | $ 141,582 | $ 30,668 | $ 27,536 |
| Increase related to positions taken in prior period | 122 | 2,187 | |
| Increase related to positions taken in current period | 2,482 | 111,412 | 2,654 |
| Decrease related to positions taken in prior period | (46,400) | ||
| Reductions related to expiration of statute of limitations | (1,301) | (620) | (1,709) |
| Unrecognized tax benefits, ending balance | $ 96,363 | $ 141,582 | $ 30,668 |