Skip to content

[SPARK-56243][SS] Throw detailed error on malformed Kafka record timestamps#55038

Open
kavpreetgrewal wants to merge 1 commit intoapache:masterfrom
kavpreetgrewal:SPARK-56243-timestamp-parsing
Open

[SPARK-56243][SS] Throw detailed error on malformed Kafka record timestamps#55038
kavpreetgrewal wants to merge 1 commit intoapache:masterfrom
kavpreetgrewal:SPARK-56243-timestamp-parsing

Conversation

@kavpreetgrewal
Copy link
Contributor

What changes were proposed in this pull request?

Throw a detailed KAFKA_MALFORMED_RECORD_TIMESTAMP message when a record has a malformed or incorrect precision timestamp.

Why are the changes needed?

Some users may use custom producers which set the timestamp to an incorrect precision level than what is expected by Kafka. Upon hitting this issue, they would get a generic arithmetic overflow error.

Does this PR introduce any user-facing change?

Yes, it introduces a new error message, however there is no other behavioral change.

How was this patch tested?

N/A

Was this patch authored or co-authored using generative AI tooling?

No.

Copy link

@mikelin1998 mikelin1998 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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