Commit Graph

250 Commits

Author SHA1 Message Date
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
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
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
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
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 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
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
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
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
Caleb Rackliffe 394d4b1168 Add support for index implementation selection via USING for CREATE INDEX
patch by Caleb Rackliffe; reviewed by Maxwell Guo and Andres de la Peña for CASSANDRA-18615
2023-07-26 13:35:07 -05:00
David Capwell ae537abc64 Added support for type VECTOR<type, dimension>
patch by David Capwell; reviewed by Andres de la Peña, Maxwell Guo, Mike Adamson for CASSANDRA-18504
2023-06-22 08:43:53 -07:00
Andrés de la Peña d3c55ed8f8 Use snake case for the names of CQL native functions
patch by Andrés de la Peña; reviewed by Berenguer Blasi for CASSANDRA-18037
2023-04-04 15:01:34 +01: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
Andrés de la Peña 3eb605b4db Remove deprecated CQL functions dateOf and unixTimestampOf
patch by Andrés de la Peña; reviewed by Berenguer Blasi and Stefan Miklosovic for CASSANDRA-18328
2023-03-16 15:43:45 +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
Benjamin Lerer 35578a4a9f Merge branch cassandra-4.1 into trunk 2022-09-28 15:57:25 +02:00
Benjamin Lerer 00ad7f2ed9 Merge branch cassandra-4.0 into cassandra-4.1 2022-09-28 15:55:23 +02:00
Benjamin Lerer 46d5ef4148 Merge branch cassandra-3.11 into cassandra-4.0 2022-09-28 15:01:46 +02:00
Benjamin Lerer 0894fd97a2 Adds missing changes to CQL.textile
Patch by Benjamin Lerer; review by Brandon Williams for CASSANDRA-17709
2022-09-28 14:42:51 +02:00
Andrés de la Peña c8c8635a4c Add ability to read the TTLs and write times of the elements of a collection and/or UDT
patch by Andrés de la Peña; reviewed by Yifan Cai and Benjamin Lerer for CASSANDRA-8877
2022-08-12 13:00:04 +01:00
Bereng 081d42472d Merge branch 'cassandra-4.1' into trunk 2022-06-21 11:15:41 +02:00
Bereng 1d39a388ba Revert "Update the CQL version for the 4.1 release"
This reverts commit a508ac06e9.
2022-06-21 11:06:10 +02:00
Bereng a508ac06e9 Update the CQL version for the 4.1 release
patch by Berenguer Blasi; reviewed by Benjamin Lerer for CASSANDRA-17570
2022-06-21 08:13:21 +02:00
Benjamin Lerer 1ad8bf67a9 Allow to aggregate by time intervals
Patch by Benjamin Lerer; review by Andres De la Pena and Yifan Cai for CASSANDRA-11871

The patch allow to use pure monotonic functions on the last attribute of the GROUP BY clause and introduce some floor functions that can be use to group by time range.

A function is pure if:
    1. The function return values are identical for identical arguments
    2. The function application has no side effects

A function is monotonic if it is either entirely nonincreasing or nondecreasing.
2022-04-22 10:59:42 +02:00
Andrés de la Peña 0d4cc2ef0d Add support for type casting in WHERE clause components and in the values of INSERT/UPDATE statements
patch by Andrés de la Peña; reviewed by Benjamin Lerer for CASSANDRA-14337
2021-10-12 11:55:31 +01:00
Mick Semb Wever 7337fc0ab4
Merge branch 'cassandra-3.11' into trunk 2021-04-19 17:39:10 +02:00
Mick Semb Wever 2ec96ae669
Merge branch 'cassandra-3.0' into cassandra-3.11 2021-04-19 17:34:05 +02:00
Mick Semb Wever 50a97a0d76
Merge branch 'cassandra-2.2' into cassandra-3.0 2021-04-19 17:29:00 +02:00
Mick Semb Wever 53b0661cbb
Fix rat checking for files with missing license headers
patch by Mick Semb Wever; reviewed by Brandon Williams, Ekaterina Dimitrova for CASSANDRA-16558
2021-04-19 17:18:26 +02:00
Ekaterina Dimitrova 0a49d25078 Update compact storage related docs
Authored by Ekaterina Dimitrova; reviewed by Michael Semb Wever and Berenguer Blasi for CASSANDRA-16476
2021-03-22 11:55:34 -04:00
Pedro Gordo 7c5904753f
Remove obsolete OldNetworkTopologyStrategy
Removed the strategy from cqlsh autocomplete, including an array for replication_factor autocomplete that was only used for SimpleStrategy and OldNetworkTopologyStrategy.

 patch by Pedro Gordo; reviewed by Anthony Grasso, Mick Semb Wever for CASSANDRA-13990
