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

CTAS writing nulls as 0s

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 0.5.0
    • Storage - Writer
    • None

    Description

      Steps to repro:

      CTAS from a json file with missing fields. Ie null values
      Select returns the correct value.
      0: jdbc:drill:schema=dfs.drillTestDir> select * from `json_storage/employeeObjectMissingField.json`;
      --------------------------------------------------------------+

      first last age sex salary registered

      --------------------------------------------------------------+

      Jimmy James 29 M 6300.1 false
      anderson carr null M 6300.1 false

      --------------------------------------------------------------+

      CREATE TABLE CTAS_jsonmissingfield AS select * from `json_storage/employeeObjectMissingField.json`

      select * from CTAS_jsonmissingfield returns

      anderson carr 0 M 6300.1 false

      Attachments

        Activity

          People

            mehant Mehant Baid
            inramana Ramana Inukonda Nagaraj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: