panbingkun commented on code in PR #48630:
URL: https://github.com/apache/spark/pull/48630#discussion_r1814152093
##########
sql/connect/server/src/test/scala/org/apache/spark/sql/connect/ProtoToParsedPlanTestSuite.scala:
##########
@@ -259,4 +261,35 @@ class ProtoToParsedPlanTestSuite
writer.close()
}
}
+
+ protected def normalizeRelation(rel: proto.Relation): proto.Relation = {
+ rel.getRelTypeCase match {
+ case proto.Relation.RelTypeCase.READ =>
+
proto.Relation.newBuilder(rel).setRead(normalizeDataSource(rel.getRead)).build()
+ case _ => rel
+ }
+ }
+
Review Comment:
The following logic is referenced here:
https://github.com/apache/spark/blob/b72bf79f5a26f1a57527fbb083bd3c74d42169e8/sql/connect/server/src/main/scala/org/apache/spark/sql/connect/planner/SparkConnectPlanner.scala#L1366-L1377
--
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]