PHOENIX-2555 Fix date test that only works while it's 2015
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/dd3028cd Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/dd3028cd Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/dd3028cd Branch: refs/heads/4.x-HBase-1.0 Commit: dd3028cd0986aa43d0e7d486153c6a0ba2f82360 Parents: 58465b3 Author: James Taylor <[email protected]> Authored: Fri Jan 1 18:43:15 2016 -0800 Committer: James Taylor <[email protected]> Committed: Fri Jan 1 18:44:43 2016 -0800 ---------------------------------------------------------------------- .../src/it/java/org/apache/phoenix/end2end/DateTimeIT.java | 4 ---- 1 file changed, 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/dd3028cd/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java index b4876a5..0fce403 100644 --- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java +++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java @@ -413,10 +413,6 @@ public class DateTimeIT extends BaseHBaseManagedTimeIT { @Test public void testYearFunctionDate() throws SQLException { - assertEquals(2015, callYearFunction("YEAR(current_date())")); - - assertEquals(2015, callYearFunction("YEAR(now())")); - assertEquals(2008, callYearFunction("YEAR(TO_DATE('2008-01-01', 'yyyy-MM-dd', 'local'))")); assertEquals(2004,
