[ https://issues.apache.org/jira/browse/SPARK-37098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun updated SPARK-37098: ---------------------------------- Fix Version/s: 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.1.3, 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org