Skip to content
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

Example for dataset.createTable doesn't work #954

Closed
afanasy opened this issue Nov 23, 2015 · 1 comment
Closed

Example for dataset.createTable doesn't work #954

afanasy opened this issue Nov 23, 2015 · 1 comment
Assignees
Labels
api: bigquery Issues related to the BigQuery API. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@afanasy
Copy link
Contributor

afanasy commented Nov 23, 2015

https://googlecloudplatform.github.io/gcloud-node/#/docs/v0.25.0/bigquery/dataset?method=createTable
This doesn't work

var tableConfig = {
  id: 'institution_data',
  schema: 'UNITID'
}
dataset.createTable(tableConfig, function(err, table, apiResponse) {})

This does

dataset.createTable('institution_data', {schema: 'UNITID'}, function (err, table, apiResponse) {})

First parameter should be table id.

@stephenplusplus
Copy link
Contributor

Darn, thought I caught that. Thanks for pointing it out!

@stephenplusplus stephenplusplus added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. docs api: bigquery Issues related to the BigQuery API. labels Nov 23, 2015
gcf-owl-bot bot added a commit that referenced this issue Nov 13, 2024
Source-Link: googleapis/googleapis@d5a401d

Source-Link: googleapis/googleapis-gen@426ad97
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6IjQyNmFkOTcxMmZkZTg5MDQyYjZjYTE0YmM3NDAzMWEwYzFmOTAxZDYifQ==
gcf-merge-on-green bot pushed a commit that referenced this issue Nov 14, 2024
…#5808)

- [ ] Regenerate this pull request now.

Source-Link: https://togithub.com/googleapis/googleapis/commit/d5a401dd23f50c5ff292f71bfa1d644837091a59

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/426ad9712fde89042b6ca14bc74031a0c1f901d6
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6IjQyNmFkOTcxMmZkZTg5MDQyYjZjYTE0YmM3NDAzMWEwYzFmOTAxZDYifQ==
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

3 participants