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


##########
sql/core/src/test/resources/sql-tests/results/execute-immediate.sql.out:
##########
@@ -0,0 +1,655 @@
+-- Automatically generated by SQLQueryTestSuite
+-- !query
+CREATE TEMPORARY VIEW tbl_view AS SELECT * FROM VALUES
+  (10, 'name1', named_struct('f1', 1, 's2', named_struct('f2', 101, 'f3', 
'a'))),
+  (20, 'name2', named_struct('f1', 2, 's2', named_struct('f2', 202, 'f3', 
'b'))),
+  (30, 'name3', named_struct('f1', 3, 's2', named_struct('f2', 303, 'f3', 
'c'))),
+  (40, 'name4', named_struct('f1', 4, 's2', named_struct('f2', 404, 'f3', 
'd'))),
+  (50, 'name5', named_struct('f1', 5, 's2', named_struct('f2', 505, 'f3', 
'e'))),
+  (60, 'name6', named_struct('f1', 6, 's2', named_struct('f2', 606, 'f3', 
'f'))),
+  (70, 'name7', named_struct('f1', 7, 's2', named_struct('f2', 707, 'f3', 
'g')))
+AS tbl_view(id, name, data)
+-- !query schema
+struct<>
+-- !query output
+
+
+
+-- !query
+CREATE TABLE x (id INT) USING csv
+-- !query schema
+struct<>
+-- !query output
+
+
+
+-- !query
+DECLARE sql_string STRING
+-- !query schema
+struct<>
+-- !query output
+
+
+
+-- !query
+SET VAR sql_string = 'SELECT * from tbl_view where name = \'name1\''
+-- !query schema
+struct<>
+-- !query output
+
+
+
+-- !query
+EXECUTE IMMEDIATE 'SET spark.sql.ansi.enabled=true'

Review Comment:
   @srielau can you review the tests?



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