[SPARK-55731][Streaming] Assign error class for multiple event time columns#55745
Open
XdithyX wants to merge 1 commit intoapache:masterfrom
Open
[SPARK-55731][Streaming] Assign error class for multiple event time columns#55745XdithyX wants to merge 1 commit intoapache:masterfrom
XdithyX wants to merge 1 commit intoapache:masterfrom
Conversation
Contributor
Author
|
Hi @HeartSaVioR Can you please have a look? Thanks! |
Contributor
Author
|
Hi @cloud-fan Can you please have a look? CI is now green. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR replaces
_LEGACY_ERROR_TEMP_3077with a proper error class,MULTIPLE_EVENT_TIME_COLUMNS(SPARK-55731).The error is thrown when a stateful streaming operator receives an input DataFrame with more than one distinct event-time column while multiple event-time columns are not allowed.
This PR:
MULTIPLE_EVENT_TIME_COLUMNStoerror-conditions.json42K09, matching nearby event-time analysis errorsWatermarkSupportEventTimeWatermarkSuitetest to verify the new error conditionWhy are the changes needed?
_LEGACY_ERROR_TEMP_3077is a temporary legacy error class and should be replaced with a stable, descriptive error class.The query behavior is already correct. This change improves the structured error reporting by assigning a real error condition for the multiple event-time columns case.
Does this PR introduce any user-facing change?
Yes.
For this error case, the error condition changes from
_LEGACY_ERROR_TEMP_3077toMULTIPLE_EVENT_TIME_COLUMNS.The error message remains the same, and the query behavior is unchanged. The error now also has SQLSTATE
42K09.How was this patch tested?
Tested by running
build/sbt 'sql / Test / testOnly org.apache.spark.sql.streaming.EventTimeWatermarkSuite -- -z "multiple event time columns in an input DataFrame for stateful operator is not allowed"'Was this patch authored or co-authored using generative AI tooling?
Yes.