Commit Graph

309 Commits

Author SHA1 Message Date
pranavchaurasia18 d5cd8a40b7
Merge 9cd20fe677 into 10557d7ffe 2026-08-01 14:09:24 +03:00
jkonisa b11633be4f CASSANDRA-20943 Introducing comments and security labels for schema elements 2025-11-19 11:32:50 -08:00
Stefan Miklosovic 035a220d55
Implementation of CEP-55 - Generation of role names
patch by Stefan Miklosovic; reviewed by Bernardo Botella for CASSANDRA-20897
2025-10-23 13:53:56 +02:00
Shalni Sundram accdaaebdd Add cqlsh autocompletion for the identity mapping feature
Patch by Shalni Sundram; reviewed by Francisco Guerrero, Bernardo Botella for CASSANDRA-20021
2025-10-09 16:50:32 -07: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 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
pranavchaurasia18 9cd20fe677 Cassandra-18837 Tab complete datacenter values in cqlsh 2025-04-24 15:04:02 +05:30
pranavchaurasia18 4f0a996934 Cassandra-18837 Tab complete datacenter values in cqlsh 2025-04-24 14:42:37 +05:30
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
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
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
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 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
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
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
Sam Tunnicliffe ae0842372f Implementation of Transactional Cluster Metadata as described in CEP-21
An overview of the core components can be found in the included
TransactionalClusterMetadata.md

patch by Alex Petrov, Marcus Eriksson and Sam Tunnicliffe; reviewed by
Alex Petrov, Marcus Eriksson and Sam Tunnicliffe for CASSANDRA-18330

Co-authored-by: Marcus Eriksson <marcuse@apache.org>
Co-authored-by: Alex Petrov <oleksandr.petrov@gmail.com>
Co-authored-by: Sam Tunnicliffe <samt@apache.org>
2023-11-24 10:26:08 +00:00
Stefan Miklosovic 6a3bcc83d2
Merge branch 'cassandra-5.0' into trunk 2023-11-14 21:45:34 +01:00
Ethan Brown fb806d51e3
Add UCS sstable_growth and min_sstable_size options
patch by Ethan Brown; reviewed by Branimir Lambov, Stefan Miklosovic for CASSANDRA-18945
2023-11-14 21:41:07 +01:00
Andrés de la Peña e8c5fe31a2 Merge branch 'cassandra-5.0' into trunk 2023-10-25 12:15:26 +01:00
Andrés de la Peña 5eba52feb8 Add cqlsh autocompletion for the vector data type
patch by Andrés de la Peña; reviewed by Brandon Williams for CASSANDRA-18946
2023-10-25 11:54:01 +01:00
Stefan Miklosovic fdbb975188
Merge branch 'cassandra-5.0' into trunk 2023-09-29 15:20:48 +02:00
Stefan Miklosovic b9f614f7e5
Remove deprecated properties in CompressionParams
This patch removes deprecated chunk_length_kb and sstable_compression in favor of
chunk_length_in_kb and class parameters.

The only deprecated compression parameter left, crc_check_chance (which is configurable outside
of compression parameters as a standalone table parameter) is meant to be treated separately.

patch by Stefan Miklosovic; reviewed by Maxim Muzafarov and Brandon Williams for CASSANDRA-18742
2023-09-29 15:19:12 +02:00
vgali7 d24baecac9
Simplify pylib/cqlshlib/helptopics.py using associative array
patch by Vineet Gali; reviewed by Stefan Miklosovic and Brandon Williams for CASSANDRA-18726
2023-08-07 12:19:01 +02:00
Shailaja Koppu 933137fb14 CIDR filtering authorizer
Patch by Shailaja Koppu, Yifan Cai; Reviewed by Dinesh Joshi, Yifan Cai for CASSANDRA-18592

Co-Authored-By: Yifan Cai <ycai@apache.org>
2023-07-28 20:10:02 -07:00
Andrés de la Peña 2e2a49fcdc CEP-20: Dynamic Data Masking
Allows to attach the native masking functions and UDFs to the definitions of
table columns in the schema, as defined by CEP-20.

