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

CTAS fails with NPE when source JSON file is empty

    Details

      Description

      CREATE TABLE `complex.json` AS
        SELECT id,
               gbyi,
               gbyt,
               fl,
               nul,
               bool,
               str,
               sia,
               sfa,
               soa,
               ooa,
               oooi,
               ooof,
               ooos,
               oooa
      FROM   dfs.`/drill/testdata/complex/json/complex.json`;
      
      Error: SYSTEM ERROR: NullPointerException
      Fragment 0:0
      [Error Id: 97679667-412a-475f-aebf-e935405c7330 on drill-democ1:31010] (state=,code=0)
      
      > select * from dfs.`/drill/testdata/complex/json/complex.json` limit 1;
      +--+
      |  |
      +--+
      +--+
      No rows selected (0.295 seconds)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gparai Gautam Parai
                Reporter:
                agirish Abhishek Girish
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: