[jira] [Commented] (CASSANDRA-10948) CQLSH error when trying to insert non-ascii statement
[ https://issues.apache.org/jira/browse/CASSANDRA-10948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16873132#comment-16873132 ] gloCalHelp.com commented on CASSANDRA-10948: Dear Sir Paulo Motta, I cann't find this issue's solution steps, would you like to tell me the solution steps? By the way, this method seems just only solving client query of select? doesn't it? and I have found other issue on insert query, which has submitted in https://issues.apache.org/jira/browse/CASSANDRA-15182?filter=-2 > CQLSH error when trying to insert non-ascii statement > - > > Key: CASSANDRA-10948 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10948 > Project: Cassandra > Issue Type: Bug > Components: Legacy/Tools >Reporter: Matthieu Nantern >Assignee: Matthieu Nantern >Priority: Low > Labels: lhf > Fix For: 2.2.5, 3.0.3, 3.3 > > Attachments: patch_CASSANDRA-10948 > > > We recently upgraded Cassandra to v2.2.4 with CQLSH 5.0.1 and we are now > unable to import some CQL file (with French character like 'ê'). It was > working on v2.0.12. > The issue: > {noformat} > Using CQL driver: '/OPT/cassandra/dsc-cassandra-2.2.4/bin/../lib/cassandra-driver-internal-only-3.0.0-6af642d.zip/cassandra-driver-3.0.0-6af642d/cassandra/__init__.py'> > Using connect timeout: 5 seconds > Traceback (most recent call last): > File "/OPT/cassandra/dsc-cassandra/bin/cqlsh.py", line 1110, in onecmd > self.handle_statement(st, statementtext) > File "/OPT/cassandra/dsc-cassandra/bin/cqlsh.py", line 1135, in > handle_statement > readline.add_history(new_hist) > UnicodeEncodeError: 'ascii' codec can't encode character u'\xea' in position > 7192: ordinal not in range(128) > {noformat} > The issue was corrected by changing line 1135 of cqlsh.py (but I don't know > if it's the correct way to do it): > readline.add_history(new_hist) -> > readline.add_history(new_hist.encode('utf8')) -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-10948) CQLSH error when trying to insert non-ascii statement
[ https://issues.apache.org/jira/browse/CASSANDRA-10948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15107467#comment-15107467 ] Paulo Motta commented on CASSANDRA-10948: - Tests look good, marking as ready to commit. Thanks! > CQLSH error when trying to insert non-ascii statement > - > > Key: CASSANDRA-10948 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10948 > Project: Cassandra > Issue Type: Bug > Components: Tools >Reporter: Matthieu Nantern >Assignee: Matthieu Nantern >Priority: Minor > Labels: lhf > Attachments: patch_CASSANDRA-10948 > > > We recently upgraded Cassandra to v2.2.4 with CQLSH 5.0.1 and we are now > unable to import some CQL file (with French character like 'ê'). It was > working on v2.0.12. > The issue: > {noformat} > Using CQL driver: '/OPT/cassandra/dsc-cassandra-2.2.4/bin/../lib/cassandra-driver-internal-only-3.0.0-6af642d.zip/cassandra-driver-3.0.0-6af642d/cassandra/__init__.py'> > Using connect timeout: 5 seconds > Traceback (most recent call last): > File "/OPT/cassandra/dsc-cassandra/bin/cqlsh.py", line 1110, in onecmd > self.handle_statement(st, statementtext) > File "/OPT/cassandra/dsc-cassandra/bin/cqlsh.py", line 1135, in > handle_statement > readline.add_history(new_hist) > UnicodeEncodeError: 'ascii' codec can't encode character u'\xea' in position > 7192: ordinal not in range(128) > {noformat} > The issue was corrected by changing line 1135 of cqlsh.py (but I don't know > if it's the correct way to do it): > readline.add_history(new_hist) -> > readline.add_history(new_hist.encode('utf8')) -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-10948) CQLSH error when trying to insert non-ascii statement
[ https://issues.apache.org/jira/browse/CASSANDRA-10948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15107195#comment-15107195 ] Paulo Motta commented on CASSANDRA-10948: - +1, just minor change to use {{self.encoding}} instead of hard-coding {{utf-8}}, to avoid problems when using other encodings. Will mark as ready to commit once tests look good: ||2.2||3.0||3.3||trunk|| |[branch|https://github.com/apache/cassandra/compare/cassandra-2.2...pauloricardomg:2.2-10948]|[branch|https://github.com/apache/cassandra/compare/cassandra-3.0...pauloricardomg:3.0-10948]|[branch|https://github.com/apache/cassandra/compare/cassandra-3.3...pauloricardomg:3.3-10948]|[branch|https://github.com/apache/cassandra/compare/trunk...pauloricardomg:trunk-10948]| |[testall|http://cassci.datastax.com/view/Dev/view/paulomotta/job/pauloricardomg-2.2-10948-testall/lastCompletedBuild/testReport/]|[testall|http://cassci.datastax.com/view/Dev/view/paulomotta/job/pauloricardomg-3.0-10948-testall/lastCompletedBuild/testReport/]|[testall|http://cassci.datastax.com/view/Dev/view/paulomotta/job/pauloricardomg-3.3-10948-testall/lastCompletedBuild/testReport/]|[testall|http://cassci.datastax.com/view/Dev/view/paulomotta/job/pauloricardomg-trunk-10948-testall/lastCompletedBuild/testReport/]| |[dtest|http://cassci.datastax.com/view/Dev/view/paulomotta/job/pauloricardomg-2.2-10948-dtest/lastCompletedBuild/testReport/]|[dtest|http://cassci.datastax.com/view/Dev/view/paulomotta/job/pauloricardomg-3.0-10948-dtest/lastCompletedBuild/testReport/]|[dtest|http://cassci.datastax.com/view/Dev/view/paulomotta/job/pauloricardomg-3.3-10948-dtest/lastCompletedBuild/testReport/]|[dtest|http://cassci.datastax.com/view/Dev/view/paulomotta/job/pauloricardomg-trunk-10948-dtest/lastCompletedBuild/testReport/]| Thanks! > CQLSH error when trying to insert non-ascii statement > - > > Key: CASSANDRA-10948 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10948 > Project: Cassandra > Issue Type: Bug > Components: Tools >Reporter: Matthieu Nantern >Priority: Minor > Labels: lhf > Attachments: patch_CASSANDRA-10948 > > > We recently upgraded Cassandra to v2.2.4 with CQLSH 5.0.1 and we are now > unable to import some CQL file (with French character like 'ê'). It was > working on v2.0.12. > The issue: > {noformat} > Using CQL driver: '/OPT/cassandra/dsc-cassandra-2.2.4/bin/../lib/cassandra-driver-internal-only-3.0.0-6af642d.zip/cassandra-driver-3.0.0-6af642d/cassandra/__init__.py'> > Using connect timeout: 5 seconds > Traceback (most recent call last): > File "/OPT/cassandra/dsc-cassandra/bin/cqlsh.py", line 1110, in onecmd > self.handle_statement(st, statementtext) > File "/OPT/cassandra/dsc-cassandra/bin/cqlsh.py", line 1135, in > handle_statement > readline.add_history(new_hist) > UnicodeEncodeError: 'ascii' codec can't encode character u'\xea' in position > 7192: ordinal not in range(128) > {noformat} > The issue was corrected by changing line 1135 of cqlsh.py (but I don't know > if it's the correct way to do it): > readline.add_history(new_hist) -> > readline.add_history(new_hist.encode('utf8')) -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-10948) CQLSH error when trying to insert non-ascii statement
[ https://issues.apache.org/jira/browse/CASSANDRA-10948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15073870#comment-15073870 ] Matthieu Nantern commented on CASSANDRA-10948: -- I don't think so, I tried the proposed patch (https://issues.apache.org/jira/secure/attachment/12779519/10875-2.1-3.txt) but I still have the issue > CQLSH error when trying to insert non-ascii statement > - > > Key: CASSANDRA-10948 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10948 > Project: Cassandra > Issue Type: Bug > Components: Tools >Reporter: Matthieu Nantern > Attachments: patch_CASSANDRA-10948 > > > We recently upgraded Cassandra to v2.2.4 with CQLSH 5.0.1 and we are now > unable to import some CQL file (with French character like 'ê'). It was > working on v2.0.12. > The issue: > {noformat} > Using CQL driver: '/OPT/cassandra/dsc-cassandra-2.2.4/bin/../lib/cassandra-driver-internal-only-3.0.0-6af642d.zip/cassandra-driver-3.0.0-6af642d/cassandra/__init__.py'> > Using connect timeout: 5 seconds > Traceback (most recent call last): > File "/OPT/cassandra/dsc-cassandra/bin/cqlsh.py", line 1110, in onecmd > self.handle_statement(st, statementtext) > File "/OPT/cassandra/dsc-cassandra/bin/cqlsh.py", line 1135, in > handle_statement > readline.add_history(new_hist) > UnicodeEncodeError: 'ascii' codec can't encode character u'\xea' in position > 7192: ordinal not in range(128) > {noformat} > The issue was corrected by changing line 1135 of cqlsh.py (but I don't know > if it's the correct way to do it): > readline.add_history(new_hist) -> > readline.add_history(new_hist.encode('utf8')) -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-10948) CQLSH error when trying to insert non-ascii statement
[ https://issues.apache.org/jira/browse/CASSANDRA-10948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15073856#comment-15073856 ] Robert Stupp commented on CASSANDRA-10948: -- Is this a duplicate of CASSANDRA-10875 ? > CQLSH error when trying to insert non-ascii statement > - > > Key: CASSANDRA-10948 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10948 > Project: Cassandra > Issue Type: Bug > Components: Tools >Reporter: Matthieu Nantern > Attachments: patch_CASSANDRA-10948 > > > We recently upgraded Cassandra to v2.2.4 with CQLSH 5.0.1 and we are now > unable to import some CQL file (with French character like 'ê'). It was > working on v2.0.12. > The issue: > {noformat} > Using CQL driver: '/OPT/cassandra/dsc-cassandra-2.2.4/bin/../lib/cassandra-driver-internal-only-3.0.0-6af642d.zip/cassandra-driver-3.0.0-6af642d/cassandra/__init__.py'> > Using connect timeout: 5 seconds > Traceback (most recent call last): > File "/OPT/cassandra/dsc-cassandra/bin/cqlsh.py", line 1110, in onecmd > self.handle_statement(st, statementtext) > File "/OPT/cassandra/dsc-cassandra/bin/cqlsh.py", line 1135, in > handle_statement > readline.add_history(new_hist) > UnicodeEncodeError: 'ascii' codec can't encode character u'\xea' in position > 7192: ordinal not in range(128) > {noformat} > The issue was corrected by changing line 1135 of cqlsh.py (but I don't know > if it's the correct way to do it): > readline.add_history(new_hist) -> > readline.add_history(new_hist.encode('utf8')) -- This message was sent by Atlassian JIRA (v6.3.4#6332)