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

Setting serde / serde properties for partitions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 3.1.1
    • 4.0.0-alpha-2
    • Hive
    • None

    Description

      According to https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-AddSerDeProperties the SerDe and the SerDe properties can be set for a partition too, so

       

      ALTERT TABLE table PARTITION (partition_col='partition_value') SET SERDE 'serde.class.name';

      Is a valid statement. In fact it is not rejected, but it is not doing anything at all. The execution is successful, everything remains the same. The same is true for setting the serde properties:

      ALTER TABLE table PARTITION (partition_col='partition_value') SET SERDEPROPERTIES ('property_name'='property_value');

      is also a valid statement, and not doing anything.

      I suggest to modify the parser, and reject these statements. SerDe is for a table, and not for a partition.

       

      Attachments

        Activity

          People

            mgergely Miklos Gergely
            mgergely Miklos Gergely
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: