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

Add Column Mapping to JsonSerDe

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.0.0, 4.0.0
    • None
    • None

    Description

      Enhance the JSON SerDe to accept a SerDe property that allows for arbitrary mapping of JSON parameter names to column names. This would be very similar to Hive HBase integration.

      {"fname":"John","lname":"Doe"}
      
      CREATE TABLE (
      first_name string,
      last_name string,
      ...
      WITH SERDEPROPERTIES (
      "json.columns.mapping" = "fname:first_name,lname:last_name"
      );
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              belugabehr David Mollitor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: