Commit Graph

50 Commits

Author SHA1 Message Date
Stefan Miklosovic da47849b50 Remove Windows-specific classes and related code
patch by Stefan Miklosovic; reviewed by Joshua McKenzie, Bowen Song, Berenguer Blasi for CASSANDRA-16956
2022-02-05 15:41:33 +01:00
Francisco Guerrero 185893256f Allow GRANT/REVOKE multiple permissions in a single statement
patch by Francisco Guerrero; reviewed by Benjamin Lerer and Yifan Cai for CASSANDRA-17030

This commit allows GRANT/REVOKE statement to support multiple permissions with a single
statement. For example,

```
GRANT MODIFY, SELECT ON KEYSPACE field TO manager;
GRANT ALTER, DROP ON ROLE role1 TO role2;
```
2021-10-22 14:34:04 +02:00
Benjamin Lerer df6ecaae1c Allow to grant permission for all tables in a keyspace
Patch by Benjamin Lerer; Review by Andres de la Peña and Ekaterina Dimitrova for CASSANDRA-17027

In some cases it is useful to prevent users to alter or drop a keyspace
while allowing them to create new tables.
This patch add support for a new DataResource below KEYSPACE but above
TABLE. The syntax to grant permission at this level in ALL TABLES IN
KEYSPACE.
2021-10-20 14:09:02 +02:00
Adam Holmberg 0301fc6cea cqlsh: fix DESC TYPE with non-ascii character in the identifier
Patch by Adam Holmberg; reviewed by brandonwilliams for CASSANDRA-16400
2021-05-17 14:54:58 -05:00
Brandon Williams a3db11831a Revert "Fix cqlsh DESC TYPE with non-ascii character in the identifier"
This reverts commit 327d7c1803.
2021-05-05 07:21:53 -05:00
Adam Holmberg 327d7c1803 Fix cqlsh DESC TYPE with non-ascii character in the identifier
Patch by Adam Holmberg; reviewed by brandonwilliams for CASSANDRA-16400
2021-05-04 11:52:23 -05:00
Brandon Williams 288bb9d902 Fix cqlsh encoding error with unicode in multi-line statement
Patch by Adam Holmberg; reviewed by brandonwilliams for CASSANDRA-16539
2021-05-04 08:45:26 -05:00
Adam Holmberg 132c01e570 generate keyspace names internally instead of abusing tempfile
Patch by Adam Holmberg; reviewed by brandonwilliams for CASSANDRA-16639
2021-04-28 15:19:47 -05:00
Marcus Eriksson 1d24c7cf49 Merge branch 'cassandra-3.11' into trunk 2021-04-13 10:52:21 +02:00
Brian Houser 7152d40bb3 Add autocomplete, errors for provide_overlapping_tombstones
Patch by Brian Houser; reviewed by marcuse for CASSANDRA-16350
2021-04-13 10:49:31 +02:00
jacek-lewandowski 91cb934e25
In cqlshlib tests, don't overwrite the environment and improve hostname matching
patch by Jacek Lewandowski; reviewed by Mick Semb Wever for CASSANDRA-16409
2021-01-28 12:56:39 +01:00
Eduard Tudenhoefner 39a0703b65 Mark system_views/system_virtual_schema as non-alterable keyspaces in cqlsh
patch by Eduard Tudenhoefner; reviewed by Benjamin Lerer for
CASSANDRA-15711
2020-04-09 16:53:22 +02:00
Patrick Bannister bf9a1d487b Make cqlsh and cqlshlib Python 2 & 3 compatible
Patch by Patrick Bannister; reviewed by Dinesh Joshi, Andy Tolbert and David Capwell for CASSANDRA-10190
2020-02-14 10:33:57 -08:00
Ariel Weisberg 4ae229f5cd Upgrade to 4.0 fails with NullPointerException
Patch by Ariel Weisberg; Reviewed by Dinesh Joshi for CASSANDRA-14820
2018-10-16 18:47:40 -04:00
Ariel Weisberg f7431b4328 Transient Replication and Cheap Quorums
Patch by Blake Eggleston, Benedict Elliott Smith, Marcus Eriksson, Alex Petrov, Ariel Weisberg; Reviewed by Blake Eggleston, Marcus Eriksson, Benedict Elliott Smith, Alex Petrov, Ariel Weisberg for CASSANDRA-14404

