[ 
https://issues.apache.org/jira/browse/HUDI-6950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

xy updated HUDI-6950:
---------------------
    Description: 
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 count(1) 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'))

 

commit is 7c79ebee1ff1c9a0f5117252cb12fa2f03ac4b24 from master

  was:
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 count(1) 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'))


> query should process listed partitions avoid driver oom due to large number 
> files in table
> ------------------------------------------------------------------------------------------
>
>                 Key: HUDI-6950
>                 URL: https://issues.apache.org/jira/browse/HUDI-6950
>             Project: Apache Hudi
>          Issue Type: Bug
>          Components: spark-sql
>    Affects Versions: 0.14.0
>            Reporter: xy
>            Assignee: xy
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 0.14.1
>
>         Attachments: before_fix_dump_filestatus.jpg, dump.jpg, 
> dump_files.jpg, fix_stages.jpg, hang_then_oom.jpg, oom_before_sparkui.jpg, 
> oom_stages.jpg
>
>
> 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 count(1) 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'))
>  
> commit is 7c79ebee1ff1c9a0f5117252cb12fa2f03ac4b24 from master



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to