Skip to content

[SPARK-13974][SQL] sub-query names do not need to be globally unique while generate SQL#11783

Closed
cloud-fan wants to merge 1 commit into
apache:masterfrom
cloud-fan:tmp
Closed

[SPARK-13974][SQL] sub-query names do not need to be globally unique while generate SQL#11783
cloud-fan wants to merge 1 commit into
apache:masterfrom
cloud-fan:tmp

Conversation

@cloud-fan

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

We only need to make sub-query names unique every time we generate a SQL string, but not all the time. This PR moves the newSubqueryName method to class SQLBuilder and remove object SQLBuilder.

also addressed 2 minor comments in #11696

How was this patch tested?

existing tests.

@cloud-fan

Copy link
Copy Markdown
Contributor Author

cc @liancheng @yhuai

@liancheng

Copy link
Copy Markdown
Contributor

LGTM

@SparkQA

SparkQA commented Mar 17, 2016

Copy link
Copy Markdown

Test build #53430 has finished for PR 11783 at commit e4edc0e.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@yhuai

yhuai commented Mar 17, 2016

Copy link
Copy Markdown
Contributor

test this please

@SparkQA

SparkQA commented Mar 17, 2016

Copy link
Copy Markdown

Test build #53436 has finished for PR 11783 at commit e4edc0e.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds no public classes.

@yhuai

yhuai commented Mar 17, 2016

Copy link
Copy Markdown
Contributor

test this please

@SparkQA

SparkQA commented Mar 17, 2016

Copy link
Copy Markdown

Test build #53448 has finished for PR 11783 at commit e4edc0e.

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

@cloud-fan

Copy link
Copy Markdown
Contributor Author

merging to master!

@asfgit asfgit closed this in 453455c Mar 18, 2016
roygao94 pushed a commit to roygao94/spark that referenced this pull request Mar 22, 2016
…while generate SQL

## What changes were proposed in this pull request?

We only need to make sub-query names unique every time we generate a SQL string, but not all the time. This PR moves the `newSubqueryName` method to `class SQLBuilder` and remove `object SQLBuilder`.

also addressed 2 minor comments in apache#11696

## How was this patch tested?

existing tests.

Author: Wenchen Fan <wenchen@databricks.com>

Closes apache#11783 from cloud-fan/tmp.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants