mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-25 19:10:42 +00:00
Restrictions like col IN (1) get converted to col = 1 as an optimization/simplification. This used to be done in prepare_binary_operator, but it fits way better inside of validate_and_prepare_new_restriction. When it was being done in prepare_binary_operator the conversion happened before validation checks and the error messages would describe an equality restriction despite the user making an IN restriction. Now the conversion happens after all validation is finished, which ensures that all checks are being done on the original expression. Fixes: #10631 Signed-off-by: Jan Ciolek <jan.ciolek@scylladb.com>