[ https://issues.apache.org/jira/browse/FLINK-22271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Flink Jira Bot updated FLINK-22271: ----------------------------------- Labels: auto-deprioritized-major (was: stale-major) Priority: Minor (was: Major) This issue was labeled "stale-major" 7 ago and has not received any updates so it is being deprioritized. If this ticket is actually Major, please raise the priority and ask a committer to assign you the issue or revive the public discussion. > FlinkSQL Read Hive(parquet file) field does not exist > ------------------------------------------------------ > > Key: FLINK-22271 > URL: https://issues.apache.org/jira/browse/FLINK-22271 > Project: Flink > Issue Type: New Feature > Components: Connectors / Hive > Affects Versions: 1.12.2 > Reporter: moran > Priority: Minor > Labels: auto-deprioritized-major > > Create a parquet table format student insert the data for each field is not > empty, FlinkSQL can query the table, if you add a field after query error. > 1.Step: > {code:sql} > CREATE TABLE tmp.student ( > name STRING, > age INT > ) > STORED AS PARQUET; > insert into table tmp.student values ("java", 12); > {code} > FlinkSQL can read the table at this point. > 2.Step: > {code:sql} > alter table tmp.student add columns(update_time timestamp); > {code} > Query error after adding field update_time. > error: > {code} > java.lang.IllegalArgumentException: update_time does not exist > at > org.apache.flink.hive.shaded.formats.parquet.ParquetVectorizedInputFormat.clipParquetSchema(ParquetVectorizedInputFormat.java:193) > at > org.apache.flink.hive.shaded.formats.parquet.ParquetVectorizedInputFormat.createReader(ParquetVectorizedInputFormat.java:120) > at > org.apache.flink.hive.shaded.formats.parquet.ParquetVectorizedInputFormat.createReader(ParquetVectorizedInputFormat.java:73) > at > org.apache.flink.connectors.hive.read.HiveBulkFormatAdapter.createReader(HiveBulkFormatAdapter.java:108) > at > org.apache.flink.connectors.hive.read.HiveBulkFormatAdapter.createReader(HiveBulkFormatAdapter.java:63) > at > org.apache.flink.connector.file.src.impl.FileSourceSplitReader.checkSplitOrStartNext(FileSourceSplitReader.java:112) > at > org.apache.flink.connector.file.src.impl.FileSourceSplitReader.fetch(FileSourceSplitReader.java:65) > at > org.apache.flink.connector.base.source.reader.fetcher.FetchTask.run(FetchTask.java:56) > at > org.apache.flink.connector.base.source.reader.fetcher.SplitFetcher.runOnce(SplitFetcher.java:138) > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)