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

enum to string conversions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 0.10.0
    • None
    • None
    • Incompatible change
    • 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.

      Attachments

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

        Issue Links

          Activity

            People

              traviscrawford Travis Crawford
              traviscrawford Travis Crawford
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: