Skip to content

[SPARK-48048][CONNECT][SS] Added client side listener support for Scala#46287

Closed
bogao007 wants to merge 5 commits intoapache:masterfrom
bogao007:client-listener
Closed

[SPARK-48048][CONNECT][SS] Added client side listener support for Scala#46287
bogao007 wants to merge 5 commits intoapache:masterfrom
bogao007:client-listener

Conversation

@bogao007
Copy link
Contributor

What changes were proposed in this pull request?

Added client side Streaming Listener support for Scala

Why are the changes needed?

Support Streaming Listener on client side for Spark Connect which has better user experience (no breaking change compared to legacy mode) compared to previous server side listener.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Added unit test.

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

No.

Copy link
Contributor

@WweiL WweiL left a comment

Choose a reason for hiding this comment

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

Thanks! Left some comments

@bogao007 bogao007 changed the title [SPARK-48048] Added client side listener support for Scala [SPARK-48048][CONNECT] Added client side listener support for Scala May 1, 2024
Copy link
Contributor

@WweiL WweiL left a comment

Choose a reason for hiding this comment

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

LGTM

@bogao007 bogao007 changed the title [SPARK-48048][CONNECT] Added client side listener support for Scala [SPARK-48048][CONNECT][SS] Added client side listener support for Scala May 1, 2024
@HyukjinKwon
Copy link
Member

Merged to master.

dongjoon-hyun pushed a commit that referenced this pull request Dec 10, 2025
…rom `connect.StreamingQueryManager`

### What changes were proposed in this pull request?
#41752 introduced a `listenerCache` and related private methods (`cacheListenerById`, `getIdByListener`, and `removeCachedListener`) for `connect.StreamingQueryManager`. However, in #46287, the usage related to `listenerCache` was replaced by `streamingQueryListenerBus`. As a result, `listenerCache` and its associated private methods are no longer in use, and this current pr cleans them up.

### Why are the changes needed?
Code cleanup.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Pass Github Actions

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

Closes #53420 from LuciferYang/StreamingQueryManager.

Lead-authored-by: yangjie01 <yangjie01@baidu.com>
Co-authored-by: YangJie <yangjie01@baidu.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
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.

3 participants