Skip to content

Dataset

Snowflake warehouse table datasets for AI training

A Snowflake dataset is an unload of chosen databases and schemas from a business's Snowflake account: raw tables loaded from its operating systems, the modeled tables and views built on them, semi-structured VARIANT columns, the tasks, streams and stored procedures that maintain them, and ACCOUNT_USAGE query history where the SQL is wanted. SourceX sources it to a buyer's spec from established businesses that run Snowflake as their warehouse. Each dataset is de-identified, with keys replaced consistently so tables still join, and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Raw and modeled tables, views, VARIANT columns, task and procedure definitions and optional query history from one Snowflake account
Typical systems
Snowflake Standard, Enterprise or Business Critical accounts, with Snowpipe loads, streams, tasks, dynamic tables and ACCOUNT_USAGE views in scope
Typical history
Varies by account; Time Travel covers days, so long history depends on snapshot tables and append-only raw loads
Modality
Typed relational tables and semi-structured VARIANT data, with SQL definitions and query text
Delivery formats
Parquet, CSV or JSON files unloaded with COPY INTO, plus GET_DDL scripts and INFORMATION_SCHEMA metadata as JSONL
Preparation
Personal data removed or replaced with consistent keys across source copies; literals in query text screened; databases from inbound shares left out
Licensing
Scoped per database and schema; permitted use agreed per license; Snowflake's terms and any data provider's terms checked by owner and buyer
Availability
Sourced to your spec; layers, history and query retention depend on the account, and supply is not guaranteed
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
database_namestringThe database an object lives in, with the origin value from SHOW DATABASES, which names the share when a database was created from one.
schema_namestringThe schema within the database, which usually marks the layer, such as a load tool's raw schema or an analytics schema.
object_namestringTable, view or dynamic table name as stored, in upper case unless it was created with a quoted identifier.
object_kindenumPermanent, transient or external table, view, secure view, materialized view or dynamic table, from INFORMATION_SCHEMA.TABLES and SHOW output.
columnsarrayINFORMATION_SCHEMA.COLUMNS rows: column name, ordinal position, data type such as NUMBER, VARCHAR, TIMESTAMP_NTZ or VARIANT, nullability and comment.
ddlstringThe CREATE statement that GET_DDL returns for the table, view, task, stream or stored procedure.
declared_keysarrayPRIMARY KEY, UNIQUE and FOREIGN KEY constraints from TABLE_CONSTRAINTS, flagged as declared and not enforced on standard tables.
variant_pathsarrayFor each VARIANT column, the key paths found in the rows, the value types seen at each path and how often each path is present.
loader_columnsobjectColumns the load tool added to a raw table, such as a sync timestamp or a soft-delete flag, each named and explained.
retentionobjectThe table's Time Travel retention setting, and any snapshot or history table that holds its earlier states.
maintenancearrayTasks with schedule and predecessor, streams with their source table, and dynamic tables with defining query and target lag, that feed or read the table.
data_filesarrayThe files COPY INTO wrote for the table, with format, compression, row count and the options used for nulls and timestamps.
sample_rowobjectOne row of the table as unloaded, with any VARIANT value shown as nested JSON, for checking nulls, timestamps and key paths.
query_historyarrayACCOUNT_USAGE.QUERY_HISTORY rows for statements run against the scoped schemas: QUERY_TEXT, QUERY_TYPE, pseudonymized USER_NAME, ROLE_NAME, WAREHOUSE_NAME, QUERY_TAG, EXECUTION_STATUS, ERROR_MESSAGE and START_TIME.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "database_name": "ANALYTICS",
  "schema_name": "RAW_BILLING",
  "object_name": "INVOICE_EVENTS",
  "object_kind": "permanent_table",
  "columns": [
    {
      "name": "EVENT_ID",
      "type": "VARCHAR",
      "nullable": false
    },
    {
      "name": "PAYLOAD",
      "type": "VARIANT",
      "nullable": true
    },
    {
      "name": "LOADED_AT",
      "type": "TIMESTAMP_NTZ",
      "nullable": false
    },
    {
      "name": "_SYNC_DELETED",
      "type": "BOOLEAN",
      "nullable": true
    }
  ],
  "ddl": "create or replace TABLE INVOICE_EVENTS (EVENT_ID VARCHAR NOT NULL, PAYLOAD VARIANT, LOADED_AT TIMESTAMP_NTZ NOT NULL, _SYNC_DELETED BOOLEAN, primary key (EVENT_ID));",
  "declared_keys": [
    {
      "type": "PRIMARY KEY",
      "columns": [
        "EVENT_ID"
      ],
      "enforced": false
    }
  ],
  "variant_paths": [
    {
      "column": "PAYLOAD",
      "path": "customer.id",
      "types": [
        "VARCHAR"
      ],
      "present": 0.99
    },
    {
      "column": "PAYLOAD",
      "path": "voided_at",
      "types": [
        "NULL_VALUE",
        "VARCHAR"
      ],
      "present": 0.41
    }
  ],
  "loader_columns": {
    "LOADED_AT": "time the load tool wrote the row",
    "_SYNC_DELETED": "true once the source row was deleted"
  },
  "retention": {
    "time_travel_days": 1,
    "history_table": "ANALYTICS.SNAPSHOTS.INVOICE_STATUS_HISTORY"
  },
  "maintenance": [
    {
      "kind": "stream",
      "name": "INVOICE_EVENTS_STREAM",
      "on": "INVOICE_EVENTS"
    },
    {
      "kind": "task",
      "name": "MERGE_INVOICES",
      "schedule": "USING CRON 15 * * * * UTC",
      "reads": "INVOICE_EVENTS_STREAM"
    }
  ],
  "data_files": [
    {
      "path": "raw_billing/invoice_events/data_0_0_0.snappy.parquet",
      "format": "PARQUET",
      "rows": 48211,
      "variant_written_as": "json_string"
    }
  ],
  "sample_row": {
    "EVENT_ID": "evt_7f3a91c2",
    "PAYLOAD": {
      "type": "invoice.paid",
      "customer": {
        "id": "cust_4b1e"
      },
      "lines": [
        {
          "sku": "PLAN-STD",
          "amount": "149.00"
        }
      ],
      "voided_at": null
    },
    "LOADED_AT": "2025-03-04 02:15:09.412",
    "_SYNC_DELETED": false
  },
  "query_history": [
    {
      "query_type": "SELECT",
      "query_text": "select payload:customer.id::string as customer_id, count(*) as paid from raw_billing.invoice_events where payload:type = 'invoice.paid' group by 1 qualify row_number() over (order by paid desc) <= 50",
      "user_name": "user_0c7d",
      "role_name": "ANALYST",
      "warehouse_name": "REPORTING_WH",
      "execution_status": "SUCCESS",
      "start_time": "2025-03-04T14:02:11Z"
    }
  ]
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Train text-to-SQL on Snowflake's dialect

