You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Abhishek Anand <ab...@gmail.com> on 2015/11/19 20:18:57 UTC
External Table not getting updated from parquet files written by
spark streaming
Hi ,
I am using spark streaming to write the aggregated output as parquet files
to the hdfs using SaveMode.Append. I have an external table created like :
CREATE TABLE if not exists rolluptable
USING org.apache.spark.sql.parquet
OPTIONS (
path "hdfs:////"
);
I had an impression that in case of external table the queries should fetch
the data from newly parquet added files also. But, seems like the newly
written files are not being picked up.
Dropping and recreating the table every time works fine but not a solution.
Please suggest how can my table have the data from newer files also.
Thanks !!
Abhi
Re: External Table not getting updated from parquet files written by
spark streaming
Posted by Michael Armbrust <mi...@databricks.com>.
We cache metadata to speed up interactive querying.
try REFRESH TABLE <table>
On Thu, Nov 19, 2015 at 11:18 AM, Abhishek Anand <ab...@gmail.com>
wrote:
> Hi ,
>
> I am using spark streaming to write the aggregated output as parquet files
> to the hdfs using SaveMode.Append. I have an external table created like :
>
>
> CREATE TABLE if not exists rolluptable
> USING org.apache.spark.sql.parquet
> OPTIONS (
> path "hdfs:////"
> );
>
> I had an impression that in case of external table the queries should
> fetch the data from newly parquet added files also. But, seems like the
> newly written files are not being picked up.
>
> Dropping and recreating the table every time works fine but not a solution.
>
>
> Please suggest how can my table have the data from newer files also.
>
>
>
> Thanks !!
> Abhi
>
>