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 2016/10/08 12:57:20 UTC

[jira] [Resolved] (SPARK-11356) Option to refresh information about parquet partitions

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

Hyukjin Kwon resolved SPARK-11356.
----------------------------------
    Resolution: Fixed

Please use structured streaming. If I misunderstood and you can't do this with that, please reopen.

> Option to refresh information about parquet partitions
> ------------------------------------------------------
>
>                 Key: SPARK-11356
>                 URL: https://issues.apache.org/jira/browse/SPARK-11356
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 1.5.1
>            Reporter: Maciej BryƄski
>
> I have two apps:
> 1) First one periodically append data to parquet (which creates new partition)
> 2) Second one executes query on data
> Right now I can't find any possibility to force Spark to make partition discovery. So every query is executed on the same data.
> I tried --conf spark.sql.parquet.cacheMetadata=false but without success.
> Is there any option to make this happen ?
> App 1 - periodically (eg. every hour)
> {code}
> df.write.partitionBy("day").mode("append").parquet("some_location")
> {code}
> App 2 - example
> {code}
> sqlContext.read.parquet("some_location").registerTempTable("t")
> sqlContext.sql("select * from t where day = 20151027").count()
> {code}



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