Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-2279

presto handle empty carbondata file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.3.0
    • Component/s: core
    • Labels:
      None

      Description

      Caused by: java.lang.RuntimeException: Error creating Splits from CarbonTableInputFormat
      at org.apache.carbondata.presto.impl.CarbonTableReader.getInputSplits2(CarbonTableReader.java:433)
      at org.apache.carbondata.presto.CarbondataSplitManager.getSplits(CarbondataSplitManager.java:75)
      ... 22 more
      Caused by: java.io.IOException: Problem in loading segment blocks.
      at org.apache.carbondata.core.indexstore.BlockletDataMapIndexStore.getAll(BlockletDataMapIndexStore.java:153)
      at org.apache.carbondata.core.indexstore.blockletindex.BlockletDataMapFactory.getDataMaps(BlockletDataMapFactory.java:76)
      at org.apache.carbondata.core.datamap.TableDataMap.prune(TableDataMap.java:95)
      at org.apache.carbondata.hadoop.api.CarbonTableInputFormat.getDataBlocksOfSegment(CarbonTableInputFormat.java:748)
      at org.apache.carbondata.hadoop.api.CarbonTableInputFormat.getSplits(CarbonTableInputFormat.java:679)
      at org.apache.carbondata.hadoop.api.CarbonTableInputFormat.getSplits(CarbonTableInputFormat.java:439)
      at org.apache.carbondata.presto.impl.CarbonTableReader.getInputSplits2(CarbonTableReader.java:417)
      ... 23 more
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
      at org.apache.carbondata.core.datastore.filesystem.AbstractDFSCarbonFile.getLocations(AbstractDFSCarbonFile.java:514)
      at org.apache.carbondata.core.indexstore.BlockletDataMapIndexStore.getAll(BlockletDataMapIndexStore.java:142)
      ... 29 more

        Attachments

        1. outofindex.patch
          4 kB
          zhangwei

          Activity

            People

            • Assignee:
              geetikagupta Geetika Gupta
              Reporter:
              photogamrun zhangwei
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: