-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cqlsh.py: Send DESCRIBE statement to server before parsing
Attempting to parse a DESCRIBE statement before performing it forces us to update cqlsh whenever a new element of the schema that could be described is introduced. We should try to rely on the server and only in the case of a failure (when the version of the server is old and it doesn't recognize the query) should we try to parse it and perform locally. Trying to parse it first may lead to rejecting DESCRIBE statements that would otherwise be valid -- if the grammar used by cqlsh hasn't caught up with Scylla yet.
- Loading branch information
Showing
1 changed file
with
55 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters