Skip to content

Conversation

@mengxr
Copy link
Contributor

@mengxr mengxr commented Apr 12, 2016

What changes were proposed in this pull request?

Use a random table name instead of __THIS__ in SQLTransformer, and add a test for transformSchema. The problems of using __THIS__ are:

  • It doesn't work under HiveContext (in Spark 1.6)
  • Race conditions

How was this patch tested?

  • Manual test with HiveContext.
  • Added a unit test for transformSchema to improve coverage.

cc: @yhuai

@yhuai
Copy link
Contributor

yhuai commented Apr 12, 2016

lgtm

@SparkQA
Copy link

SparkQA commented Apr 12, 2016

Test build #55624 has finished for PR 12330 at commit 8869132.

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

asfgit pushed a commit that referenced this pull request Apr 12, 2016
…ransformer

## What changes were proposed in this pull request?

Use a random table name instead of `__THIS__` in SQLTransformer, and add a test for `transformSchema`. The problems of using `__THIS__` are:

* It doesn't work under HiveContext (in Spark 1.6)
* Race conditions

## How was this patch tested?

* Manual test with HiveContext.
* Added a unit test for `transformSchema` to improve coverage.

cc: yhuai

Author: Xiangrui Meng <[email protected]>

Closes #12330 from mengxr/SPARK-14563.

(cherry picked from commit 1995c2e)
Signed-off-by: Xiangrui Meng <[email protected]>
@mengxr
Copy link
Contributor Author

mengxr commented Apr 12, 2016

Merged into master and branch-1.6.

@asfgit asfgit closed this in 1995c2e Apr 12, 2016
zzcclp pushed a commit to zzcclp/spark that referenced this pull request Apr 13, 2016
…ransformer

## What changes were proposed in this pull request?

Use a random table name instead of `__THIS__` in SQLTransformer, and add a test for `transformSchema`. The problems of using `__THIS__` are:

* It doesn't work under HiveContext (in Spark 1.6)
* Race conditions

## How was this patch tested?

* Manual test with HiveContext.
* Added a unit test for `transformSchema` to improve coverage.

cc: yhuai

Author: Xiangrui Meng <[email protected]>

Closes apache#12330 from mengxr/SPARK-14563.

(cherry picked from commit 1995c2e)
Signed-off-by: Xiangrui Meng <[email protected]>
(cherry picked from commit 2554c35)
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.

3 participants