Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-22408

Flink Table Parsr Hive Drop Partitions Syntax unparse is Error

    XMLWordPrintableJSON

Details

    Description

      Flink Table Parser is error:

      Synopsis:

       

      SQL:

      alter table tbl drop partition (p1='a',p2=1), partition(p1='b',p2=2);

      hive muit partition unparse toSqlString is :

      ALTER TABLE `TBL`\n" +
            "DROP\n" +
            "PARTITION (`P1` = 'a', `P2` = 1)\n" +
            "PARTITION (`P1` = 'b', `P2` = 2)
      

      Missing comma in Partition SqlNodeList 

       Hive syntax:

      ALTER TABLE table_name DROP [IF EXISTS] PARTITION (partition_spec) [, PARTITION (partition_spec)];
      

       

      Attachments

        Activity

          People

            aidenma Ma Jun
            aidenma Ma Jun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: