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

Json reader with extended json adds extra column

    XMLWordPrintableJSON

Details

    Description

      Performing a CTAS with 'store.format' = 'json' and querying the table results in projecting an addition field '*' will null values. Below is a simple repro

      0: jdbc:drill:zk=local> create table t as select timestamp '1980-10-01 00:00:00' from cp.`employee.json` limit 1;
      -------------------------------------+

      Fragment Number of records written

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

      0_0 1

      -------------------------------------+
      1 row selected (0.314 seconds)
      0: jdbc:drill:zk=local> select * from t;
      ----------------------+

      EXPR$0

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

      1980-10-01 00:00:00.0 null

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

      Notice in the above result set we get an extra column '*' with null value.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mehant Mehant Baid
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: