Bereng
30ad754d7e
Pre hashed passwords in CQL
...
patch by Robert Stupp and Berenguer Blasi; reviewed by Andres de la Peña for CASSANDRA-17334
Co-authored-by: Robert Stupp <snazy@snazy.de>
Co-authored-by: Berenguer Blasi <berenguerblasi@gmail.com>
2022-03-23 07:20:14 +01:00
Sathyanarayanan Saravanamuthu
952263dcea
removing unused Python packages in pylib
...
patch by Sathyanarayanan Saravanamuthu; reviewed by Brandon Williams and Stefan Miklosovic for CASSANDRA-17449
2022-03-21 19:05:25 +01:00
Bereng
2f84f492a2
Revert "Pre hashed passwords in CQL"
...
This reverts commit 6946b304e9 .
2022-03-21 13:19:31 +01:00
Bereng
6946b304e9
Pre hashed passwords in CQL
...
patch by Berenguer Blasi; reviewed by Andres de la Peña for CASSANDRA-17334
2022-03-21 11:18:05 +01:00
Brad Schoening
7275443eca
change six functions in cqlshlib to native Python 3 ones
...
patch by Brad Schoening; reviewed by Stefan Miklosovic and Brandon Williams for CASSANDRA-17417
2022-03-16 18:17:36 +01:00
Stefan Miklosovic
6f2075acee
Merge branch 'cassandra-4.0' into trunk
2022-03-15 10:59:20 +01:00
Brandon Williams
f3123a6538
remove futures module requirement from pylib
...
patch by Brandon Williams; reviewed by Stefan Miklosovic for CASSANDRA-17393
2022-03-15 10:16:27 +01:00
Brad Schoening
27ab63f005
remove unused imports in cqlsh.py and cqlshlib
...
patch by Brad Schoening; reviewed by Stefan Miklosovic and Brandon Williams for CASSANDRA-17413
2022-03-08 09:34:23 +01:00
Brad Schoening
c408931aa2
fix warnings in pylib tests
...
patch by Brad Schoening; reviewed by Stefan Miklosovic and Brandon Williams for CASSANDRA-17397
2022-03-02 21:07:40 +01:00
Stefan Miklosovic
ab7ee50013
ninja for CASSANDRA-17293 - moving cqlshlib.xml back
2022-02-21 17:41:42 +01:00
Brad Schoening
db35833182
update Python test framework from nose to pytest
...
patch by Brad Schoening; reviewed by Brandon Williams, Berenguer Blasi and Stefan Miklosovic for CASSANDRA-17293
2022-02-20 17:32:11 +01:00
Aleksei Zotov
c3d51a825c
Merge branch 'cassandra-3.0' into cassandra-3.11
2022-02-19 13:20:04 +04:00
Aleksei Zotov
d17b16c9b1
Fix flaky test - test_cqlsh_completion.TestCqlshCompletion
...
Patch by Aleksei Zotov; reviewed by Brandon Williams for CASSANDRA-17338
2022-02-19 13:18:38 +04:00
Aleksei Zotov
e77738f0c3
Merge branch 'cassandra-3.0' into cassandra-3.11
2022-02-17 22:59:27 +04:00
Aleksei Zotov
63788661cb
Fixed TestCqlshOutput failing tests
...
Patch by Aleksei Zotov; reviewed by Brandon Williams for CASSANDRA-17386
2022-02-17 22:57:44 +04:00
Brad Schoening
32bdf14ec9
Remove obsolete enum34 package
...
Patch by Brad Schoening; reviewed by brandonwilliams and paulo for
CASSANDRA-17325
2022-02-09 08:03:06 -06:00
Ekaterina Dimitrova
a3258d66bc
Transfer parameters to the newly introduced configuration framework (1)
...
patch by Ekaterina Dimitrova; reviewed by Caleb Rackliffe, David Capwell, Michael Semb Wever and Benjamin Lerer for CASSANDRA-15234
2022-02-05 22:27:37 -05:00
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
Brad Schoening
1eb7779464
remove python 2 code which is now EOL and unsupported
...
Patch by Brad Schoening; reviewed by brandonwilliams and bereng for
CASSANDRA-17242
2022-01-26 11:00:25 -06:00
Brandon Williams
fac84e0a80
Merge branch 'cassandra-4.0' into trunk
2022-01-20 10:02:42 -06:00
Brad Schoening
8c8d9b8e57
Remove obsolete 'cql' dependency
...
Patch by Brad Schoening; reviewed by brandonwilliams and bereng for
CASSANDRA-17247
2022-01-20 10:02:07 -06:00
Brandon Williams
ac1d9bca74
Merge branch 'cassandra-4.0' into trunk
2022-01-11 08:26:08 -06:00
Brandon Williams
aecac82027
Merge branch 'cassandra-3.11' into cassandra-4.0
2022-01-11 08:25:51 -06:00
Brandon Williams
b17d701c58
Merge branch 'cassandra-3.0' into cassandra-3.11
2022-01-11 08:23:01 -06:00
Johannes Weißl
75e0e8cf41
Fix cqlsh COPY abort on window resize
...
Patch by Johannes Weißl; reviewed by brandonwilliams and bereng for
CASSANDRA-15230
2022-01-11 08:22:15 -06: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
Brandon Williams
b22749bbb2
Remove thrift dep from cqlsh tests.
...
Patch by brandonwilliams; reviewed by edimitrova for CASSANDRA-17020
2021-10-01 10:02:05 -05:00
Mick Semb Wever
7bab2da375
Dockerise cqlshlib tests
...
patch by Mick Semb Wever; reviewed by Berenguer Blasi, Brandon Williams for CASSANDRA-16809
2021-08-10 10:05:48 +02:00
Mick Semb Wever
09c157e0f8
Dockerise cqlshlib tests
...
patch by Mick Semb Wever; reviewed by Berenguer Blasi, Brandon Williams for CASSANDRA-16809
2021-08-10 09:57:21 +02:00
Andrés de la Peña
906781ecbb
Merge branch 'cassandra-3.11' into cassandra-4.0
2021-07-13 13:04:48 +01:00
Aleksandr Sorokoumov
2a8e01858f
Make cqlsh use the same set of reserved keywords than the server uses
...
patch by Aleksandr Sorokoumov; reviewed by Andrés de la Peña and Ekaterina Dimitrova for CASSANDRA-15663
Co-authored-by: Aleksandr Sorokoumov <aleksandr.sorokoumov@gmail.com>
Co-authored-by: Ekaterina Dimitrova <ekaterina.dimitrova@datastax.com>
Co-authored-by: Andrés de la Peña <a.penya.garcia@gmail.com>
2021-07-13 11:45:25 +01:00
Brandon Williams
1579d20ceb
ninja remove noisly line during cqlsh export
2021-06-14 11:00:20 -05:00
Ekaterina Dimitrova
d69a7e4b8a
Merge branch 'cassandra-3.11' into cassandra-4.0.0
2021-06-12 14:00:47 -04:00
Ekaterina Dimitrova
0878f15361
Merge branch 'cassandra-3.0' into cassandra-3.11
2021-06-12 13:53:12 -04:00
kamlesh-ghoradkar
a0af091a5c
CQL shell should prefer newer TLS version by default
...
patch by Kamlesh Ghoradkar; reviewed by Ekaterina Dimitrova, Adam Holmberg, David Capwell, Justin Chu and Brandon Williamms for CASSANDRA-16695
2021-06-12 13:49:19 -04:00
Brandon Williams
cfc8ef3313
ninja fix six typo to be six >=1.12.0
2021-05-26 16:52:14 -05: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
Ekaterina Dimitrova
326d61e835
Remove drivers dependency and bring cql_keywords_reserved on server side
...
authored and reviewed by Ekaterina Dimitrova, Adam Holmberg and Andres de la Pena for CASSANDRA-16659
2021-05-17 08:57:39 -04:00
Bereng
b67d04b6fe
cassandra-cqlsh-tests.sh should return different return codes on circle vs jenkins
...
patch by Mick Semb Wever; reviewed by Berenguer Blasi for CASSANDRA-16655
2021-05-05 18:05:29 +02: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
Brandon Williams
a75b9b8533
Revert "fix errant line breaks"
...
This reverts commit d2fcdacfa1 .
2021-05-04 16:18:27 -05:00
Brandon Williams
d2fcdacfa1
fix errant line breaks
2021-05-04 16:10:57 -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
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
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
Mick Semb Wever
1a92e4a649
Merge branch 'cassandra-3.11' into trunk
2021-03-27 00:38:31 +01:00
Mick Semb Wever
9e513390b7
Merge branch 'cassandra-3.0' into cassandra-3.11
2021-03-27 00:36:11 +01:00
Mick Semb Wever
35114d5fcc
Merge branch 'cassandra-2.2' into cassandra-3.0
2021-03-27 00:32:09 +01:00
Jeff Widman
fd9250fb40
Remove unittest2 import
...
Patch by Jeff Widman; reviewed by brandonwilliams for CASSANDRA-16506
2021-03-14 11:18:21 -05:00
Jeff Widman
3d539d908f
Update python2 doc references to point to py3
...
Patch by Jeff Widman; reviewed by brandonwilliams for CASSANDRA-16505
2021-03-09 17:15:07 -06:00
Adam Holmberg
72ca73fbc6
deprecate python2.7 for cqlsh
...
Patch by Adam Holmberg; reviewed by brandonwilliams for CASSANDRA-16414
2021-02-26 14:52:38 -06: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
Brandon Williams
ff49fd9253
Merge branch 'cassandra-3.11' into trunk
2021-01-12 13:29:39 -06:00
Brandon Williams
22a0927391
Merge branch 'cassandra-3.0' into cassandra-3.11
2021-01-12 13:26:05 -06:00
Aleksandr Sorokoumov
a542b86504
Allow empty string in collections with COPY FROM in cqlsh
...
Patch by Aleksandr Soromoukov, reviewed by brandonwilliams for
CASSANDRA-16372
2021-01-12 13:22:18 -06:00
Aleksandr Sorokoumov
c1008cc1ea
CASSANDRA-16372 COPY FROM does not report failed rows as imported
2021-01-12 13:21:03 -06:00
Adam Holmberg
cb71f23958
cqlsh row_id resets on page boundaries
...
patch by Adam Holmberg; reviewed by Brandon Williams, David Capwell for CASSANDRA-16160
2020-12-17 09:17:43 -08:00
Yuki Morishita
d9e2ed00af
Remove windows scripts and their references
...
patch by Yuki Morishita; reviewed by Berenguer Blasi and Andrés de la Peña for CASSANDRA-16171
2020-12-02 16:43:45 +00:00
Berenguer Blasi
0700d795bc
Circleci should run cqlshlib tests as well
...
patch by Berenguer Blasi; reviewed by David Capwell, Ekaterina Dimitrova for CASSANDRA-16121
2020-11-05 15:43:17 -08:00
Bereng
eebad66fe2
Fix TestCqlshOutput.test_describe_cluster_output
...
patch by Berenguer Blasi; reviewed by Benjamin Lerer for CASSANDRA-16098
2020-09-08 17:40:13 +02:00
Adam Holmberg
0e53379ec9
stop passing unpicklable Cluster object to spawned child processes in
...
cqlsh
Patch by Adam Holmberg, reviewed by Ekaterina Dimitrova and
brandonwilliams for CASSANDRA-16053
2020-08-20 15:02:51 -05:00
Rens Groothuijsen
1b1b87cfe3
Strip comment blocks from cqlsh input before processing statements
...
patch by Rens Groothuijsen; reviewed by Mick Semb Wever for CASSANDRA-15802
2020-08-20 13:57:01 +02:00
Adam Holmberg
f93c563163
Make cqlsh tests with with Python 3.7 re changes
...
Patch by Adam Holmberg, reviewed by brandonwilliams for CASSANDRA-16028
2020-08-05 13:44:34 -05:00
Caleb Rackliffe
47ac595036
Backport CASSANDRA-12189, formatting fixes
...
Patch by Caleb Rackliffe, reviewed by brandonwilliams for
CASSANDRA-15948
2020-07-15 14:20:53 -05:00
Caleb Rackliffe
5774415368
Backport CASSANDRA-12189, formatting fixes
...
Patch by Caleb Rackliffe, reviewed by brandonwilliams for
CASSANDRA-15948
2020-07-15 14:15:53 -05:00
Brandon Williams
eebb9e02cd
Merge branch 'cassandra-3.11' into trunk
2020-06-30 17:57:22 -05:00
yifan-c
9251b8116f
Fix cqlsh output when fetching all rows in batch mode
...
Patch by Yifan Cai, reviewed by brandonwilliams for CASSANDRA-15905
2020-06-30 17:54:39 -05:00
Robert Stupp
4e47bfb3a1
Add support for server side DESCRIBE statements
...
patch by Robert Stupp; reviewed by Dinesh Joshi and Benjamin Lerer for CASSANDRA-14825
2020-06-29 18:01:02 +02:00
Mick Semb Wever
54472f8801
Merge branch 'cassandra-3.11' into trunk
2020-04-29 21:10:51 +02:00
Mick Semb Wever
8a4e2edcff
Merge branch 'cassandra-3.0' into cassandra-3.11
2020-04-29 21:09:40 +02:00
Mick Semb Wever
ed62641748
Use different package names for the cqlsh-tests matrix values, so final aggregated test reports are distinguished
...
patch by Mick Semb Wever; reviewed by David Capwell for CASSANDRA-15729
2020-04-29 21:07:33 +02:00
Joseph Lynch
9c1bbf3ac9
Flush with fast compressors by default
...
Previously Zstd, Deflate and LZ4HC could hold up the flush thread while
flushing due to their slow compression rates. With this patch we always
default to flush with a fast compressor (default to LZ4) and then
compress into the high compression strategy during normal compactions
that follow. Note that if the existing table compressor is fast (e.g.
LZ4 or Snappy) we use that.
Patch by Joey Lynch; reviewed by Dinesh Joshi for CASSANDRA-15379
2020-04-23 23:23:18 -07:00
Mick Semb Wever
1de8720b32
Fix python codestyle warning (and failing test_pycodestyle_compliance)
...
patch by Eduard Tudenhöfner; reviewed by Mick Semb Wever for CASSANDRA-15734
Co-authored-by: Eduard Tudenhöfner <eduard.tudenhoefner@datastax.com>
2020-04-17 10:54:35 +02:00
Eduard Tudenhoefner
24c8a21c1c
Add Python3.8 compatible SaferScanner
...
This is necessary because Python 3.8 renamed `sre_parse.Pattern` to `sre_parse.State` (see https://bugs.python.org/issue34681 and https://github.com/python/cpython/pull/9310/files for details)
patch by Eduard Tudenhöfner, reviewed by Mick Semb Wever for CASSANDRA-15573
2020-04-14 21:10:08 +02:00
Eduard Tudenhoefner
c05443c098
Allow cqlsh to run with Python 2.7/Python 3.6+
...
* Adds a minimal manual test that starts cqlsh with python3.7 & 3.8 in a Docker container. It also fixes a minor issue when starting up cqlsh with python3.7+, where `webbrowser._tryorder` is `None` as can be seen in https://github.com/python/cpython/blob/3.7/Lib/webbrowser.py#L1 . Note that we're checking `webbrowser._tryorder` for `None` instead of doing `webbrowser.get()` because it's likely that there's no default browser installed in a Dockerized environment and so things would fail with `could not locate runnable browser` (https://github.com/python/cpython/blob/3.7/Lib/webbrowser.py#L65 )
* Adds python3.8 testing to CircleCI
* Fixes some Python warnings that occur with newer versions
patch by Eduard Tudenhöfner, reviewed by Mick Semb Wever for CASSANDRA-15659
2020-04-14 20:58:40 +02:00
Eduard Tudenhoefner
58015fd681
Use Exception.message in copyutil.py only if it exists
...
Exception.message was removed in Python 3, so only refer to it when it
exists on an Exception instance.
Also fix code style compliance in formatting.py (missing blank lines)
patch by Eduard Tudenhoefner; reviewed by Stefania Alborghetti for CASSANDRA-15702
2020-04-09 11:44:30 -04: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
Stefania Alborghetti
2f781819b1
Merge branch 'cassandra-3.11' into trunk
2020-04-09 09:05:14 -04:00
Stefania Alborghetti
57b0bb93ab
Merge branch 'cassandra-3.0' into cassandra-3.11
2020-04-09 09:01:42 -04:00
Stefania Alborghetti
fe263ad9e9
Merge branch 'cassandra-2.2' into cassandra-3.0
2020-04-09 08:58:55 -04:00
Stefania Alborghetti
c8081c2467
Merge branch 'cassandra-2.1' into cassandra-2.2
2020-04-09 08:56:38 -04:00
Eduard Tudenhoefner
3db7796c1b
Fix cqlsh output test
...
patch by Eduard Tudenhoefner; reviewed by Michael Semb Wever for
CASSANDRA-15707
2020-04-09 14:54:32 +02:00
Eduard Tudenhoefner
b3f27381a5
Mark system_views/system_virtual_schema as system keyspaces in cqlsh
...
patch by Eduard Tudenhoefner; reviewed by Benjamin Lerer for
CASSANDRA-15706
This is so that those keyspaces don't show up in tab completions. This
also fixes the cqlsh completion tests.
2020-04-09 11:09:01 +02:00
Aleksandr Sorokoumov
f3568c0d50
Fix parse error in cqlsh COPY FROM and formatting for map of blobs
...
patch by Aleksandr Sorokoumov; reviewed by Stefania Alborghetti for CASSANDRA-15679
2020-04-07 12:32:15 -04:00
Mick Semb Wever
bb8ec1fc10
Fix cqlsh tests running on jdk1.8 (regression from CASSANDRA-10190)
...
patched by Mick Semb Wever; reviewed by Yuki Morishita for CASSANDRA-15662
2020-04-06 17:44:13 +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
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
Sam Tunnicliffe
0388d89e29
Allow max protocol version to be capped
...
Patch by Sam Tunnicliffe; reviewed by Alex Petrov and Aleksey
Yeschenko for CASSANDRA-15193
2019-10-08 18:09:52 +01:00
Ariel Weisberg
c291e8d815
Merge branch '14951-3.11' into 14951-trunk
2019-01-15 18:08:31 -05:00
Ariel Weisberg
25b72d08c0
Merge branch '14951-3.0' into 14951-3.11
2019-01-15 18:08:18 -05:00
Dinesh A. Joshi
a9d1af96b5
Add a script to make running the cqlsh tests in cassandra repo easier
...
Patch by Dinesh Joshi; Reviewed by Ariel Weisberg for CASSANDRA-14951
2019-01-15 18:03:47 -05: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