Closed grieve54706 closed 2 weeks ago
Describe the bug Send statement SELECT ABS(-1) to wren core will get SELECT 1 AS "abs(Int64(-1))". It's not an executable SQL.
SELECT ABS(-1)
SELECT 1 AS "abs(Int64(-1))"
To Reproduce
from wren_core import SessionContext session_context = SessionContext(manifest_str, function_path) sql = session_context.transform_sql("SELECT ABS(-1)") # sql = SELECT 1 AS "abs(Int64(-1))"
Wren engine Information
It's also simplified by SimplifyExpressionRule. Fixed by #874
SimplifyExpressionRule
Describe the bug Send statement
SELECT ABS(-1)
to wren core will getSELECT 1 AS "abs(Int64(-1))"
. It's not an executable SQL.To Reproduce
Wren engine Information