Piotr Smaron
b60f9ef4c2
cql: fix exception when validating KS in CREATE TABLE
...
c70f321c6f added an extra check if KS
exists. This check can throw `data_dictionary::no_such_keyspace`
exception, which is supposed to be caught and a more user-friendly
exception should be thrown instead.
This commit fixes the above problem and adds a testcase to validate it
doesn't appear ever again.
Also, I moved the check for the keyspace outside of the `for` loop, as
it doesn't need to be checked repeatedly.
Additionally, I added an extra comment to both `no_such_keyspace` and
`no_such_column_family` exceptions explaining they should not be
returned directly to the caller, as they lack error code, which may not
trigger correct exceptions handling mechanisms on the driver side.
Fixes : #20097
(cherry picked from commit f1e8976fbe )
Closes scylladb/scylladb#20553
2024-09-13 11:36:51 +03:00
..
2024-01-29 09:02:01 +02:00
2024-06-18 20:26:09 +02:00
2024-06-18 19:54:55 +02:00
2024-03-01 16:25:14 +01:00
2024-06-06 13:26:34 +02:00
2023-08-17 15:52:48 +03:00
2024-06-07 06:44:59 +08:00
2024-04-25 21:27:40 +02:00
2024-06-07 06:44:59 +08:00
2024-06-07 06:44:59 +08:00
2024-04-29 14:05:05 +02:00
2024-04-25 21:27:40 +02:00
2024-06-06 13:26:34 +02:00
2024-03-21 23:14:57 +01:00
2024-03-21 23:14:57 +01:00
2024-03-21 23:14:57 +01:00
2024-03-21 23:14:57 +01:00
2024-03-21 23:14:57 +01:00
2024-01-02 19:08:47 +02:00
2024-06-07 06:44:59 +08:00
2023-06-28 10:18:06 +02:00
2024-05-18 00:23:30 +03:00
2024-04-26 10:48:47 +03:00
2024-01-29 09:02:01 +02:00
2024-07-04 10:24:57 +02:00
2024-04-25 21:27:40 +02:00
2024-06-12 16:54:46 +03:00
2024-04-25 21:27:40 +02:00
2024-06-07 06:44:59 +08:00
2024-04-25 21:27:40 +02:00
2024-07-09 18:01:37 +02:00
2024-06-07 10:07:50 +02:00
2024-06-06 13:26:34 +02:00
2024-08-26 13:03:16 +03:00
2023-08-17 15:52:48 +03:00
2024-09-13 11:36:51 +03:00
2024-06-07 10:07:50 +02:00
2024-06-07 10:36:40 +02:00
2024-06-07 10:07:50 +02:00
2024-06-07 10:36:40 +02:00
2024-06-07 10:07:50 +02:00
2024-01-16 16:43:17 +02:00
2024-07-04 10:24:57 +02:00
2024-01-16 16:43:17 +02:00
2024-06-06 13:26:34 +02:00
2024-03-21 23:14:57 +01:00
2024-06-06 13:26:34 +02:00
2024-06-06 13:26:34 +02:00
2024-07-04 10:24:57 +02:00
2024-06-06 13:26:34 +02:00
2024-06-07 06:44:59 +08:00
2024-04-25 21:27:40 +02:00
2024-06-07 06:44:59 +08:00
2024-06-06 13:26:34 +02:00
2024-03-01 16:25:14 +01:00
2024-06-06 13:26:34 +02:00
2023-08-17 15:52:48 +03:00
2024-06-06 13:26:34 +02:00
2024-06-06 13:26:34 +02:00
2024-07-04 10:24:57 +02:00
2024-04-25 21:27:40 +02:00
2024-04-25 21:27:40 +02:00
2024-04-25 21:27:40 +02:00
2024-07-04 10:24:57 +02:00
2023-06-22 13:57:33 +03:00
2024-03-01 16:25:14 +01:00
2024-06-06 13:26:34 +02:00
2023-08-17 15:52:48 +03:00
2023-04-06 09:50:32 -04:00
2023-04-06 09:50:32 -04:00
2024-06-28 11:41:41 +03:00
2024-06-28 11:41:41 +03:00
2023-11-30 13:07:20 +01:00
2023-11-30 13:07:20 +01:00
2024-03-01 16:25:14 +01:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2024-01-16 16:43:17 +02:00
2024-01-16 16:43:17 +02:00
2023-08-17 15:52:48 +03:00
2024-01-16 16:43:17 +02:00
2024-03-01 16:25:14 +01:00
2023-08-17 15:52:48 +03:00
2024-06-30 19:35:05 +03:00
2024-06-30 19:35:05 +03:00
2024-01-16 16:43:17 +02:00
2024-03-01 16:25:14 +01:00
2024-05-25 16:41:30 +03:00
2024-04-19 22:56:16 +08:00
2024-03-01 16:25:14 +01:00
2024-06-06 13:26:34 +02:00
2023-08-17 15:52:48 +03:00
2024-06-06 13:26:34 +02:00
2024-06-07 10:26:32 +02:00
2024-06-18 20:26:09 +02:00
2024-08-27 23:43:14 +00:00
2024-08-27 23:43:14 +00:00
2024-03-21 23:14:57 +01:00
2024-03-21 23:14:57 +01:00
2024-01-16 16:43:17 +02:00
2024-01-23 19:36:24 +02:00
2024-01-16 16:43:17 +02:00
2024-01-16 16:43:17 +02:00
2023-08-17 15:52:48 +03:00
2024-01-16 16:43:17 +02:00
2024-06-07 06:44:59 +08:00
2023-08-17 15:52:48 +03:00
2023-07-14 15:42:58 +03:00
2023-11-09 10:43:11 +01:00
2023-08-17 15:52:48 +03:00