You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by je...@apache.org on 2014/03/10 05:22:03 UTC

[32/36] git commit: PHOENIX-49 Unit test for ArrayIndexOutOfBoundsException when creating index (SaikiranPerumala)

PHOENIX-49 Unit test for ArrayIndexOutOfBoundsException when creating index (SaikiranPerumala)


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

Branch: refs/heads/4.0
Commit: eb60388ef58fb0c7f17329c3b9e4912a1cbdf3e2
Parents: 3224db8
Author: James Taylor <ja...@apache.org>
Authored: Sun Mar 9 13:00:10 2014 -0700
Committer: James Taylor <ja...@apache.org>
Committed: Sun Mar 9 13:00:10 2014 -0700

----------------------------------------------------------------------
 .../java/org/apache/phoenix/index/IndexMaintainerTest.java    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-phoenix/blob/eb60388e/phoenix-core/src/test/java/org/apache/phoenix/index/IndexMaintainerTest.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/test/java/org/apache/phoenix/index/IndexMaintainerTest.java b/phoenix-core/src/test/java/org/apache/phoenix/index/IndexMaintainerTest.java
index 8adf9fa..a37bd8f 100644
--- a/phoenix-core/src/test/java/org/apache/phoenix/index/IndexMaintainerTest.java
+++ b/phoenix-core/src/test/java/org/apache/phoenix/index/IndexMaintainerTest.java
@@ -256,5 +256,10 @@ public class IndexMaintainerTest  extends BaseConnectionlessQueryTest {
         testIndexRowKeyBuilding("k1 CHAR(1) NOT NULL, k2 INTEGER NOT NULL, v1 DECIMAL, v2 CHAR(2), v3 BIGINT, v4 CHAR(10)", "k1, k2", "v2 DESC, k2 DESC, v1", new Object [] {"a",1,2.2,"bb"}, "v3, v4", "", "SALT_BUCKETS=4");
     }
  
-
+    @Test
+    public void tesIndexWithBigInt() throws Exception {
+        testIndexRowKeyBuilding(
+                "k1 CHAR(1) NOT NULL, k2 INTEGER NOT NULL, v1 BIGINT, v2 CHAR(2), v3 BIGINT, v4 CHAR(10)", "k1, k2",
+                "v1 DESC, k2 DESC", new Object[] { "a", 1, 2.2, "bb" });
+    }
 }