MihawkZoro opened a new issue, #7040:
URL: https://github.com/apache/hudi/issues/7040
**Environment Description**
* Hudi version :
0.11.1
* Spark version :
3.2.2
* Hive version :
2.3.9
* Hadoop version :
2.7.3
* Storage
hdfs
**Describe the problem you faced**
I have a hudi table
```
create table ddl_test_t2 (
col1 string,
col2 string,
col3 string,
ts bigint
) using hudi
tblproperties (
type = 'mor',
primaryKey = 'col1',
preCombineField = 'ts'
);
```
I executed some DML and DDL for test about schema evolution
```
insert into ddl_test_t2
values('1','col2','col3',1),('2','col2','col3',2),('3','col2','col3',3);
ALTER TABLE ddl_test_t2 DROP COLUMN col3;
ALTER TABLE ddl_test_t2 RENAME COLUMN col2 to col3;
insert into ddl_test_t2 values('4','col2',4);
```
then I searched column col3 from table ddl_test_t2
```
select col3 from ddl_test_t2;
```
the result I expect is
```
col2
col2
col2
col2
```
the actual result was
```
col3
col3
col3
col2
```
<img width="1218" alt="image"
src="https://user-images.githubusercontent.com/32875366/197393752-8b690175-2c3c-4f0a-bef5-d6e604eca03a.png">
I want know what is the problem and if this is a bug
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]