[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to