-
Notifications
You must be signed in to change notification settings - Fork 31
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
[FLINK-33208] Support the writable metadata timestamp #24
Conversation
@ferenc-csaky can you also help with this one? I'll also ping you on some of the other HBase PRs 😅 |
@MartijnVisser Thanks for all the reviewer request, @ferenc-csaky you can review when you are free, I'll always keep an eye on all my PRs until it finish, thank you master! |
06f741a
to
3e9c4c9
Compare
ae06346
to
fed3c91
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think handling WritableMetadata
as an enum
makes interactions with the class kinf of hard to read.
I also wondered about is it make sense to handle interactions with WritableMetadata
as it has multiple different metadata, while we only have TIMESTAMP
for now? I would introduce those changes when there are other metadata type(s), cause if we do not add any, we have unnecessary complexity.
I opened a PR to your fork where I created a TimestampMetadata
class and simplified interactions, did some refactor to eliminate duplications.
PTAL
fed3c91
to
53e6ded
Compare
I didn't think much of it at first, I just followed the WritableMetadata design of flink-connector-kafka.. Because I think it's best to be consistent with these kinds of implementations. But I rethink about it, for now the connectors have split into two different projects, and your refactor is better IMO, so +1 for your suggestion.
Yes, there also FLINK-30460 should also be supported IMO. After this PR merged, I'll support it ASAP. I cherry-pick your PR and do a little bit of optimization, PTAL. And one more question, i want to keep your changes, but i want to squash all the commit in one too (maybe it can good for maintainer merge my PR), any suggestion? Seems git can not keep one commit two authors. |
53e6ded
to
720cc42
Compare
Feel free to squash the commit, if you put a co author line to the end of the commit msg that is perfect:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, LGTM!
Co-authored-by: Ferenc Csaky <[email protected]>
720cc42
to
8542150
Compare
Nice! I got it. |
Co-authored-by: Tan-JiaLiang <[email protected]> Co-authored-by: Ferenc Csaky <[email protected]> (cherry picked from commit ce15c1b)
What is the purpose of the change
Currently, the hbase sink does not support write data with
timestamp
, which may cause the data to be written out of order. I suggest to support the timestamp writable metadata for hbase connector so that we can set thetimestamp
when we writing.Brief change log
Verifying this change
This change is already covered by existing tests, such as