dusantism-db commented on PR #49445: URL: https://github.com/apache/spark/pull/49445#issuecomment-2643554156
> @dusantism-db we have the same problem in column resolution: is `x.x` a column `x` of table `x`, or an inner field `x` inside column `x`? The solution is to define priority: prefer the longest qualifier. Which means "column `x` of table `x`" is preferred. See https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/package.scala#L311-L313 > > For variables: if `x` is a label name, then `x.x` means variable `x` under label `x`. Otherwise (no such label found), it's field `x` within variable `x`. > > cc @srielau as well Thanks for the input, this actually is the way the current implementation behaves. -- 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-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org