Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.10.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change
    • Release Note:
      Hive handling of enum types has been changed to always return the string value rather than struct<value:int> as the new format is more useful to users.

      Description

      When using serde-reported schemas with the ThriftDeserializer, Enum fields are presented as struct<value:int>

      Many users expect to work with the string values, which is both easier and more meaningful as the string value communicates what is represented.

      Hive should provide a mechanism to optionally convert enum values to strings.

      1. HIVE-3323_enum_to_string.8.patch
        114 kB
        Travis Crawford
      2. HIVE-3323_enum_to_string.6.patch
        126 kB
        Travis Crawford
      3. HIVE-3323_enum_to_string.5.patch
        127 kB
        Travis Crawford
      4. HIVE-3323_enum_to_string.4.patch
        59 kB
        Feng Peng
      5. HIVE-3323_enum_to_string.3.patch
        61 kB
        Travis Crawford
      6. HIVE-3323_enum_to_string.2.patch
        33 kB
        Travis Crawford
      7. HIVE-3323_enum_to_string.1.patch
        2 kB
        Travis Crawford

        Issue Links

          Activity

          Travis Crawford created issue -
          Travis Crawford made changes -
          Field Original Value New Value
          Attachment HIVE-3323_enum_to_string.1.patch [ 12538487 ]
          Travis Crawford made changes -
          Attachment HIVE-3323_enum_to_string.2.patch [ 12538642 ]
          Travis Crawford made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Affects Version/s 0.10.0 [ 12320745 ]
          Travis Crawford made changes -
          Attachment HIVE-3323_enum_to_string.3.patch [ 12538807 ]
          Feng Peng made changes -
          Attachment HIVE-3323_enum_to_string.4.patch [ 12539083 ]
          Travis Crawford made changes -
          Attachment HIVE-3323_enum_to_string.5.patch [ 12539153 ]
          Feng Peng made changes -
          Link This issue is related to HIVE-775 [ HIVE-775 ]
          Jakob Homan made changes -
          Summary Enable enum to string conversions ThriftSerde: Enable enum to string conversions
          Travis Crawford made changes -
          Attachment HIVE-3323_enum_to_string.6.patch [ 12543775 ]
          Travis Crawford made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Travis Crawford made changes -
          Attachment HIVE-3323_enum_to_string.8.patch [ 12544227 ]
          Travis Crawford made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Hadoop Flags Incompatible change [ 10342 ]
          Release Note Hive handling of enum types has been changed to always return the string value rather than struct<value:int> as the new format is more useful to users.
          Ashutosh Chauhan made changes -
          Summary ThriftSerde: Enable enum to string conversions enum to string conversions
          Ashutosh Chauhan made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Fix Version/s 0.10.0 [ 12320745 ]
          Resolution Fixed [ 1 ]
          Ashutosh Chauhan made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Jie Li made changes -
          Link This issue relates to HIVE-5592 [ HIVE-5592 ]

            People

            • Assignee:
              Travis Crawford
              Reporter:
              Travis Crawford
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development