Commit Graph
4 Commits
Author SHA1 Message Date
sylwiaszunejko 7072863b0c Replace Unsafe with Strict mechanism
Previously by default the presence of a missing field in
a udt would result in an error reported. The Unsafe
mechanism could be used to ignore these fields.

This PR changes the default behavior to ignoring missing
fields and only reporting an error if Strict mode is used.
This approach is in line with the gocql.
2024-06-25 15:29:10 +02:00
sylwiaszunejko a222c1f067 Marshal missing UDT fields as null instead of failing
We can't return an error in case a field is added to the UDT,
otherwise existing code would break by simply altering the UDT in the
database. For extra fields at the end of the UDT put nulls to be in
line with gocql, but also python-driver and java-driver.

In gocql it was fixed in https://github.com/scylladb/gocql/commit/d2ed1bb74f3118a83a352e9ce912be765001efa4
2024-06-25 12:32:16 +02:00
sylwiaszunejko a9ab270196 Add linter to the CI 2024-06-14 17:16:52 +02:00
sylwiaszunejko 49188e50b7 Bump SCYLLA_VERSION to 6.0.0 2024-06-14 17:16:52 +02:00