Github user zsxwing commented on a diff in the pull request:

    https://github.com/apache/spark/pull/16294#discussion_r93716901
  
    --- Diff: docs/structured-streaming-programming-guide.md ---
    @@ -1245,15 +1492,14 @@ spark.streams.addListener(new 
StreamingQueryListener() {
     SparkSession spark = ...
     
     spark.streams.addListener(new StreamingQueryListener() {
    -
         @Overrides void onQueryStarted(QueryStartedEvent queryStarted) {
    -        System.out.println("Query started: " + 
queryTerminated.queryStatus.name);
    +        System.out.println("Query started: " + queryTerminated.id);
         }
         @Overrides void onQueryTerminated(QueryTerminatedEvent 
queryTerminated) {
    -        System.out.println("Query terminated: " + 
queryTerminated.queryStatus.name);
    +        System.out.println("Query terminated: " + queryTerminated.id);
         }
         @Overrides void onQueryProgress(QueryProgressEvent queryProgress) {
    -        System.out.println("Query made progress: " + 
queryProgress.queryStatus);
    +        System.out.println("Query made progress: " + 
queryProgress.progress);
    --- End diff --
    
    nit: `queryProgress.progress()`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to