zhengruifeng commented on code in PR #42828:
URL: https://github.com/apache/spark/pull/42828#discussion_r1318133426
##########
connector/connect/server/src/main/scala/org/apache/spark/sql/connect/planner/SparkConnectPlanner.scala:
##########
@@ -1397,6 +1399,16 @@ class SparkConnectPlanner(val sessionHolder:
SessionHolder) extends Logging {
expr
}
+ private def transformGetColumnByOrdinal(
+ attr: proto.Expression.GetColumnByOrdinal): GetColumnByOrdinal = {
+ // always set dataType field null, since it is not used in Analyzer
+ val expr = GetColumnByOrdinal(attr.getOrdinal, null)
Review Comment:
also cc @cloud-fan for the usage of `GetColumnByOrdinal`
--
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]