Zouxxyy opened a new pull request, #8243:
URL: https://github.com/apache/hudi/pull/8243
### Change Logs
At present, `finalParameters` in
`HoodieCLIUtils.createHoodieClientFromPath` not contain table props.
This causes some problems, such as:
Run cluster should fail when using bucket index, but it does not, because it
didn't use `hoodie.index.type` in table props
```sql
drop table hudi_cow_test_tbl;
create table hudi_cow_test_tbl (
id bigint,
name string,
ts bigint,
dt string,
hh string
) using hudi
tblproperties (
type = 'cow',
primaryKey = 'id',
preCombineField = 'ts',
hoodie.index.type = 'BUCKET'
)partitioned by (dt, hh);
insert into hudi_cow_test_tbl values (1, 'a1', 1001, '2021-12-09', '10');
insert into hudi_cow_test_tbl values (2, 'a2', 1001, '2021-12-09', '10');
# this operation should fail, otherwise the table will become unavailable
call run_clustering(table => 'hudi_cow_test_tbl');
insert into hudi_cow_test_tbl values (3, 'a3', 1001, '2021-12-09', '10');
```
### Impact
Fix `finalParameters` in `HoodieCLIUtils.createHoodieClientFromPath`
### Risk level (write none, low medium or high below)
low
### Documentation Update
none
### Contributor's checklist
- [ ] Read through [contributor's
guide](https://hudi.apache.org/contribute/how-to-contribute)
- [ ] Change Logs and Impact were stated clearly
- [ ] 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]