Skip to content

[MINOR][DOCS] Fix invalid documentation for StreamingQueryManager Class #24547

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/structured-streaming-programming-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -2554,11 +2554,11 @@ spark.streams().awaitAnyTermination(); // block until any one of them terminat
{% highlight python %}
spark = ... # spark session
Copy link
Member

Choose a reason for hiding this comment

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

Honestly, I think we should make this as a self-contained example .. that's maybe the root cause that we have not-working examples. We can do it separately later.


spark.streams().active # get the list of currently active streaming queries
spark.streams.active # get the list of currently active streaming queries

spark.streams().get(id) # get a query object by its unique id
spark.streams.get(id) # get a query object by its unique id

spark.streams().awaitAnyTermination() # block until any one of them terminates
spark.streams.awaitAnyTermination() # block until any one of them terminates
{% endhighlight %}

</div>
Expand Down