rdtr commented on issue #2249:
URL: 
https://github.com/apache/datafusion-ballista/issues/2249#issuecomment-7353548634

   I've been thinking about the same thing and would like to build a prototype, 
unless someone has already started. @phillipleblanc did the epic you mentioned 
get going?
   
   What I have in mind follows the layering above:
   
   - A translator from Spark Connect `Relation` / `Expression` to DataFusion 
`LogicalPlan` / `Expr` that does not depend on Ballista, so it could be shared 
with plain DataFusion.
   - A thin Spark Connect gRPC service on top, running against a local 
`SessionContext` or a Ballista cluster. For a first version it would go through 
the existing client (`SessionContext::remote_with_state`), since Spark Connect 
returns the Arrow batches inline. If it should live in this repo, the seam 
#2416 added for the Flight SQL frontend (`QueryBackend`) looks like the place 
to hook in, with the frontend fetching the partitions itself.
   - Spark functions from datafusion-spark, registered on the scheduler and 
executors through the existing override hooks rather than built into Ballista, 
given #2566.
   
   The first milestone would be `spark.sql(...).collect()` and `df.show()` from 
a PySpark 4.2 Connect client, then the basic DataFrame relations (range, 
parquet read, project, filter, aggregate, sort, limit, join).
   
   Would you prefer this as a crate in this repo next to `flight-sql`, or 
should I start it outside and come back with a proposal once it works?


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to