Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-16096

Predicate `__time` In ("date", "date") or Between "date" and "date" are not pushed to druid.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Druid integration
    • Labels:

      Description

       explain select * from login_druid where `__time` in ("2003-1-1", "2004-1-1" );
      OK
      Plan optimized by CBO.
      
      Stage-0
        Fetch Operator
          limit:-1
          Select Operator [SEL_2]
            Output:["_col0","_col1","_col2"]
            Filter Operator [FIL_4]
              predicate:(__time) IN ('2003-1-1', '2004-1-1')
              TableScan [TS_0]
                Output:["__time","userid","num_l"],properties:{"druid.query.json":"{\"queryType\":\"select\",\"dataSource\":\"druid_user_login\",\"descending\":false,\"intervals\":[\"1900-01-01T00:00:00.000Z/3000-01-01T00:00:00.000Z\"],\"dimensions\":[\"userid\"],\"metrics\":[\"num_l\"],\"granularity\":\"all\",\"pagingSpec\":{\"threshold\":16384},\"context\":{\"druid.query.fetch\":false}}","druid.query.type":"select"}
      
      

      Between case

       explain select * from login_druid where `__time` between "2003-1-1" and "2004-1-1" ;
      OK
      Plan optimized by CBO.
      
      Stage-0
        Fetch Operator
          limit:-1
          Select Operator [SEL_2]
            Output:["_col0","_col1","_col2"]
            Filter Operator [FIL_4]
              predicate:__time BETWEEN '2003-1-1' AND '2004-1-1'
              TableScan [TS_0]
                Output:["__time","userid","num_l"],properties:{"druid.query.json":"{\"queryType\":\"select\",\"dataSource\":\"druid_user_login\",\"descending\":false,\"intervals\":[\"1900-01-01T00:00:00.000Z/3000-01-01T00:00:00.000Z\"],\"dimensions\":[\"userid\"],\"metrics\":[\"num_l\"],\"granularity\":\"all\",\"pagingSpec\":{\"threshold\":16384},\"context\":{\"druid.query.fetch\":false}}","druid.query.type":"select"}
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bslim Slim Bouguerra
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: