Reputation: 1347
I am using the HBase API to connect to Cloud Bigtable. I need to filter out the records which are within a particular timeframe.
The data stored in Cloud Bigtable is the following format:
"12345"
a:b @ 2019/04/28-23:21:21.553000
"ab"
a:c @ 2019/04/28-23:21:21.553000
"ac"
b:d @ 2019/04/28-23:21:21.553000
"bd"
Trying to fetch data using the Scan operation using the setTimeRange()
method does not return me any rows. Below is the code for it:
Scan scan = new Scan();
scan.setTimeRange(1556493680, 1556493690);
How can I fetch the rows based on the timestamp? Any help is appreciated.
Upvotes: 1
Views: 1129
Reputation: 895
As noted by Doug in the comments, the sample code provided looks correct so it's possible this is a client bug. For further diagnosis we'd recommend filing an issue in the GitHub issue tracker for the cloud-bigtable-client project.
You can also file a support case with GCP Support and provide specific details about your project and Bigtable instance there.
As noted, please provide as much detail as possible about how to reproduce the issue e.g. a standalone example program that demonstrates the problem as well as the specific problematic client library version would be very helpful in further diagnosing the issue.
Upvotes: 1