-
Notifications
You must be signed in to change notification settings - Fork 438
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
Google bigtable readRows function always returns empty object #1972
Comments
Hi @chintansureliya, You need to iterate over the $readOptions = [
'rowKeys' => [$key]
];
foreach ($table->readRows($readOptions) as $row) {
print_r($row);
} |
Hi @jdpedrie, I tried the same using below code and i get the error mentioned below the code. Code:
I even face the same issue when im using readRow method too.
Error:
|
Hi @chintansureliya, That error indicates that you need to install gRPC in order to use the readRows method. gRPC can be installed via PECL as follows:
For more information, check out Install gRPC for PHP. If you're using AppEngine with PHP 7, gRPC can be enabled as well. Here is more information. On Windows, you can download a pre-compiled version of the extension here (Click the link that says DLL under the latest version and choose the option which matches your PHP version). Once you've downloaded it, see the Loading an Extension section for information on enabling it. |
We haven't heard back from you in over 7 days Chintan, so I am closing this issue. Please let us know if you have any further questions. Thank you. |
I've been trying to query in google bigtable and i am able to retrieve below object everytime.
I have used the example code mentioned here
I am able to get the response with same instance id, table id and row key if i try out the nodejs example.
Code i am using
The text was updated successfully, but these errors were encountered: