Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
problem: Wrong results in preaggregate query with spark adaptive execution
Spark2TestQueryExecutor.conf.set(SQLConf.ADAPTIVE_EXECUTION_ENABLED.key, "true")
cause: For preaggreagate, segment info is set into threadLocal. when adaptive execution is called, spark is calling getInternalPartition in another thread where updated segment conf is not set. Hence it is not using the updated segments.
solution: CarbonScanRdd is already having the sessionInfo, use it instead of taking session info from the current thread.
Attachments
Issue Links
- links to