The following fails using the CQL expression visitor, when the parameter is constant:
It does not fail when the parameter is a field:
The underlying cause is that the expression tree generated by the runtime is:
For the first case, a binary expression containing a constant value on the right side of type int32 (instead of int16).
For the second case, a binary expression containing a unary expression on the right side wit h a int16 operand.
Create integration tests at Cassandra.IntegrationTests.Linq.LinqMethods.Where to emulate the issue and fix.