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

WebHCat supports get/set table property with its name containing period and hyphen

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.0
    • None
    • None

    Description

      Hive table properties could have period (.) or hyphen in their names, auto.purge is one of the examples. But WebHCat APIs does not support either set or get these properties, and they throw out the error msg ""Invalid DDL identifier :property". For example:

      [root@ctang-1 ~]# curl -s 'http://ctang-1.gce.cloudera.com:7272/templeton/v1/ddl/database/default/table/sample_07/property/prop.key1?user.name=hiveuser'
      {"error":"Invalid DDL identifier :property"}
      [root@ctang-1 ~]# curl -s -X PUT -HContent-type:application/json -d '{ "value": "true" }' 'http://ctang-1.gce.cloudera.com:7272/templeton/v1/ddl/database/default/table/sample_07/property/prop.key2?user.name=hiveuser/'
      {"error":"Invalid DDL identifier :property"}
      

      This patch is going to add the supports to the property name containing period and/or hyphen.

      Attachments

        1. HIVE-15410.1.patch
          4 kB
          Chaoyu Tang
        2. HIVE-15410.patch
          2 kB
          Chaoyu Tang

        Activity

          People

            ctang Chaoyu Tang
            ctang Chaoyu Tang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: