[ 
https://issues.apache.org/jira/browse/SPARK-2177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14036199#comment-14036199
 ] 

Yin Huai commented on SPARK-2177:
---------------------------------

I think we need a better way to handle the result of a native command. The 
current PR is just a workaround.

Also, if we upgrade Hive to 0.13, we need to check the results of 
context.sessionState.isHiveServerQuery() to determine how to split the result. 
This method is introduced by https://issues.apache.org/jira/browse/HIVE-4545.

> describe table result contains only one column
> ----------------------------------------------
>
>                 Key: SPARK-2177
>                 URL: https://issues.apache.org/jira/browse/SPARK-2177
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Reynold Xin
>            Assignee: Yin Huai
>
> {code}
> scala> hql("describe src").collect().foreach(println)
> [key                  string                  None                ]
> [value                string                  None                ]
> {code}
> The result should contain 3 columns instead of one. This screws up JDBC or 
> even the downstream consumer of the Scala/Java/Python APIs.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to