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

subquery's column alias can not be the same with partition column name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.0
    • None
    • Query Planning
    • None

    Description

      case:
      create table testkk5(a string) partitioned by(dt string);
      alter table testkk5 add partition(dt="1");
      hive> select * from (select a as dt from testkk5 where dt="1") t1 where t1.dt="2";
      FAILED: SemanticException [Error 10041]: No partition predicate found for Alias "t1:testkk5" Table "testkk5"

      actually outer query's column `dt` is irrevelent with table `testkk5`'s partition column name

      Attachments

        Issue Links

          Activity

            People

              ferhui Hui Fei
              chenyukang chenyukang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: