Xiao Li created SPARK-13763:
-------------------------------

             Summary: Remove Project when its projectList is Empty
                 Key: SPARK-13763
                 URL: https://issues.apache.org/jira/browse/SPARK-13763
             Project: Spark
          Issue Type: Improvement
          Components: SQL
            Reporter: Xiao Li


We are using 'SELECT 1' as a dummy table, when the table is used for SQL 
statements in which a table reference is required, but the contents of the 
table are not important. For example, 
{code}
SELECT pageid, adid FROM (SELECT 1) dummyTable LATERAL VIEW explode(adid_list) 
adTable AS adid;
{code}

In this case, we will see a useless Project whose projectList is empty after 
executing ColumnPruning rule. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to