You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "cloud-fan (via GitHub)" <gi...@apache.org> on 2024/06/24 09:13:45 UTC
Re: [PR] [SPARK-42495][CONNECT] Scala Client add Misc, String, and Date/Time functions [spark]
cloud-fan commented on code in PR #40089:
URL: https://github.com/apache/spark/pull/40089#discussion_r1650653513
##########
connector/connect/server/src/test/scala/org/apache/spark/sql/connect/ProtoToParsedPlanTestSuite.scala:
##########
@@ -115,7 +116,7 @@ class ProtoToParsedPlanTestSuite extends SparkFunSuite with SharedSparkSession {
val planner = new SparkConnectPlanner(spark)
val catalystPlan =
analyzer.executeAndCheck(planner.transformRelation(relation), new QueryPlanningTracker)
- val actual = normalizeExprIds(catalystPlan).treeString
+ val actual = normalizeExprIds(ReplaceExpressions(catalystPlan)).treeString
Review Comment:
@hvanhovell is there a specific reason to replace `RuntimeReplaceable` in the golden files? It makes the golden file a bit hard to read as there are quite some expressions that will be replaced with `StaticInvoke`/`Invoke` and you will see something like
```
Project [staticinvoke(class org.apache.spark.sql.catalyst.expressions.ExpressionImplUtils, BinaryType, aesEncrypt, cast(g#0 as binary), cast(g#0 as binary), g#0, DEFAULT, cast( as binary), cast( as binary), BinaryType, BinaryType, StringTypeAnyCollation, StringTypeAnyCollation, BinaryType, BinaryType, true, true, true) AS aes_encrypt(g, g, g, DEFAULT, , )#0]
```
--
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