cloud-fan commented on code in PR #52334:
URL: https://github.com/apache/spark/pull/52334#discussion_r2433588444


##########
sql/api/src/main/scala/org/apache/spark/sql/catalyst/util/SparkParserUtils.scala:
##########
@@ -217,14 +225,36 @@ trait SparkParserUtils {
       objectName: Option[String]): Origin = {
     val startOpt = Option(startToken)
     val stopOpt = Option(stopToken)
+
+    // Get the current origin to check for position mapper
+    val currentOrigin = CurrentOrigin.get
+
+    // Don't map positions yet - store them as-is along with the mapper
+    // Position mapping will be applied when creating query context for errors
+    val (startIndex, stopIndex, text, mapper) =

Review Comment:
   `startIndex` and `stopIndex` are the same between these two branches, we 
don't need to put them here, but just `val (text, mapper) =`



-- 
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]

Reply via email to