srielau commented on code in PR #53047:
URL: https://github.com/apache/spark/pull/53047#discussion_r2525516809


##########
docs/sql-ref-identifier-clause.md:
##########
@@ -117,18 +145,18 @@ DECLARE mytab = 'tab1';
 -- Creation of a table using variable.
 CREATE TABLE IDENTIFIER(mytab)(c1 INT);
 
-DESCRIBE IDENTIFIER(mytab);
+EXECUTE IMMEDIATE 'DESCRIBE IDENTIFIER(:mytab)' USING mytab;

Review Comment:
   By going through execute immediate I insulate the session variable and turn 
it into literal on bind in.



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