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

Whether to add field comment for hive table

    XMLWordPrintableJSON

Details

    Description

      Currently,  I have a hive ddl,as follows

      "set table.sql-dialect=hive;\n" +
      "CREATE TABLE IF NOT EXISTS myhive.dev.shipu3_test_1125 (\n" +
      "   `id` int COMMENT 'iadddd',\n" +
      "   `cartdid` bigint COMMENT 'aaa',\n" +
      "   `customer` string COMMENT 'vvvv',\n" +
      "   `product` string COMMENT 'cccc',\n" +
      "   `price` double COMMENT '',\n" +
      "   `dt` STRING COMMENT ''\n" +
      ") PARTITIONED BY (dt STRING) STORED AS TEXTFILE TBLPROPERTIES (\n" +
      "  'streaming-source.enable' = 'false',\n" +
      "  'streaming-source.partition.include' = 'all',\n" +
      "  'lookup.join.cache.ttl' = '12 h'\n" +
      ")"; 

      It is parsed as SqlCreateHiveTable by hive dialect parser. But the field commet is lost.

       

       

       

       

       

       

       

       

       

       

       

      Attachments

        1. image-2022-07-30-15-53-03-754.png
          161 kB
          hehuiyuan
        2. image-2022-07-30-16-36-37-032.png
          498 kB
          hehuiyuan

        Activity

          People

            Unassigned Unassigned
            hehuiyuan hehuiyuan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: