-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-28549][python] Support DataStream PythonProcessOperator in Thread Mode #20276
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
Conversation
| actual.sort() | ||
| self.assertEqual(expected, actual) | ||
|
|
||
| def test_basic_operations(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we refactor the test cases a bit and move test cases to be executed in both process mode and thread mode in one class?
| return ((SimpleOperatorFactory<?>) streamOperatorFactory).getOperator() | ||
| instanceof AbstractDataStreamPythonFunctionOperator; | ||
| instanceof AbstractExternalDataStreamPythonFunctionOperator | ||
| || ((SimpleOperatorFactory<?>) streamOperatorFactory).getOperator() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instance of DataStreamPythonFunctionOperator
| if (PythonConfigUtil.isPythonDataStreamOperator(upTransform)) { | ||
| final AbstractDataStreamPythonFunctionOperator<?> upOperator = | ||
| (AbstractDataStreamPythonFunctionOperator<?>) | ||
| final AbstractExternalDataStreamPythonFunctionOperator<?> upOperator = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DataStreamPythonFunctionOperator?
…ead Mode This closes apache#20276.
What is the purpose of the change
This pull request will support DataStream PythonProcessOperator in Thread Mode
Brief change log
EmbeddedPythonProcessOperatorVerifying this change
This change added tests and can be verified as follows:
EmbeddedDataStreamTestsintest_data_stream.pyDoes this pull request potentially affect one of the following parts:
@Public(Evolving): (no)Documentation