This is an automated email from the ASF dual-hosted git repository. jlli pushed a commit to branch fix-data-preprocess-sdf-pattern in repository https://gitbox.apache.org/repos/asf/pinot.git
commit 33ff293475d67d6d633bd83f19ca4bcb38be419a Author: Jack Li(Analytics Engineering) <j...@jlli-mn1.linkedin.biz> AuthorDate: Mon Nov 8 11:07:35 2021 -0800 Fix SDF pattern in DataPreprocessingHelper --- .../apache/pinot/hadoop/job/preprocess/DataPreprocessingHelper.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pinot-hadoop/src/main/java/org/apache/pinot/hadoop/job/preprocess/DataPreprocessingHelper.java b/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pinot-hadoop/src/main/java/org/apache/pinot/hadoop/job/preprocess/DataPreprocessingHelper.java index 178e7a6..287c51b 100644 --- a/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pinot-hadoop/src/main/java/org/apache/pinot/hadoop/job/preprocess/DataPreprocessingHelper.java +++ b/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pinot-hadoop/src/main/java/org/apache/pinot/hadoop/job/preprocess/DataPreprocessingHelper.java @@ -198,7 +198,10 @@ public abstract class DataPreprocessingHelper { job.getConfiguration().set(InternalConfigConstants.SEGMENT_TIME_TYPE, formatSpec.getColumnUnit().toString()); job.getConfiguration() .set(InternalConfigConstants.SEGMENT_TIME_FORMAT, formatSpec.getTimeFormat().toString()); - job.getConfiguration().set(InternalConfigConstants.SEGMENT_TIME_SDF_PATTERN, formatSpec.getSDFPattern()); + String sdfPattern = formatSpec.getSDFPattern(); + if (sdfPattern != null) { + job.getConfiguration().set(InternalConfigConstants.SEGMENT_TIME_SDF_PATTERN, formatSpec.getSDFPattern()); + } } } job.getConfiguration().set(InternalConfigConstants.SEGMENT_PUSH_FREQUENCY, --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org