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

[FLINK-33207] Return empty split when the hbase table is empty #23

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

Tan-JiaLiang
Copy link
Contributor

@Tan-JiaLiang Tan-JiaLiang commented Oct 8, 2023

What is the purpose of the change

If the hbase table is empty, it will throw an error when createInputSplits, we should return empty split instead.

Brief change log

  • return empty split instead of throw an error when the hbase table is empty

Verifying this change

This change is already covered by existing tests, such as

  • org.apache.flink.connector.hbase1.HBaseConnectorITCase#testTableSourceEmptyTableScan
  • org.apache.flink.connector.hbase2.HBaseConnectorITCase#testTableSourceEmptyTableScan

@MartijnVisser
Copy link
Contributor

@ferenc-csaky can you also help with this one?

Copy link
Contributor

@ferenc-csaky ferenc-csaky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that a check was implemented to deliberately verify if a table exists in #22 this makes sense, throwing that previous error at that point is now wrong and misleading.

LGTM! If tests pass -> 🚢

@ferenc-csaky
Copy link
Contributor

cc @MartijnVisser

@MartijnVisser MartijnVisser merged commit 4b33c32 into apache:main Nov 10, 2023
7 checks passed
MartijnVisser pushed a commit that referenced this pull request Nov 10, 2023
…loses #23

Co-authored-by: tanjialiang <[email protected]>
(cherry picked from commit 4b33c32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants