You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2016/03/09 05:15:40 UTC

[jira] [Created] (SPARK-13763) Remove Project when its projectList is Empty

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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org