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

Danny Chan resolved CALCITE-3072.
---------------------------------
       Resolution: Fixed
         Assignee: Danny Chan
    Fix Version/s: 1.20.0

Fixed inĀ 
[https://github.com/apache/calcite/commit/7fa13bf164f9354aed492b03f753c2b9b30b0164],
 thanks for your PR, [~donnyzone] !

> Generate right SQL for FLOOR&SUBSTRING functions in SparkSqlDialect
> -------------------------------------------------------------------
>
>                 Key: CALCITE-3072
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3072
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.20.0
>            Reporter: Feng Zhu
>            Assignee: Danny Chan
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.20.0
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> The FLOOR and SUBSTRING functions are currently broken when generating query 
> for Spark SQL[1]. 
> {code:java}
> FLOOR ->  DATE_TRUNC
> SUBSTRING('Hello World' FROM 5 FOR 1) -> SUBSTRING('Hello World', 5, 1)
> {code}
> [1] https://spark.apache.org/docs/latest/api/sql/index.html



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to