-
Notifications
You must be signed in to change notification settings - Fork 34
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
Switch to new BigQuery dataset access API #378
Comments
hey, can I work on this? |
Sure, go ahead, Shivam! |
Hey, where do I check for the changes I make? I still do not where to check for debugging purpose |
Can you register a Google Cloud account, and create a project for experiments? It's free for the first six months, but you would need a credit card. You can't really run this code easily without access to BigQuery, and that's only available in Google Cloud. |
That will be required I guess. I tried a couple of methods but didn't work sadly. Also, I do not own a credit card. |
OK, I created a Google Cloud project for you, called |
I have downloaded the gcp key and added the gcp credentials. What should I do next, should I create a playground like specified in the submitter guide |
Just try deploying to your new project. Make sure you've exported the |
@spbnick is it deployed? |
Looks like it did deploy fine, indeed! Congrats 😀 OK, now you need to reproduce the warning. IIRC, the warnings should pop up when you'd run some database tests. Try this, and see if you get the warning the issue is talking about: ./cloud env kcidb-shivam "" 1 --smtp-mocked --test --heavy-asserts -- \
pytest --tb=native --verbosity=2 kcidb/test_db.py This runs the database tests emulating the cloud environment, and using the clean/empty test databases in the deployment you made on your screenshot. Write, if you don't get the warnings, and I'll try to find a way to reproduce them. If you get them, read the Google Cloud docs regarding that warning and the interface in particular. Search the web and browse the BigQuery Python API docs for details. I was able to find the issue deprecating the old interface: googleapis/google-cloud-python#8989 It links to what seem to be a change updating the samples to the new interface: googleapis/python-bigquery#309 And here's the documentation of the class we're supposed to be using instead: https://cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.dataset.Dataset |
These command you specified does it need to be separated or together. I ran the command and it gave me this error
If I run it separately all the tests passes.
|
Ah, yep, I made a mistake in the command. Please replace
The tests should pass in any case, but if you run them with deployed test databases, they will also run against BigQuery, and should produce the warnings. |
Got a tone of these including the big query one. I am happy the error occurred 😀
|
Awesome! Please ignore the "Deprecated call to Good luck figuring out what to do with the warning. Don't hesitate to reach out here in the comments, or on Slack, with any questions you might have. |
Please post the output of |
I have shared the output. I will try figuring out things in the meantime. |
We started receiving the following warning from Google Cloud APIs:
Update the code to silence the warning and prepare for the removal of the old API.
This will very likely require us to make the name of the Google Cloud project mandatory in "database specifications" in the
kcidb.db
package, and all the code using it. In that case, notify the package users of the impeding change (or ask @spbnick to do that), change the code to require it, and then switch to the new API, getting rid of the warning.The text was updated successfully, but these errors were encountered: