You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "shrirangmhalgi (via GitHub)" <gi...@apache.org> on 2026/05/30 17:39:01 UTC
Re: [PR] [SPARK-57105][SQL] Fix `StringIndexOutOfBoundsException` in parameterized SQL scripts [spark]
shrirangmhalgi commented on PR #56145:
URL: https://github.com/apache/spark/pull/56145#issuecomment-4583578611
One question about the `SparkSqlParser` change: when `contextHasParams` is true, you pass `None` as sqlText to `withErrorHandling`, which means parse errors in parameterized scripts won't include the SQL text in error messages. Is this intentional to avoid showing the substituted (expanded) text with mismatched positions? If so, could the original (pre-substitution) text be passed instead, since `PositionMapper` could map error positions back? Or would that require more plumbing than it's worth for this fix?
--
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