Reputation: 53
Within a BigQuery table, I need to return from a query each column size and data type of this table. Is this possible ?
Upvotes: 0
Views: 2841
Reputation: 519
You can view column data type with:
SELECT column_name,data_type FROM <MY_DATA_SET>.<MY_TABLE>.INFORMATION_SCHEMA.COLUMNS;
https://cloud.google.com/bigquery/docs/information-schema-tables
Upvotes: 1