[jira] [Commented] (DRILL-4039) Query fails when non-ascii characters are used in string literals
[ https://issues.apache.org/jira/browse/DRILL-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16678593#comment-16678593 ] Vitalii Diravka commented on DRILL-4039: The test case is added in the sub-task DRILL-3250 (additional refactoring and test case for this issue) > Query fails when non-ascii characters are used in string literals > - > > Key: DRILL-4039 > URL: https://issues.apache.org/jira/browse/DRILL-4039 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC >Affects Versions: 1.1.0 > Environment: Linux lnxx64r6 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May > 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux >Reporter: Sergio Lob >Priority: Major > Labels: ready-to-commit > Fix For: 1.11.0 > > Attachments: DRILL-4039.patch > > > The following query against DRILL returns this error: > SYSTEM ERROR: CalciteException: Failed to encode 'НАСТРОЕние' in character > set 'ISO-8859-1' > cc39118a-cde6-4a6e-a1d6-4b6b7e847b8a on maprd > Query is: > SELECT > T1.`F01INT`, > T1.`F02UCHAR_10`, > T1.`F03UVARCHAR_10` > FROM > DPRV64R6_TRDUNI01T T1 > WHERE > (T1.`F03UVARCHAR_10` = 'НАСТРОЕние') > ORDER BY > T1.`F01INT`; > This issue looks similar to jira HIVE-12207. > Is there a fix or workaround for this? -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (DRILL-4039) Query fails when non-ascii characters are used in string literals
[ https://issues.apache.org/jira/browse/DRILL-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15998565#comment-15998565 ] Julian Hyde commented on DRILL-4039: Why no test case? > Query fails when non-ascii characters are used in string literals > - > > Key: DRILL-4039 > URL: https://issues.apache.org/jira/browse/DRILL-4039 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC >Affects Versions: 1.1.0 > Environment: Linux lnxx64r6 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May > 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux >Reporter: Sergio Lob > Labels: ready-to-commit > Fix For: 1.11.0 > > Attachments: DRILL-4039.patch > > > The following query against DRILL returns this error: > SYSTEM ERROR: CalciteException: Failed to encode 'НАСТРОЕние' in character > set 'ISO-8859-1' > cc39118a-cde6-4a6e-a1d6-4b6b7e847b8a on maprd > Query is: > SELECT > T1.`F01INT`, > T1.`F02UCHAR_10`, > T1.`F03UVARCHAR_10` > FROM > DPRV64R6_TRDUNI01T T1 > WHERE > (T1.`F03UVARCHAR_10` = 'НАСТРОЕние') > ORDER BY > T1.`F01INT`; > This issue looks similar to jira HIVE-12207. > Is there a fix or workaround for this? -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (DRILL-4039) Query fails when non-ascii characters are used in string literals
[ https://issues.apache.org/jira/browse/DRILL-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15998320#comment-15998320 ] ASF GitHub Bot commented on DRILL-4039: --- Github user asfgit closed the pull request at: https://github.com/apache/drill/pull/825 > Query fails when non-ascii characters are used in string literals > - > > Key: DRILL-4039 > URL: https://issues.apache.org/jira/browse/DRILL-4039 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC >Affects Versions: 1.1.0 > Environment: Linux lnxx64r6 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May > 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux >Reporter: Sergio Lob > Labels: ready-to-commit > Attachments: DRILL-4039.patch > > > The following query against DRILL returns this error: > SYSTEM ERROR: CalciteException: Failed to encode 'НАСТРОЕние' in character > set 'ISO-8859-1' > cc39118a-cde6-4a6e-a1d6-4b6b7e847b8a on maprd > Query is: > SELECT > T1.`F01INT`, > T1.`F02UCHAR_10`, > T1.`F03UVARCHAR_10` > FROM > DPRV64R6_TRDUNI01T T1 > WHERE > (T1.`F03UVARCHAR_10` = 'НАСТРОЕние') > ORDER BY > T1.`F01INT`; > This issue looks similar to jira HIVE-12207. > Is there a fix or workaround for this? -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (DRILL-4039) Query fails when non-ascii characters are used in string literals
[ https://issues.apache.org/jira/browse/DRILL-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15997008#comment-15997008 ] ASF GitHub Bot commented on DRILL-4039: --- Github user sudheeshkatkam commented on the issue: https://github.com/apache/drill/pull/825 +1 > Query fails when non-ascii characters are used in string literals > - > > Key: DRILL-4039 > URL: https://issues.apache.org/jira/browse/DRILL-4039 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC >Affects Versions: 1.1.0 > Environment: Linux lnxx64r6 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May > 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux >Reporter: Sergio Lob > Attachments: DRILL-4039.patch > > > The following query against DRILL returns this error: > SYSTEM ERROR: CalciteException: Failed to encode 'НАСТРОЕние' in character > set 'ISO-8859-1' > cc39118a-cde6-4a6e-a1d6-4b6b7e847b8a on maprd > Query is: > SELECT > T1.`F01INT`, > T1.`F02UCHAR_10`, > T1.`F03UVARCHAR_10` > FROM > DPRV64R6_TRDUNI01T T1 > WHERE > (T1.`F03UVARCHAR_10` = 'НАСТРОЕние') > ORDER BY > T1.`F01INT`; > This issue looks similar to jira HIVE-12207. > Is there a fix or workaround for this? -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (DRILL-4039) Query fails when non-ascii characters are used in string literals
[ https://issues.apache.org/jira/browse/DRILL-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15996201#comment-15996201 ] ASF GitHub Bot commented on DRILL-4039: --- GitHub user liuliyun1 opened a pull request: https://github.com/apache/drill/pull/825 DRILL-4039:Query fails when non-ascii characters are used in string l… Please review. You can merge this pull request into a Git repository by running: $ git pull https://github.com/liuliyun1/drill DRILL-4039 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/drill/pull/825.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #825 commit fe0f45146724ce68b757d90e693c7e6d860f8971 Author: liyun LiuDate: 2017-05-04T04:46:58Z DRILL-4039:Query fails when non-ascii characters are used in string literals > Query fails when non-ascii characters are used in string literals > - > > Key: DRILL-4039 > URL: https://issues.apache.org/jira/browse/DRILL-4039 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC >Affects Versions: 1.1.0 > Environment: Linux lnxx64r6 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May > 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux >Reporter: Sergio Lob >Assignee: Vitalii Diravka > Attachments: DRILL-4039.patch > > > The following query against DRILL returns this error: > SYSTEM ERROR: CalciteException: Failed to encode 'НАСТРОЕние' in character > set 'ISO-8859-1' > cc39118a-cde6-4a6e-a1d6-4b6b7e847b8a on maprd > Query is: > SELECT > T1.`F01INT`, > T1.`F02UCHAR_10`, > T1.`F03UVARCHAR_10` > FROM > DPRV64R6_TRDUNI01T T1 > WHERE > (T1.`F03UVARCHAR_10` = 'НАСТРОЕние') > ORDER BY > T1.`F01INT`; > This issue looks similar to jira HIVE-12207. > Is there a fix or workaround for this? -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (DRILL-4039) Query fails when non-ascii characters are used in string literals
[ https://issues.apache.org/jira/browse/DRILL-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15860235#comment-15860235 ] Sudheesh Katkam commented on DRILL-4039: [~llystar] I noticed the patch does not have your name (rather "From: root"). Could you update the patch to add your name? > Query fails when non-ascii characters are used in string literals > - > > Key: DRILL-4039 > URL: https://issues.apache.org/jira/browse/DRILL-4039 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC >Affects Versions: 1.1.0 > Environment: Linux lnxx64r6 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May > 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux >Reporter: Sergio Lob > Attachments: DRILL-4039.patch.txt > > > The following query against DRILL returns this error: > SYSTEM ERROR: CalciteException: Failed to encode 'НАСТРОЕние' in character > set 'ISO-8859-1' > cc39118a-cde6-4a6e-a1d6-4b6b7e847b8a on maprd > Query is: > SELECT > T1.`F01INT`, > T1.`F02UCHAR_10`, > T1.`F03UVARCHAR_10` > FROM > DPRV64R6_TRDUNI01T T1 > WHERE > (T1.`F03UVARCHAR_10` = 'НАСТРОЕние') > ORDER BY > T1.`F01INT`; > This issue looks similar to jira HIVE-12207. > Is there a fix or workaround for this? -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (DRILL-4039) Query fails when non-ascii characters are used in string literals
[ https://issues.apache.org/jira/browse/DRILL-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15803940#comment-15803940 ] Flow Wei commented on DRILL-4039: - Hi, can we merge this patch? I have tested this patch and deployed to production for a period of time, it work fine for me. > Query fails when non-ascii characters are used in string literals > - > > Key: DRILL-4039 > URL: https://issues.apache.org/jira/browse/DRILL-4039 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC >Affects Versions: 1.1.0 > Environment: Linux lnxx64r6 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May > 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux >Reporter: Sergio Lob > Attachments: DRILL-4039.patch.txt > > > The following query against DRILL returns this error: > SYSTEM ERROR: CalciteException: Failed to encode 'НАСТРОЕние' in character > set 'ISO-8859-1' > cc39118a-cde6-4a6e-a1d6-4b6b7e847b8a on maprd > Query is: > SELECT > T1.`F01INT`, > T1.`F02UCHAR_10`, > T1.`F03UVARCHAR_10` > FROM > DPRV64R6_TRDUNI01T T1 > WHERE > (T1.`F03UVARCHAR_10` = 'НАСТРОЕние') > ORDER BY > T1.`F01INT`; > This issue looks similar to jira HIVE-12207. > Is there a fix or workaround for this? -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (DRILL-4039) Query fails when non-ascii characters are used in string literals
[ https://issues.apache.org/jira/browse/DRILL-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15151921#comment-15151921 ] liyun Liu commented on DRILL-4039: -- Jingguo, the patch I submitted will also fix the problem you mentioned about 'show tables' and 'describe'. > Query fails when non-ascii characters are used in string literals > - > > Key: DRILL-4039 > URL: https://issues.apache.org/jira/browse/DRILL-4039 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC >Affects Versions: 1.1.0 > Environment: Linux lnxx64r6 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May > 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux >Reporter: Sergio Lob > Attachments: DRILL-4039.patch.txt > > > The following query against DRILL returns this error: > SYSTEM ERROR: CalciteException: Failed to encode 'НАСТРОЕние' in character > set 'ISO-8859-1' > cc39118a-cde6-4a6e-a1d6-4b6b7e847b8a on maprd > Query is: > SELECT > T1.`F01INT`, > T1.`F02UCHAR_10`, > T1.`F03UVARCHAR_10` > FROM > DPRV64R6_TRDUNI01T T1 > WHERE > (T1.`F03UVARCHAR_10` = 'НАСТРОЕние') > ORDER BY > T1.`F01INT`; > This issue looks similar to jira HIVE-12207. > Is there a fix or workaround for this? -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (DRILL-4039) Query fails when non-ascii characters are used in string literals
[ https://issues.apache.org/jira/browse/DRILL-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15151866#comment-15151866 ] Jingguo Yao commented on DRILL-4039: The proposed change will affect {{show tables}} and {{describe}}. The following show the problem of {{show tables}}. {quote} 0: jdbc:drill:zk=local> use hive; +---+---+ | ok | summary | +---+---+ | true | Default schema changed to [hive] | +---+---+ 1 row selected (0.872 seconds) 0: jdbc:drill:zk=local> show tables; Feb 18, 2016 3:21:21 PM org.apache.calcite.sql.validate.SqlValidatorException SEVERE: org.apache.calcite.sql.validate.SqlValidatorException: Cannot apply = to the two different charsets UTF-16LE and ISO-8859-1 Feb 18, 2016 3:21:21 PM org.apache.calcite.runtime.CalciteException SEVERE: org.apache.calcite.runtime.CalciteContextException: At line 0, column 0: Cannot apply = to the two different charsets UTF-16LE and ISO-8859-1 Error: VALIDATION ERROR: At line 0, column 0: Cannot apply = to the two different charsets UTF-16LE and ISO-8859-1 [Error Id: 23a56a6c-7d6d-497f-ac82-7c415937378e on jinglin:31010] (state=,code=0) {quote} The following text shows the problem of {{describe}}: {quote} 0: jdbc:drill:zk=local> describe adminlog; Feb 18, 2016 3:29:15 PM org.apache.calcite.sql.validate.SqlValidatorException SEVERE: org.apache.calcite.sql.validate.SqlValidatorException: Cannot apply = to the two different charsets UTF-16LE and ISO-8859-1 Feb 18, 2016 3:29:15 PM org.apache.calcite.runtime.CalciteException SEVERE: org.apache.calcite.runtime.CalciteContextException: At line 0, column 0: Cannot apply = to the two different charsets UTF-16LE and ISO-8859-1 Error: VALIDATION ERROR: At line 0, column 0: Cannot apply = to the two different charsets UTF-16LE and ISO-8859-1 [Error Id: db0a3169-9a1d-4d64-8242-f0f35e24c07c on jinglin:31010] (state=,code=0) 0: jdbc:drill:zk=local> {quote} > Query fails when non-ascii characters are used in string literals > - > > Key: DRILL-4039 > URL: https://issues.apache.org/jira/browse/DRILL-4039 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC >Affects Versions: 1.1.0 > Environment: Linux lnxx64r6 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May > 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux >Reporter: Sergio Lob > > The following query against DRILL returns this error: > SYSTEM ERROR: CalciteException: Failed to encode 'НАСТРОЕние' in character > set 'ISO-8859-1' > cc39118a-cde6-4a6e-a1d6-4b6b7e847b8a on maprd > Query is: > SELECT > T1.`F01INT`, > T1.`F02UCHAR_10`, > T1.`F03UVARCHAR_10` > FROM > DPRV64R6_TRDUNI01T T1 > WHERE > (T1.`F03UVARCHAR_10` = 'НАСТРОЕние') > ORDER BY > T1.`F01INT`; > This issue looks similar to jira HIVE-12207. > Is there a fix or workaround for this? -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (DRILL-4039) Query fails when non-ascii characters are used in string literals
[ https://issues.apache.org/jira/browse/DRILL-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=14993766#comment-14993766 ] Sergio Lob commented on DRILL-4039: --- Julian, can you please look at the fix for this issue done in HIVE-12207? Perhaps that fix can be used here? > Query fails when non-ascii characters are used in string literals > - > > Key: DRILL-4039 > URL: https://issues.apache.org/jira/browse/DRILL-4039 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC >Affects Versions: 1.1.0 > Environment: Linux lnxx64r6 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May > 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux >Reporter: Sergio Lob > > The following query against DRILL returns this error: > SYSTEM ERROR: CalciteException: Failed to encode 'НАСТРОЕние' in character > set 'ISO-8859-1' > cc39118a-cde6-4a6e-a1d6-4b6b7e847b8a on maprd > Query is: > SELECT > T1.`F01INT`, > T1.`F02UCHAR_10`, > T1.`F03UVARCHAR_10` > FROM > DPRV64R6_TRDUNI01T T1 > WHERE > (T1.`F03UVARCHAR_10` = 'НАСТРОЕние') > ORDER BY > T1.`F01INT`; > This issue looks similar to jira HIVE-12207. > Is there a fix or workaround for this? -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (DRILL-4039) Query fails when non-ascii characters are used in string literals
[ https://issues.apache.org/jira/browse/DRILL-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=14992134#comment-14992134 ] Julian Hyde commented on DRILL-4039: Not a bug. Calcite (and standard SQL) have several ways to create character literals of non-ASCII characters: n'foo' or _iso-8859-1'foo' or _utf16'foo' or u&'foo' or u&'foo' uescape '0'. > Query fails when non-ascii characters are used in string literals > - > > Key: DRILL-4039 > URL: https://issues.apache.org/jira/browse/DRILL-4039 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC >Affects Versions: 1.1.0 > Environment: Linux lnxx64r6 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May > 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux >Reporter: Sergio Lob > > The following query against DRILL returns this error: > SYSTEM ERROR: CalciteException: Failed to encode 'НАСТРОЕние' in character > set 'ISO-8859-1' > cc39118a-cde6-4a6e-a1d6-4b6b7e847b8a on maprd > Query is: > SELECT > T1.`F01INT`, > T1.`F02UCHAR_10`, > T1.`F03UVARCHAR_10` > FROM > DPRV64R6_TRDUNI01T T1 > WHERE > (T1.`F03UVARCHAR_10` = 'НАСТРОЕние') > ORDER BY > T1.`F01INT`; > This issue looks similar to jira HIVE-12207. > Is there a fix or workaround for this? -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (DRILL-4039) Query fails when non-ascii characters are used in string literals
[ https://issues.apache.org/jira/browse/DRILL-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=14992194#comment-14992194 ] Sergio Lob commented on DRILL-4039: --- Hi Julian, I tried a couple of your suggestions: 1. (T1.`F03UVARCHAR_10` = n'НАСТРОЕние') returned the same error 2. (T1.`F03UVARCHAR_10` = _UTF16'НАСТРОЕние') returned this error: VALIDATION ERROR: From line 1, column 93 to line 1, column 133: Cannot apply = to the two different charsets ISO-8859-1 and UTF-16LE By the way, I am using java JDBC program to make the request. > Query fails when non-ascii characters are used in string literals > - > > Key: DRILL-4039 > URL: https://issues.apache.org/jira/browse/DRILL-4039 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC >Affects Versions: 1.1.0 > Environment: Linux lnxx64r6 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May > 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux >Reporter: Sergio Lob > > The following query against DRILL returns this error: > SYSTEM ERROR: CalciteException: Failed to encode 'НАСТРОЕние' in character > set 'ISO-8859-1' > cc39118a-cde6-4a6e-a1d6-4b6b7e847b8a on maprd > Query is: > SELECT > T1.`F01INT`, > T1.`F02UCHAR_10`, > T1.`F03UVARCHAR_10` > FROM > DPRV64R6_TRDUNI01T T1 > WHERE > (T1.`F03UVARCHAR_10` = 'НАСТРОЕние') > ORDER BY > T1.`F01INT`; > This issue looks similar to jira HIVE-12207. > Is there a fix or workaround for this? -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (DRILL-4039) Query fails when non-ascii characters are used in string literals
[ https://issues.apache.org/jira/browse/DRILL-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=14992449#comment-14992449 ] Julian Hyde commented on DRILL-4039: Alright, I don't know what should happen in those cases. But now you know about SQL's support for non-ascii characters maybe you can see what other databases do. IIRC the Convert function is supposed to deal with character-set conversion. > Query fails when non-ascii characters are used in string literals > - > > Key: DRILL-4039 > URL: https://issues.apache.org/jira/browse/DRILL-4039 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC >Affects Versions: 1.1.0 > Environment: Linux lnxx64r6 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May > 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux >Reporter: Sergio Lob > > The following query against DRILL returns this error: > SYSTEM ERROR: CalciteException: Failed to encode 'НАСТРОЕние' in character > set 'ISO-8859-1' > cc39118a-cde6-4a6e-a1d6-4b6b7e847b8a on maprd > Query is: > SELECT > T1.`F01INT`, > T1.`F02UCHAR_10`, > T1.`F03UVARCHAR_10` > FROM > DPRV64R6_TRDUNI01T T1 > WHERE > (T1.`F03UVARCHAR_10` = 'НАСТРОЕние') > ORDER BY > T1.`F01INT`; > This issue looks similar to jira HIVE-12207. > Is there a fix or workaround for this? -- This message was sent by Atlassian JIRA (v6.3.4#6332)