cloud-fan commented on code in PR #37994:
URL: https://github.com/apache/spark/pull/37994#discussion_r988618331
##########
connect/src/main/scala/org/apache/spark/sql/connect/planner/SparkConnectPlanner.scala:
##########
@@ -109,8 +120,12 @@ class SparkConnectPlanner(plan: proto.Relation, session:
SparkSession) {
}
}
- private def transformUnresolvedExpression(exp: proto.Expression):
UnresolvedAttribute = {
- UnresolvedAttribute(exp.getUnresolvedAttribute.getPartsList.asScala.toSeq)
+ private def transformUnresolvedExpression(exp: proto.Expression): Expression
= {
+ if (exp.getUnresolvedAttribute.getPartsCount == 1) {
+ Literal.create(exp.getUnresolvedAttribute.getParts(0), StringType)
Review Comment:
We can clean up this part later. This special case for string literal is
very weird.
--
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]