-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Conversation
ArrayList<Result> results = new ArrayList<>(); | ||
ResultScanner scanner = hbaseTable.getScanner(scan); | ||
for (Result result : scanner) { | ||
System.out.println("Row Key: " + Bytes.toString(result.getRow())); |
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.
System.out.println("Row Key: " + Bytes.toString(result.getRow())); |
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.
done.
System.out.println( | ||
"Column Family: " | ||
+ columnFamily | ||
+ ", Column Name: " | ||
+ columnName | ||
+ ", Value: " | ||
+ value); |
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.
System.out.println( | |
"Column Family: " | |
+ columnFamily | |
+ ", Column Name: " | |
+ columnName | |
+ ", Value: " | |
+ value); |
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.
done.
} | ||
results.add(result); | ||
} | ||
Assertions.assertEquals(results.size(), 5); |
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.
Please assert result value. Specially for array value.
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.
done.
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
New License Guide
release-note
.