phoenix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maryann...@apache.org
Subject [01/40] phoenix git commit: PHOENIX-2129 Fix ArrayToStringFunctionTest#testDate (Dumindu Buddhika)
Date Sun, 23 Aug 2015 17:15:26 GMT
Repository: phoenix
Updated Branches:
  refs/heads/calcite 35bd148e1 -> ab97f1ccd


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/936de881
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/936de881
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/936de881

Branch: refs/heads/calcite
Commit: 936de881575423c9242d083e5852e82017905977
Parents: b38a624
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:52:39 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/936de881/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