Commit Graph

854 Commits

Author SHA1 Message Date
Abe Ratnofsky 599dc7a025 Fix test failure: cqlshlib.test.test_cqlsh_output.TestCqlshOutput::test_describe_schema_output 2025-08-13 16:19:15 -05:00
Caleb Rackliffe eb65c0e600 Support manual secondary index selection at the CQL level
patch by Caleb Rackliffe; reviewed by Andres de la Peña for CASSANDRA-18112

Co-authored-by: Caleb Rackliffe <calebrackliffe@gmail.com>
Co-authored-by: Andres de la Peña <a.penya.garcia@gmail.com>
2025-08-01 14:42:27 -05:00
Stefan Miklosovic 4154632d16
Merge branch 'cassandra-5.0' into trunk 2025-05-23 17:50:44 +02:00
Brad Schoening 49c8122d8f
Avoid CQLSH throwing an exception loading .cqlshrc on non-supported platforms
While we do not support Windows as such (at least on server), reviewers evaluated that this might be fixed
as the gains (Windows users using CQLSH to connect to Cassandra running on supported platforms) are justified.

patch by Brad Schoening; reviewed by Brandon Williams, Josh McKenzie for CASSANDRA-20478
2025-05-23 17:49:28 +02:00
Stefan Miklosovic c24fbd814a
Rewrite constraint framework to remove column specification from constraint definition, introduce SQL-like NOT NULL
patch by Stefan Miklosovic; reviewed by Bernardo Botella Corbi for CASSANDRA-20563

Co-authored-by: Bernardo Botella Corbi <contacto@bernardobotella.com>
2025-05-06 15:31:39 +02:00
David Capwell 234763f057 Remove Accord CQL words from the reserved keywords list
patch by David Capwell; reviewed by Caleb Rackliffe for CASSANDRA-20613
2025-05-02 12:51:36 -07:00
Brad Schoening 2e602ec972 Merge branch 'CASSANDRA-19631e' into trunk 2025-04-21 18:46:54 -04:00
Naren Sreedhara 91bc34fbf8 Added tab-ahead support for new built-in functions
patch by Brad Schoening, Naren Sreedhara; reviewed by Stefan Miklosovic, Bernardo Botella Corbi for CASSANDRA-19631
2025-04-21 18:32:49 -04:00
Blake Eggleston c909f2d669 ninja: fix cqlsh tests 2025-04-17 11:59:50 -07:00
Blake Eggleston 09c8fa1030 CEP-15 (C*): Messaging and storage engine integration
patch by Blake Eggleston; reviewed by Benedict Elliott Smith, David Capwell for CASSANDRA-17103
2025-04-17 11:59:47 -07:00
Pedro Gordo c3089b564a
Ignore repetitions of semicolon in CQLSH
When grouping the tokens, skip statements composed by a single endtoken.

patch by Pedro Gordo; reviewed by Brad Schoening, Stefan Miklosovic for CASSANDRA-19956
2025-04-07 09:46:00 +02:00
Stefan Miklosovic 85b25f2256
Add regular expression constraint
patch by Stefan Miklosovic; reviewed by Bernardo Botella for CASSANDRA-20275
2025-03-14 17:13:00 +01:00
Stefan Miklosovic 68b88134db
ninja: fix typo in test_cqlsh_completion.py after CASSANDRA-20341 2025-03-14 13:49:46 +01:00
Bernardo Botella Corbi 5b0a9c3aa4 Improve constraints autocompletion
Improve constraints autocompletion

patch by Bernardo Botella; reviewed by Maxwell Guo for CASSANDRA-20341
2025-03-13 13:44:00 -07:00
Maxwell Guo 989f0414b7 Support CREATE TABLE LIKE with INDEXES
patch by Maxwell Guo; reviewed by Stefan Miklosovic, Sam Tunnicliffe for CASSANDRA-19965
2025-02-26 16:14:43 +08:00
Stefan Miklosovic 90f51b9c0b
Merge branch 'cassandra-5.0' into trunk 2025-02-04 10:58:59 +01:00
Stefan Miklosovic 36e46df4b1
Merge branch 'cassandra-4.1' into cassandra-5.0 2025-02-04 10:55:16 +01:00
Stefan Miklosovic b044009f0b
Merge branch 'cassandra-4.0' into cassandra-4.1 2025-02-04 10:51:21 +01:00
Francisco Guerrero 4f9e474bb1
Fix autocompletion for role names/user names
patch by Francisco Guerrero; reviewed by Stefan Miklosovic, Bernardo Botella for CASSANDRA-20175
2025-02-04 10:44:12 +01:00
Bernardo Botella Corbi 5cbf993d96
CEP-42 - Add Constraints Framework
patch by Bernardo Botella; reviewed by Yifan Cai, Stefan Miklosovic, Josh McKenzie, Maxwell Guo, Dmitry Konstantinov, Sam Tunnicliffe for CASSANDRA-19947
2025-01-31 10:49:11 +01:00
Maxwell Guo 46ef00a315
Implementation of CEP-43
patch by Maxwell Guo; reviewed by Stefan Miklosovic, Benjamin Lerer for CASSANDRA-19964
2025-01-14 21:47:11 +01:00
Gottipati Gautam 510c20fec1
Fix cqlsh CAPTURE command to save query results without trace details when TRACING is ON
This patch also opportunistically fixes CAPTURE OFF.

