-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ycqlsh fails on COPY TO with got an unexpected keyword argument 'encoding'
#3
Comments
got an unexpected keyword argument 'encoding'
got an unexpected keyword argument 'encoding'
Thanks for reporting @hstenzel. I'm able to reproduce this problem.
Without --debug, I get the same error that you mentioned:
@OlegLoginov , the issue seems to be related to these lines:
In Cassandra (https://github.com/apache/cassandra/blob/ebba613b0b34ea338eed508a3ba6cbb235986fd9/pylib/cqlshlib/copyutil.py#L95):
We should fix |
I was able to work around it with hstenzel/cassandra@996f164 Using --debug as a workaround isn't very helpful since the point is to save the data into a csv file and all output is on stdout -- the debug output is not on stderr as one would expect. The patch is one I pulled from https://issues.apache.org/jira/browse/CASSANDRA-8675 |
Another data point is that I tried the workaround with --debug, adding a hacky sed to strip out the non-csv results, and it kinda worked. However, there was a follow-on issue. Whereas cqlsh was able to round-trip csv files containing the I'm using I suspect this is a different bug. |
ycqlsh fails with
<stdin>:1:<lambda>() got an unexpected keyword argument 'encoding'
in scenarios where "standard" cqlsh succeeds.It's the same failure if I run it using the docker image or the local install. Being explicit about encoding has no bearing.
The text was updated successfully, but these errors were encountered: