It doesn't work for parquet file when set ignoreInvalidRows to true
- We have a parquet file and have some wrong timestamp field data in it.
- 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
IllegalArgumentExceptionin HadoopDruidIndexerMapper#map whenignoreInvalidRowsset to true.
try {
inputRow = parseInputRow(value, parser);
}
catch (ParseException | IllegalArgumentException e) {
if (reportParseExceptions) {
throw e;
}
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.
@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.
This issue is no longer marked as stale.
Yep, we found this error in 0.9.2 version, we will check it in lastest version. @gianm
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.
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.