patch by Gottipati Gautam; reviewed by Stefan Miklosovic, Brad Schoening for CASSANDRA-19105
2024-11-20 21:34:07 +01:00
Stefan Miklosovic 720a1b2704
Merge branch 'cassandra-5.0' into trunk 2024-09-24 14:43:28 +02:00
Stefan Miklosovic e9ea2772dd
Merge branch 'cassandra-4.1' into cassandra-5.0 2024-09-24 14:22:12 +02:00
Stefan Miklosovic 662ce36a7b
Merge branch 'cassandra-4.0' into cassandra-4.1 2024-09-24 13:57:32 +02:00
vgali7 a79f7f4b00
Fix text containing "/*" being interpreted as multiline comment in cqlsh
patch by Vineet Gali; reviewed by Brandon Williams, Brad Schoening for CASSANDRA-17667

Co-authored-by: Attila Homoki <biotep@yahoo.com>
Co-authored-by: Brad Schoening <bschoeni@gmail.com>
2024-09-24 13:21:24 +02:00
Benjamin Lerer e0074a31ef Add support for NOT operators in WHERE clauses (CASSANDRA-18584)
In addition - Fixed Three Valued Logic

patch by Piotr Kolaczkowski; reviewed by Benjamin Lerer, Ekaterina Dimitrova, Andres de la Pena for CASSANDRA-18584

Co-authored-by: Benjamin Lerer <b.lerer@gmail.com>
Co-authored by: Ekaterina Dimitrova<ekaterina.dimitrova@datastax.com>
2024-08-29 20:52:55 -04:00
Stefan Miklosovic fe30e227bd
Merge branch 'cassandra-5.0' into trunk 2024-07-09 17:24:49 +02:00
Stefan Miklosovic 63b4e1c41c
Merge branch 'cassandra-4.1' into cassandra-5.0 2024-07-09 17:09:30 +02:00
Stefan Miklosovic a878adfc89
Do not create a role if ALTER ROLE IF EXISTS operates on non-existing role
patch by Stefan Miklosovic; reviewed by Brandon Williams for CASSANDRA-19749
2024-07-09 17:03:25 +02:00
Stefan Miklosovic d336dda112
CEP-24 Password validation / generation
patch by Stefan Miklosovic; reviewed by Dinesh Joshi, Francisco Guerrero for CASSANDRA-17457
2024-07-08 23:32:09 +02:00
xvade 53fabf1f02 Add support for the BETWEEN operator in WHERE clauses
patch by Simon Chess; reviewed by Benjamin Lerer and Ekaterina Dimitrova for CASSANDRA-19604
2024-06-06 17:55:08 +02:00
Brad Schoening 67bbbb0125
Fix hygiene issues for cqlshlib
patch by Brad Schoening; reviewed by Stefan Miklosovic and Berenguer Blasi for CASSANDRA-19450
2024-05-24 10:56:14 +02:00
Stefan Miklosovic 7579454057
Merge branch 'cassandra-5.0' into trunk 2024-05-14 11:33:40 +02:00
Stefan Miklosovic 59a5c6477d
Merge branch 'cassandra-4.1' into cassandra-5.0 2024-05-14 11:31:40 +02:00
Mick Semb Wever 2108f9dcaf
Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Standalone Jenkinsfile
2024-04-04 11:58:17 +02:00
Mick Semb Wever f7c11bdcd4
Standalone Jenkinsfile
– ensure test file paths, and their suite names are unique (the latter was broken for cqlshlib and python dtests)
 – removal of properties and system-out in test xml happens in CassandraXMLJUnitResultFormatter
 – new jenkins agent labels and introduce agents sizes
 - ci_summary.html generation script, ref work submitted in apache/cassandra-builds#99
 – fix for stress-test and fqltool-test running on small
 - ant generate-test-report is limited to only running on individual test types (ci_parser.py provides ci_summary.html for the overview now)
 - each cell has a single retry, and the retry will happen on a different agent
 - on ci-cassandra the summary stage happens on the builtin, bc copyArtifacts on 15k+ files takes many hours otherwise
 - test-burn only needs two splits
 - dependency-check is disabled from the lint target until CASSANDRA-19213
 - add $DEBUG env var to in-tree scripts, turns on bash debug
 - fix FBUtilities' handling of gcp cos_containerd (kernel version comes with a trailing '+' character)

 patch by Aleks Volochnev, Mick Semb Wever; reviewed by Aleksandr Volochnev, Josh McKenzie, Maxim Muzafarov, Stefan Miklosovic for CASSANDRA-18594

