Skip to content

Conversation

@zddr
Copy link
Contributor

@zddr zddr commented Dec 2, 2024

zddr added 3 commits December 2, 2024 11:48
…ad of partitionId (apache#44415)

The partition ID of external data sources is meaningless, and some data
sources only have partition names, so the return result of partition
pruning is replaced with name instead of ID
…44567)

### What problem does this PR solve?

Previously, external partition cropping only supported Hive. If you want
to support other types of tables, you need to understand the internal
processing logic of partition pruning.

This PR abstracts the logic of partition pruning, and other tables can
be implemented by simply covering a few methods of externalTable

### Release note

[opt](planner) Unified external partition prune interface
…resh and partition pruning (apache#44673)

- Add `MvccTable` to represent a table that supports querying specified
version data
- Add the `MvccSnapshot` interface to store snapshot information of mvcc
at a certain moment in time
- Add the `MvccSnapshot` parameter to the method of the
`MTMVRelatedTableIf `interface to retrieve data of a specified version
- Partition pruning related methods combined with the `MvccSnapshot`
parameter are used to obtain partition information for a specified
version
- Load the snapshot information of mvccTable at the beginning of the
query plan and store it in StatementContext

Unified external table interface supporting partition refresh and
partition pruning
@doris-robot
Copy link

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?

@zddr
Copy link
Contributor Author

zddr commented Dec 2, 2024

run buildall

@zddr
Copy link
Contributor Author

zddr commented Dec 2, 2024

run buildall

@zddr
Copy link
Contributor Author

zddr commented Dec 2, 2024

run external

@kaka11chen kaka11chen merged commit d8bed48 into apache:branch-3.0 Dec 2, 2024
11 checks passed
Sign up for free to 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.

3 participants