Michał Hudobski
541b52cdbf
cql: fail with a better error when null vector is passed to ann query
...
Currently when a null vector is passed to an ANN query we fail with a
quite confusing error ("NoHostAvailable: ('Unable to complete the
operation against any hosts', {<Host: 127.0.0.1:9042 datacenter1>:
<Error from server: code=0000 [Server error] message="to_bytes() called
on raw value that is null">})").
This patch fixes that by throwing an InvalidRequestException with an
appropriate message instead.
We also add a test case that validates this behavior.
Fixes: VECTOR-257
Closes scylladb/scylladb#26510
2025-10-27 16:09:08 +02:00
..
2025-08-27 13:47:04 +03:00
2025-10-16 13:34:49 +03:00
2024-12-18 17:45:13 +02:00
2025-01-15 11:10:36 +01:00
2025-01-15 11:10:36 +01:00
2024-12-18 17:45:13 +02:00
2025-09-24 13:23:38 +03:00
2025-09-24 13:23:38 +03:00
2025-07-13 19:13:11 +03:00
2025-07-13 19:13:11 +03:00
2025-07-13 19:13:11 +03:00
2025-07-13 19:13:11 +03:00
2025-01-15 11:10:36 +01:00
2024-12-18 17:45:13 +02:00
2025-01-15 11:10:36 +01:00
2025-01-15 11:10:36 +01:00
2025-01-15 11:10:36 +01:00
2025-01-15 11:10:36 +01:00
2025-08-28 23:33:15 +02:00
2025-09-24 13:23:38 +03:00
2024-12-18 17:45:13 +02:00
2025-10-09 12:28:10 +02:00
2025-10-09 12:28:10 +02:00
2025-10-02 19:42:39 +02:00
2025-09-25 15:03:56 +03:00
2024-12-18 17:45:13 +02:00
2025-03-31 09:43:22 +03:00
2025-07-13 19:13:11 +03:00
2025-07-13 19:13:11 +03:00
2025-07-13 19:13:11 +03:00
2025-07-13 19:13:11 +03:00
2025-09-29 13:07:08 +02:00
2025-07-13 19:13:11 +03:00
2025-10-16 13:34:49 +03:00
2025-07-13 19:13:11 +03:00
2025-01-15 11:10:36 +01:00
2025-01-15 11:10:36 +01:00
2024-12-18 17:45:13 +02:00
2025-09-28 20:23:23 +03:00
2025-07-13 19:13:11 +03:00
2025-07-13 19:13:11 +03:00
2025-07-13 19:13:11 +03:00
2025-09-29 13:07:08 +02:00
2025-07-13 19:13:11 +03:00
2025-01-15 11:10:36 +01:00
2025-01-15 11:10:36 +01:00
2025-09-03 15:21:37 +02:00
2025-06-30 19:12:14 +02:00
2025-01-15 11:10:36 +01:00
2024-12-18 17:45:13 +02:00
2025-01-15 11:10:36 +01:00
2025-01-15 11:10:36 +01:00
2025-01-15 11:10:36 +01:00
2025-01-15 11:10:36 +01:00
2025-07-13 19:13:11 +03:00
2025-07-13 19:13:11 +03:00
2025-08-27 08:55:47 +02:00
2024-12-18 17:45:13 +02:00
2024-12-18 17:45:13 +02:00
2025-01-15 11:10:36 +01:00
2024-12-18 17:45:13 +02:00
2025-01-15 11:10:36 +01:00
2024-12-18 17:45:13 +02:00
2025-07-13 19:13:11 +03:00
2025-07-13 19:13:11 +03:00
2025-07-13 19:13:11 +03:00
2025-07-13 19:13:11 +03:00
2024-12-18 17:45:13 +02:00
2024-12-18 17:45:13 +02:00
2024-12-18 17:45:13 +02:00
2025-01-15 11:10:36 +01:00
2024-12-18 17:45:13 +02:00
2025-10-09 16:01:56 +02:00
2025-10-09 15:53:29 +02:00
2025-07-07 13:47:06 +02:00
2025-07-07 13:47:06 +02:00
2025-10-16 13:34:49 +03:00
2025-10-16 13:34:49 +03:00
2025-09-17 17:32:19 +03:00
2024-12-18 17:45:13 +02:00
2025-01-15 11:10:36 +01:00
2024-12-18 17:45:13 +02:00
2024-12-18 17:45:13 +02:00
2025-01-15 11:10:36 +01:00
2024-12-18 17:45:13 +02:00
2025-01-15 15:01:05 +01:00
2024-12-18 17:45:13 +02:00
2025-01-15 11:10:36 +01:00
2024-12-18 17:45:13 +02:00
2025-08-28 23:33:15 +02:00
2025-07-13 19:13:11 +03:00
2024-12-18 17:45:13 +02:00
2024-12-18 17:45:13 +02:00
2025-05-14 09:59:16 +02:00
2025-10-02 19:42:39 +02:00
2025-10-02 19:42:39 +02:00
2024-12-18 17:45:13 +02:00
2024-12-18 17:45:13 +02:00
2024-12-18 17:45:13 +02:00
2024-12-18 17:45:13 +02:00
2025-01-15 11:10:36 +01:00
2024-12-18 17:45:13 +02:00
2025-01-15 11:10:36 +01:00
2025-07-13 19:13:11 +03:00
2025-07-13 19:13:11 +03:00
2025-10-27 16:09:08 +02:00
2025-10-15 18:42:09 +03:00
2025-01-15 15:01:05 +01:00
2025-01-15 15:01:05 +01:00
2025-09-17 17:32:19 +03:00
2025-01-02 07:13:34 +01:00
2024-12-18 17:45:13 +02:00
2024-12-18 17:45:13 +02:00
2024-12-18 17:45:13 +02:00
2024-12-18 17:45:13 +02:00
2024-12-18 17:45:13 +02:00
2025-01-15 11:10:36 +01:00
2024-12-18 17:45:13 +02:00
2025-10-21 17:41:55 +03:00
2025-01-15 11:10:36 +01:00
2025-01-15 11:10:36 +01:00
2024-12-18 17:45:13 +02:00