Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kv] Partition table support PrefixLookup #317

Merged
merged 2 commits into from
Jan 26, 2025

Conversation

swuferhong
Copy link
Collaborator

Purpose

Linked issue: #266

This pr is aims to make partition table support PrefixLookup.

Tests

API and Format

Documentation

@swuferhong swuferhong force-pushed the prefix-support-partition-yable branch from 7e9df81 to b286d5a Compare January 9, 2025 07:24
@swuferhong swuferhong linked an issue Jan 9, 2025 that may be closed by this pull request
2 tasks
@swuferhong swuferhong requested review from wuchong and luoyuxia January 9, 2025 07:39
@swuferhong
Copy link
Collaborator Author

@loserwang1024 @luoyuxia @loserwang1024 pr ready: Partition table support PrefixLookup.

@wuchong
Copy link
Member

wuchong commented Jan 17, 2025

Besides, add connector IT case in FlinkTableSourceITCase

@swuferhong swuferhong force-pushed the prefix-support-partition-yable branch from b286d5a to be9ec89 Compare January 20, 2025 07:04
@swuferhong
Copy link
Collaborator Author

Besides, add connector IT case in FlinkTableSourceITCase

Added.

@swuferhong
Copy link
Collaborator Author

@wuchong comments addressed. PTAL

@swuferhong swuferhong force-pushed the prefix-support-partition-yable branch 2 times, most recently from 64202e7 to 86e1285 Compare January 20, 2025 11:48
@swuferhong
Copy link
Collaborator Author

@wuchong comments addressed. I also refactor the lookup interface for making the logic of creating encoder for primary key, bucket key, and partition key more clearer.

@wuchong
Copy link
Member

wuchong commented Jan 25, 2025

@swuferhong , I appended a commit to fix the comments and improved the code. Please take a look.

wuchong added a commit to swuferhong/fluss that referenced this pull request Jan 25, 2025
…libaba#317)

This also makes Lookuper and PrefixLookuper to initialize and validate for themselves. This makes logic much clean, and avoid mis-reuse for some variables (e.g., lakeTableBucketAssigner).

This also introduced a UnifiedLookuper in Flink connector to unify the different API of Lookuper and PrefixLookup. This makes the logic of AsyncLookupFunction and LookupFunction simpler.
@wuchong wuchong force-pushed the prefix-support-partition-yable branch from 86e1285 to f3a2f91 Compare January 25, 2025 08:52
…libaba#317)

This also makes Lookuper and PrefixLookuper to initialize and validate for themselves. This makes logic much clean, and avoid mis-reuse for some variables (e.g., lakeTableBucketAssigner).

This also introduced a UnifiedLookuper in Flink connector to unify the different API of Lookuper and PrefixLookup. This makes the logic of AsyncLookupFunction and LookupFunction simpler.
@wuchong wuchong force-pushed the prefix-support-partition-yable branch from f3a2f91 to 6298eb6 Compare January 25, 2025 10:26
@swuferhong
Copy link
Collaborator Author

swuferhong commented Jan 25, 2025

LGTM +1, I think it can be merged. @wuchong

@wuchong wuchong merged commit 55d6e98 into alibaba:main Jan 26, 2025
2 checks passed
wuchong pushed a commit that referenced this pull request Jan 26, 2025
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.

[Feature] Partition table support PrefixLookup
2 participants