Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OperatorContext to WorkProcessorSourceOperatorFactory.create #17845

Merged

Conversation

lukasz-stec
Copy link
Member

Description

Since WorkProcessorSourceOperator is only used in the context of an operator, it seems feasible to pass OperatorContext to its factory.

Additional context and related issues

Release notes

(X ) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Jun 12, 2023
@lukasz-stec lukasz-stec requested review from martint and findepi June 12, 2023 10:13
@findepi findepi requested review from raunaqmorarka and sopel39 June 12, 2023 10:39
@@ -56,12 +55,12 @@
extends WorkProcessorSourceOperatorFactory
{
default WorkProcessorSourceOperator createAdapterOperator(
Session session,
OperatorContext operatorContext,
Copy link
Member

Choose a reason for hiding this comment

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

It would be better to introduce WorkProcessorOperatorContext

@sopel39 sopel39 merged commit c462372 into trinodb:master Jun 12, 2023
@github-actions github-actions bot added this to the 420 milestone Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants