asaf400 opened a new pull request #24547: Fix invalid documentation for 
StreamingQueryManager Class
URL: https://github.com/apache/spark/pull/24547
 
 
   ## What changes were proposed in this pull request?
   
   When following the example for using `spark.streams().awaitAnyTermination()` 
a valid pyspark code will output the following error:
   
   ```Traceback (most recent call last):
     File "pyspark_app.py", line 182, in <module>
       spark.streams().awaitAnyTermination()
   TypeError: 'StreamingQueryManager' object is not callable```
   
   This changes the documentation line to properly call the method under the 
StreamingQueryManager Class
   
https://spark.apache.org/docs/latest/api/python/pyspark.sql.html#pyspark.sql.streaming.StreamingQueryManager
   
   ## How was this patch tested?
   
   After changing the syntax, error no longer occurs and pyspark application 
works
   
   This is only docs change 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to