Co-authored-by: Blake Eggleston <bdeggleston@gmail.com>
Co-authored-by: Benedict Elliott Smith <benedict@apache.org>
Co-authored-by: Marcus Eriksson <marcuse@apache.org>
Co-authored-by: Alex Petrov <oleksandr.petrov@gmail.com>
2018-08-31 21:34:22 -04: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
Sylvain Lebresne 4881d9c308 Thrift removal
patch by Sylvain Lebresne; reviewed by Aleksey Yeschenko for CASSANDRA-11115
2016-12-13 10:27:12 +01:00
Tyler Hobbs cc582855ea Ninja: update cqlsh completion tests for CASSANDRA-8844
In CASSANDRA-8844, a new 'cdc' table option was added.  The python
driver added this as a recognized option, which caused it to show up in
cqlsh autocomplete suggestions.  However, the cqlsh tests were not
updated to match this.

This should fix the following failing tests:
 - test_complete_in_create_table
 - test_complete_in_create_columnfamily
2016-07-19 14:40:55 -05:00
Yusuke Takata 74647a8cc5 cqlsh does not automatically downgrade CQL version
patch by Yusuke Takata and Stefania Alborghetti;
reviewed by Stefania Alborghetti and Tyler Hobbs for CASSANDRA-12150
2016-07-13 10:00:21 +08:00
Marcus Eriksson 8ef1e2ce25 Merge branch 'cassandra-3.0' into trunk 2016-06-07 07:45:10 +02:00
Jeff Jirsa 6c867f0030 Add TimeWindowCompactionStrategy
Patch by Jeff Jirsa; reviewed by marcuse for CASSANDRA-9666
2016-06-07 07:38:22 +02:00
Tyler Hobbs 677230df69 Support for non-frozen UDTS
Patch by Tyler Hobbs; reviewed by Benjamin Lerer for CASSANDRA-7423
2016-04-08 15:26:12 -05:00
Tyler Hobbs 604c9df883 Merge branch 'cassandra-2.2' into cassandra-3.0
Conflicts:
	CHANGES.txt
	pylib/cqlshlib/test/test_cqlsh_completion.py
