drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From par...@apache.org
Subject [05/10] drill git commit: DRILL-5400: Fix NPE in corrupt date detection
Date Sat, 05 Nov 2016 00:11:32 GMT
DRILL-5400: Fix NPE in corrupt date detection

This closes #646


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/a459e4db
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/a459e4db
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/a459e4db

Branch: refs/heads/master
Commit: a459e4dbbc242fe0d06b221afe5f830780fc682e
Parents: ee3489c
Author: Parth Chandra <parthc@apache.org>
Authored: Fri Nov 4 11:05:40 2016 -0700
Committer: Parth Chandra <parthc@apache.org>
Committed: Fri Nov 4 15:59:11 2016 -0700

----------------------------------------------------------------------
 .../org/apache/drill/exec/store/parquet/ParquetReaderUtility.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/a459e4db/exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/ParquetReaderUtility.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/ParquetReaderUtility.java
b/exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/ParquetReaderUtility.java
index 470cc00..767c98d 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/ParquetReaderUtility.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/ParquetReaderUtility.java
@@ -196,7 +196,7 @@ public class ParquetReaderUtility {
     } else {
       // Possibly an old, un-migrated Drill file, check the column statistics to see if min/max
values look corrupt
       // only applies if there is a date column selected
-      if (createdBy.equals("parquet-mr")) {
+      if (createdBy == null || createdBy.equals("parquet-mr")) {
         // loop through parquet column metadata to find date columns, check for corrupt values
         return checkForCorruptDateValuesInStatistics(footer, columns, autoCorrectCorruptDates);
       } else {


Mime
View raw message