Neh3maH
Neh3maH

Reputation: 15

Bigquery Python API: create table with comments

I'm currently creating sharded tables daily using the Python API.

Is there a way to add the comments for the table's columns when creating the table ? I couldn't see it in the doc but it might still be implemented.

Thanks in advance.

Upvotes: 1

Views: 294

Answers (1)

Patrice
Patrice

Reputation: 4692

From the REST API for BigQuery documentation, tables.Insert takes a table resource, and in the schema.fields[].description property, you can put in a description.

Upvotes: 2

Related Questions