[
https://issues.apache.org/jira/browse/CASSANDRA-14825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16821337#comment-16821337
]
Chris Lohfink commented on CASSANDRA-14825:
-------------------------------------------
I am not against making the protocol change to add a {{DESCRIBE}} for what its
worth, if anything I am neutral and can change patch to go either direction.
In the initial conversation that brought this ticket up was regrettably in IRC
and lost - It was thought that a virtual table provides easier access to other
drivers (even older) and the difference between a DESCRIBE and a SELECT on the
protocol/overhead perspective is essentially the same in terms of post
processing on driver or string generation on the server. Also virtual tables
doesn't require a protocol change so it could be done initially this way and
added in a future protocol version with little cost and easy migration if we
later decide it's a good idea to change. Consider it a lower risk beta view.
> 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: 0.5h
> 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
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]