[
https://issues.apache.org/jira/browse/CASSANDRA-14825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16923580#comment-16923580
]
Andy Tolbert commented on CASSANDRA-14825:
------------------------------------------
I do see how {{DESCRIBE}} can have value, but is there any reason why we can't
also offer a virtual table solution? Server providing schema via a select is a
big improvement over what currently exists as it allows users to access schema
via any driver, and doesn't depend on the drivers to build schema which has had
its share of bugs. In addition, the maintenance overhead of the virtual tables
seems pretty low as the code for that is approximately 300 lines. It will
definitely have value until a {{DESCRIBE}}-like implementation is available,
and will still be useful if/when there is something like {{DESCRIBE}}. The PR
also fixes some issues in {{TableCQLHelper}} as well.
> Expose table schema for drivers
> -------------------------------
>
> Key: CASSANDRA-14825
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14825
> Project: Cassandra
> Issue Type: Improvement
> Components: Legacy/CQL
> Reporter: Chris Lohfink
> Assignee: Chris Lohfink
> Priority: Normal
> Labels: pull-request-available
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> Currently the drivers recreate the CQL for the tables by putting together the
> system table values. This is very difficult to keep up to date and buggy
> enough that its only even supported in Java and Python drivers. Cassandra
> already has some limited output available for snapshots that we could provide
> in a virtual table or new query that the drivers can fetch. This can greatly
> reduce the complexity of drivers while also reducing bugs like
> CASSANDRA-14822 as the underlying schema and properties change.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]