You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2016/02/02 03:32:39 UTC
[jira] [Created] (CALCITE-1073) Validate function arguments in
RelBuilder
Julian Hyde created CALCITE-1073:
------------------------------------
Summary: Validate function arguments in RelBuilder
Key: CALCITE-1073
URL: https://issues.apache.org/jira/browse/CALCITE-1073
Project: Calcite
Issue Type: Bug
Reporter: Julian Hyde
Assignee: Julian Hyde
RelBuilder should validate function arguments. For example, if you try to create a call to SUBSTRING, RelBuilder should make sure that the arguments are of type VARCHAR (or CHAR), INTEGER, INTEGER.
SqlOperator has the means to validate itself, but it's a bit tricky to use it, because those means were intended for ASTs (SqlNode). In SqlNode format the arguments are sometimes different (e.g. CAST has 2 arguments in SqlNode format and only one in RexNode format).
RelBuilder should also insert implicit casts, and should resolve overloaded operators.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)