Check if we can evaluate the expr to constant directly. # Example ```sql SELECT make_map('type', 'test') from test ``` We can evaluate the result of `make_map` directly.
(args: &[ColumnarValue])
| 59 | /// ``` |
| 60 | /// We can evaluate the result of `make_map` directly. |
| 61 | fn can_evaluate_to_const(args: &[ColumnarValue]) -> bool { |
| 62 | args.iter() |
| 63 | .all(|arg| matches!(arg, ColumnarValue::Scalar(_))) |
| 64 | } |
| 65 | |
| 66 | fn make_map_batch(args: &[ColumnarValue]) -> Result<ColumnarValue> { |
| 67 | let [keys_arg, values_arg] = take_function_args("make_map", args)?; |
no test coverage detected
searching dependent graphs…