rangadi commented on code in PR #41580:
URL: https://github.com/apache/spark/pull/41580#discussion_r1231324041


##########
connector/connect/server/src/main/scala/org/apache/spark/sql/connect/planner/SparkConnectPlanner.scala:
##########
@@ -788,6 +790,13 @@ class SparkConnectPlanner(val session: SparkSession) 
extends Logging {
       .logicalPlan
   }
 
+  private def transformCachedRemoteRelation(session: SparkSession, rel: 
proto.CachedRemoteRelation)
+  : LogicalPlan = {
+    SparkConnectService.cachedDataFrameManager
+      .get(session, rel.getRelationId)
+      .logicalPlan

Review Comment:
   I can add this to SessionHolder in this PR. How should I pass it in? 
   Passing it all long the call chain seems like forcing lower level details 
throughout. 
   Another option is to set it in RPC context. 
   Wdyt? 



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