You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "hvanhovell (via GitHub)" <gi...@apache.org> on 2023/02/17 12:09:09 UTC

[GitHub] [spark] hvanhovell commented on a diff in pull request #40063: [CONNECT] Eager Execution of DF.sql()

hvanhovell commented on code in PR #40063:
URL: https://github.com/apache/spark/pull/40063#discussion_r1109707851


##########
connector/connect/common/src/main/protobuf/spark/connect/base.proto:
##########
@@ -152,12 +152,19 @@ message ExecutePlanRequest {
 message ExecutePlanResponse {
   string client_id = 1;
 
-  ArrowBatch arrow_batch = 2;
+  oneof result_type {
+    ArrowBatch arrow_batch = 2;
+    RemoteDataFrame remote_data_frame = 5;

Review Comment:
   Instead of caching the dataframe, we could also return the results and put them in a client side local relation. The chance that folks are using the results of a sql command for further processing is very very small.
   
   BTW I do think that a remote dataframe is useful to have (it is very useful for use cases like input stabilization, dataframe sharing, ...) but I don't think we need it in this particular case.



-- 
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-unsubscribe@spark.apache.org

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


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