drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudhe...@apache.org
Subject drill git commit: DRILL-4801: Fix TextFormatPlugin#hashcode and #equals to use extractHeader attribute
Date Tue, 26 Jul 2016 18:09:22 GMT
Repository: drill
Updated Branches:
  refs/heads/master 5a7d4c398 -> 4b362f089


DRILL-4801: Fix TextFormatPlugin#hashcode and #equals to use extractHeader attribute

closes #554


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

Branch: refs/heads/master
Commit: 4b362f089637d8a6b27adc7a1b5e6c7cdb516001
Parents: 5a7d4c3
Author: Arina Ielchiieva <arina.yelchiyeva@gmail.com>
Authored: Tue Jul 26 11:00:42 2016 +0000
Committer: Sudheesh Katkam <skatkam@maprtech.com>
Committed: Tue Jul 26 10:37:00 2016 -0700

----------------------------------------------------------------------
 .../org/apache/drill/exec/store/easy/text/TextFormatPlugin.java  | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/4b362f08/exec/java-exec/src/main/java/org/apache/drill/exec/store/easy/text/TextFormatPlugin.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/store/easy/text/TextFormatPlugin.java
b/exec/java-exec/src/main/java/org/apache/drill/exec/store/easy/text/TextFormatPlugin.java
index 01543a1..6542ad4 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/store/easy/text/TextFormatPlugin.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/store/easy/text/TextFormatPlugin.java
@@ -198,6 +198,7 @@ public class TextFormatPlugin extends EasyFormatPlugin<TextFormatPlugin.TextForm
       result = prime * result + ((lineDelimiter == null) ? 0 : lineDelimiter.hashCode());
       result = prime * result + quote;
       result = prime * result + (skipFirstLine ? 1231 : 1237);
+      result = prime * result + (extractHeader ? 1231 : 1237);
       return result;
     }
 
@@ -242,6 +243,9 @@ public class TextFormatPlugin extends EasyFormatPlugin<TextFormatPlugin.TextForm
       if (skipFirstLine != other.skipFirstLine) {
         return false;
       }
+      if (extractHeader != other.extractHeader) {
+        return false;
+      }
       return true;
     }
 


Mime
View raw message