Create a table using a template
Stay organized with collections
Save and categorize content based on your preferences.
Create a table using the properties of one table (schema, partitioning, clustering) to create a new empty table with the same configuration.
Code sample
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],[],[[["\u003cp\u003eThis Go code demonstrates how to create a new empty table in BigQuery that mirrors the schema, partitioning, and clustering configuration of an existing source table.\u003c/p\u003e\n"],["\u003cp\u003eThe code utilizes the \u003ccode\u003ebigquery\u003c/code\u003e package in Go to fetch metadata from a source table, including its schema, clustering, and partitioning properties.\u003c/p\u003e\n"],["\u003cp\u003eThe code constructs new table metadata for the destination table, incorporating the relevant properties copied from the source table's metadata.\u003c/p\u003e\n"],["\u003cp\u003eThe example then creates a new table using the properties that were defined, including the description, schema, clustering, and partitioning.\u003c/p\u003e\n"]]],[],null,[]]