[
https://issues.apache.org/jira/browse/SPARK-59965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated SPARK-59965:
-----------------------------------
Labels: pull-request-available (was: )
> Classify invalid Kafka batch offsets as structured errors
> -----------------------------------------------------------
>
> Key: SPARK-59965
> URL: https://issues.apache.org/jira/browse/SPARK-59965
> Project: Spark
> Issue Type: Improvement
> Components: Structured Streaming
> Affects Versions: 4.1.3
> Reporter: Zifei Feng
> Priority: Minor
> Labels: pull-request-available
>
> Kafka batch queries currently throw plain IllegalArgumentException for the
> following invalid offset
> configurations:
> - startingOffsets=latest
> - endingOffsets=earliest
> - Equivalent topic-level and partition-level offset specifications
> These exceptions do not provide a structured Spark error condition or
> SQLSTATE.
> Replace them with the existing KafkaIllegalArgumentException and introduce
> KAFKA_INVALID_BATCH_OFFSET with
> SQLSTATE 22023 (invalid_parameter_value). Preserve the existing user-facing
> messages.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]