Co-authored-by: Aleksandr Volochnev <a.volochnev@gmail.com>
Co-authored-by: Mick Semb Wever <mck@apache.org>
Co-authored-by: Josh McKenzie <jmckenzie@apache.org>
Co-authored-by: Artem Chekunov <artem.v.chekunov@gmail.com>
2024-04-04 11:56:36 +02:00
Maxim Muzafarov 2e7def7626 Expose all dropwizard metrics in virtual tables
patch by Maxim Muzafarov; reviewed by Chris Lohfink, Stefan Miklosovic for CASSANDRA-14572
2024-04-03 20:04:03 +02:00
Caleb Rackliffe 8f7c23be85 Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Deprecate Python 3.7 and earlier, but allow cqlsh to run with Python 3.6-3.11
2024-03-19 23:48:48 -05:00
Caleb Rackliffe 8a33f32350 Deprecate Python 3.7 and earlier, but allow cqlsh to run with Python 3.6-3.11
patch by Caleb Rackliffe; reviewed by Brandon Williams and Stefan Miklosovic for CASSANDRA-19467
2024-03-19 23:41:47 -05:00
Shailaja Koppu b35ad427c5
Add LIST SUPERUSERS CQL statement
patch by Shailaja Koppu; reviewed by Stefan Miklosovic and Benjamin Lerer for CASSANDRA-19417
2024-03-13 12:52:46 +01:00
arkn98 bfb5c59342 Fix datetime_from_utc_to_local in cqlshlib
Patch by Arun Ganesh; reviewed by brads and brandonwilliams for
CASSANDRA-18879
2024-03-06 09:44:08 -06:00
Brad Schoening 94bfbaf348 bumped CQLSH version 6.2 > 6.3 2024-03-01 08:36:40 -05:00
Brad Schoening 1163dd9a08
Refactor cqlshmain global constants
patch by Brad Schoening; reviewed by Stefan Miklosovic and Brandon Williams for CASSANDRA-19201
2024-02-20 13:24:29 +01:00
Stefan Miklosovic 3c76ae2a45
Merge branch 'cassandra-5.0' into trunk 2024-02-16 13:36:38 +01:00
Lorina Poland 2aa2b59d37
Minor adds and fixes in the documentation
patch by Lorina Poland; reviewed by Michael Semb Wever for CASSANDRA-19249, CASSANDRA-18990, CASSANDRA-15719

Co-authored-by: Annette Dennis <annette.dennis@datastax.com>
Co-authored-by: Mohsin Medmood <mohsin85mehmood@gmail.com>
Co-authored-by: Josh Wong <joshuarwong@outlook.com>
2024-02-16 12:29:37 +01:00
Andrés de la Peña 1e44a0850b Merge branch 'cassandra-5.0' into trunk 2024-01-22 14:37:38 +00:00
Szymon Miężał c76b32492f Add support of vector type to cqlsh COPY command
This patch adds a converter that allows parsing vector literals
passed via csv files to the COPY command.

patch by Szymon Miezal; reviewed by Andrés de la Peña, Stefan Miklosovic and Maxwell Guo for CASSANDRA-19118
2024-01-22 14:35:32 +00:00
Andrés de la Peña 03f0d37cb0 Merge branch 'cassandra-5.0' into trunk 2024-01-19 17:33:55 +00:00
Andrés de la Peña 8fd44ca8fc Upgrade Python driver to 3.29.0
patch by Andrés de la Peña; reviewed by Berenguer Blasi for CASSANDRA-19245
2024-01-19 17:14:57 +00:00