Skip to content

bigquery/tables code create table is broken #223

@c0b

Description

@c0b

https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/master/bigquery/tables.js#L24

the createTable is defined with 4 arguments but called with only 3 arguments, caused runtime broken of callback not defined

function createTable (datasetId, tableId, schema, callback) {

https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/master/bigquery/tables.js#L233

var program = module.exports = {
  createTable: createTable,
  // ...
}

  .command('create <datasetId> <tableId>', 'Create a new table with the specified ID in the specified dataset.', {}, function (options) {
    program.createTable(options.datasetId, options.tableId, utils.makeHandler(false));
  })

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions