-
Notifications
You must be signed in to change notification settings - Fork 4
Port CI/CD example #5
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
flink_table_api_python/examples/table/example_08_integration_and_deployment.py
Outdated
Show resolved
Hide resolved
flink_table_api_python/examples/table/example_08_integration_and_deployment.py
Outdated
Show resolved
Hide resolved
for row in results: | ||
count = row[0] | ||
if (count >= 200): | ||
print("200 elements reached. Stopping...") |
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.
you have to stop the count_result manually because this is not a try with resource.
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.
It is a try with resources, I believe. The:
with count_result.collect() as results:
plays the role
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.
btw, I tested and I see the statement stopped
print("200 elements reached. Stopping...") | ||
break | ||
|
||
# By using a closable iterator, the foreground statement will be stopped |
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.
# By using a closable iterator, the foreground statement will be stopped | |
# By using a closable iterator, the foreground statement will be stopped |
Does this apply to Python?
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.
Yes
No description provided.