2019-11-29 10:50:10 +01:00
Vinay Chella 5b660c845b Merge branch 'cassandra-3.11' into trunk 2019-03-05 15:43:27 -08:00
Vinay Chella 555c6d26e1 Merge branch 'cassandra-3.0' into cassandra-3.11 2019-03-05 15:38:52 -08:00
Vinay Chella 2cd4500990 Merge branch 'cassandra-2.2' into cassandra-3.0 2019-03-05 15:36:32 -08:00
C. Scott Andreas 53db417b3c Fixing invalid CQL in security documentation
Patch by C. Scott Andreas; reviewed by Vinay Chella for CASSANDRA-15020
2019-03-05 15:30:24 -08:00
Aleksey Yeshchenko 76c1b55570 Merge branch 'cassandra-3.11' into trunk 2018-08-16 15:47:09 +01:00
Aleksey Yeshchenko 65a46820bb Merge branch 'cassandra-3.0' into cassandra-3.11 2018-08-16 15:44:12 +01:00
Aleksey Yeshchenko 236c47e65c Fix static column order for SELECT * wildcard queries
patch by Aleksey Yeschenko; reviewed by Benedict Elliott Smith for
CASSANDRA-14638
2018-08-16 15:43:51 +01:00
Andrés de la Peña e42d9e7d69 Add missed CQL keywords to documentation
patch by Andres de la Peña; reviewed by Benjamin Lerer for CASSANDRA-14359
2018-04-18 12:01:06 +01:00
Aleksey Yeshchenko 2fcd29b830 Eliminate background repair and probablistic read_repair_chance table options
patch by Aleksey Yeschenko; reviewed by Blake Eggleston for
CASSANDRA-13910
2018-04-18 11:41:17 +01:00
Andrés de la Peña f3d1b45f13 Merge branch 'cassandra-3.11' into trunk 2018-04-18 11:21:57 +01:00
Andrés de la Peña a31a848d6f Merge branch 'cassandra-3.0' into cassandra-3.11 2018-04-18 11:19:06 +01:00
Andrés de la Peña 9b5ba6ca51 Add missed CQL keywords to documentation
patch by Andres de la Peña; reviewed by Benjamin Lerer for CASSANDRA-14359
2018-04-18 11:10:43 +01:00
Paulo Motta e624c66382 Merge branch 'cassandra-3.0' into cassandra-3.11 2017-09-05 01:05:06 -05:00
Zhao Yang 1b36740ebe Fix outstanding MV timestamp issues and add documentation about unsupported cases (see CASSANDRA-11500 for a summary of fixes)
This patch introduces the following changes to fix MV timestamp issues:
 - Add strict liveness for view with non-key base column in pk
 - Deprecated shadowable tombstone and use expired livenessInfo instead
 - Include partition deletion for existing base row
 - Disallow dropping base column with MV

Patch by Zhao Yang and Paulo Motta; reviewed by Paulo Motta for CASSANDRA-11500
2017-09-05 01:03:24 -05:00
Mick Semb Wever 10d5b7b2f7 Merge branch 'cassandra-3.11' into trunk 2017-09-05 08:38:48 +10:00
Sylvain Lebresne 4ebab66163 Allow selecting Map values and Set elements
patch and review by Robert Stupp, Sylvain Lebresne and Benjamin Lerer for CASSANDRA-7396
2017-06-01 16:57:13 +02:00
Benjamin Lerer d388289533 Merge branch cassandra-3.0 into cassandra-3.11 2017-01-18 16:07:14 +01:00
Carl Yeksigian 5f66d48b38 Remove alter type support
patch by Carl Yeksigian; reviewed by Benjamin Lerer for CASSANDRA-12443
2017-01-18 15:59:10 +01:00
Robert Stupp 0e9e0a4a83 Restrict script UDFs to Nashorn 2017-01-06 15:53:46 +01:00