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

Query against partitioned table in strict mode failed with "No partition predicate found" even if partition predicate is specified.

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      The following queries fail:

      create table t1 (c1 int) PARTITIONED BY (c2 string);
      
      set hive.mapred.mode=strict;
      select * from t1 where t1.c2 < to_date(date_add(from_unixtime( unix_timestamp() ),1));
      

      The query failed with "No partition predicate found for alias t1".

      Attachments

        1. HIVE-10454.patch
          8 kB
          Aihua Xu
        2. HIVE-10454.2.patch
          9 kB
          Aihua Xu

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            aihuaxu Aihua Xu Assign to me
            aihuaxu Aihua Xu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment