Title: Document how to construct external tables · Issue #773 · googleapis/python-bigquery · GitHub
Open Graph Title: Document how to construct external tables · Issue #773 · googleapis/python-bigquery
X Title: Document how to construct external tables · Issue #773 · googleapis/python-bigquery
Description: Is your feature request related to a problem? Please describe. Currently, the document on creating a table is clear on how to initialize a Table object with a specific fields schema. For example, here is a code snippet from the docs: How...
Open Graph Description: Is your feature request related to a problem? Please describe. Currently, the document on creating a table is clear on how to initialize a Table object with a specific fields schema. For example, h...
X Description: Is your feature request related to a problem? Please describe. Currently, the document on creating a table is clear on how to initialize a Table object with a specific fields schema. For example, h...
Opengraph URL: https://github.com/googleapis/python-bigquery/issues/773
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Document how to construct external tables","articleBody":" **Is your feature request related to a problem? Please describe.**\r\n\r\nCurrently, the document on creating a table is clear on how to initialize a Table object with a specific fields schema. For example, here is a code snippet from the docs:\r\n\r\n\r\n\r\nHowever, a challenge I faced with these docs is knowing how to create a Table with, e.g., an ExternalConfig set.\r\n\r\nBased on the source for Table / unit tests, is the correct approach using a property setter?:\r\n\r\n```python\r\nfrom google.cloud import bigquery\r\nclient bigquery.Client()\r\n\r\ntable = bigquery.Table(...)\r\n\r\n# use property setter\r\ntable.external_data_configuration = bigquery.ExternalConfig(...)\r\n\r\n# edit: it looks like ExternalConfig also needs to use setters, so might include, e.g..\r\nexternal_config = bigquery.ExternalConfig(\"NEWLINE_DELIMITED_JSON\")\r\nexternal_config.source_uris = [...]\r\n```\r\n\r\n\r\n **Describe the solution you'd like**\r\n\r\nCan we add an example to the docs so that readers learn these two pieces?:\r\n\r\n* Table attributes like schema can be set on `__init__` (or via setters)\r\n* Other Table attributes must be set using setters\r\n\r\nIt seems like two places users may look for this info is in the Table API doc, and in the [usage/tables - creating a table](https://googleapis.dev/python/bigquery/latest/usage/tables.html#creating-a-table) doc. Also, apologies if it's already somewhere in the docs and I missed it 😅.\r\n\r\n **Describe alternatives you've considered**\r\n\r\nSince Table can be constructed using `.from_api_repr()`, I wondered if this is a more common approach for construction? In that case it seems like having a nudge in the docs on using this path for e.g. constructing an external table would be super helpful!","author":{"url":"https://github.com/machow","@type":"Person","name":"machow"},"datePublished":"2021-07-15T14:36:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/773/python-bigquery/issues/773"}
| 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:fb7b3b4f-09e0-6c26-ff7f-fb4d1043bf0f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C20C:F97E2:36DB4D:4ACFFD:6A511CFA |
| html-safe-nonce | a85365ba6a9990cb5883ad7ceb1b1a1e5afee4fdfca5dc06f6a9c121f542fa84 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjBDOkY5N0UyOjM2REI0RDo0QUNGRkQ6NkE1MTFDRkEiLCJ2aXNpdG9yX2lkIjoiNjI0NDI5OTg1MzkwNzMwNDkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0e08b05e07ee1a3399d02319e606024243c98dbc414e038c362b093e88c498ab |
| hovercard-subject-tag | issue:945455639 |
| 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/googleapis/python-bigquery/773/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7b44e7b13cfa5e93a604cd08831a5014d7130ef7f2c00fe4fd25ddb2ff8cb07c/googleapis/python-bigquery/issues/773 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7b44e7b13cfa5e93a604cd08831a5014d7130ef7f2c00fe4fd25ddb2ff8cb07c/googleapis/python-bigquery/issues/773 |
| og:image:alt | Is your feature request related to a problem? Please describe. Currently, the document on creating a table is clear on how to initialize a Table object with a specific fields schema. For example, h... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | machow |
| hostname | github.com |
| expected-hostname | github.com |
| None | f0f0f3a40c5b69803a8255a8e44323880bf9c4db54d5c076f2130bedf2a1dde5 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-bigquery git https://github.com/googleapis/python-bigquery.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992475 |
| octolytics-dimension-repository_nwo | googleapis/python-bigquery |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992475 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-bigquery |
| 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 | 44909533816f7f99ff04e7a0fe692733af67ed84 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width