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

Upgrade to Spark 3.3.0 #11

Merged
merged 2 commits into from
Jul 29, 2022
Merged

Upgrade to Spark 3.3.0 #11

merged 2 commits into from
Jul 29, 2022

Conversation

riley-harper
Copy link
Contributor

This pull request updates hlink from using pyspark 3.2.1 to pyspark 3.3.0.

None of the items in the migration guide made a big difference for us. The one breaking change that I found is that SparkSession._jwrapped was removed. This was a JVM SQLContext object which we were passing to the createAttachUDF() functions in Scala so that they could register the created UDFs. SQLContext has been deprecated and replaced with SparkSession, which satisfies the same interface. So I've changed the code to pass SparkSession._jsparkSession to Scala and adjusted the Scala argument types.

- SQLContext is deprecated, and SparkSession has replaced it while keeping the same interface. In Spark 3.3, the _jwrapped attribute of SparkSession will go away. So this commit changes to using _jsparkSession and having the Scala functions accept a SparkSession instead of a SQLContext.
@jacwellington jacwellington merged commit 3a09176 into main Jul 29, 2022
@jacwellington jacwellington deleted the spark_3.3 branch July 29, 2022 18:56
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.

2 participants