Prompt
How do I load a public dataset into Snowflake or BigQuery without a lot of cleanup?
Latest observation
Oct 16, 2026
OpenAI APIWeb search: off
If you want to load a public dataset into Snowflake or BigQuery with minimal cleanup, the key is to pick a dataset that already arrives in a warehouse-friendly format and to use the platform’s native ingest path.
Best-case approach
Look for datasets that are:
- CSV, JSON, or Parquet
- Have consistent column names
- Use UTF-8
- Avoid deeply nested or irregular structures
- Include a data dictionary/schema
In Snowflake
Easiest path
-
Stage the files
- Put the public files in cloud storage like S3, Azure Blob, or GCS
- Or use a URL-accessible stage if appropriate
-
Create a table
- Define columns based on the dataset schema
- Use permissive types at first if needed
-
Load with
COPY INTO-
For CSV:
COPY INTO my_table FROM @my_stage/myfile.csv FILE_FORMAT = (TYPE = CSV FIELD_OPTIONALLY_ENCLOSED_BY = '"'); -
For JSON:
COPY INTO my_table FROM @my_stage/myfile.json FILE_FORMAT = (TYPE = JSON);
-
-
If cleanup is needed, do it after load
- Use SQL transforms in Snowflake instead of preprocessing externally
Tips to avoid cleanup
- Use
VARIANTfor semi-structured JSON if schema is messy - Load raw data into a landing table, then transform into curated tables
- Set file format options to handle common issues like quotes, delimiters, and nulls
In BigQuery
Easiest path
-
Use Cloud Storage or a supported public source
-
Create a table from the load job
- BigQuery can infer schema for many CSV/JSON files
-
Load directly
-
CSV:
bq load \ --source_format=CSV \ --autodetect \ dataset.table \ gs://bucket/file.csv -
JSON:
bq load \ --source_format=NEWLINE_DELIMITED_JSON \ --autodetect \ dataset.table \ gs://bucket/file.json
-
-
For messy data
- Load raw data into a staging table
- Use SQL to clean and cast fields afterward
Tips to avoid cleanup
- Prefer newline-delimited JSON over nested JSON blobs
- Use
--autodetectonly if the dataset is fairly clean - If autodetect gets it wrong, define the schema manually but keep types lenient initially
Good sources for “low-cleanup” public datasets
- Government open data portals
- Kaggle datasets that are already tabular
- AWS Open Data Registry
- Google Public Datasets
- Snowflake Marketplace / BigQuery public datasets
Practical strategy
If your goal is speed:
- Inspect a sample
- Create a raw landing table
- Load with permissive settings
- Transform inside the warehouse
That avoids a lot of up-front cleanup while keeping the data usable.
If you want, I can also give you:
- a Snowflake step-by-step example
- a BigQuery step-by-step example
- or help you choose the best format for a specific dataset you found.