This is a translation of Cassandra's CQL unit test source file validation/operations/InsertInvalidateSizedRecordsTest.java into our cqlpy framework. This is one of the tests added to Cassandra as part of the vector search work, but actually has nothing to do with vector search - it checks what happens when key columns of different types exceeed their maximum size (64KB). Unfortunately, each one of the tests added here *fail* on ScyllaDB, providing more reproducers for two already known issues (which already had plenty of reproducers...): Refs #8627 Cleanly reject updates with indexed values where value > 64k Refs #12247 Better error reporting for oversized keys during INSERT One of the tests also fails on Cassandra, due to CASSANDRA-19270. It is not clear to me how this unit test actually passed on Cassandra, I can only guess that the Python driver somehow makes the request differently than what the Java unit tests use to make requests to Cassandra. One of the tests in the original Cassandra source file I did not translate, readingEmptyStringsForDifferentTypes, because it tests cqlsh, not pure CQL. Signed-off-by: Nadav Har'El <nyh@scylladb.com> Closes scylladb/scylladb#27944
All tests in this directory and its subdirectories were translated from Apache Cassandra's unit tests - the test/unit/org/apache/cassandra/cql3 directory in the Apache Cassandra source code repository. The organization of this directory mirrors that of the Cassandra directory, with test files renamed from SomeThingTest.java to some_thing_test.py. Individual files were translated in their entirety, and each individual file includes a comment on which version of the file was translated (Cassandra's tests continue to evolve, so we may later want to catch up with the differences). Please avoid adding new tests, not translated from Cassandra, in this directory. Instead, place new tests written from scratch for Scylla, or improved tests, in the directory above.