mirror of
https://github.com/apache/druid.git
synced 2025-02-09 03:24:55 +00:00
Handle case when ignoreInvalidRows is null (#6420)
This commit is contained in:
parent
c7ac8785a1
commit
868ebfaca0
@ -152,11 +152,11 @@ public class HadoopTuningConfig implements TuningConfig
|
|||||||
this.allowedHadoopPrefix = allowedHadoopPrefix == null ? ImmutableList.of() : allowedHadoopPrefix;
|
this.allowedHadoopPrefix = allowedHadoopPrefix == null ? ImmutableList.of() : allowedHadoopPrefix;
|
||||||
|
|
||||||
|
|
||||||
this.ignoreInvalidRows = ignoreInvalidRows;
|
this.ignoreInvalidRows = ignoreInvalidRows == null ? false : ignoreInvalidRows;
|
||||||
if (maxParseExceptions != null) {
|
if (maxParseExceptions != null) {
|
||||||
this.maxParseExceptions = maxParseExceptions;
|
this.maxParseExceptions = maxParseExceptions;
|
||||||
} else {
|
} else {
|
||||||
if (ignoreInvalidRows == null || !ignoreInvalidRows) {
|
if (!this.ignoreInvalidRows) {
|
||||||
this.maxParseExceptions = 0;
|
this.maxParseExceptions = 0;
|
||||||
} else {
|
} else {
|
||||||
this.maxParseExceptions = TuningConfig.DEFAULT_MAX_PARSE_EXCEPTIONS;
|
this.maxParseExceptions = TuningConfig.DEFAULT_MAX_PARSE_EXCEPTIONS;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"parser": {
|
"parser": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"parseSpec": {
|
"parseSpec": {
|
||||||
"type": "tsv",
|
"format": "tsv",
|
||||||
"timestampSpec": {
|
"timestampSpec": {
|
||||||
"column": "timestamp",
|
"column": "timestamp",
|
||||||
"format": "yyyyMMddHH"
|
"format": "yyyyMMddHH"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user