Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-3448

Wrong results in preaggregate query with spark adaptive execution

    XMLWordPrintableJSON

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

          Activity

            People

              Unassigned Unassigned
              Ajantha_Bhat Ajantha Bhat
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h