You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2019/10/08 05:42:22 UTC

[jira] [Resolved] (SPARK-23664) Add interface to collect query result through file iterator

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

Hyukjin Kwon resolved SPARK-23664.
----------------------------------
    Resolution: Incomplete

> Add interface to collect query result through file iterator
> -----------------------------------------------------------
>
>                 Key: SPARK-23664
>                 URL: https://issues.apache.org/jira/browse/SPARK-23664
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.1.1, 2.3.0
>            Reporter: zhoukang
>            Priority: Major
>              Labels: bulk-closed
>
> Currently, we use spark sql through jdbc.
> Result may cost much memory since we collect result and cached in memory for performance consideration.
> However,we can also add an API to collect result through file iterator(like parquet file iterator),we can avoid OOM of thriftserver for big query.
> Like below:
> {code:java}
> result.toLocalIteratorThroughFile.asScala
> {code}
> I will work on this if make sense!
> And in our internal cluster we have used this API for about a year.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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