WweiL commented on PR #46886:
URL: https://github.com/apache/spark/pull/46886#issuecomment-2153441862

   That three fields are just constructed using other existing info: 
https://github.com/apache/spark/blob/0bc2c69d3646b77e5e5e038a9828a1937a419f26/sql/core/src/main/scala/org/apache/spark/sql/streaming/progress.scala#L145-L152
   
   There is no absolute reason we also send them from the server. 
   
   I can just force the client to reconstruct these fields as in the scala 
definition.
   
   But there is always this API difference, in python, the return type of 
`lastProgress` is Dict, but in scala it's the actual `StreamingQueryProgress` 
object:
   
https://github.com/apache/spark/blob/1a5d22aa2ffe769435be4aa6102ef961c55b9593/sql/core/src/main/scala/org/apache/spark/sql/streaming/StreamingQuery.scala#L94-L101
   
   I feel that we could let the python client also return that 
'StreamingQueryProgress' object, what do you guys think? 
   @LuciferYang @HyukjinKwon   @HeartSaVioR 
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to