Skip to content

Conversation

@cloud-fan
Copy link
Contributor

What changes were proposed in this pull request?

It's a long-standing bug that we forgot to resolve UnresolvedAlias in CollectMetrics. It's a bit hard to trigger this bug before 3.2 as most likely people won't create UnresolvedAlias when calling Dataset.observe. However things have been changed after #30974

This PR proposes to handle CollectMetrics in the rule ResolveAliases.

Why are the changes needed?

bug fix

Does this PR introduce any user-facing change?

no

How was this patch tested?

updated test

@github-actions github-actions bot added the SQL label Jun 7, 2021
@cloud-fan
Copy link
Contributor Author

cc @ulysses-you @yaooqinn @tanelk

@ulysses-you
Copy link
Contributor

ulysses-you commented Jun 7, 2021

LGTM. I just want to push this but you are so quickly ..

@SparkQA
Copy link

SparkQA commented Jun 7, 2021

Kubernetes integration test unable to build dist.

exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43933/

Copy link
Member

@yaooqinn yaooqinn left a comment

Choose a reason for hiding this comment

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

LGTM.

HyukjinKwon pushed a commit that referenced this pull request Jun 7, 2021
### What changes were proposed in this pull request?

It's a long-standing bug that we forgot to resolve `UnresolvedAlias` in `CollectMetrics`. It's a bit hard to trigger this bug before 3.2 as most likely people won't create `UnresolvedAlias` when calling `Dataset.observe`. However things have been changed after #30974

This PR proposes to handle `CollectMetrics` in the rule `ResolveAliases`.

### Why are the changes needed?

bug fix

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

updated test

Closes #32803 from cloud-fan/minor.

Authored-by: Wenchen Fan <wenchen@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
(cherry picked from commit a70e66e)
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
@HyukjinKwon
Copy link
Member

Merged to master.

@SparkQA
Copy link

SparkQA commented Jun 7, 2021

Test build #139411 has finished for PR 32803 at commit 64772f9.

  • 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.

5 participants