srielau commented on code in PR #55647:
URL: https://github.com/apache/spark/pull/55647#discussion_r3182564424
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveFetchCursor.scala:
##########
@@ -64,7 +64,8 @@ class ResolveFetchCursor(val catalogManager: CatalogManager)
extends Rule[Logica
nameParts = u.nameParts
) match {
case Some(variable) => variable.copy(canFold = false)
- case _ => throw unresolvedVariableError(u.nameParts, Seq("SYSTEM",
"SESSION"))
+ case _ => throw unresolvedVariableError(
+ u.nameParts, variableResolution.searchPathEntriesForError,
u.origin)
Review Comment:
Done in 0259df9a49d. Added `PATH enabled: unqualified FETCH ... INTO follows
PATH` to `SetPathSuite` (alongside the existing `SET VAR` PATH test) -- enables
the cursor flag, declares a session variable, switches PATH off
`system.session`, runs a `BEGIN ... FETCH cur INTO path_fetch_target ... END`
block and asserts the bracketed-list `searchPath` rendering. Locks in the
bonus-item behavior for both SET VAR and FETCH ... INTO.
--
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]