The functions masking a column can be specified on CREATE TABLE queries, right
at the end of the column definition. The mask of a column can also be changed
or dropped with an ALTER TABLE query. Once a column is masked, SELECT queries
will always return the masked value of the column. That masking is done on the
coordinator, at the end of the query execution. Thus, masking won't affect any
filters or ordering, which would be based on the clear values of the masked
columns. Column masks are stored on the table system_schema.column_masks.

A new UNMASK permission allows to see the clear data of columns with an
attached mask. Also, a new SELECT_MASKED permission allows to run SELECT
queries restricting the clear values of masked columns. Superusers have both
permissions by default, whereas regular users don't have them.

Dynamic data masking can be enabled/disabled with the config property
dynamic_data_masking_enabled in cassandra.yaml. It is disabled by default.

This is the combination of multiple tickets:

 * Add masking functions to column metadata (CASSANDRA-18068)
 * Add UNMASK permission (CASSANDRA-18069)
 * Add SELECT_MASKED permission (CASSANDRA-18070)
 * Add support for using UDFs as masking functions (CASSANDRA-18071)
 * Add feature flag for dynamic data masking (CASSANDRA-18316)

patch by Andrés de la Peña; reviewed by Benjamin Lerer and Berenguer Blasi for CASSANDRA-17940
2023-03-24 13:57:18 +00:00
Stefan Miklosovic 58a3b12508
Remove DateTieredCompactionStrategy
patch by Stefan Miklosovic; reviewed by Jacek Lewandowski for CASSANDRA-18043
2023-03-16 09:38:10 +01:00
maxwellguo ee8b66da8c Make incremental backup configurable per table
patch by Maxwell Guo; reviewed by Stefan Miklosovic and Benjamin Lerer for CASSANDRA-15402
2022-11-19 10:57:54 +01:00
Brad Schoening addc5748a7 Add missing cqlsh completion and round out cqlsh completion test coverage
IF (NOT) EXISTS is now also offered in cqlsh completion for CREATE TYPE, DROP TYPE, CREATE ROLE and DROP ROLE

patch by Brad Schoening; reviewed by Stefan Miklosovic and Brandon Williams for CASSANDRA-16640
2022-11-07 18:00:53 +01:00
Stefan Miklosovic c71f04bd5b Add memtable option among possible tab completions for a table
patch by Stefan Miklosovic; reviewed by Brandon Williams for CASSANDRA-17982
2022-10-21 22:34:33 +02:00
Stefan Miklosovic c4c4ad5cbc Merge branch 'cassandra-4.1' into trunk 2022-10-04 20:38:01 +02:00
Stefan Miklosovic f0fd551c7c Merge branch 'cassandra-4.0' into cassandra-4.1 2022-10-03 16:27:45 +02:00
Stefan Miklosovic e9b411e3e0 Merge branch 'cassandra-3.11' into cassandra-4.0 2022-10-03 12:06:37 +02:00
Stefan Miklosovic ad6bca4ab5 Merge branch 'cassandra-3.0' into cassandra-3.11 2022-10-03 10:43:08 +02:00
Brad Schoening 83c1f7713b Fix auto-completing "WITH" when creating a materialized view (CASSANDRA-17879)
patch by Brad Schoening; reviewed by Stefan Miklosovic and Brandon Williams for CASSANDRA-17879
2022-10-03 10:35:38 +02:00
Stefan Miklosovic b6d8e2ce6b Make disabling auto snapshot on selected tables possible
patch by Tommy Stendahl; reviewed by Stefan Miklosovic and Aleksey Yeschenko for CASSANDRA-10383

Co-authored-by: Tommy Stendahl <tommy.stendahl@ericsson.com>
Co-authored-by: Stefan Miklosovic <smiklosovic@apache.org>
2022-09-08 10:25:34 +02:00
Yifan Cai 26dd119679 Add new CQL function maxWritetime
patch by Yifan Cai; reviewed by Andres de la Peña, Francisco Guerrero for CASSANDRA-17425
2022-05-18 11:56:51 -07:00