Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-1344

Nested json object null is treated as {}

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • Future
    • Storage - JSON
    • None

    Description

      With a json record as follows:

      "trans_id":9,"date":null,"time":"20:16:13","user_info":null,"marketing_info":{"camp_id":2,"keywords":null},"trans_info":{"prod_id":[85,546,247,530,73,111,1,488,100,100,3,476,503,312],"purch_flag":"false"}
      

      select date from the json results in a correct value as null.
      select user_info though results in {}

      Similarly
      select marketing_info results in

      {"camp_id":2,"keywords":[]}

      Correct behavior should be to return null for null complex types and null for members of complex types.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              inramana Ramana Inukonda Nagaraj
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: