Created
June 27, 2017 06:50
-
-
Save wusuopubupt/5541c9bed965f5f16eccf7953c6ebd7b to your computer and use it in GitHub Desktop.
get sql context by dataframe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyspark.sql import SQLContext | |
sqlContext = SQLContext.getOrCreate(t1.rdd.context) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment