Using the Load Data Statement in Google BigQuery
How to use the new Function in BigQuery SQL

If you’re like me and often work with Google Cloud and BigQuery, then you’re probably always eager to see new updates that will help you in your daily life, one of them is this new LOAD DATAfeature.
While Google already had the EXPORT DATA statement implemented which allows to export the results of a query to an external storage location Google now also published (in preview) the LOAD DATA statement. It loads data from one or more files into a table and can create a new table, append data into an existing table, or overwrite an existing table [1].
You can use the following blueprints to try it out:
LOAD DATA INTO mydataset.table(x INT64, y STRING)
FROM FILES(
skip_leading_rows=1,
format='CSV',
uris = ['gs://bucket/path/your_file.csv']
)The full documentation and all parameters you can use within the function you can find at the official Google site [1]. This new function with the already existing export function makes sense, because you can now read data from external sources via SQL, since Google is focusing on this area with Google BigLake and Analytics Hub.
Google BigLake is designed to allow companies to unify their Data Warehouses and Data Lakes without having to worry about the underlying storage format or system. You can easily access Google internal storage as well as cross-platform data such as Microsoft Azure or AWS within BigQuery using SQL, without having to cache it. Read more about it here.

If you using GCP and BigQuery more often like me, you may also be interested in these articles:
- BigQuery now supporting Query Queues
- 3 Big Updates in Google Data Studio
- Google improves Data Security in it’s Data Warehouse BigQuery
- 3 Big Announcements from Google
Sources and Further Readings
[1] Google, Load Data Statement (2022)
