druid icon indicating copy to clipboard operation
druid copied to clipboard

It doesn't work for parquet file when set ignoreInvalidRows to true

Open licl2014 opened this issue 8 years ago • 6 comments

  1. We have a parquet file and have some wrong timestamp field data in it.
  2. No matter what the value of ignoreInvalidRows set, the mapreduce task has follows error:
Caused by: java.lang.IllegalArgumentException: Invalid format: "2018-10-23" is too short at
 org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:899) at 
com.metamx.common.parsers.TimestampParser$5.apply(TimestampParser.java:97) at 
com.metamx.common.parsers.TimestampParser$5.apply(TimestampParser.java:92) at 
com.metamx.common.parsers.TimestampParser$9.apply(TimestampParser.java:159) at
 com.metamx.common.parsers.TimestampParser$9.apply(TimestampParser.java:150) at
 io.druid.data.input.impl.TimestampSpec.extractTimestamp(TimestampSpec.java:97) at
 io.druid.data.input.parquet.ParquetHadoopInputRowParser.parse(ParquetHadoopInputRowParser.java:70) at
 io.druid.data.input.parquet.ParquetHadoopInputRowParser.parse(ParquetHadoopInputRowParser.java:37) at
 io.druid.indexer.HadoopDruidIndexerMapper.parseInputRow(HadoopDruidIndexerMapper.java:105) at
 io.druid.indexer.HadoopDruidIndexerMapper.map(HadoopDruidIndexerMapper.java:72) ... 8 more

I thank we should catch the IllegalArgumentException in HadoopDruidIndexerMapper#map when ignoreInvalidRows set to true.


       try {
         inputRow = parseInputRow(value, parser);
       }
       catch (ParseException | IllegalArgumentException e) {
         if (reportParseExceptions) {
           throw e;
       }


licl2014 avatar Oct 30 '18 03:10 licl2014

This issue has been marked as stale due to 280 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

stale[bot] avatar Aug 07 '19 01:08 stale[bot]

@licl2014 does this issue still happen with the latest Druid? The Parquet extension has been totally revamped and the code block your error references doesn't exist anymore.

gianm avatar Aug 07 '19 15:08 gianm

This issue is no longer marked as stale.

stale[bot] avatar Aug 07 '19 15:08 stale[bot]

Yep, we found this error in 0.9.2 version, we will check it in lastest version. @gianm

licl2014 avatar Aug 09 '19 08:08 licl2014

This issue has been marked as stale due to 280 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

stale[bot] avatar May 15 '20 09:05 stale[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

stale[bot] avatar Jun 12 '20 10:06 stale[bot]