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

Optimize scenes with in numbers in SQL

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None

      Description

      when sql with 'in numbers'  and spark.sql.codegen.wholeStage is false,the query is slow, 

      the reason is that canbonscan row level filter's time complexity is O(n^2), we can replace list with hashset to improve query performance

      sql example: select * from xx where filed in (1,2,3,4,5,6)

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              zhxiaoping zhxiaoping
            • 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 - 15h
                15h