phoenix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ramkris...@apache.org
Subject phoenix git commit: PHOENIX-2129 Fix ArrayToStringFunctionTest#testDate (Dumindu Buddhika)
Date Mon, 20 Jul 2015 17:27:16 GMT
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 8eb9afeb6 -> b08ce6c98


PHOENIX-2129 Fix ArrayToStringFunctionTest#testDate (Dumindu Buddhika)


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

Branch: refs/heads/4.x-HBase-0.98
Commit: b08ce6c984de7a3ffa0f510abcef1daf9e417f8e
Parents: 8eb9afe
Author: ramkrishna <ramkrishna.s.vasudevan@gmail.com>
Authored: Mon Jul 20 22:52:39 2015 +0530
Committer: ramkrishna <ramkrishna.s.vasudevan@gmail.com>
Committed: Mon Jul 20 22:56:53 2015 +0530

----------------------------------------------------------------------
 .../apache/phoenix/expression/ArrayToStringFunctionTest.java  | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/b08ce6c9/phoenix-core/src/test/java/org/apache/phoenix/expression/ArrayToStringFunctionTest.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/test/java/org/apache/phoenix/expression/ArrayToStringFunctionTest.java
b/phoenix-core/src/test/java/org/apache/phoenix/expression/ArrayToStringFunctionTest.java
index d97f117..5ca266d 100644
--- a/phoenix-core/src/test/java/org/apache/phoenix/expression/ArrayToStringFunctionTest.java
+++ b/phoenix-core/src/test/java/org/apache/phoenix/expression/ArrayToStringFunctionTest.java
@@ -135,7 +135,6 @@ public class ArrayToStringFunctionTest {
     }
     
     @Test
-    @Ignore
     public void testDate() throws SQLException {
         PDataType type = PDateArray.INSTANCE;
         PDataType base = PDate.INSTANCE;
@@ -143,7 +142,11 @@ public class ArrayToStringFunctionTest {
         PhoenixArray arr = new PhoenixArray(base, o1);
         String delimiter = ", ";
         String nullString = "*";
-        String expected = "1970-01-01, 1970-01-01, 1970-01-01";
+        String expected = "";
+        for (int i = 0; i < o1.length - 1; i++) {
+            expected += o1[i].toString() + ", ";
+        }
+        expected += o1[o1.length - 1];
         test(arr, type, null, null, delimiter, nullString, expected, SortOrder.ASC, SortOrder.ASC,
SortOrder.ASC);
         test(arr, type, null, null, delimiter, nullString, expected, SortOrder.DESC, SortOrder.ASC,
SortOrder.ASC);
     }


Mime
View raw message