Title: ValueError: Please install the 'db-dtypes' package to use this function. · Issue #2537 · feast-dev/feast · GitHub
Open Graph Title: ValueError: Please install the 'db-dtypes' package to use this function. · Issue #2537 · feast-dev/feast
X Title: ValueError: Please install the 'db-dtypes' package to use this function. · Issue #2537 · feast-dev/feast
Description: Expected Behavior If I install feast with the [gcp] extra, I should be able to use BigQueryRetrievalJob.to_bigquery() without problems. Current Behavior When feast is installed with the [gcp] extra, it installs google-cloud-bigquery as p...
Open Graph Description: Expected Behavior If I install feast with the [gcp] extra, I should be able to use BigQueryRetrievalJob.to_bigquery() without problems. Current Behavior When feast is installed with the [gcp] extra...
X Description: Expected Behavior If I install feast with the [gcp] extra, I should be able to use BigQueryRetrievalJob.to_bigquery() without problems. Current Behavior When feast is installed with the [gcp] extra...
Opengraph URL: https://github.com/feast-dev/feast/issues/2537
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ValueError: Please install the 'db-dtypes' package to use this function.","articleBody":"## Expected Behavior \r\n\r\nIf I install feast with the `[gcp]` extra, I should be able to use `BigQueryRetrievalJob.to_bigquery()` without problems.\r\n\r\n## Current Behavior\r\n\r\nWhen feast is installed with the `[gcp]` extra, it installs `google-cloud-bigquery` as per [this line](https://github.com/feast-dev/feast/blob/master/sdk/python/setup.py#L74). It does not use the [pandas extra](https://github.com/googleapis/python-bigquery/blob/main/setup.py#L54), which means nothing triggers the installation of the `db-dtypes` package. \r\n\r\nWhen `bigquery.py` uses `to_dataframe()` on the result of a BQ query as [done here](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/offline_stores/bigquery.py#L471), it triggers a [verification of imports available](https://github.com/googleapis/python-bigquery/blob/main/google/cloud/bigquery/table.py#L1925), which causes the exception [here](https://github.com/googleapis/python-bigquery/blob/7897b5558dc45f6438415f7fe6f3e68daad4a31d/google/cloud/bigquery/_pandas_helpers.py#L987).\r\n\r\n## Steps to reproduce\r\n\r\nInstall `feast[gcp]` and use `BigQueryRetrievalJob.to_bigquery()`.\r\n\r\n### Specifications\r\n\r\n- Version: `feast[gcp]==0.16.1`\r\n- Platform: OSX\r\n- Subsystem: Not sure what this is referring to\r\n\r\n## Possible Solution\r\n\r\nUse `google-cloud-bigquery[pandas]` for the `[gcp]` extra.","author":{"url":"https://github.com/chhabrakadabra","@type":"Person","name":"chhabrakadabra"},"datePublished":"2022-04-13T21:57:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/2537/feast/issues/2537"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:64870093-ec3e-e0b2-62cf-fb43763a601d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9238:B7AC4:7707DD:A79A0C:6978BDB1 |
| html-safe-nonce | 5d84be4375a02f0927aced50bb6636cbe3b72b9ef85a465d71f09a71b7b2513b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjM4OkI3QUM0Ojc3MDdERDpBNzlBMEM6Njk3OEJEQjEiLCJ2aXNpdG9yX2lkIjoiNDI2NTMzMTYxMTExMDI2MDE0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f236f53a353e1639b4bdaa352a5ec8d6cb956b422d6296e68f48e89ce98a58e5 |
| hovercard-subject-tag | issue:1203829878 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/2537/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e92bf97f877c1b2630c7f8090cd7ebf012ef6c36fc6fcfed567c233831b7d3c1/feast-dev/feast/issues/2537 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e92bf97f877c1b2630c7f8090cd7ebf012ef6c36fc6fcfed567c233831b7d3c1/feast-dev/feast/issues/2537 |
| og:image:alt | Expected Behavior If I install feast with the [gcp] extra, I should be able to use BigQueryRetrievalJob.to_bigquery() without problems. Current Behavior When feast is installed with the [gcp] extra... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chhabrakadabra |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50 |
| turbo-cache-control | no-preview |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9520342ca7ead2f1a011aa96eaff82fc054a4970 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width