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 2023/04/11 01:55:00 UTC

[jira] [Resolved] (CALCITE-5565) Implement BigQuery LOG function

     [ https://issues.apache.org/jira/browse/CALCITE-5565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Hyde resolved CALCITE-5565.
----------------------------------
    Fix Version/s: 1.35.0
       Resolution: Fixed

Fixed in [74bc025fb|https://github.com/apache/calcite/commit/74bc025fbb5af4f43762926e0bec75acf6ac3025]; thanks for the PR, [~tanclary]!

> Implement BigQuery LOG function
> -------------------------------
>
>                 Key: CALCITE-5565
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5565
>             Project: Calcite
>          Issue Type: Task
>            Reporter: Tanner Clary
>            Assignee: Tanner Clary
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.35.0
>
>          Time Spent: 3h 10m
>  Remaining Estimate: 0h
>
> Calcite currently supports the {{LN}} and {{LOG10}} function. BigQuery offers the {{LOG}} function which allows for the base of the logarithm to be specified as a second argument. If the second argument is not provided, the base is defaulted to e (making it identical to the {{LN}} function). 
> Example: {{LOG(64, 10)}} would return {{2}}.
> Example 2: {{LOG(10)}} would return the same as {{LN(10)}}.
> [BigQuery docs|https://cloud.google.com/bigquery/docs/reference/standard-sql/functions-and-operators#log]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)