You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Max Gekk (Jira)" <ji...@apache.org> on 2021/06/16 05:07:00 UTC

[jira] [Commented] (SPARK-35773) Parse year-month interval literals to tightest types

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

Max Gekk commented on SPARK-35773:
----------------------------------

[~sarutak] FYI, this is similar to what you have done already. Would you like to work on this?

> Parse year-month interval literals to tightest types
> ----------------------------------------------------
>
>                 Key: SPARK-35773
>                 URL: https://issues.apache.org/jira/browse/SPARK-35773
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.2.0
>            Reporter: Max Gekk
>            Assignee: Kousuke Saruta
>            Priority: Major
>             Fix For: 3.2.0
>
>
> Modify AstBuilder.visitInterval to parse year-month interval literals to tightest types. For example:
> INTERVAL '10' YEAR should be parsed as YearMonthIntervalType(YEAR, YEAR) but not as YearMonthIntervalType(YEAR, MONTH).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org