Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/17067#discussion_r103849231
--- Diff:
sql/core/src/test/resources/sql-tests/inputs/columnresolution-views.sql ---
@@ -0,0 +1,25 @@
+-- Tests for qualified column names for the view code-path
+-- Test scenario with Temporary view
+CREATE OR REPLACE TEMPORARY VIEW table1 AS SELECT 2 AS i1;
+SELECT table1.* FROM table1;
+SELECT * FROM table1;
+SELECT table1.i1 FROM table1;
+SELECT i1 FROM table1;
+SELECT a.i1 FROM table1 AS a;
+SELECT i1 FROM table1 AS a;
+-- cleanup
+DROP VIEW table1;
+
+-- Test scenario with Global Temp view
+CREATE OR REPLACE GLOBAL TEMPORARY VIEW t1 as SELECT 1 as i1;
--- End diff --
`t1` -> `view1`
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]