[ 
https://issues.apache.org/jira/browse/CASSANDRA-10513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14982641#comment-14982641
 ] 

Adam Holmberg commented on CASSANDRA-10513:
-------------------------------------------

Sorry for missing this unrelated change. 

bq. Can we restore the original representation in the driver (as other clients 
might be also relying on that), or should we fix on cqlsh?

The internal class is named as it is following PEP-8 convention, and to avoid 
confusion with the blist variant. My suggestion would be to update the 
formatter to catch this type:

{code}
diff --git a/pylib/cqlshlib/formatting.py b/pylib/cqlshlib/formatting.py
index e95df9f..fe1786a 100644
--- a/pylib/cqlshlib/formatting.py
+++ b/pylib/cqlshlib/formatting.py
@@ -270,6 +270,7 @@ def format_value_set(val, encoding, colormap, 
date_time_format, float_precision,
                                     date_time_format, float_precision, nullval)
 formatter_for('frozenset')(format_value_set)
 formatter_for('sortedset')(format_value_set)
+formatter_for('SortedSet')(format_value_set)


 @formatter_for('dict')
{code}

Let me know if you think otherwise.

> Update cqlsh for new driver execution API
> -----------------------------------------
>
>                 Key: CASSANDRA-10513
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10513
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Tools
>            Reporter: Adam Holmberg
>            Assignee: Adam Holmberg
>            Priority: Minor
>              Labels: cqlsh
>             Fix For: 2.2.4, 3.0.0
>
>         Attachments: 10513-2.1.txt, 10513-2.2.txt, 10513.txt
>
>
> The 3.0 Python driver will have a few tweaks to the execution API. We'll need 
> to update cqlsh in a couple of minor ways.
> [Results are always returned as an iterable 
> ResultSet|https://datastax-oss.atlassian.net/browse/PYTHON-368]
> [Trace data is always attached to the 
> ResultSet|https://datastax-oss.atlassian.net/browse/PYTHON-318] (instead of 
> being attached to a statement)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to