Skip to content

[SPARK-34716][SQL] Support ANSI SQL intervals by the aggregate function sum - #32107

Closed
beliefer wants to merge 9 commits into
apache:masterfrom
beliefer:SPARK-34716
Closed

[SPARK-34716][SQL] Support ANSI SQL intervals by the aggregate function sum#32107
beliefer wants to merge 9 commits into
apache:masterfrom
beliefer:SPARK-34716

Conversation

@beliefer

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Extend the Sum expression to to support DayTimeIntervalType and YearMonthIntervalType added by #31614.

Note: the expressions can throw the overflow exception independently from the SQL config spark.sql.ansi.enabled. In this way, the modified expressions always behave in the ANSI mode for the intervals.

Why are the changes needed?

Extend org.apache.spark.sql.catalyst.expressions.aggregate.Sum to support DayTimeIntervalType and YearMonthIntervalType.

Does this PR introduce any user-facing change?

'No'.
Should not since new types have not been released yet.

How was this patch tested?

Jenkins test

Loading
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@beliefer@SparkQA@HyukjinKwon@MaxGekk