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

NPE when cleaning up some RecordReader implementations

    XMLWordPrintableJSON

Details

    Description

      Run the following unittest:

        @Test
        public void testParquetReaderCleanupNPE() throws Exception {
          test("SELECT * FROM cp.`parquet2/decimal28_38.parquet`");
        }
      

      Following is the output:

      Exception (no rows returned): org.apache.drill.common.exceptions.UserRemoteException: SYSTEM ERROR: 
      
      Fragment 0:0
      
      [Error Id: 49db6650-8f62-4c5c-b9dc-3f5d6a4413a0 on localhost:31010].  Returned in 407ms.
      
      org.apache.drill.common.exceptions.UserRemoteException: SYSTEM ERROR: 
      
      Fragment 0:0
      

      Ideally in this case we should get the following query error:

      Exception (no rows returned): org.apache.drill.common.exceptions.UserRemoteException: UNSUPPORTED_OPERATION ERROR: Decimal data type is disabled. 
      As of this release decimal data type is a beta level feature and should not be used in production 
      Use option 'planner.enable_decimal_data_type' to enable decimal data type
      
      Fragment 0:0
      
      [Error Id: d91a70ac-93c9-4be4-a542-4f3c7615b677 on localhost:31010].  Returned in 392ms.
      

      Attachments

        1. DRILL-3017-1.patch
          9 kB
          Venki Korukanti

        Activity

          People

            vkorukanti Venki Korukanti
            vkorukanti Venki Korukanti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: