Prompt

How do I load a public dataset into Snowflake or BigQuery without a lot of cleanup?

Technology / Data Infrastructure1 observationLast seen Oct 16, 2026

Latest observation

Oct 16, 2026OpenAI 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

  1. Stage the files

    • Put the public files in cloud storage like S3, Azure Blob, or GCS
    • Or use a URL-accessible stage if appropriate
  2. Create a table

    • Define columns based on the dataset schema
    • Use permissive types at first if needed
  3. 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);
      
  4. If cleanup is needed, do it after load

    • Use SQL transforms in Snowflake instead of preprocessing externally

Tips to avoid cleanup

  • Use VARIANT for 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

  1. Use Cloud Storage or a supported public source

  2. Create a table from the load job

    • BigQuery can infer schema for many CSV/JSON files
  3. 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
      
  4. 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 --autodetect only 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:

  1. Inspect a sample
  2. Create a raw landing table
  3. Load with permissive settings
  4. 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.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.