miland-db commented on code in PR #53530:
URL: https://github.com/apache/spark/pull/53530#discussion_r2695112139
##########
sql/core/src/main/scala/org/apache/spark/sql/scripting/SqlScriptingExecutionContext.scala:
##########
@@ -115,7 +295,13 @@ class SqlScriptingExecutionFrame(
def enterScope(
label: String,
triggerToExceptionHandlerMap: TriggerToExceptionHandlerMap): Unit = {
- scopes.append(new SqlScriptingExecutionScope(label,
triggerToExceptionHandlerMap))
+ // Normalize label for case-insensitive lookups
+ val normalizedLabel = if (SQLConf.get.caseSensitiveAnalysis) {
+ label
+ } else {
+ label.toLowerCase(Locale.ROOT)
+ }
Review Comment:
IIRC, labels are case insensitive.
--
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]