xuzifu666 opened a new pull request, #9875:
URL: https://github.com/apache/hudi/pull/9875
### Change Logs
query should process listed partitions avoid driver oom due to large number
files in table
### Impact
currently if multiple partition table,would cause oom easy
eg:
CREATE TABLE `hudi_test`.`tmp_hudi_test_1` (
`id` string,
`name` string,
`dt` bigint,
`day` STRING COMMENT '日期分区',
`hour` INT COMMENT '小时分区'
)using hudi
OPTIONS ('hoodie.datasource.write.hive_style_partitioning' 'false',
'hoodie.datasource.meta.sync.enable' 'false',
'hoodie.datasource.hive_sync.enable' 'false')
tblproperties (
'primaryKey' = 'id',
'type' = 'mor',
'preCombineField'='dt',
'hoodie.index.type' = 'BUCKET',
'hoodie.bucket.index.hash.field' = 'id',
'hoodie.bucket.index.num.buckets'=512
)
PARTITIONED BY (`day`,`hour`);
select * from `hudi_test`.`tmp_hudi_test_1` where day='2023-10-17' would
list much filestatus to driver,and driver would oom(such as table with hundreds
billion records in a partition(day='2023-10-17'))
so submit the pr to fix it
### Risk level (write none, low medium or high below)
_If medium or high, explain what verification was done to mitigate the
risks._
### Documentation Update
_Describe any necessary documentation update if there is any new feature,
config, or user-facing change_
- _The config description must be updated if new configs are added or the
default value of the configs are changed_
- _Any new feature or user-facing change requires updating the Hudi website.
Please create a Jira ticket, attach the
ticket number here and follow the
[instruction](https://hudi.apache.org/contribute/developer-setup#website) to
make
changes to the website._
### 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]