mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-28 12:17:02 +00:00
Currently trying to do prepare_expression(function_call) with a nullptr receiver fails. It should be possible to prepare function calls without a known receiver. When the user types in: `token(1, 2, 3)` the code should be able to figure out that they are looking for a function with name `token`, which takes 3 integers as arguments. In order to support that we need to prepare all arguments that can be prepared before attempting to find a function. Prepared expressions have a known type, which helps to find the right function for the given arguments. Additionally the current code for finding a function requires all arguments to be assignment_testable, which requires to prepare some expression types, e.g column_values. Signed-off-by: Jan Ciolek <jan.ciolek@scylladb.com>