exportAsString improvements (sort, format, clustering order)

Description

While evaluating I found some other inconsistencies with exportAsString

  1. user types, tables, views, functions and aggregates are not consistently ordered (use ConcurrentHashMap which has no ordering guarantees)

  2. Materialized views are not formatted in exportAsString on {{TableMetadata}]

  3. Spacing on formatted materialized views is off.

  4. Clustering order is not included if all clustering is ascending, this is inconsistent with python driver export_as_string so felt that would be good to include it.

  5. Columns are not quoted if necessary in clustering order

  6. Additional Newline missing after index/materialized view and next table/keyspace.

  7. When printing table options formatted, "AND" was prefixed by 3 spaces instead of 4 (like columns are offset).

  8. Slight spacing issues in UDFs and UDAs

  9. Return type for UDF should never be frozen

Environment

None

Pull Requests

None
100% Done
Loading...

Activity

Show:
Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created August 10, 2017 at 10:51 PM
Updated November 8, 2017 at 11:05 PM
Resolved September 28, 2017 at 8:51 PM