Use vertices SparkSession by Nassizouz · Pull Request #474 · graphframes/graphframes · GitHub
Skip to content

Use vertices SparkSession#474

Merged
rjurney merged 2 commits intographframes:masterfrom
Nassizouz:patch-1
Jan 17, 2025
Merged

Use vertices SparkSession#474
rjurney merged 2 commits intographframes:masterfrom
Nassizouz:patch-1

Conversation

@Nassizouz
Copy link
Copy Markdown
Contributor

The previous version of the GraphFrame class used the vertices SQLContext, when the code was changed to use SparkSession the thread's session was taken, this change can break old working code if the GraphFrame is initialized in a thread that didn't initialized a spark session.
This PR uses the vertices SparkSession so it will work regardless to whether a spark session was initialized on the current thread

* Use vertices `SparkSession` instead of the thread's
@rjurney
Copy link
Copy Markdown
Collaborator

rjurney commented Jan 2, 2025

@Nassizouz
Copy link
Copy Markdown
Contributor Author

@rjurney Added a simple unittest

@rjurney
Copy link
Copy Markdown
Collaborator

rjurney commented Jan 17, 2025

@rjurney rjurney merged commit 630f617 into graphframes:master Jan 17, 2025
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