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

[Feature][HbaseSink]support array data. #6100

Merged
merged 3 commits into from
Jan 2, 2024

Conversation

lightzhao
Copy link
Contributor

Purpose of this pull request

#6052 hbase sink support array data.

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

ArrayList<Result> results = new ArrayList<>();
ResultScanner scanner = hbaseTable.getScanner(scan);
for (Result result : scanner) {
System.out.println("Row Key: " + Bytes.toString(result.getRow()));
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
System.out.println("Row Key: " + Bytes.toString(result.getRow()));

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

Comment on lines 165 to 171
System.out.println(
"Column Family: "
+ columnFamily
+ ", Column Name: "
+ columnName
+ ", Value: "
+ value);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
System.out.println(
"Column Family: "
+ columnFamily
+ ", Column Name: "
+ columnName
+ ", Value: "
+ value);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

}
results.add(result);
}
Assertions.assertEquals(results.size(), 5);
Copy link
Member

Choose a reason for hiding this comment

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

Please assert result value. Specially for array value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@hailin0 hailin0 merged commit b592014 into apache:dev Jan 2, 2024
7 checks passed
@lightzhao lightzhao deleted the hbase-sink-support-array branch January 2, 2024 07:48
alextinng pushed a commit to alextinng/seatunnel that referenced this pull request Jan 4, 2024
alextinng pushed a commit to alextinng/seatunnel that referenced this pull request Jan 4, 2024
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.

None yet

3 participants