geserdugarov opened a new pull request, #12731:
URL: https://github.com/apache/hudi/pull/12731
### Change Logs
Currently, the following queries execution by Flink:
```SQL
CREATE TABLE hudi_debug (
id INT,
part INT,
desc STRING,
PRIMARY KEY (id) NOT ENFORCED
)
WITH (
'connector' = 'hudi',
'path' = '...',
'table.type' = 'MERGE_ON_READ',
'write.operation' = 'upsert',
'hoodie.populate.meta.fields' = 'false'
);
INSERT INTO hudi_debug VALUES
(1,100,'aaa'),
(2,200,'bbb');
SELECT * FROM hudi_debug;
```
would result in
```text
org.apache.hudi.exception.HoodieException: Exception when reading log file
```
The reason is missed configuration of `hoodie.populate.meta.fields` during
table initialization by Flink.
With proposed changes
```SQL
SELECT * FROM hudi_debug
```
is successful.
### Impact
Fixed read by Flink of data without Hudi metacolumns.
### Risk level (write none, low medium or high below)
Low
### Documentation Update
No need
### Contributor's checklist
- [x] Read through [contributor's
guide](https://hudi.apache.org/contribute/how-to-contribute)
- [x] Change Logs and Impact were stated clearly
- [x] Adequate tests were added if applicable
- [ ] CI passed
--
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]