Query text against real schemas carries Snowflake's own constructs: colon paths into VARIANT, LATERAL FLATTEN, QUALIFY and double-colon casts.

Learn raw-to-modeled transformation

A raw schema beside the modeled tables built from it, with the view and task SQL between them, is a worked example of cleaning source data.

Parse semi-structured payloads

VARIANT columns hold API payloads and event JSON whose keys drift over time, material for schema inference and extraction.

Resolve entities across source copies

One customer appears in the CRM copy, the billing copy and the support copy under different IDs, with the business's own mapping tables as the answer.

Evaluate data agents

Finding the right table among clones, staging copies and retired models tests an agent on a warehouse as analysts find it.

Use-case guides: Coding agents, Enterprise and computer-use agents, Private evaluation sets

What makes this data valuable

Raw and modeled layers together

Both layers with the SQL between them show how the business turned source rows into reporting tables.

Definitions included

GET_DDL output for views, tasks, streams, procedures and dynamic tables makes each table's upkeep readable.

History tables present

Snapshot tables or append-only loads carry the changes that Time Travel had already dropped.

Origin of every database stated

Each database is marked as the account's own or as created from a named inbound share.

VARIANT kept as JSON

Payloads delivered whole, with observed key paths profiled, keep the structure that flattening discards.

Query history with failures

Failed statements with their error messages, and query tags that separate people from tools, make the SQL usable.

Record timeline

Snowflake dataset

This page covers snowflake warehouse tables.Illustrative

One account holds copies of many systems, and only days of their history

A Snowflake account is rarely where a record is born. Load tools land copies of the CRM, the billing system, the product database and the ad platforms, each in its own database or schema, as a raw layer. Analysts build modeled layers on top, as views, as tables rebuilt by tasks or as dynamic tables. The same customer therefore exists several times: once per source copy under that source's own ID, and again in a modeled dimension, with the SQL that turned one into the other on record. A zero-copy clone made for development looks like a second full database, and nothing in its rows says it is a clone.

Snowflake overwrites. After an UPDATE or MERGE, the earlier version of a row can be read only through Time Travel, which keeps it for one day by default. Enterprise Edition and higher can raise that to as much as 90 days on permanent tables, and transient and temporary tables get one day at most. Once that period ends, a permanent table's old rows pass into Fail-safe, where only Snowflake can recover them, and transient and temporary tables have no Fail-safe at all. A standard stream does not extend this. It stores an offset and no data, returns the net change between two points, so a row inserted and deleted between reads never appears, and goes stale once its offset falls outside the retention period. Long history exists only where the business built it: append-only raw tables, a load tool's delete flags, or snapshot tables with valid-from and valid-to columns.

Two more properties shape what a model can learn. Snowflake lets a table declare primary and foreign keys but does not enforce them on standard tables, only NOT NULL and CHECK, so a declared key records intent while duplicates and orphans remain possible. And a VARIANT column holds a whole JSON document per row, with keys that differ between rows and a JSON null that is not a SQL NULL. Its structure is in the data, not in the catalog.

What an unload and the query history return, and what they drop

Tables leave Snowflake through COPY INTO a stage, as CSV, JSON or Parquet, and each format drops something. JSON can unload only VARIANT columns, so a typed table has to be wrapped into objects first. Parquet keeps column names and types but writes a VARIANT column as a JSON string, and TIMESTAMP_TZ and TIMESTAMP_LTZ columns cannot be unloaded to it as they are, so someone cast them and chose a time zone. CSV by default has no header row and no quoting and writes NULL as \N, and whether an empty string can be told from NULL depends on the options. Output is split across files written in parallel. Masking policies apply at query time by role, so the role that ran the unload decides whether a masked column holds values or masks.

Query history comes from the ACCOUNT_USAGE.QUERY_HISTORY view, which covers the last 365 days and truncates QUERY_TEXT beyond 100K characters, cutting the longest generated statements. It records user, role, warehouse, query tag, status and error message for every statement, including the MERGE statements of load tools, scheduled task runs and the SQL that BI tools generate. SQL a person typed is a minority, found by role, warehouse and tag, and literal values in its WHERE clauses carry names and account numbers that need screening.

Ownership needs its own check. A database created from another account's share or a Marketplace listing queries like any other, but it is read-only, cannot be cloned, has no Time Travel and belongs to its provider. The origin column of SHOW DATABASES names the share. The harder cases carry no marker: purchased data loaded as ordinary tables, and modeled tables that join the business's rows to shared ones. To test a sample, compare row counts per table with the account, parse one VARIANT column, confirm a timestamp column states its zone, and trace one modeled table to its sources.

What to check before licensing

  • Ask for the output of SHOW DATABASES and SHOW SHARES, and exclude every database whose origin names another account's share or a Marketplace listing.
  • Ask which tables hold purchased or partner data that was loaded as ordinary tables, and which modeled tables are built from it or from shared data.
  • Ask for the COPY INTO statements and file format options used, then check on the sample how NULL, empty strings, VARIANT columns and time zones were written.
  • Ask which role ran the unload and whether masking or row access policies applied to it, so you know whether columns hold values or masks.
  • Ask which tables keep history, as append-only loads, snapshot tables or soft-delete flags, and which show only their state on the unload date.
  • Check de-identification across source copies: the same person needs the same key in the CRM, billing and support schemas, inside VARIANT payloads and in literals in query text.
  • Have the data owner and your counsel check Snowflake's terms for the account, and the terms of any provider whose share or listing touches the scope, against the intended use.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Can a Snowflake dataset show how rows changed over time?

Only where the business kept that history itself. Time Travel holds changed and deleted rows for one day by default, and for up to 90 days on permanent tables in Enterprise Edition and higher, so an unload captures tables as they stood that day. Longer history comes from append-only raw tables, snapshot tables with validity dates or a load tool's delete flags. Say in your request which entities need history and how far back.

Which file format should we ask for?

Parquet suits most typed tables, because it keeps column names and types. It has two limits: a VARIANT column arrives as a JSON string, and time zone aware timestamps are cast before the unload. CSV needs its options stated, since by default it has no header and no quoting. JSON unloads only VARIANT columns. Whatever the format, ask for the COPY INTO statements with the delivery.

How far back does Snowflake query history go?

About a year in the account's own views. ACCOUNT_USAGE.QUERY_HISTORY covers the last 365 days, and older statements exist only if the business copied them into a table of its own. Very long statements are cut at 100K characters. The view also holds statements that tools and scheduled tasks ran, so say whether you want everything or only SQL that people wrote.

Are tables from a data share or the Snowflake Marketplace included?

No, not as the business's own data. A database created from another account's share is read-only for the business and belongs to the provider, under the provider's terms. It should stay out of scope. Tables the business built by joining its own rows to shared or purchased data need tracing, so ask for a list of inbound shares and data purchases before agreeing scope.

How is personal data handled when many systems sit in one account?

It is removed or replaced before delivery, and consolidation makes that harder than in a single system. The same person appears in several source copies, inside VARIANT payloads, in free-text columns and as literal values in query text. Identifiers are replaced with consistent keys so joins between copies survive, and the method used is recorded for each dataset. No method is perfect, so check the sample across schemas.

Is SourceX affiliated with Snowflake Inc.?

Snowflake is named to identify the system the records come from. That does not imply a partnership with or endorsement by Snowflake Inc. The records belong to the business that runs Snowflake, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies