Uploaded image for project: 'HCatalog'
  1. HCatalog
  2. HCATALOG-275

JSON SerDe issues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.4
    • 0.4
    • None
    • None

    Description

      1) JsonSerDe uses the column names specified in the data instead of the schema for serialization : The JSON SerDe uses column names as specified in the data for serialization instead of relying on the schema provided during initialize. This is good for position-independent serialization if the object were to not be so, but it breaks when the objectinspector being provided to the serializer does not use the same names. A case in point is with the RCFile Object Inspector, which uses generic "col0", "col1" names for the top level object.

      2) Does not handle null complex fields. nulls for simple types are handled, but not for complex types. SerDe expects empty array( [] ) or empty map( {} ) or empty struct( {} ) instead of null.

      Attachments

        1. HCATALOG-275.patch.2
          6 kB
          Sushanth Sowmyan
        2. HCATALOG-275.patch
          1 kB
          Sushanth Sowmyan

        Issue Links

          Activity

            People

              sushanth Sushanth Sowmyan
              sushanth Sushanth Sowmyan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: