Github user maropu commented on the issue:
https://github.com/apache/spark/pull/17670
Looking around the related code, I think we cannot easily set
`defaultParallelism` inside `catalyst.plans.logical` because there is no
obvious way to access `SQLContext` there. So, IIUC, we cannot easily set the
value at `numSlice` in `ResolveTableValuedFunctions `. Another approach to
share the default Range `numSlice` of SparkContext APIs and SQL is that [we do
not set the default value in
`SparkSession`](https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala#L517)
and we set the default value in `RangeExec` for both cases. Thought?
@jaceklaskowski @gatorsmile
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]