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

Improperly SemanticException when filter is optimized to False on a partition table

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      When filter is optimized to False on a partition table, it will throw improperly SemanticException reporting that there is no partition predicate found.

      The step to reproduce is

      set hive.strict.checks.no.partition.filter=true;
      CREATE TABLE test(id int, name string)PARTITIONED BY (`date` string);
      select * from test where `date` = '20191201' and 1<>1;
      

       

      The above sql will throw "Queries against partitioned tables without a partition filter"  exception.

      Attachments

        1. HIVE-22634.patch
          0.8 kB
          EdisonWang

        Issue Links

          Activity

            People

              EdisonWang EdisonWang
              EdisonWang EdisonWang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m