wren-engine icon indicating copy to clipboard operation
wren-engine copied to clipboard

Handle type coercion for the arguments of function

Open grieve54706 opened this issue 1 year ago • 0 comments

SQL parser parses the statement with the function pg_relation_size and will return the argument as LongLiteral. And the expression is transferred to BIGINT via ExpressionTypeAnalyzer. But we define the function pg_relation_size is with INTEGER.

  • TestFunctions.testJdbcQuery[select pg_get_expr('test', 1)]

grieve54706 avatar Feb 27 '24 10:02 grieve54706