Skip to content

branch-2.1: [feat](hive) add catalog level partition cache property #50724 - #50762

Merged
yiguolei merged 1 commit into
branch-2.1from
auto-pick-50724-branch-2.1
May 9, 2025
Merged

branch-2.1: [feat](hive) add catalog level partition cache property #50724#50762
yiguolei merged 1 commit into
branch-2.1from
auto-pick-50724-branch-2.1

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Cherry-picked from #50724

### What problem does this PR solve?
Problem Summary:
Support enable or disable hive partition cache at Catalog level for hive
catalog.
Previously, if user want to disable the hive partition cache, they can
only set the
`max_hive_partition_table_cache_num=0` in fe.conf and restart FE.
And this config will effect all catalogs.
In this PR, I add a new catalog property `partition.cache.ttl-second`.
If set to 0, the hive partition cache will be disabled, so if new
partitioned is added,
Doris will read the new partition immediately.
@github-actions
github-actionsBot requested a review from yiguolei as a code ownerMay 9, 2025 09:07
@Thearas

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@Thearas

Copy link
Copy Markdown
Contributor

run buildall

@yiguolei
yiguolei merged commit 79056d4 into branch-2.1May 9, 2025
@github-actions
github-actionsBot deleted the auto-pick-50724-branch-2.1 branch May 9, 2025 14:01
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@Thearas@yiguolei@dataroaring@morningman