[
https://issues.apache.org/jira/browse/CALCITE-3604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16997511#comment-16997511
]
Rui Wang edited comment on CALCITE-3604 at 12/16/19 6:15 PM:
-------------------------------------------------------------
+1. On Mac it also happened.
Is it because testing machines using `Locale.US` such that it was tested only
by `Locale.US` in PR?
Is it expected that non `Locale.US` will fail? If not can we file a Jira for
that?
was (Author: amaliujia):
+1. On Mac it also happened.
> Tests fail caused by localized exception message
> ------------------------------------------------
>
> Key: CALCITE-3604
> URL: https://issues.apache.org/jira/browse/CALCITE-3604
> Project: Calcite
> Issue Type: Bug
> Components: core
> Environment: OS: Windows7
> JDK: 1.8.0_121
> Locale: zh_CN
> Reporter: Feng Zhu
> Priority: Major
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> When I fetch the recent master branch and build it, the tests added in
> CALCITE-3552 fail.
> For example: *_SqlXmlFunctionsTest_*_#_*_testExtractValue_*
> {code:java}
> org.apache.calcite.test.SqlXmlFunctionsTest > testExtractValue() FAILED
> java.lang.AssertionError: extractValue(<a>ccc<b>ddd</b></a>, #)
> Expected: is org.apache.calcite.runtime.CalciteException: Illegal
> behavior 'javax.xml.xpath.XPathExpressionException:
> javax.xml.transform.TransformerException: A location path was expected, but
> the following token was encountered: #' EXTRACTVALUE: document:
> '<a>ccc<b>ddd</b></a>', xpath expression: '#'
> but: was <org.apache.calcite.runtime.CalciteException: Illegal
> behavior 'javax.xml.xpath.XPathExpressionException:
> javax.xml.transform.TransformerException: 需要位置路径, 但遇到以下标记: #' EXTRACTVALUE:
> document: '<a>ccc<b>ddd</b></a>', xpath expression: '#'>
> at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
> at
> org.apache.calcite.test.SqlXmlFunctionsTest.assertFailed(SqlXmlFunctionsTest.java:70)
> at
> org.apache.calcite.test.SqlXmlFunctionsTest.assertExtractValueFailed(SqlXmlFunctionsTest.java:61)
> at
> org.apache.calcite.test.SqlXmlFunctionsTest.testExtractValue(SqlXmlFunctionsTest.java:47)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)