You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Manish Khandelwal (Jira)" <ji...@apache.org> on 2022/09/29 09:17:00 UTC

[jira] (CASSANDRA-14825) Expose table schema for drivers

    [ https://issues.apache.org/jira/browse/CASSANDRA-14825 ]


    Manish Khandelwal deleted comment on CASSANDRA-14825:
    -----------------------------------------------

was (Author: manmagic3):
Partial support for COMPACT STORAGE was restored via CASSANDRA-16217,  so with this change(CASSANDRA-14825) DESC output for  "COMPACT STORAGE" is giving a warning 

*Warning: Table keyspace.tablename omitted because it has constructs not compatible with CQL (was created via legacy API).*
*Approximate structure, for reference:*
*(this should not be used to reproduce this schema)*

 

Is this the right behavior since Cassandra 4 allows creating table with COMPACT STORAGE and we are not describing  the table schema.

> 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: Robert Stupp
>            Priority: Normal
>              Labels: pull-request-available
>             Fix For: 4.0-beta1, 4.0
>
>          Time Spent: 2h 10m
>  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.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org