[
https://issues.apache.org/jira/browse/CALCITE-5404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17644543#comment-17644543
]
Tanner Clary commented on CALCITE-5404:
---------------------------------------
After some debugging, I think the Null Pointer might be happening because while
the SqlLibraryOperator is trying to retriever POWER from the StdOperatorTable,
it encounters JSON_TYPE ([line
1398|https://github.com/apache/calcite/blob/33ca193095fcd0db46b88a270bca8d8cd569b31a/core/src/main/java/org/apache/calcite/sql/fun/SqlStdOperatorTable.java])
which references SqlLibraryOperator JSON_TYPE which is a null pointer because
the library operator table is still being initialized. I'm still looking into
it but if you have any thoughts I would appreciate it. Thanks.
> Implement BigQuery's POW() and TRUNC() math functions
> -----------------------------------------------------
>
> Key: CALCITE-5404
> URL: https://issues.apache.org/jira/browse/CALCITE-5404
> Project: Calcite
> Issue Type: New Feature
> Reporter: Tanner Clary
> Assignee: Tanner Clary
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Add support for BigQuery's POW() and TRUNC() mathematical functions by
> mapping them to the existing implementations for POWER() and TRUNCATE()
> respectively.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)