You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "TJ Banghart (Jira)" <ji...@apache.org> on 2022/10/26 23:20:00 UTC
[jira] [Updated] (CALCITE-5349) RelJson should support non-standard operators
[ https://issues.apache.org/jira/browse/CALCITE-5349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
TJ Banghart updated CALCITE-5349:
---------------------------------
Description:
I am attempting to deserialize {{RexNodes}} that contain non-standard operators but {{RexJson#toOp}} only considers operators found in {{{}SqlStdOperatorTable{}}}: [https://github.com/apache/calcite/blob/c945b7f49b99538748c871557f6ac80957be2b6e/core/src/main/java/org/apache/calcite/rel/externalize/RelJson.java#L780]
For example, attempting to deserialize a JSON RexCall that includes the BigQuery only `DATE_FROM_UNIX_DATE` operator raises {{CalciteException: No operator for 'DATE_FROM_UNIX_DATE' with kind: 'OTHER_FUNCTION', syntax: 'FUNCTION' during JSON deserialization}}
Unless I am missing something, I don't believe the operator lookup is configurable or overridable.
was:
I am attempting to deserialize {{RexNodes}} that contain non-standard operators but {{RexJson#toOp}} only considers operators found in {{{}SqlStdOperatorTable{}}}: [https://github.com/apache/calcite/blob/c945b7f49b99538748c871557f6ac80957be2b6e/core/src/main/java/org/apache/calcite/rel/externalize/RelJson.java#L780]
For example, attempting to deserialize a JSON RexCall that includes the BigQuery only `DATE_FROM_UNIX_DATE` operator raises {{CalciteException: No operator for 'DATE_FROM_UNIX_DATE' with kind: 'OTHER_FUNCTION', syntax: 'FUNCTION' during JSON deserialization}}
Unless I am missing something, I don't believe the operator lookup is configurable nor overridable.
> RelJson should support non-standard operators
> ---------------------------------------------
>
> Key: CALCITE-5349
> URL: https://issues.apache.org/jira/browse/CALCITE-5349
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Reporter: TJ Banghart
> Assignee: TJ Banghart
> Priority: Major
>
> I am attempting to deserialize {{RexNodes}} that contain non-standard operators but {{RexJson#toOp}} only considers operators found in {{{}SqlStdOperatorTable{}}}: [https://github.com/apache/calcite/blob/c945b7f49b99538748c871557f6ac80957be2b6e/core/src/main/java/org/apache/calcite/rel/externalize/RelJson.java#L780]
> For example, attempting to deserialize a JSON RexCall that includes the BigQuery only `DATE_FROM_UNIX_DATE` operator raises {{CalciteException: No operator for 'DATE_FROM_UNIX_DATE' with kind: 'OTHER_FUNCTION', syntax: 'FUNCTION' during JSON deserialization}}
> Unless I am missing something, I don't believe the operator lookup is configurable or overridable.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)