Skip to content

Conversation

@holdenk
Copy link
Contributor

@holdenk holdenk commented Jul 29, 2016

What changes were proposed in this pull request?

Change to non-deprecated constructor for SQLContext.

How was this patch tested?

Existing tests

// We create a new context here to avoid order dependence with other tests that might call
// clear().
val newContext = new SQLContext(sparkContext)
val newContext = new SQLContext(SparkSession.builder().sparkContext(sc).getOrCreate())
Copy link
Member

Choose a reason for hiding this comment

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

sc has to be sparkContext here, no? we're about to find out from Jenkins

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops thought this built locally but I guess I was on the wrong branch.

@srowen
Copy link
Member

srowen commented Jul 29, 2016

Jenkins test this please

@SparkQA
Copy link

SparkQA commented Jul 29, 2016

Test build #63017 has finished for PR 14406 at commit f6771fa.

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

@SparkQA
Copy link

SparkQA commented Jul 31, 2016

Test build #63049 has finished for PR 14406 at commit 9858d99.

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

@srowen
Copy link
Member

srowen commented Jul 31, 2016

OK that looks reasonable

@srowen
Copy link
Member

srowen commented Aug 1, 2016

Merged to master/2.0

asfgit pushed a commit that referenced this pull request Aug 1, 2016
## What changes were proposed in this pull request?

Change to non-deprecated constructor for SQLContext.

## How was this patch tested?

Existing tests

Author: Holden Karau <[email protected]>

Closes #14406 from holdenk/SPARK-16778-fix-use-of-deprecated-SQLContext-constructor.

(cherry picked from commit 1e9b59b)
Signed-off-by: Sean Owen <[email protected]>
@asfgit asfgit closed this in 1e9b59b Aug 1, 2016
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