2016-02-11 15:31:02 -06:00
Michael Edge af6bd1b3f0 cqlsh: Fix inconsistencies in auto-completion
Patch by Michael Edge; reviewed by Tyler Hobbs for CASSANDRA-10733
2016-02-11 15:29:31 -06:00
Aleksey Yeschenko 2e095833d9 Merge branch 'cassandra-2.2' into cassandra-3.0 2015-12-18 22:48:12 +00:00
Paulo Motta 9dd2b5ea0f Fix cqlshlib tests on Windows
patch by Paulo Motta; reviewed by Jim Witschey for CASSANDRA-10541
2015-12-18 22:46:31 +00:00
Stefania 803a3d9011 10753-3.0 patch 2015-12-01 13:56:03 -05:00
Stefania 1b81ad19d3 Fix completion problems in cqlsh
Patch by stefania; reviewed by pmotta for CASSANDRA-10753
2015-12-01 13:52:09 -05:00
blerer 94a7d0682e Merge branch cassandra-2.1 into cassandra-2.2 2015-10-16 11:53:52 +02:00
Stefania Alborghetti 806378c8c2 Fix cqlsh rules
patch by Stefania Alborghetti; reviewed by Benjamin Lerer for
CASSANDRA-10415
2015-10-16 11:47:07 +02:00
Jim Witschey f3cd3ed7bb Fix cqlshlib tests
patch by Jim Witschey; reviewed by Stefania Alborghetti for
CASSANDRA-10289
2015-10-01 19:24:48 -07:00
Tyler Hobbs 239927d324 Merge branch 'cassandra-2.1' into cassandra-2.2 2015-06-26 13:43:15 -05:00
Stefania Alborghetti 33d71b825f (cqlsh) Add support for native protocol 4
patch by Stefania Alborghetti; reviewed by Aleksey Yeschenko for
CASSANDRA-9399
2015-05-22 00:47:27 +03:00
Tyler Hobbs e6bc6385ae Merge branch 'cassandra-2.1' into trunk 2015-04-22 10:50:55 -05:00
Tyler Hobbs 93b36d4b82 Fix write meter for cqlsh COPY TO
Patch by Tyler Hobbs; reviewed by Stefania Alborghetti for
CASSANDRA-9217
2015-04-22 10:41:41 -05:00
Jim Witschey 23e77f10a4 Update cqlsh tests for latest trunk
Patch by Jim Witschey; reviewed by Tyler Hobbs for CASSANDRA-9173
2015-04-14 11:39:33 -05:00
Jim Witschey 9e7774ac73 cqlsh: add tests for CREATE/DROP/DELETE tab completion
Patch by Jim Witschey; reviewed by Tyler Hobbs for CASSANDRA-9155
2015-04-09 18:25:11 -05:00
Jim Witschey 879691dd35 cqlsh: Add tests for INSERT, UPDATE tab completion
Patch by Jim Witschey; reviewed by Tyler Hobbs for CASSANDRA-9125
2015-04-07 17:23:11 -05:00
Mikhail Stepura f1f5f5fd3a (cqlsh): Support for query paging
patch by Mikhail Stepura; reviewed by Aleksey Yeschenko for CASSANDRA-7514
2014-09-07 20:09:14 -07:00
Mikhail Stepura a37a036321 Ninja: fixed cqlsh test (after 7d7d529) 2014-08-19 14:57:20 -07:00
Tyler Hobbs 88e05719b6 Update cqlsh python driver to 2.1
Patch by Mikhail Stepura and Tyler Hobbs; reviewed by Aleksey Yeschenko
for CASSANDRA-7509
2014-07-16 11:56:29 -05:00
Mikhail Stepura 39c295d803 Properly decode UDTs with nulls in cqlsh
patch by Mikhail Stepura; reviewed by Aleksey Yeschenko for CASSANDRA-7289
2014-05-26 09:41:55 -07:00
Mikhail Stepura b2dd6a7f6c Ninja: Adjust cqlsh unit-tests for 2.1 2014-05-08 16:20:39 -07:00
Mikhail Stepura caf609cf6f Switch cqlsh from cassandra-dbapi2 to python-driver
patch by Mikhail Stepura for CASSANDRA-6307; reviewed by Aleksey Yeschenko and Tyler Hobbs
2014-03-12 15:02:14 -07:00
Aleksey Yeschenko f89784339c Merge branch 'cassandra-1.2' into trunk
Conflicts:
	bin/cqlsh
	pylib/cqlshlib/test/test_cqlsh_output.py
	pylib/cqlshlib/test/test_keyspace_init2.cql
2013-06-27 01:01:18 +03:00
Aleksey Yeschenko 4f7e2b8018 Merge branch 'cassandra-1.2' into trunk
Conflicts:
	bin/cqlsh
	pylib/cqlshlib/test/test_cqlsh_completion.py
	pylib/cqlshlib/test/test_cqlsh_output.py
2013-05-29 21:12:08 +03:00
Aleksey Yeschenko 26c65e640c cqlsh: add vertical output option (see EXPAND)
patch by Michał Michalski; reviewed by Aleksey Yeschenko for
 CASSANDRA-5597
2013-05-29 21:01:58 +03:00
Aleksey Yeschenko 7f6ac19efb cqlsh: drop CQL2/CQL3-beta support
patch by Aleksey Yeschenko; reviewed by Brandon Williams for
CASSANDRA-5585
2013-05-22 00:47:44 +03:00
Aleksey Yeschenko 207cdf3013 cqlsh: Remove ASSUME command
patch by Aleksey Yeschenko; reviewed by Brandon Williams for
CASSANDRA-5331
2013-03-22 00:20:13 +03:00
Aleksey Yeschenko 14d62ab115 cqlsh: add unit tests;
patch by Paul Cannon with minor changes by Aleksey Yeschenko, reviewed
by Aleksey Yeschenko for CASSANDRA-3920
2012-12-28 02:30:35 +03:00