[
https://issues.apache.org/jira/browse/CASSANDRA-9304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14989270#comment-14989270
]
Stefania commented on CASSANDRA-9304:
-------------------------------------
I finally got the pickle part to work but there is still something strange
going on for version 2.1 on Windows. I am receiving {{str}} objects rather than
{{bytearray}} objects for blob db values. I've debugged it all the way down to
_protocol.py_ in the driver, in {{recv_results_rows}}. When called from the
main process, {{ctype.from_binary}} returns a {{bytearray}} as expected but
when called from a sub-process it returns the same string passed in as an
argument. It seems in this second case it is {{_CassandraType.deserialize}}
that gets called whilst in the case that works there is another method that
gets called but I cannot find it. [~aholmber], do you have any pointers? The
driver has been built without compilation ({{--no-extensions}} and I've added
the {{cassandra}} source folder directly to the system path for easier
debugging but the same problem occurs with the cqlsh embedded driver.
[~thobbs], I cannot get multiprocessing to work for 2.1 unless I rename _cqlsh_
to _cqlsh.py_ like it has been done for 2.2. I don't think there is much we can
do about this. Shall I rename the file in 2.1 or shall we accept that COPY on
Windows will only work from 2.2 onward?
Finally, I also have an issue with pipes, in that poll or select don't work. I
can work around the lack of select by polling individual pipes, it is clearly
stated in the documentation that Windows supports select only for sockets, but
I still don't know why polling individual pipes doesn't work either, at least
not reliably. I haven't spent much time on this but it looks like it needs some
sort of flushing when sending.
> COPY TO improvements
> --------------------
>
> Key: CASSANDRA-9304
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9304
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Jonathan Ellis
> Assignee: Stefania
> Priority: Minor
> Labels: cqlsh
> Fix For: 3.x, 2.1.x, 2.2.x
>
>
> COPY FROM has gotten a lot of love. COPY TO not so much. One obvious
> improvement could be to parallelize reading and writing (write one page of
> data while fetching the next).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)