You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Junegunn Choi (JIRA)" <ji...@apache.org> on 2016/06/08 07:04:21 UTC
[jira] [Commented] (PHOENIX-1347) Unit tests fail if default locale
is not en_US, at SortOrderExpressionTest.toChar
[ https://issues.apache.org/jira/browse/PHOENIX-1347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15320149#comment-15320149 ]
Junegunn Choi commented on PHOENIX-1347:
----------------------------------------
The problem is easily reproducible with {{-Duser.language=ko}} in argLine of surefire plugin configuration, and the patch looks good. But note that {{org.apache.phoenix.end2end.DateTimeIT}} also has the problem with non-English locales.
{noformat}
Tests run: 24, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 57.816 sec <<< FAILURE! - in org.apache.phoenix.end2end.DateTimeIT
testYearFunctionDate(org.apache.phoenix.end2end.DateTimeIT) Time elapsed: 0.246 sec <<< ERROR!
java.sql.SQLException: ERROR 201 (22000): Illegal data. Unable to parse date/time 'Sat, 3 Feb 2008 03:05:06 GMT' using format string of 'EEE, d MMM yyyy HH:mm:ss z'.
at org.apache.phoenix.end2end.DateTimeIT.callYearFunction(DateTimeIT.java:399)
at org.apache.phoenix.end2end.DateTimeIT.callYearFunction(DateTimeIT.java:410)
at org.apache.phoenix.end2end.DateTimeIT.testYearFunctionDate(DateTimeIT.java:431)
testYearFunctionTimestamp(org.apache.phoenix.end2end.DateTimeIT) Time elapsed: 0.141 sec <<< ERROR!
java.sql.SQLException: ERROR 201 (22000): Illegal data. Unable to parse date/time 'Sat, 3 Feb 2008 03:05:06 GMT' using format string of 'EEE, d MMM yyyy HH:mm:ss z'.
at org.apache.phoenix.end2end.DateTimeIT.callYearFunction(DateTimeIT.java:399)
at org.apache.phoenix.end2end.DateTimeIT.callYearFunction(DateTimeIT.java:410)
at org.apache.phoenix.end2end.DateTimeIT.testYearFunctionTimestamp(DateTimeIT.java:454)
testHourFuncAgainstColumns(org.apache.phoenix.end2end.DateTimeIT) Time elapsed: 0.149 sec <<< ERROR!
java.sql.SQLException: ERROR 201 (22000): Illegal data. Unable to parse date/time 'Sat, 3 Feb 2008 03:05:06 GMT' using format string of 'EEE, d MMM yyyy HH:mm:ss z'.
at org.apache.phoenix.end2end.DateTimeIT.testHourFuncAgainstColumns(DateTimeIT.java:592)
{noformat}
> Unit tests fail if default locale is not en_US, at SortOrderExpressionTest.toChar
> ---------------------------------------------------------------------------------
>
> Key: PHOENIX-1347
> URL: https://issues.apache.org/jira/browse/PHOENIX-1347
> Project: Phoenix
> Issue Type: Bug
> Reporter: Sang-Jin, Park
> Assignee: Samarth Jain
> Fix For: 4.8.0
>
> Attachments: PHOENIX-1347.patch
>
>
> Failed tests:
> SortOrderExpressionTest.toChar:148->evaluateAndAssertResult:308->evaluateAndAssertResult:318 expected:<12/11/01 12:00 [AM]> but was:<12/11/01 12:00 [오전]>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)