Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-13694][SQL] QueryPlan.expressions should always include all expressions #11532

Closed
wants to merge 1 commit into from

Conversation

cloud-fan
Copy link
Contributor

What changes were proposed in this pull request?

It's weird that expressions don't always have all the expressions in it. This PR marks QueryPlan.expressions final to forbid sub classes overriding it to exclude some expressions. Currently only Generate override it, we can use producedAttributes to fix the unresolved attribute problem for it.

Note that this PR doesn't fix the problem in #11497

How was this patch tested?

existing tests.

@SparkQA
Copy link

SparkQA commented Mar 5, 2016

Test build #52500 has finished for PR 11532 at commit 5aa533b.

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

@marmbrus
Copy link
Contributor

marmbrus commented Mar 7, 2016

LGTM

@asfgit asfgit closed this in 4896411 Mar 7, 2016
roygao94 pushed a commit to roygao94/spark that referenced this pull request Mar 22, 2016
…pressions

## What changes were proposed in this pull request?

It's weird that expressions don't always have all the expressions in it. This PR marks `QueryPlan.expressions` final to forbid sub classes overriding it to exclude some expressions. Currently only `Generate` override it, we can use `producedAttributes` to fix the unresolved attribute problem for it.

Note that this PR doesn't fix the problem in apache#11497

## How was this patch tested?

existing tests.

Author: Wenchen Fan <wenchen@databricks.com>

Closes apache#11532 from cloud-fan/generate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants