Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Normal
Description
When using an aggregate, it won't resolve if the column is reversed.
CREATE TABLE t1 (pk int, ck int, PRIMARY KEY (pk, ck)) WITH CLUSTERING ORDER BY (ck DESC) SELECT min(ck) FROM t1 WHERE pk = 1
results in the error:
Ambiguous call to function min (can be matched by following signatures: system.min : (varint) -> varint, system.min : (int) -> int, system.min : (blob) -> blob): use type casts to disambiguate
For aggregates, we should be treating a reversed type the same as we do a normal type.