-
Notifications
You must be signed in to change notification settings - Fork 28.7k
[SPARK-52188] Fix for StateDataSource where StreamExecution.RUN_ID_KEY is not set #50924
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
Changes from all commits
3119e18
51c2623
77ff1ac
e054c29
7f4c655
1f20a7e
039e71b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ import org.apache.spark.sql.SparkSession | |
import org.apache.spark.sql.catalyst.InternalRow | ||
import org.apache.spark.sql.catalyst.expressions.{GenericInternalRow, UnsafeProjection, UnsafeRow} | ||
import org.apache.spark.sql.catalyst.util.quietly | ||
import org.apache.spark.sql.execution.streaming.StatefulOperatorStateInfo | ||
import org.apache.spark.sql.execution.streaming.{StatefulOperatorStateInfo, StreamExecution} | ||
import org.apache.spark.sql.internal.SQLConf | ||
import org.apache.spark.sql.test.SharedSparkSession | ||
import org.apache.spark.sql.types._ | ||
|
@@ -2098,6 +2098,7 @@ class RocksDBStateStoreSuite extends StateStoreSuiteBase[RocksDBStateStoreProvid | |
useMultipleValuesPerKey: Boolean = false): RocksDBStateStoreProvider = { | ||
val provider = new RocksDBStateStoreProvider() | ||
val testStateSchemaProvider = new TestStateSchemaProvider | ||
conf.set(StreamExecution.RUN_ID_KEY, UUID.randomUUID().toString) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ericm-db - is it possible to also add a data source reader test ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because we no longer have the isTesting check and unconditionally assert that runId should not be null, those tests would just fail. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cool thanks |
||
provider.init( | ||
storeId, | ||
keySchema, | ||
|
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.
Oh this is redundant, nice finding.