Skip to content

Conversation

@WweiL
Copy link
Contributor

@WweiL WweiL commented Dec 12, 2023

What changes were proposed in this pull request?

Follow up on streaming query exception in Scala connect client.

  1. Change back API document, remove the "todo"s
  2. Add a new test for the streamingQueryManager's awaitAnyTermination API
  3. Slightly modified the constructor of StreamingQueryException by adding the queryDebugString, startOffset and endOffset to messageParameters, this enables us to reconstruct the exception with these fields in client side.

Why are the changes needed?

Necessary build ups for spark connect.

Does this PR introduce any user-facing change?

No

How was this patch tested?

New Unit test

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

No

@WweiL
Copy link
Contributor Author

WweiL commented Dec 12, 2023

@MaxGekk @HyukjinKwon Tagging people that I know who have context : )
Could you take a look when you have time? Thank you!

@HyukjinKwon
Copy link
Member

Looks good but I think it'd be great if this can be signed off by @MaxGekk

Copy link
Member

@MaxGekk MaxGekk left a comment

Choose a reason for hiding this comment

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

@WweiL Could you trigger GAs, please.

@WweiL
Copy link
Contributor Author

WweiL commented Dec 12, 2023

@WweiL WweiL requested a review from MaxGekk December 12, 2023 21:57
@WweiL
Copy link
Contributor Author

WweiL commented Dec 14, 2023

@MaxGekk Hi Max can I get another pass? Thank you!

Copy link
Contributor

@heyihong heyihong left a comment

Choose a reason for hiding this comment

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

LGTM with one minor comment

@HyukjinKwon
Copy link
Member

Merged to master.

Comment on lines +333 to +335
"queryDebugString" -> toDebugString(includeLogicalPlan = isInitialized),
"startOffset" -> committedOffsets.toOffsetSeq(sources, offsetSeqMetadata).toString,
"endOffset" -> availableOffsets.toOffsetSeq(sources, offsetSeqMetadata).toString
Copy link
Member

Choose a reason for hiding this comment

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

When you pass additional parameters, you should add placeholders for them in the error formats in error-conditions.json otherwise they are useless. Found them in the PR: #48026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants