carbondata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chenliang...@apache.org
Subject carbondata git commit: [Tests] Fix BTreeBlockFinderTest variable mistake
Date Sat, 04 Nov 2017 07:29:44 GMT
Repository: carbondata
Updated Branches:
  refs/heads/master f209e8ee3 -> f812e41c5


[Tests] Fix BTreeBlockFinderTest variable mistake

There are some obvious spelling mistake leading to some variable unused, and it may change
the unit test's meaning

This closes #1462


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

Branch: refs/heads/master
Commit: f812e41c5333ad54449d3b514becd0fddb9c5024
Parents: f209e8e
Author: lishuming <alemmontree@126.com>
Authored: Thu Nov 2 23:47:05 2017 +0800
Committer: chenliang613 <chenliang613@huawei.com>
Committed: Sat Nov 4 15:29:34 2017 +0800

----------------------------------------------------------------------
 .../core/datastore/impl/btree/BTreeBlockFinderTest.java        | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/carbondata/blob/f812e41c/core/src/test/java/org/apache/carbondata/core/datastore/impl/btree/BTreeBlockFinderTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/carbondata/core/datastore/impl/btree/BTreeBlockFinderTest.java
b/core/src/test/java/org/apache/carbondata/core/datastore/impl/btree/BTreeBlockFinderTest.java
index d6081a3..d874037 100644
--- a/core/src/test/java/org/apache/carbondata/core/datastore/impl/btree/BTreeBlockFinderTest.java
+++ b/core/src/test/java/org/apache/carbondata/core/datastore/impl/btree/BTreeBlockFinderTest.java
@@ -197,7 +197,7 @@ public class BTreeBlockFinderTest extends TestCase {
         buffer1.put((byte) 1);
         buffer1.putInt(i + 10);
         buffer1.array();
-        byte[] noDictionaryEndKey = buffer.array();
+        byte[] noDictionaryEndKey = buffer1.array();
         DataFileFooter footer =
             getFileFooter(startKey, endKey, noDictionaryStartKey, noDictionaryEndKey);
         list.add(footer);
@@ -232,7 +232,7 @@ public class BTreeBlockFinderTest extends TestCase {
         buffer1.putShort((short) 2);
         buffer1.putInt(i + 10);
         buffer1.array();
-        byte[] noDictionaryEndKey = buffer.array();
+        byte[] noDictionaryEndKey = buffer1.array();
         DataFileFooter footer =
             getFileMatadataWithOnlyNoDictionaryKey(startKey, endKey, noDictionaryStartKey,
                 noDictionaryEndKey);
@@ -268,7 +268,7 @@ public class BTreeBlockFinderTest extends TestCase {
         buffer1.put((byte) 1);
         buffer1.putInt(i + 10);
         buffer1.array();
-        byte[] noDictionaryEndKey = buffer.array();
+        byte[] noDictionaryEndKey = buffer1.array();
         DataFileFooter footer =
             getFileFooterWithOnlyDictionaryKey(startKey, endKey, noDictionaryStartKey,
                 noDictionaryEndKey);


Mime
View raw message