-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-53656][SS] Refactor MemoryStream to use SparkSession instead of SQLContext #52402
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
base: master
Are you sure you want to change the base?
Conversation
...src/main/scala/org/apache/spark/sql/execution/streaming/sources/ContinuousMemoryStream.scala
Outdated
Show resolved
Hide resolved
...org/apache/spark/sql/execution/streaming/AsyncProgressTrackingMicroBatchExecutionSuite.scala
Outdated
Show resolved
Hide resolved
sql/pipelines/src/test/scala/org/apache/spark/sql/pipelines/graph/MaterializeTablesSuite.scala
Outdated
Show resolved
Hide resolved
|
||
test("three hop pipeline") { | ||
val session = spark | ||
implicit val sparkSession: SparkSession = spark |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where was the previous implicit SQLContext defined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like it was getting implicit sqlContext defined in SharedSparkSession.
cc @HeartSaVioR |
215f484
to
8dca5fc
Compare
@ganeshashree Have we checked the warn (build/log) message when we use SQLContext here? If we weren't providing the message to migrate easily, it might be beneficial to defer replacement of apply() and have intermediate migration step (deprecation of the existing methods and removal of them in Spark 5.0.0). |
@HeartSaVioR Thanks for reviewing. Currently, no warning appears in the build log when we use SQLContext. Creating two versions of |
… are defined as implicit variables
8dca5fc
to
7a8de69
Compare
What changes were proposed in this pull request?
Refactor MemoryStream to use SparkSession instead of SQLContext.
Why are the changes needed?
SQLContext is deprecated in newer versions of Spark.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Verified that the affected tests are passing successfully.
Was this patch authored or co-authored using generative AI tooling?
No