You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2016/01/06 21:06:39 UTC

[jira] [Resolved] (SPARK-12679) Collect method return empty rows.

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

Sean Owen resolved SPARK-12679.
-------------------------------
    Resolution: Invalid

I can't make out what you're describing here. For example, the result is correct if there are no rows in the table.

> Collect method return empty rows.
> ---------------------------------
>
>                 Key: SPARK-12679
>                 URL: https://issues.apache.org/jira/browse/SPARK-12679
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.5.0
>            Reporter: Sasi
>
> Hi,
> I don't know where to put my fingre on that issue, on the connector or on Spark, but sometimes when I do SQL query I get empty rows.
> Example code:
>      rows = Arrays.asList(sparkCtx.sparkSql(“select * from tmpTable”).collect());
>       iterate Row row -> rows
> system-out(row.getString(0)) -----return null
> I tried to find open bugs on the collect method, without any luck.



--
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