You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kent Yao (Jira)" <ji...@apache.org> on 2021/10/26 03:15:00 UTC
[jira] [Updated] (SPARK-37098) Alter table properties should
invalidate cache
[ https://issues.apache.org/jira/browse/SPARK-37098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kent Yao updated SPARK-37098:
-----------------------------
Fix Version/s: (was: 3.1.3)
> Alter table properties should invalidate cache
> ----------------------------------------------
>
> Key: SPARK-37098
> URL: https://issues.apache.org/jira/browse/SPARK-37098
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.0.3, 3.1.2, 3.2.0, 3.3.0
> Reporter: XiDuo You
> Assignee: XiDuo You
> Priority: Major
> Fix For: 3.2.1, 3.3.0
>
>
> The table properties can change the behavior of wriing. e.g. the parquet table with `parquet.compression`.
> If you execute the following SQL, we will get the file with snappy compression rather than zstd.
> {code:java}
> CREATE TABLE t (c int) STORED AS PARQUET;
> // cache table metadata
> SELECT * FROM t;
> ALTER TABLE t SET TBLPROPERTIES('parquet.compression'='zstd');
> INSERT INTO TABLE t values(1);
> {code}
> So we should invalidate the table cache after alter table properties.
--
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