Skip to content

[SPARK-22748][SQL] Analyze __grouping__id as a literal function#31751

Closed
maropu wants to merge 1 commit intoapache:masterfrom
maropu:SPARK-22748
Closed

[SPARK-22748][SQL] Analyze __grouping__id as a literal function#31751
maropu wants to merge 1 commit intoapache:masterfrom
maropu:SPARK-22748

Conversation

@maropu
Copy link
Copy Markdown
Member

@maropu maropu commented Mar 5, 2021

What changes were proposed in this pull request?

This PR intends to refactor the logic to resolve __grouping_id in the Analyzer; it moves the logic from ResolveFunctions to ResolveReferences (resolveLiteralFunction).

The original author of this PR is @sqlwindspeaker (#30781).

Closes #30781.

Why are the changes needed?

Code refactoring.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Added tests in AnalysisSuite.

}
}

test("SPARK-22748: Analyze __grouping__id as a literal function") {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test comes from #30781.

@SparkQA
Copy link
Copy Markdown

SparkQA commented Mar 5, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/40374/

@SparkQA
Copy link
Copy Markdown

SparkQA commented Mar 5, 2021

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/40374/

@cloud-fan
Copy link
Copy Markdown
Contributor

cloud-fan commented Mar 5, 2021

thanks, merging to master!

@cloud-fan cloud-fan closed this in ca326c4 Mar 5, 2021
Copy link
Copy Markdown
Member

@viirya viirya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks making more sense than original one. lgtm.

@SparkQA
Copy link
Copy Markdown

SparkQA commented Mar 5, 2021

Test build #135792 has finished for PR 31751 at commit 3edb0b8.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Sign up for free to 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