diff --git a/CHANGES.txt b/CHANGES.txt index a8e172e45d..c006b50921 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,5 @@ 3.11.0 + * Fix formatting of duration columns in CQLSH (CASSANDRA-13549) * Fix the problem with duplicated rows when using paging with SASI (CASSANDRA-13302) * Allow CONTAINS statements filtering on the partition key and it’s parts (CASSANDRA-13275) * Fall back to even ranges calculation in clusters with vnodes when tokens are distributed unevenly (CASSANDRA-13229) diff --git a/lib/cassandra-driver-internal-only-3.10.zip b/lib/cassandra-driver-internal-only-3.10.zip new file mode 100644 index 0000000000..22b877c515 Binary files /dev/null and b/lib/cassandra-driver-internal-only-3.10.zip differ diff --git a/lib/cassandra-driver-internal-only-3.7.1.post0-19c1603.zip b/lib/cassandra-driver-internal-only-3.7.1.post0-19c1603.zip deleted file mode 100644 index 900d64dace..0000000000 Binary files a/lib/cassandra-driver-internal-only-3.7.1.post0-19c1603.zip and /dev/null differ diff --git a/pylib/cqlshlib/formatting.py b/pylib/cqlshlib/formatting.py index 08665fd6c3..cf3b32d2b0 100644 --- a/pylib/cqlshlib/formatting.py +++ b/pylib/cqlshlib/formatting.py @@ -396,11 +396,7 @@ def format_value_time(val, colormap, **_): @formatter_for('Duration') def format_value_duration(val, colormap, **_): - buf = six.iterbytes(val) - months = decode_vint(buf) - days = decode_vint(buf) - nanoseconds = decode_vint(buf) - return format_python_formatted_type(duration_as_str(months, days, nanoseconds), colormap, 'duration') + return format_python_formatted_type(duration_as_str(val.months, val.days, val.nanoseconds), colormap, 'duration') def duration_as_str(months, days, nanoseconds):