You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Refactor the configuration for bloom filters #2464
I am not an expert of this feature and maybe we can improve the writing performance but generating bloom filters will have performance impact. It is up to the user to decide if this impact worth for the potential benefit at read time. That's why it is highly suggested to specify which exact columns are the bloom filters required for and also to specify the other parameters for bloom filter.
Junjie Chen / @chenjunjiedada:
I think what @wangyum concern is we enable all columns' bloom filter when parquet.bloom.filter.enabled is set to true. That behaviour is a bit odd consider if we have a table with a heap of columns. We could change to use parquet.bloom.filter.enabled#column.path to enable the bloom filter for the specific column after setting parquet.bloom.filter.enabled.
Gabor Szadovszky / @gszadovszky:
Oh, I got it, thanks @chenjunjiedada. I've felt it was more logical this way. The "major" configuration is for all columns and the "column specific" one is to configure otherwise. Since the "major" one is false by default you only need to enable the bloom filters for the columns one-by-one. You don't even need to set parquet.bloom.filter.enabled but the columns specific ones only. We've tried to describe this in the README.
Gabor Szadovszky / @gszadovszky: @wangyum, sorry but I don't get what the problem is here. Could you please describe your problem in more details? (If you think it is really a bug then please create a separate jira?)
Activity
asfimport commentedon Jan 30, 2021
Yuming Wang / @wangyum:
It seems that the previous configuration is better, enabling bloom filter seriously affects the writing performance:
asfimport commentedon Feb 1, 2021
Gabor Szadovszky / @gszadovszky:
@wangyum, I think this performance issue is not related to this jira but the whole bloom filter feature (PARQUET-41). If you turn on the writing of the bloom filters for all the columns it will impact writing performance. (You may check the related configuration parameters at https://github.com/apache/parquet-mr/tree/master/parquet-hadoop for details.)
I am not an expert of this feature and maybe we can improve the writing performance but generating bloom filters will have performance impact. It is up to the user to decide if this impact worth for the potential benefit at read time. That's why it is highly suggested to specify which exact columns are the bloom filters required for and also to specify the other parameters for bloom filter.
@chenjunjiedada, any comments on this?
asfimport commentedon Feb 1, 2021
Junjie Chen / @chenjunjiedada:
I think what @wangyum concern is we enable all columns' bloom filter when
parquet.bloom.filter.enabledis set to true. That behaviour is a bit odd consider if we have a table with a heap of columns. We could change to useparquet.bloom.filter.enabled#column.pathto enable the bloom filter for the specific column after settingparquet.bloom.filter.enabled.asfimport commentedon Feb 1, 2021
Gabor Szadovszky / @gszadovszky:
Oh, I got it, thanks @chenjunjiedada. I've felt it was more logical this way. The "major" configuration is for all columns and the "column specific" one is to configure otherwise. Since the "major" one is false by default you only need to enable the bloom filters for the columns one-by-one. You don't even need to set
parquet.bloom.filter.enabledbut the columns specific ones only. We've tried to describe this in the README.asfimport commentedon Feb 1, 2021
Yuming Wang / @wangyum:
Thank you @gszadovszky @chenjunjiedada This is what I want:
Benchmark and benchmark result:
cc @dongjoon-hyun
asfimport commentedon Feb 3, 2021
Gabor Szadovszky / @gszadovszky:
@wangyum, sorry but I don't get what the problem is here. Could you please describe your problem in more details? (If you think it is really a bug then please create a separate jira?)
asfimport commentedon Feb 3, 2021
Yuming Wang / @wangyum:
Thank you @gszadovszky No issue for now.