You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Tanner Clary (Jira)" <ji...@apache.org> on 2022/12/07 19:00:00 UTC

[jira] [Comment Edited] (CALCITE-5404) Implement BigQuery's POW() and TRUNC() math functions

    [ https://issues.apache.org/jira/browse/CALCITE-5404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17644475#comment-17644475 ] 

Tanner Clary edited comment on CALCITE-5404 at 12/7/22 6:59 PM:
----------------------------------------------------------------

[~julianhyde] I am currently working on adding the changes you suggested (apologies for the delay). I am trying to make use of SqlBasicFunction but am finding that I run into a null pointer exception when trying to reference the {{POWER}} StdOperator from {{SqlLibraryOperator}} for {{{}POW(){}}}. What is the appropriate way to reference a standard operator from the library operator table? My current attempt can be found [here|https://github.com/tanclary/calcite/commit/342bed47329dee9c382d5da3d49952a45bfaa689] here for more context.


was (Author: JIRAUSER298151):
[~julianhyde] I am currently working on adding the changes you suggested (apologies for the delay). I am trying to make use of SqlBasicFunction but am finding that I run into a null pointer exception when trying to reference the {{POWER}} StdOperator from {{SqlLibraryOperator}} for {{{}POW(){}}}. What is the appropriate way to reference a standard operator from the library operator table? My current attempt can be found [here|[https://github.com/tanclary/calcite/commit/342bed47329dee9c382d5da3d49952a45bfaa689]] here for more context.

> 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)