[ 
https://issues.apache.org/jira/browse/SPARK-15215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Herman van Hovell resolved SPARK-15215.
---------------------------------------
          Resolution: Resolved
            Assignee: Xiao Li
    Target Version/s: 2.0.0

> Fix Explain Parsing and Output
> ------------------------------
>
>                 Key: SPARK-15215
>                 URL: https://issues.apache.org/jira/browse/SPARK-15215
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Xiao Li
>            Assignee: Xiao Li
>
> This PR is to address a few existing issues in Explain:
> - The `Explain` options `LOGICAL | FORMATTED | EXTENDED | CODEGEN` should not 
> be 0 or more match. It should 0 or one match.
> - The option `LOGICAL` is not supported
> - The output of `Explain` contains a weird empty line when the output of 
> analyzed plan is empty. For example:
> {noformat}
>   == Parsed Logical Plan ==
>   CreateTable 
> CatalogTable(`t`,CatalogTableType(MANAGED),CatalogStorageFormat(None,Some(org.apache.hadoop.mapred.TextInputFormat),Some(org.apache.hadoop.hive.ql.io.
>   
> HiveIgnoreKeyTextOutputFormat),None,false,Map()),List(CatalogColumn(col,int,true,None)),List(),List(),List(),-1,,1462725171656,-1,Map(),None,None,None),
>  false
>   
>   == Analyzed Logical Plan ==
>   
>   CreateTable 
> CatalogTable(`t`,CatalogTableType(MANAGED),CatalogStorageFormat(None,Some(org.apache.hadoop.mapred.TextInputFormat),Some(org.apache.hadoop.hive.ql.io.
>   
> HiveIgnoreKeyTextOutputFormat),None,false,Map()),List(CatalogColumn(col,int,true,None)),List(),List(),List(),-1,,1462725171656,-1,Map(),None,None,None),
>  false
>   
>   == Optimized Logical Plan ==
>   CreateTable 
> CatalogTable(`t`,CatalogTableType(MANAGED),CatalogStorageFormat(None,Some(org.apache.hadoop.mapred.TextInputFormat),Some(org.apache.hadoop.hive.ql.io.
>   
> HiveIgnoreKeyTextOutputFormat),None,false,Map()),List(CatalogColumn(col,int,true,None)),List(),List(),List(),-1,,1462725171656,-1,Map(),None,None,None),
>  false
>   ...
> {noformat}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to