diff --git a/.github/workflows/pull-request-metadata.yml b/.github/workflows/pull-request-metadata.yml index 927cb932..87699ae9 100644 --- a/.github/workflows/pull-request-metadata.yml +++ b/.github/workflows/pull-request-metadata.yml @@ -113,7 +113,7 @@ jobs: unexpected_files="$(gh api --paginate \ "repos/${GITHUB_REPOSITORY}/pulls/${pull_request}/files" \ --jq '.[].filename' | grep -Ev \ - '^(\.release-please-manifest\.json|CHANGELOG\.md|Cargo\.lock|Cargo\.toml|pyproject\.toml|uv\.lock|ui/src/lib/demo/(prepared|recordings)\.json)$' || true)" + '^(\.release-please-manifest\.json|CHANGELOG\.md|Cargo\.lock|Cargo\.toml|pyproject\.toml|uv\.lock|ui/src/lib/demo/recordings\.json)$' || true)" if [[ -n "${unexpected_files}" ]]; then echo "Release pull request contains non-metadata changes:" >&2 echo "${unexpected_files}" >&2 diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 2c0c4666..64f14fc7 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -105,7 +105,7 @@ jobs: exit 1 fi unexpected_files="$(gh pr view "${release_pr}" --repo "${GITHUB_REPOSITORY}" \ - --json files --jq '[.files[].path | select(. != ".release-please-manifest.json" and . != "CHANGELOG.md" and . != "pyproject.toml" and . != "uv.lock" and . != "Cargo.toml" and . != "Cargo.lock" and . != "ui/src/lib/demo/prepared.json" and . != "ui/src/lib/demo/recordings.json")] | join("\n")')" + --json files --jq '[.files[].path | select(. != ".release-please-manifest.json" and . != "CHANGELOG.md" and . != "pyproject.toml" and . != "uv.lock" and . != "Cargo.toml" and . != "Cargo.lock" and . != "ui/src/lib/demo/recordings.json")] | join("\n")')" if [[ -n "${unexpected_files}" ]]; then echo "Release pull request contains non-metadata changes:" >&2 echo "${unexpected_files}" >&2 diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 1b106ad1..365424c6 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -20,7 +20,6 @@ jobs: e2e: ${{ steps.scope.outputs.e2e }} browser: ${{ steps.scope.outputs.browser }} packaging: ${{ steps.scope.outputs.packaging }} - demo: ${{ steps.scope.outputs.demo }} steps: - uses: actions/checkout@v4 with: @@ -38,18 +37,16 @@ jobs: echo "e2e=$2" echo "browser=$3" echo "packaging=$4" - echo "demo=$5" } >> "${GITHUB_OUTPUT}" } if [[ "${EVENT_NAME}" != "pull_request" ]]; then - write_scope true true true true true + write_scope true true true true exit 0 fi focused=true packaging=false - demo=false browser=false changed=false while IFS= read -r -d '' path; do @@ -59,12 +56,6 @@ jobs: packaging=true ;; esac - # What sqt plans and writes, which the UI demo prepared ahead, and what runs it in chdb-wasm. - case "${path}" in - Cargo.*|crates/*|src/sqltide/*|pyproject.toml|uv.lock|ui/scripts/prepare-demo.mjs|ui/scripts/demo-engine.*|ui/scripts/check-demo-readers.mjs|ui/src/lib/demo/*|ui/src/lib/demo-readers/*|website/package*.json|.github/workflows/verify.yml) - demo=true - ;; - esac case "${path}" in ui/*) browser=true @@ -83,11 +74,11 @@ jobs: done < <(git diff --name-only -z "${BASE_SHA}" "${HEAD_SHA}") if [[ "${changed}" != "true" || "${focused}" != "true" ]]; then - write_scope true true true "${packaging}" "${demo}" + write_scope true true true "${packaging}" exit 0 fi - write_scope false false "${browser}" "${packaging}" "${demo}" + write_scope false false "${browser}" "${packaging}" checks: name: Static, UI, and unit checks @@ -229,54 +220,6 @@ jobs: if-no-files-found: error retention-days: 7 - demo: - name: UI demo matches sqt and runs on its engine - needs: changes - if: needs.changes.outputs.demo == 'true' - runs-on: ubuntu-latest - timeout-minutes: 75 - steps: - - uses: actions/checkout@v4 - - uses: astral-sh/setup-uv@v5 - with: - version: "0.12.3" - enable-cache: true - cache-dependency-glob: uv.lock - - uses: actions/setup-node@v4 - with: - # chdb-wasm needs Memory64, which Node has from 23. - node-version: 24 - cache: npm - cache-dependency-path: | - ui/package-lock.json - website/package-lock.json - - uses: dtolnay/rust-toolchain@master - with: - toolchain: stable - - uses: Swatinem/rust-cache@v2 - - name: Install Python - run: uv python install "$(cat .python-version)" - - name: Install dependencies - run: uv sync --locked --all-groups - - name: Install UI and website dependencies - run: | - make ui-install - cd website && npm ci - - name: Build the UI sqt dev serves - run: make ui-build - - name: Prepare the demo again with sqt and compare - working-directory: ui - env: - SQT: ${{ github.workspace }}/.venv/bin/sqt - run: node scripts/prepare-demo.mjs --check - - name: Compare the demo's warehouse readers with sqt dev - run: node ui/scripts/check-demo-readers.mjs - - name: Run every prepared action on the demo's engine - working-directory: ui - env: - CHDB_WASM: ${{ github.workspace }}/website/node_modules/chdb-wasm - run: npx vitest run --config scripts/demo-engine.config.ts - distributions: name: Distributions needs: changes @@ -290,7 +233,7 @@ jobs: verify: name: Verify if: always() - needs: [changes, checks, integration, e2e, browser, demo, distributions, website] + needs: [changes, checks, integration, e2e, browser, distributions, website] runs-on: ubuntu-latest steps: - name: Confirm all required verification jobs passed @@ -300,7 +243,6 @@ jobs: INTEGRATION_RESULT: ${{ needs.integration.result }} E2E_RESULT: ${{ needs.e2e.result }} BROWSER_RESULT: ${{ needs.browser.result }} - DEMO_RESULT: ${{ needs.demo.result }} DISTRIBUTIONS_RESULT: ${{ needs.distributions.result }} WEBSITE_RESULT: ${{ needs.website.result }} run: | @@ -309,7 +251,7 @@ jobs: exit 1 fi for result in "${INTEGRATION_RESULT}" "${E2E_RESULT}" "${BROWSER_RESULT}" \ - "${DEMO_RESULT}" "${DISTRIBUTIONS_RESULT}"; do + "${DISTRIBUTIONS_RESULT}"; do if [[ "${result}" != "success" && "${result}" != "skipped" ]]; then echo "A selected verification suite did not pass: ${result}" >&2 exit 1 diff --git a/README.md b/README.md index d45224f5..abf475c7 100644 --- a/README.md +++ b/README.md @@ -42,9 +42,8 @@ Redpanda. Each project's `README.md` walks through every command; see the [playground reference](https://sqltide.io/docs/cli/playground/). To look around the development UI before installing anything, open the -[UI demo](https://sqltide.io/demo/): the same UI in your browser. In desktop Chrome, Edge and -Firefox it runs a real ClickHouse engine in the page, so you can promote a staged change and watch -the query switch. +[UI demo](https://sqltide.io/demo/): the same UI in your browser on recorded example data, +read-only. ![SQLTide lineage view showing an orders pipeline](https://raw.githubusercontent.com/sqlstack-io/sqltide/main/.github/sqltide-ui.png) diff --git a/release-please-config.json b/release-please-config.json index 157fb873..44b2d0e5 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -13,11 +13,6 @@ "path": "Cargo.toml", "jsonpath": "$.workspace.package.version" }, - { - "type": "json", - "path": "ui/src/lib/demo/prepared.json", - "jsonpath": "$.preparedWith" - }, { "type": "json", "path": "ui/src/lib/demo/recordings.json", diff --git a/ui/scripts/check-demo-readers.mjs b/ui/scripts/check-demo-readers.mjs deleted file mode 100644 index b92df605..00000000 --- a/ui/scripts/check-demo-readers.mjs +++ /dev/null @@ -1,412 +0,0 @@ -#!/usr/bin/env node -/** - * Parity check for ui/src/lib/demo-readers: drives the basic playground through a deployment story - * with the repository's `sqt`, and after every step compares what `sqt dev` returns for the - * deployment, run and state endpoints with what the TypeScript readers build from the same - * ClickHouse. Exits non-zero on any difference outside the explicit allowances below. - * - * node ui/scripts/check-demo-readers.mjs - */ -import { spawn } from 'node:child_process'; -import { copyFileSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; -import { createServer } from 'node:net'; -import { tmpdir } from 'node:os'; -import { dirname, join, resolve } from 'node:path'; -import { fileURLToPath } from 'node:url'; - -import { readDeployment } from '../src/lib/demo-readers/main/read-deployment.ts'; -import { readDeploymentDiff } from '../src/lib/demo-readers/main/read-deployment-diff.ts'; -import { readDeployments } from '../src/lib/demo-readers/main/read-deployments.ts'; -import { readRunEvents } from '../src/lib/demo-readers/main/read-run-events.ts'; -import { readRunStatement } from '../src/lib/demo-readers/main/read-run-statement.ts'; -import { readRuns } from '../src/lib/demo-readers/main/read-runs.ts'; -import { readState } from '../src/lib/demo-readers/main/read-state.ts'; - -const REPO = resolve(dirname(fileURLToPath(import.meta.url)), '../..'); -const SQT = join(REPO, '.venv/bin/sqt'); -const TEMPLATE_PORT = '18124'; - -const LARGE_ORDERS_SQL = `MODEL ( - engine "MergeTree()", - order_by ["order_id"] -); - -SELECT - order_id::UInt64 AS order_id, - total_cents::Int64 AS total_cents, - _replay_partition::Int32 AS _replay_partition, - _replay_offset::Int64 AS _replay_offset -FROM __ref("order_report") -WHERE total_cents >= 1000 -`; - -/** - * Differences allowed because the value depends on when it was read, not on warehouse contents. - * `*` matches one path segment. - */ -const TIME_DEPENDENT = { - 'GET /api/state': [ - 'capturedAt', // the warehouse clock at each read - 'warehouseHealth.measuredAt', // equals capturedAt - 'warehouseHealth.uptimeSeconds', // server uptime advances between reads - 'warehouseHealth.collectionDurationMs', // how long the probes took - 'warehouseHealth.activity.activeQueries', // queries in flight at that instant - 'warehouseHealth.activity.activeMerges', // background merges at that instant - // Background merges between the two reads change part counts and compressed sizes; tables are - // compared by name (see byName below) because the list is the top 10 by bytes on disk. - 'warehouseHealth.tables.*.activeParts', - 'warehouseHealth.tables.*.bytesOnDisk', - 'models.*.lagSeconds', // age of the newest row relative to now - 'models.*.activity.*', // writes inside the last 120s, a window ending now - 'sources.*.lastArrivalSeconds', // age of the newest event relative to now - 'sources.*.freshness', // derived from that age - 'sources.*.throughput.buckets', // buckets of a window ending now - 'sources.*.rowsPerSecond' // derived from those buckets - ], - 'GET /api/runs': ['*.lastSignalAgeSeconds', '*.durationMs'], // only active runs: ages from now - 'GET /api/runs/{id}/events': [ - 'lastSignalAgeSeconds', // only active runs: age from now - 'statementProgress.observedAt', - 'statementProgress.elapsedSeconds', - 'statementProgress.readRowsPerSecond', - 'statementProgress.readBytesPerSecond' - ] -}; - -/** Warehouse-health fields a browser engine cannot measure; the readers leave them empty without these warnings. */ -const BROWSER_WARNINGS = [ - 'Disk capacity is unavailable.', - 'Main-path inode metrics are unavailable.', - 'Meaningful memory context is unavailable.' -]; -function asBrowserHealth(health) { - if (health === null) return null; - return { - ...health, - availability: 'partial', - status: 'unknown', - disks: [], - inodes: { total: null, free: null, status: 'unknown' }, - memory: null, - warnings: health.warnings.filter((warning) => !BROWSER_WARNINGS.includes(warning)) - }; -} - -const TABLE_LIMIT = 10; -/** - * Key both health table lists by name. Merges can move a table across the top-10 cutoff between the - * two reads, so when both lists are full, a table only one side lists is dropped and counted. - */ -function byName(expected, actual) { - const names = (health) => new Set((health?.tables ?? []).map((table) => table.name)); - const full = expected?.tables?.length === TABLE_LIMIT && actual?.tables?.length === TABLE_LIMIT; - const [left, right] = [names(expected), names(actual)]; - const keep = (name) => !full || (left.has(name) && right.has(name)); - const keyed = (health) => - health?.tables === undefined - ? health - : { ...health, tables: Object.fromEntries(health.tables.filter((table) => keep(table.name)).map((table) => [table.name, table])) }; - const dropped = [...left, ...right].filter((name) => !keep(name)).length; - const key = 'GET /api/state warehouseHealth.tables membership at the top-10 cutoff'; - if (dropped > 0) report.allowed.set(key, (report.allowed.get(key) ?? 0) + dropped); - return [keyed(expected), keyed(actual)]; -} - -function freePort() { - return new Promise((done, fail) => { - const server = createServer(); - server.on('error', fail); - server.listen(0, '127.0.0.1', () => { - const { port } = server.address(); - server.close(() => done(port)); - }); - }); -} - -function run(command, args, cwd) { - return new Promise((done, fail) => { - const child = spawn(command, args, { cwd, stdio: ['ignore', 'pipe', 'pipe'] }); - let output = ''; - child.stdout.on('data', (chunk) => (output += chunk)); - child.stderr.on('data', (chunk) => (output += chunk)); - child.on('error', fail); - child.on('close', (code) => - code === 0 ? done(output) : fail(new Error(`${command} ${args.join(' ')} exited ${code}\n${output}`)) - ); - }); -} - -const sleep = (ms) => new Promise((done) => setTimeout(done, ms)); - -function pathText(path) { - return path.map((segment) => (typeof segment === 'number' ? `[${segment}]` : `.${segment}`)).join('').replace(/^\./, ''); -} - -function matches(pattern, path) { - const parts = pattern.split('.'); - const segments = path.map(String); - return parts.length === segments.length && parts.every((part, index) => part === '*' || part === segments[index]); -} - -/** Every leaf path where `expected` and `actual` differ; object key order is ignored. */ -function differences(expected, actual, path = []) { - if (Array.isArray(expected) && Array.isArray(actual)) { - const found = []; - for (let index = 0; index < Math.max(expected.length, actual.length); index += 1) { - if (index >= expected.length || index >= actual.length) { - found.push({ path: [...path, index], expected: expected[index], actual: actual[index] }); - } else found.push(...differences(expected[index], actual[index], [...path, index])); - } - return found; - } - const isObject = (value) => value !== null && typeof value === 'object' && !Array.isArray(value); - if (isObject(expected) && isObject(actual)) { - const keys = [...new Set([...Object.keys(expected), ...Object.keys(actual)])].sort(); - return keys.flatMap((key) => - !(key in expected) || !(key in actual) - ? [{ path: [...path, key], expected: key in expected ? expected[key] : '', actual: key in actual ? actual[key] : '' }] - : differences(expected[key], actual[key], [...path, key]) - ); - } - return Object.is(expected, actual) || JSON.stringify(expected) === JSON.stringify(actual) - ? [] - : [{ path, expected, actual }]; -} - -const report = { comparisons: 0, failures: [], allowed: new Map() }; - -function compare(step, label, kind, expected, actual) { - report.comparisons += 1; - const allowances = TIME_DEPENDENT[kind] ?? []; - for (const difference of differences(expected, actual)) { - const pattern = allowances.find((candidate) => matches(candidate, difference.path)); - if (pattern !== undefined) { - report.allowed.set(`${kind} ${pattern}`, (report.allowed.get(`${kind} ${pattern}`) ?? 0) + 1); - continue; - } - report.failures.push( - `[${step}] ${label} :: ${pathText(difference.path) || ''}\n` + - ` sqt dev : ${JSON.stringify(difference.expected)?.slice(0, 400)}\n` + - ` readers : ${JSON.stringify(difference.actual)?.slice(0, 400)}` - ); - } -} - -/** Run a reader, turning a thrown refusal into the `{status, detail}` the server answers with. */ -async function outcome(read) { - try { - return { status: 200, body: await read() }; - } catch (error) { - return { status: 'error', detail: error instanceof Error ? error.message : String(error) }; - } -} - -async function main() { - const workspace = mkdtempSync(join(tmpdir(), 'sqltide-reader-parity-')); - const project = join(workspace, 'pg'); - const clickhousePort = String(await freePort()); - const uiPort = await freePort(); - let dev = null; - let started = false; - try { - await run(SQT, ['playground', project, '--no-start'], workspace); - for (const file of ['compose.yaml', 'sqltide_project.toml']) { - const path = join(project, file); - writeFileSync(path, readFileSync(path, 'utf8').replaceAll(TEMPLATE_PORT, clickhousePort)); - } - const toml = readFileSync(join(project, 'sqltide_project.toml'), 'utf8'); - const setting = (name) => new RegExp(`^${name}\\s*=\\s*"([^"]*)"`, 'm').exec(toml)[1]; - const database = setting('database'); - const authorization = `Basic ${Buffer.from(`${setting('username')}:${setting('password')}`).toString('base64')}`; - started = true; - await run(SQT, ['playground', 'up', '--project-dir', project], project); - - const query = async (sql) => { - const response = await fetch( - `http://127.0.0.1:${clickhousePort}/?database=${encodeURIComponent(database)}&default_format=JSONEachRow`, - { method: 'POST', body: sql, headers: { authorization } } - ); - const text = await response.text(); - if (!response.ok) throw new Error(`${text.trim()}\n in: ${sql.slice(0, 300)}`); - return text.split('\n').filter((line) => line.trim() !== '').map((line) => JSON.parse(line)); - }; - const api = async (path, method = 'GET') => { - const response = await fetch(`http://127.0.0.1:${uiPort}${path}`, { method }); - const text = await response.text(); - const body = text === '' ? null : JSON.parse(text); - return response.ok ? { status: 200, body } : { status: response.status, detail: body?.detail ?? text }; - }; - const sqt = (...args) => run(SQT, [...args, '--project-dir', project], project); - const activeDeployment = async () => - JSON.parse(await sqt('deployment', 'list', '--json')).deployments.find((item) => item.state === 'active') - ?.deployment_id; - - async function startDev() { - dev = spawn(SQT, ['dev', '--project-dir', project, '--ui-port', String(uiPort)], { - cwd: project, - stdio: ['ignore', 'pipe', 'pipe'] - }); - let log = ''; - dev.stdout.on('data', (chunk) => (log += chunk)); - dev.stderr.on('data', (chunk) => (log += chunk)); - let last = 'no response'; - for (let attempt = 0; attempt < 120; attempt += 1) { - await sleep(500); - if (dev.exitCode !== null) throw new Error(`sqt dev exited ${dev.exitCode}\n${log}`); - try { - const state = await api('/api/state'); - if (state.status === 200) return; - last = JSON.stringify(state).slice(0, 500); - } catch (error) { - last = String(error?.cause ?? error); // not listening yet - } - } - throw new Error(`sqt dev did not become ready; last /api/state answer: ${last}\n${log}`); - } - - async function stopDev() { - if (dev === null || dev.exitCode !== null) return; - const exited = new Promise((done) => dev.once('close', done)); - dev.kill('SIGINT'); - const timer = setTimeout(() => dev.kill('SIGKILL'), 10000); - await exited; - clearTimeout(timer); - dev = null; - } - - async function compareEndpoints(step) { - await startDev(); - try { - const deployments = await api('/api/deployments'); - compare(step, 'GET /api/deployments', 'GET /api/deployments', deployments, await outcome(() => readDeployments(query, database))); - const ids = deployments.body.deployments.map((item) => item.deploymentId); - for (const [index, id] of [...ids, '20000101T000000Z_missing'].entries()) { - const detail = await api(`/api/deployments/${id}`); - const mine = await outcome(() => readDeployment(query, database, id)); - compare( - step, - `GET /api/deployments/${id}`, - 'GET /api/deployments/{id}', - detail.status === 404 ? { status: 404 } : detail, - mine.status === 200 && mine.body === null ? { status: 404 } : mine - ); - const against = [null, ...(index + 1 < ids.length ? [ids[index + 1]] : [])]; - for (const other of against) { - const path = `/api/deployments/${id}/diff${other === null ? '' : `?against=${other}`}`; - const server = await api(path); - const readers = await outcome(() => readDeploymentDiff(query, database, id, other)); - compare( - step, - `GET ${path}`, - 'GET /api/deployments/{id}/diff', - server.status === 200 ? server : { status: 'error', detail: server.detail }, - readers - ); - } - } - const runs = await api('/api/runs'); - compare(step, 'GET /api/runs', 'GET /api/runs', runs, await outcome(() => readRuns(query, database))); - for (const runItem of runs.body) { - const id = runItem.invocationId; - const events = await api(`/api/runs/${id}/events?after=0`); - const sequences = events.body.events.map((event) => event.sequence); - for (const after of [0, sequences[Math.floor(sequences.length / 2)] ?? 0]) { - const path = `/api/runs/${id}/events?after=${after}`; - compare(step, `GET ${path}`, 'GET /api/runs/{id}/events', await api(path), await outcome(() => readRunEvents(query, database, id, after))); - } - const statements = [ - ...new Set(events.body.events.map((event) => event.statementSequence).filter((value) => typeof value === 'number')) - ].slice(0, 6); - for (const sequence of [...statements, 99999]) { - const path = `/api/runs/${id}/statements/${sequence}`; - compare(step, `GET ${path}`, 'GET /api/runs/{id}/statements/{seq}', await api(path), await outcome(() => readRunStatement(query, database, id, sequence))); - } - } - await api('/api/warehouse/refresh', 'POST'); - const state = await api('/api/state'); - const definitions = await api('/api/definitions'); - const mine = await outcome(() => readState(query, database, state.body, definitions.body)); - if (mine.status !== 200) { - compare(step, 'GET /api/state', 'GET /api/state', state, mine); - } else { - const [serverHealth, readerHealth] = byName(asBrowserHealth(state.body.warehouseHealth), mine.body.warehouseHealth); - compare( - step, - 'GET /api/state', - 'GET /api/state', - { ...state.body, warehouseHealth: serverHealth }, - { ...mine.body, warehouseHealth: readerHealth } - ); - } - console.log( - `[${step}] compared ${ids.length} deployments, ${runs.body.length} runs, state; ` + - `${report.failures.length} unexpected differences so far` - ); - } finally { - await stopDev(); - } - } - - await sqt('build', '--auto-approve'); - await sqt('deployment', 'promote', '--latest'); - await compareEndpoints('1 initial build promoted'); - - writeFileSync(join(project, 'pipelines/pl__orders/large_orders.sql'), LARGE_ORDERS_SQL); - await sqt('build', '--auto-approve'); - await sqt('deployment', 'promote', '--latest'); - const second = await activeDeployment(); - await compareEndpoints('2 large_orders added and promoted'); - - copyFileSync(join(project, 'revisions/completed_orders.sql'), join(project, 'pipelines/pl__orders/order_report.sql')); - await sqt('build', '--auto-approve'); - await sqt('deployment', 'audit', '--latest'); - await compareEndpoints('3 completed-orders change staged and audited'); - - await sqt('deployment', 'promote', '--latest'); - await compareEndpoints('4 completed-orders change promoted'); - - if (second === undefined) throw new Error('could not read the second build deployment ID'); - await sqt('deployment', 'rollback', second, '--auto-approve'); - await compareEndpoints('5 rolled back to the second build'); - - // After the rollback large_orders already matches the active deployment, so this build plans - // nothing and records an empty deployment that the inventory classifies as physical_missing; - // `promote --latest` refuses it. Compare that state, then change large_orders and promote a new - // build. That build is a full one: after a rollback, `build --select large_orders` stops with - // "Population root 'tbl__order_report' has no feeding view". - await sqt('build', '--auto-approve', '--select', 'large_orders'); - const refusal = await sqt('deployment', 'promote', '--latest').then( - () => null, - (error) => error.message - ); - if (refusal === null || !refusal.includes('physical_missing, not staged')) { - throw new Error(`expected promote --latest to refuse the empty deployment, got: ${refusal ?? 'success'}`); - } - await compareEndpoints('6 large_orders selected with nothing to rebuild (promote refused)'); - - writeFileSync( - join(project, 'pipelines/pl__orders/large_orders.sql'), - LARGE_ORDERS_SQL.replace('total_cents >= 1000', 'total_cents >= 2000') - ); - await sqt('build', '--auto-approve'); - await sqt('deployment', 'promote', '--latest'); - await compareEndpoints('7 changed large_orders built and promoted after the rollback'); - } finally { - if (dev !== null && dev.exitCode === null) dev.kill('SIGKILL'); - if (started) await run(SQT, ['playground', 'down', '--volumes', '--project-dir', project], project).catch((error) => console.error(error.message)); - rmSync(workspace, { recursive: true, force: true }); - } - - console.log(`\n${report.comparisons} payload comparisons.`); - console.log('Allowed time-dependent differences that occurred:'); - if (report.allowed.size === 0) console.log(' none'); - for (const [pattern, count] of report.allowed) console.log(` ${pattern}: ${count}`); - console.log('Browser-unavailable warehouseHealth fields (expected empty): availability, status, disks, inodes, memory and their warnings.'); - if (report.failures.length > 0) { - console.error(`\n${report.failures.length} unexpected differences:\n${report.failures.join('\n')}`); - process.exit(1); - } - console.log('\nParity check passed.'); -} - -await main(); diff --git a/ui/scripts/demo-engine.check.ts b/ui/scripts/demo-engine.check.ts deleted file mode 100644 index 9b7913d7..00000000 --- a/ui/scripts/demo-engine.check.ts +++ /dev/null @@ -1,137 +0,0 @@ -/** - * Runs everything the UI demo prepared on chdb-wasm, the engine the demo runs in the browser: the - * story's history, then every action in every state, each from a fresh replay of how the story - * got there. Every statement must run once its slots are filled, and every plan must fill too. - * - * CHDB_WASM=../website/node_modules/chdb-wasm npx vitest run --config scripts/demo-engine.config.ts - */ -import { resolve } from 'node:path'; -import { pathToFileURL } from 'node:url'; -import { describe, expect, it } from 'vitest'; - -import prepared from '../src/lib/demo/prepared.json'; -import { createStoryResource } from '../src/lib/demo/_resources/story.resource'; -import { readDeployments } from '../src/lib/demo-readers/main/read-deployments'; -import type { DemoAnswer, DemoStory, PreparedAction, PreparedDemo } from '../src/lib/demo/types'; - -type Chdb = { query(sql: string, format?: string): Promise<{ text(): string }>; terminate(): Promise }; -type Engine = { run: (sql: string) => Promise; stop: () => Promise }; - -const demo: PreparedDemo = prepared as unknown as PreparedDemo; -const directory: string = pathToFileURL(`${resolve(process.env.CHDB_WASM ?? '../website/node_modules/chdb-wasm')}/`).href; - -/** An engine whose queries run one at a time, as the demo runs them. */ -async function startEngine(): Promise { - const { AsyncChdb } = (await import(/* @vite-ignore */ `${directory}dist/index.js`)) as { - AsyncChdb: { create(options: { moduleUrl: string }): Promise }; - }; - const client: Chdb = await AsyncChdb.create({ moduleUrl: `${directory}dist/chdb.mjs` }); - let queue: Promise = Promise.resolve(); - const run: (sql: string) => Promise = (sql: string): Promise => { - const turn: Promise = queue.then(async () => { - try { - return (await client.query(sql)).text(); - } catch (error) { - throw new Error(`${error instanceof Error ? error.message : String(error)}\n in: ${sql.slice(0, 400)}`); - } - }); - queue = turn.catch(() => undefined); - return turn; - }; - return { run, stop: () => client.terminate() }; -} - -/** The actions that lead from the start to each state, by breadth-first search. */ -function paths(): Map { - const found: Map = new Map([[demo.start, []]]); - const queue: string[] = [demo.start]; - while (queue.length > 0) { - const state: string = queue.shift() as string; - for (const [key, action] of Object.entries(demo.states[state].actions) as [string, PreparedAction][]) { - if (action.next === null || found.has(action.next)) continue; - found.set(action.next, [...(found.get(state) ?? []), { state, key }]); - queue.push(action.next); - } - } - return found; -} - -const flush = (): Promise => new Promise((resolve) => setTimeout(resolve, 0)); - -/** The story's deployments in the order it created them, as the Deployments page lists them. */ -const CREATED: string[] = ['v1', 'v2', 'built']; - -/** Runs one prepared action the way the API does, and waits for a build to finish. */ -async function act(story: DemoStory, run: (sql: string) => Promise, key: string): Promise { - const [kind, ...rest] = key.split(' '); - if (kind === 'promote' || kind === 'rollback') { - const rows: (sql: string) => Promise = async (sql: string): Promise => - (await run(`${sql} FORMAT JSONEachRow`)) - .split('\n') - .filter((line) => line.trim() !== '') - .map((line) => JSON.parse(line) as Row); - const { deployments } = await readDeployments(rows, demo.database); - const ids: string[] = deployments.map((deployment) => deployment.deploymentId).sort(); - return story.deploymentAction(kind, ids[CREATED.indexOf(rest[0])]); - } - const [selectors, upstream, from] = rest.join(' ').split('|'); - const select: string[] = selectors === '' ? [] : selectors.split(' '); - const startTime: string | null = from === 'from' ? '2026-01-01T10:01:00Z' : null; - // As the Plan page does: plan, then execute the deployment the plan proposed. - const params: URLSearchParams = new URLSearchParams(select.map((selector) => ['select', selector])); - if (upstream === 'upstream') params.set('include_missing_upstream', 'true'); - if (startTime !== null) params.set('start', startTime); - const { deploymentId } = story.plan(params).body as { deploymentId?: string }; - const answer: DemoAnswer = await story.build({ - selectors: select, - includeMissingUpstream: upstream === 'upstream', - startTime, - ...(deploymentId === undefined ? {} : { deploymentId }), - confirmations: [] - }); - while ((story.buildFeed() as { running: boolean }).running) await flush(); - const feed: { exitCode: number | null; stderr: string } = story.buildFeed() as { exitCode: number | null; stderr: string }; - if (feed.exitCode !== 0) throw new Error(`build failed: ${feed.stderr}`); - return answer; -} - -describe('the UI demo on its engine', () => { - // chdb keeps dropped tables for 8 minutes, so each state gets a fresh engine: starting over - // for every action in all of them would outgrow the engine's memory. - it('runs the story and every prepared action in every state', { timeout: 3_600_000 }, async () => { - const routes: Map = paths(); - expect([...routes.keys()].sort()).toEqual(Object.keys(demo.states).sort()); - let ran: number = 0; - for (const [state, route] of routes) { - const { run, stop }: Engine = await startEngine(); - const story: DemoStory = createStoryResource(demo, run); - await story.replaySetup(() => undefined); - for (const key of Object.keys(demo.states[state].actions)) { - await story.startOver(); - for (const step of route) await act(story, run, step.key); - expect(story.stateName).toBe(state); - // Every plan here fills its slots, as the Plan page asks for it. - for (const plan of Object.keys(demo.states[state].plans)) { - const [selectors, upstream, from, counts] = plan.split('|'); - const params: URLSearchParams = new URLSearchParams(); - if (selectors === 'changed') params.set('changed', 'true'); - else for (const selector of selectors.split(' ').filter(Boolean)) params.append('select', selector); - if (upstream === 'upstream') params.set('include_missing_upstream', 'true'); - if (from === 'from') params.set('start', '2026-01-01T10:01:00Z'); - if (counts === 'counts') params.set('counts', 'true'); - expect(JSON.stringify(story.plan(params))).not.toMatch(/\{\{/); - } - const answer: DemoAnswer = await act(story, run, key); - expect(answer.status, `${state}: ${key}`).toBe(200); - expect(JSON.stringify(answer)).not.toMatch(/\{\{/); - expect(story.stateName).toBe(demo.states[state].actions[key].next); - // The query the demo's panel shows still answers. - expect(Number(await run(`SELECT count() FROM ${demo.database}.tbl__order_report`))).toBeGreaterThan(0); - ran += 1; - console.log(`${ran} ${state}: ${key} (${Math.round(performance.now() / 1000)} s)`); - } - await stop(); - } - expect(ran).toBe(Object.values(demo.states).reduce((sum, state) => sum + Object.keys(state.actions).length, 0)); - }); -}); diff --git a/ui/scripts/demo-engine.config.ts b/ui/scripts/demo-engine.config.ts deleted file mode 100644 index 25d4e630..00000000 --- a/ui/scripts/demo-engine.config.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { sveltekit } from '@sveltejs/kit/vite'; -import { defineConfig } from 'vitest/config'; - -/** Runs scripts/demo-engine.check.ts, apart from the unit tests; see that file. */ -export default defineConfig({ - plugins: [sveltekit()], - test: { include: ['scripts/demo-engine.check.ts'], testTimeout: 3_600_000 } -}); diff --git a/ui/scripts/prepare-demo.mjs b/ui/scripts/prepare-demo.mjs deleted file mode 100644 index ef5eec84..00000000 --- a/ui/scripts/prepare-demo.mjs +++ /dev/null @@ -1,761 +0,0 @@ -/** - * Prepares what the UI demo at sqltide.io/demo/ runs in the browser. - * - * The demo runs a real ClickHouse (chdb-wasm) in the page, but not sqt itself, so everything sqt - * decides is worked out here, by real sqt against a real ClickHouse (`sqt playground`): - * - * - The story's states: the playground published with large_orders and the completed-orders change - * written but not built (nothing staged), then that change built (staged), promoted, and rolled - * back. A build that touches different models leads to its own staged, promoted and rolled-back - * states. - * - In each state, the plan `sqt dev` returns for every selection the Plan page offers, and what - * Execute, Promote and Roll back write to ClickHouse there, statement by statement, in order. An - * action that leaves the story's states ends in a state the demo has nothing prepared for. - * - * sqt reaches ClickHouse through a proxy that keeps the statements each action writes and ClickHouse - * accepted. The browser engine refuses two statements and hangs on a third, so they are rewritten: - * CREATE OR REPLACE VIEW becomes DROP and CREATE, EXCHANGE TABLES becomes a three-way RENAME, and - * DROP ... SYNC loses SYNC. Values that differ on every run become slots the page fills in when it - * runs the action: deployment IDs ({{d:name}}), UUIDs ({{u:...}}) and timestamps ({{t:...}}), which - * are kept relative to the action that wrote them. - * - * It also records every page of `sqt dev` in the staged state, for browsers that cannot run the - * engine. - * - * Writes src/lib/demo/prepared.json and src/lib/demo/recordings.json. With --check it writes - * nothing and fails when prepared.json differs from what sqt does now, which CI runs. - * - * node scripts/prepare-demo.mjs [--output-dir DIR | --check] - * - * Environment: - * SQT sqt executable (default: sqt on PATH) - * CHROME_PATH explicit browser binary, for the recordings - */ -import { execFileSync, spawn } from 'node:child_process'; -import { existsSync, mkdtempSync, readFileSync, writeFileSync } from 'node:fs'; -import { createServer as createHttpServer, request as httpRequest } from 'node:http'; -import { tmpdir } from 'node:os'; -import { createServer } from 'node:net'; -import { join } from 'node:path'; -import { gunzipSync, inflateSync } from 'node:zlib'; -import { chromium } from 'playwright-core'; - -const SQT = process.env.SQT ?? 'sqt'; -const outputFlag = process.argv.indexOf('--output-dir'); -const COMMITTED_DIR = new URL('../src/lib/demo/', import.meta.url); -const CHECK = process.argv.includes('--check'); -const OUTPUT_DIR = - outputFlag === -1 ? COMMITTED_DIR : new URL(`file://${process.argv[outputFlag + 1]}/`); -const MAX_PAGES = 120; -const SKIPPED_PAGES = ['/login', '/destruction']; -const LARGE_ORDERS_SQL = `MODEL ( - engine "MergeTree()", - order_by ["order_id"] -); - -SELECT - order_id::UInt64 AS order_id, - total_cents::Int64 AS total_cents, - _replay_partition::Int32 AS _replay_partition, - _replay_offset::Int64 AS _replay_offset -FROM __ref("order_report") -WHERE total_cents >= 1000 -`; - -/** What the Plan page can select: the pipeline and each model, in any combination. */ -const SELECTABLE = ['pipeline:pl__orders', 'order_report', 'large_orders']; - -/** - * A start time for "From a time". sqt writes the start into the plan and the SQL as given, so the - * demo fills in whatever time the visitor picks ({{s:...}}); a second probe checks that the plans - * differ in nothing else. - */ -const START_PROBES = ['2026-01-01T10:01:00Z', '2026-01-01T10:02:00Z']; - -/** - * Every selection the Plan page offers: each combination of the selectable names, everything, and - * changed models only, with and without missing upstream, and from a start time where the CLI - * allows one (with --select). - */ -const SELECTIONS = [ - ...Array.from({ length: 2 ** SELECTABLE.length }, (_, mask) => - SELECTABLE.filter((_, index) => mask & (1 << index)) - ).flatMap((select) => - [false, true].flatMap((includeMissingUpstream) => - (select.length === 0 ? [null] : [null, START_PROBES[0]]).map((start) => ({ - select, - changed: false, - includeMissingUpstream, - start - })) - ) - ), - { select: [], changed: true, includeMissingUpstream: false, start: null } -]; - -/** How the demo looks a selection up; ui/src/lib/demo/_helpers/selection-key.ts builds the same key. */ -function selectionKey({ select, changed, includeMissingUpstream, start }) { - return [ - changed ? 'changed' : [...select].sort().join(' '), - includeMissingUpstream ? 'upstream' : '', - start === null ? '' : 'from' - ].join('|'); -} - -/** The query string the Plan page sends for a selection. */ -function planQuery({ select, changed, includeMissingUpstream, start }, extra = {}) { - const params = new URLSearchParams(); - for (const selector of select) params.append('select', selector); - if (changed) params.set('changed', 'true'); - if (includeMissingUpstream) params.set('include_missing_upstream', 'true'); - if (start !== null) params.set('start', start); - for (const [name, value] of Object.entries(extra)) params.set(name, value); - return params.toString(); -} - -// ── processes and ports ───────────────────────────────────────────────────────────────────────── - -function resolveBrowser() { - const candidates = [ - process.env.CHROME_PATH, - chromium.executablePath(), - '/usr/bin/chromium', - '/usr/bin/google-chrome', - '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' - ]; - const found = candidates.find((candidate) => candidate && existsSync(candidate)); - if (!found) throw new Error('Set CHROME_PATH to an explicit browser binary.'); - return found; -} - -/** Runs sqt without blocking, because the capture proxy answers its ClickHouse requests here. */ -async function sqt(project, ...args) { - console.log(`$ sqt ${args.join(' ')}`); - const child = spawn(SQT, [...args, '--project-dir', project], { stdio: ['ignore', 'ignore', 'inherit'] }); - const status = await new Promise((resolve) => child.on('close', resolve)); - if (status !== 0) throw new Error(`sqt ${args.join(' ')} exited with status ${status}`); -} - -/** A loopback port nothing is listening on. */ -async function freePort() { - const probe = createServer(); - await new Promise((resolve) => probe.listen(0, '127.0.0.1', resolve)); - const { port } = probe.address(); - await new Promise((resolve) => probe.close(resolve)); - return port; -} - -const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); - -async function waitForServer(origin, server) { - for (let attempt = 0; attempt < 120; attempt += 1) { - if (server.exitCode !== null) throw new Error(`sqt dev exited with status ${server.exitCode}`); - try { - if ((await fetch(`${origin}/api/status`)).ok) return; - } catch { - // not listening yet - } - await sleep(500); - } - throw new Error('sqt dev did not start'); -} - -// ── statements ────────────────────────────────────────────────────────────────────────────────── - -const WRITE = /^\s*(CREATE|DROP|INSERT|ALTER|RENAME|EXCHANGE|TRUNCATE|OPTIMIZE)\b/i; - -/** The statement as the browser engine runs it. */ -function adapt(sql) { - const view = sql.match(/^\s*CREATE\s+OR\s+REPLACE\s+VIEW\s+([^\s(]+)([\s\S]*)$/i); - if (view) return [`DROP VIEW IF EXISTS ${view[1]}`, `CREATE VIEW ${view[1]}${view[2]}`]; - const exchange = sql.match(/^\s*EXCHANGE\s+TABLES\s+(\S+)\s+AND\s+([^\s;]+)\s*;?\s*$/i); - if (exchange) { - const [, left, right] = exchange; - const spare = left.endsWith('`') ? `${left.slice(0, -1)}__exchange_spare\`` : `${left}__exchange_spare`; - return [`RENAME TABLE ${left} TO ${spare}, ${right} TO ${left}, ${spare} TO ${right}`]; - } - const drop = sql.match(/^(\s*DROP\s+(?:TABLE|VIEW|DICTIONARY)[\s\S]*?)\s+SYNC\s*;?\s*$/i); - if (drop) return [drop[1]]; - return [sql.trim()]; -} - -function decode(body, encoding) { - if (!encoding || encoding === 'identity') return body; - if (encoding === 'gzip') return gunzipSync(body); - if (encoding === 'deflate') return inflateSync(body); - throw new Error(`Cannot read a ClickHouse request body encoded as ${encoding}`); -} - -/** - * Forwards sqt's ClickHouse HTTP requests unchanged. While an action is open it keeps the - * statements that change state and that ClickHouse accepted, in the order it answered them; a - * write outside an action is an error, because the demo would never run it. - */ -async function startCaptureProxy(target) { - const capture = { statements: null, error: null }; - const server = createHttpServer(async (incoming, outgoing) => { - const chunks = []; - for await (const chunk of incoming) chunks.push(chunk); - const body = Buffer.concat(chunks); - const statements = []; - const url = new URL(incoming.url, 'http://clickhouse'); - try { - const text = decode(body, incoming.headers['content-encoding']).toString('utf8'); - const sql = [url.searchParams.get('query'), text].filter(Boolean).join('\n'); - if (WRITE.test(sql)) { - if (capture.statements === null) throw new Error(`sqt wrote outside an action: ${sql.slice(0, 200)}`); - if ([...url.searchParams.keys()].some((name) => name.startsWith('param_'))) { - throw new Error(`sqt sent a bound parameter, which the engine cannot replay: ${url}`); - } - statements.push(...adapt(sql)); - } - } catch (error) { - capture.error ??= error; - } - const open = capture.statements; - const forwarded = httpRequest( - { ...target, path: incoming.url, method: incoming.method, headers: incoming.headers }, - (response) => { - // Keep only what ClickHouse accepted; a refused statement would fail every replay. - if (response.statusCode === 200) open?.push(...statements); - outgoing.writeHead(response.statusCode, response.headers); - response.pipe(outgoing); - } - ); - forwarded.on('error', (error) => outgoing.destroy(error)); - forwarded.end(body); - }); - const port = await freePort(); - await new Promise((resolve) => server.listen(port, '127.0.0.1', resolve)); - return { capture, port, close: () => server.close() }; -} - -// ── slots ─────────────────────────────────────────────────────────────────────────────────────── - -const DEPLOYMENT_ID = /(? - Date.UTC(+match[1], +match[2] - 1, +match[3], +match[4], +match[5], +match[6]); - -/** - * Replaces the values that differ on every run with slots. `scope` holds what earlier roles bound - * (deployment IDs and UUIDs by value) and when each role ran; `role` is the role this text belongs - * to, which binds new deployment IDs and UUIDs. - */ -function slot(text, scope, role) { - const local = scope.local; - let slotted = text.replace(VERSION, '{{v}}').replace(DEPLOYMENT_ID, (...match) => { - const value = match[0]; - let name = scope.deployments.get(value); - if (name === undefined) { - name = CREATED_DEPLOYMENT[role.name]; - if (name === undefined) throw new Error(`${role.name} created deployment ${value}, which has no name`); - if ([...scope.deployments.values()].includes(name) && !local.created.has(value)) { - throw new Error(`${role.name} created a second deployment, ${value}`); - } - scope.deployments.set(value, name); - local.created.set(value, { name, offset: deploymentTime(match) - role.start }); - } - return `{{d:${name}}}`; - }); - slotted = slotted.replace(UUID, (value) => { - const known = scope.uuids.get(value); - if (known !== undefined) return `{{u:${known}}}`; - const name = `${role.name}.${local.uuids.size}`; - local.uuids.set(value, name); - scope.uuids.set(value, name); - return `{{u:${name}}}`; - }); - return slotted.replace(TIMESTAMP, (whole, day, separator, time, fraction = '') => { - const at = Date.parse(`${day}T${time}${fraction}Z`); - const format = `${separator === 'T' ? 'T' : 's'}${fraction.length === 0 ? 0 : fraction.length - 1}`; - if (role.startTime !== undefined && at === Date.parse(role.startTime)) return `{{s:${format}}}`; - if (at < scope.firstStart - DATA_SLACK_MS) return whole; - if (fraction === '' || /^\.0+$/.test(fraction)) { - for (const [value, name] of scope.deployments) { - const match = [...value.matchAll(DEPLOYMENT_ID)][0]; - if (deploymentTime(match) === at) return `{{dt:${name}:${format}}}`; - } - } - const owner = [...scope.roles] - .reverse() - .find((candidate) => at >= candidate.start - 1500 && at <= candidate.end + 1500); - if (owner === undefined) throw new Error(`${role.name}: no action ran at ${whole}`); - // The k-th time the role wrote; the action keeps how long after the role's start it was. - if (!scope.times.has(owner.name)) scope.times.set(owner.name, new Map()); - const ordinals = scope.times.get(owner.name); - const offset = at - owner.start; - if (!ordinals.has(offset)) { - ordinals.set(offset, ordinals.size); - local.times.push([owner.name, ordinals.get(offset), offset]); - } - return `{{t:${owner.name}:${ordinals.get(offset)}:${format}}}`; - }); -} - -/** Slots each string in a JSON value. */ -function slotJson(value, scope, role) { - return JSON.parse(slot(JSON.stringify(value), scope, role)); -} - -/** - * A prepared value without what differs on every run, so drift is judged on the rest: which run - * each time belongs to and when it fell, durations and timings, fingerprints and publication IDs - * that hash them, and the random name of the mutation lock's release table. - */ -function stripOffsets(value) { - return JSON.parse( - JSON.stringify(value, (key, item) => (key === 'times' ? [] : item)) - // A run's time can fall on a deployment's second exactly and become {{dt}} instead. - .replace(/\{\{(t:[^:}]+:\d+|dt:[^:}]+):([sT]\d)\}\}/g, '{{time:$2}}') - .replace(/(offset|[a-zA-Z]+Ms|_ms)(\\*"|\\*')?(\s*[:=]\s*)-?\d+/g, '$1$2$3 0') - .replace(/(\{\{time:s3\}\}', )\d+/g, '$1 0') - .replace(/[0-9a-f]{64}/g, 'H') - .replace(/\b\d{19,20}_H/g, 'P_H') - .replace(/_release_[0-9a-f]{16}/g, '_release_R') - ); -} - -function childScope(scope, roleName = null) { - const times = new Map([...scope.times].map(([name, ordinals]) => [name, new Map(ordinals)])); - if (roleName !== null) times.set(roleName, new Map()); - return { - deployments: new Map(scope.deployments), - uuids: new Map(scope.uuids), - times, - roles: [...scope.roles], - firstStart: scope.firstStart, - local: newLocal() - }; -} - -const newLocal = () => ({ created: new Map(), uuids: new Map(), times: [] }); - -/** What an action or step binds when it runs: the deployments it creates and when its times fall. */ -const bindings = (local) => ({ creates: [...local.created.values()], times: local.times }); - -// ── the playground ────────────────────────────────────────────────────────────────────────────── - -const workspace = mkdtempSync(join(tmpdir(), 'sqltide-ui-demo-')); -// Named as `sqt playground` names a visitor's project, which sqt records as its identity. Docker -// gets a name of its own, so a playground already running here is left alone. -const project = join(workspace, 'sqltide-playground'); -process.env.COMPOSE_PROJECT_NAME = `sqltide-demo-${process.pid}`; -console.log(`$ sqt playground ${project} --no-start`); -execFileSync(SQT, ['playground', project, '--no-start'], { stdio: 'inherit' }); -const clickhousePort = await freePort(); -const composePath = join(project, 'compose.yaml'); -writeFileSync(composePath, readFileSync(composePath, 'utf8').replace(/127\.0\.0\.1:\d+:8123/, `127.0.0.1:${clickhousePort}:8123`)); -const settingsPath = join(project, 'sqltide_project.toml'); -const settings = readFileSync(settingsPath, 'utf8').replace(/^port = \d+/m, `port = ${clickhousePort}`); -const database = settings.match(/^database = "([^"]+)"/m)[1]; -const credentials = { - user: settings.match(/^username = "([^"]+)"/m)[1], - password: settings.match(/^password = "([^"]+)"/m)[1] -}; -writeFileSync(settingsPath, settings); -execFileSync(SQT, ['playground', 'up', '--project-dir', project], { stdio: 'inherit' }); - -/** Runs SQL on the playground's ClickHouse directly, not through the proxy. */ -async function clickhouse(sql) { - const response = await fetch(`http://127.0.0.1:${clickhousePort}/`, { - method: 'POST', - headers: { - 'X-ClickHouse-User': credentials.user, - 'X-ClickHouse-Key': credentials.password - }, - body: sql - }); - const text = await response.text(); - if (!response.ok) throw new Error(`ClickHouse refused: ${sql.slice(0, 200)}\n${text}`); - return text; -} - -const proxy = await startCaptureProxy({ host: '127.0.0.1', port: clickhousePort }); -writeFileSync(settingsPath, settings.replace(/^port = \d+/m, `port = ${proxy.port}`)); - -/** Runs `work` as one role and returns the statements it wrote, as ClickHouse ran them. */ -async function capture(name, work, startTime = null) { - proxy.capture.statements = []; - const role = { name, start: Date.now(), end: 0, ...(startTime === null ? {} : { startTime }) }; - let result; - try { - result = await work(); - } finally { - role.end = Date.now(); - const statements = proxy.capture.statements; - proxy.capture.statements = null; - if (proxy.capture.error) throw proxy.capture.error; - role.statements = statements; - } - return { role, result }; -} - -/** Puts ClickHouse back in a state by dropping the database and replaying how it got there. */ -let current = null; -async function reset(state) { - if (current === state) return; - // One clickhouse-client call replays hundreds of statements far faster than one request each. - const script = [`DROP DATABASE IF EXISTS ${database} SYNC`, ...state.concrete] - .map((statement) => `${statement.replace(/;\s*$/, '')};\n`) - .join(''); - execFileSync( - 'docker', - ['compose', '--project-directory', project, 'exec', '-T', 'clickhouse', 'clickhouse-client', - '--user', credentials.user, '--password', credentials.password, '--multiquery'], - { input: script, stdio: ['pipe', 'ignore', 'inherit'] } - ); - current = state; -} - -let server; -let origin; -async function api(path, init) { - const response = await fetch(origin + path, init); - return { status: response.status, body: await response.json().catch(() => null) }; -} - -const seed = readFileSync(join(project, 'seed.sql'), 'utf8') - .split(';') - .map((statement) => statement.trim()) - .filter(Boolean); - -try { - // The story's history, which the demo replays when the page loads. - await clickhouse(`DROP DATABASE IF EXISTS ${database} SYNC`); - const scope = { - deployments: new Map(), - uuids: new Map(), - roles: [], - times: new Map(), - firstStart: Date.now(), - local: newLocal() - }; - const setup = []; - const concrete = []; - async function setupStep(name, title, work) { - const { role } = await capture(name, work); - scope.roles.push(role); - scope.local = newLocal(); - scope.times.set(name, new Map()); - setup.push({ - role: name, - title, - statements: role.statements.map((statement) => slot(statement, scope, role)), - ...bindings(scope.local) - }); - concrete.push(...role.statements); - } - await setupStep('seed', 'Create the orders source', async () => { - for (const statement of [`CREATE DATABASE IF NOT EXISTS ${database}`, ...seed]) { - proxy.capture.statements.push(statement); - await clickhouse(statement); - } - }); - await setupStep('publish1', 'Publish the orders pipeline', async () => { - await sqt(project, 'build', '--auto-approve'); - await sqt(project, 'deployment', 'promote', '--latest'); - }); - await setupStep('publish2', 'Publish large_orders', async () => { - writeFileSync(join(project, 'pipelines/pl__orders/large_orders.sql'), LARGE_ORDERS_SQL); - await sqt(project, 'build', '--auto-approve'); - await sqt(project, 'deployment', 'promote', '--latest'); - }); - // The change the story stages, written but not built yet. - writeFileSync( - join(project, 'pipelines/pl__orders/order_report.sql'), - readFileSync(join(project, 'revisions/completed_orders.sql')) - ); - - origin = `http://127.0.0.1:${await freePort()}`; - server = spawn(SQT, ['dev', '--project-dir', project, '--ui-port', new URL(origin).port], { - stdio: ['ignore', 'ignore', 'inherit'] - }); - await waitForServer(origin, server); - - /** - * States the demo prepares everything for. Each has the ClickHouse statements that lead to it, - * the scope its slots resolve in, and the role names its chain actions take. - */ - const prepared = {}; - const visited = {}; - const start = { name: 'nothing-staged', concrete: [...concrete], scope: childScope(scope) }; - start.scope.local = null; - const queue = [start]; - current = start; - const chainRoles = { 'nothing-staged': 'build', staged: 'promote', promoted: 'rollback', 'rolled-back': 'rollforward' }; - - /** Which story state an action leads to from `state`, or null for one nothing is prepared in. */ - function chainNext(state, kind, target, group) { - const stage = state.name.split('/')[0]; - const suffix = state.name.split('/')[1]; - if (stage === 'nothing-staged' && kind === 'build') return `staged/${group}`; - if (stage === 'staged' && kind === 'promote' && target === 'built') return `promoted/${suffix}`; - if (stage === 'promoted' && kind === 'rollback' && target === 'v2') return `rolled-back/${suffix}`; - if (stage === 'rolled-back' && kind === 'rollback' && target === 'built') return `promoted/${suffix}`; - return null; - } - - while (queue.length > 0) { - const state = queue.shift(); - if (prepared[state.name]) continue; - visited[state.name] = state; - console.log(`\n== ${state.name}`); - await reset(state); - const entry = { plans: {}, actions: {} }; - prepared[state.name] = entry; - - // Plans: every selection, with and without exact replay counts. - const plans = []; - async function preparePlan(selection, counts, start = selection.start) { - const role = { name: 'plan', start: Date.now(), end: 0, ...(start === null ? {} : { startTime: start }) }; - const response = await api(`/api/plan?${planQuery({ ...selection, start }, counts ? { counts: 'true' } : {})}`); - role.end = Date.now(); - const planScope = childScope(state.scope, role.name); - planScope.roles.push(role); - const slotted = slotJson(response, planScope, role); - return { ...slotted, ...bindings(planScope.local), raw: response }; - } - for (const selection of SELECTIONS) { - for (const counts of [false, true]) { - const { raw, ...plan } = await preparePlan(selection, counts); - entry.plans[`${selectionKey(selection)}|${counts ? 'counts' : ''}`] = plan; - if (!counts) plans.push({ selection, response: raw }); - if (selection.start !== null && !counts) { - const { raw: _, ...probe } = await preparePlan(selection, counts, START_PROBES[1]); - const [left, right] = [plan, probe].map((value) => JSON.stringify(stripOffsets(value))); - if (left !== right) { - let at = 0; - while (left[at] === right[at]) at += 1; - throw new Error( - `The plan for ${selectionKey(selection)} depends on the start time beyond the time itself:\n` + - ` ${left.slice(at - 120, at + 120)}\n ${right.slice(at - 120, at + 120)}` - ); - } - } - } - } - - // The deployments a visitor can promote or roll back to here. - const { body: listing } = await api('/api/deployments'); - const actions = []; - for (const { selection, response } of plans) { - if (response.status !== 200) { - console.log(` plan ${selectionKey(selection)}: ${response.status} ${JSON.stringify(response.body)}`); - continue; - } - if (process.env.PREPARE_DEBUG) console.log(` plan ${selectionKey(selection)}: ${JSON.stringify(response.body).slice(0, 1500)}`); - const group = response.body.phases.flatMap((phase) => phase.modelNames).sort().join('+') || 'no-models'; - actions.push({ kind: 'build', key: `build ${selectionKey(selection)}`, selection, group }); - } - for (const deployment of listing.deployments) { - const name = state.scope.deployments.get(deployment.deploymentId); - if (deployment.state === 'staged') actions.push({ kind: 'promote', key: `promote ${name}`, deployment, target: name }); - if (deployment.state === 'superseded' && deployment.missingRelationNames.length === 0) { - actions.push({ kind: 'rollback', key: `rollback ${name}`, deployment, target: name }); - } - } - - for (const action of actions) { - const next = chainNext(state, action.kind, action.target, action.group); - const roleName = next === null ? 'extra' : chainRoles[state.name.split('/')[0]]; - await reset(state); - const { role, result } = await capture(roleName, async () => { - if (action.kind === 'build') { - // As the Plan page does: plan, then execute that plan's deployment. - const { selection } = action; - const planned = await api(`/api/plan?${planQuery(selection)}`); - const started = await api('/api/build', { - method: 'POST', - headers: { 'content-type': 'application/json' }, - body: JSON.stringify({ - selectors: selection.select, - ...(selection.changed ? { changed: true } : {}), - ...(selection.includeMissingUpstream ? { includeMissingUpstream: true } : {}), - startTime: selection.start, - deploymentId: planned.body.deploymentId, - confirmations: [] - }) - }); - if (started.status !== 200) throw new Error(`build ${action.key}: ${JSON.stringify(started)}`); - for (let attempt = 0; ; attempt += 1) { - const feed = await api('/api/build/current?after=0'); - if (!feed.body.running && feed.body.exitCode !== null) { - if (feed.body.exitCode !== 0) throw new Error(`build ${action.key} failed: ${feed.body.stderr}`); - break; - } - if (attempt === 600) throw new Error(`build ${action.key} did not finish`); - await sleep(250); - } - return started; - } - const id = encodeURIComponent(action.deployment.deploymentId); - const response = await api(`/api/deployments/${id}/${action.kind}`, { method: 'POST' }); - if (response.status !== 200) throw new Error(`${action.key}: ${JSON.stringify(response)}`); - return response; - }, action.selection?.start ?? null); - current = null; - console.log(` ${action.key}: ${role.statements.length} statements -> ${next ?? 'unprepared'}`); - const actionScope = childScope(state.scope, roleName); - actionScope.roles.push(role); - const statements = role.statements.map((statement) => slot(statement, actionScope, role)); - entry.actions[action.key] = { - role: roleName, - response: slotJson(result, actionScope, role), - statements, - ...bindings(actionScope.local), - next - }; - if (next !== null && !prepared[next] && !queue.some((queued) => queued.name === next)) { - actionScope.local = null; - queue.push({ name: next, concrete: [...state.concrete, ...role.statements], scope: actionScope }); - } - } - } - - const version = VERSION_TEXT; - const preparedDemo = { preparedWith: version, database, start: start.name, setup, states: prepared }; - const written = `${JSON.stringify(pool(preparedDemo), null, '\t')}\n`; - const actionCount = Object.values(prepared).reduce((total, state) => total + Object.keys(state.actions).length, 0); - console.log(`prepared ${Object.keys(prepared).length} states and ${actionCount} actions`); - if (CHECK) { - // Drift is any change but the version and the slot offsets, which differ on every run. - const comparable = ({ preparedWith: _, ...rest }) => JSON.stringify(stripOffsets(rest), null, '\t'); - const committed = unpool(JSON.parse(readFileSync(new URL('prepared.json', COMMITTED_DIR), 'utf8'))); - if (comparable(committed) !== comparable(preparedDemo)) { - const fresh = new URL('prepared.json', `file://${mkdtempSync(join(tmpdir(), 'sqltide-ui-demo-check-'))}/`); - writeFileSync(fresh, written); - console.error( - `src/lib/demo/prepared.json no longer matches what sqt does (fresh copy: ${fresh.pathname}).\n` + - 'Run `node scripts/prepare-demo.mjs` in ui/ and commit the result.' - ); - process.exitCode = 1; - } else { - console.log('src/lib/demo/prepared.json matches what sqt does.'); - } - } else { - writeFileSync(new URL('prepared.json', OUTPUT_DIR), written); - // What browsers that cannot run the engine see: every page in the first staged state. - const stagedState = Object.keys(prepared).find((name) => name.startsWith('staged/')); - console.log(`\n== recording every page in ${stagedState}`); - await reset(visited[stagedState]); - const browser = await chromium.launch({ executablePath: resolveBrowser(), headless: true }); - const page = await browser.newPage({ viewport: { width: 1440, height: 900 } }); - const recorded = await crawl(page, origin); - await browser.close(); - writeFileSync( - new URL('recordings.json', OUTPUT_DIR), - `${JSON.stringify({ recordedWith: version, ...recorded }, null, '\t')}\n` - ); - console.log(`recorded ${Object.keys(recorded.responses).length} responses from ${recorded.pages.length} pages`); - } -} finally { - server?.kill(); - proxy.close(); - execFileSync(SQT, ['playground', 'down', '--volumes', '--project-dir', project], { stdio: 'inherit' }); -} - -/** - * prepared.json with each distinct statement written once: steps and actions list indexes into - * `statements`, because most builds share most of their SQL. - */ -function pool(demo) { - const statements = []; - const index = new Map(); - const intern = (statement) => { - if (!index.has(statement)) { - index.set(statement, statements.length); - statements.push(statement); - } - return index.get(statement); - }; - const pooled = (step) => ({ ...step, statements: step.statements.map(intern) }); - return { - ...demo, - setup: demo.setup.map(pooled), - states: Object.fromEntries( - Object.entries(demo.states).map(([name, state]) => [ - name, - { ...state, actions: Object.fromEntries(Object.entries(state.actions).map(([key, action]) => [key, pooled(action)])) } - ]) - ), - statements - }; -} - -/** The inverse of pool. */ -function unpool({ statements, ...demo }) { - const expanded = (step) => ({ ...step, statements: step.statements.map((at) => statements[at]) }); - return { - ...demo, - setup: demo.setup.map(expanded), - states: Object.fromEntries( - Object.entries(demo.states).map(([name, state]) => [ - name, - { ...state, actions: Object.fromEntries(Object.entries(state.actions).map(([key, action]) => [key, expanded(action)])) } - ]) - ) - }; -} - -/** The pathname and query the UI requested, which is how the demo looks responses up. */ -function key(url) { - const parsed = new URL(url); - return parsed.pathname + parsed.search; -} - -/** Records every page reachable from `start` and each GET /api response the pages ask for. */ -async function crawl(page, origin, start = ['/']) { - const responses = {}; - const record = async (response) => { - const request = response.request(); - if (request.method() !== 'GET' || !new URL(request.url()).pathname.startsWith('/api/')) return; - try { - responses[key(request.url())] = { status: response.status(), body: await response.json() }; - } catch { - // a response the page abandoned before it finished - } - }; - page.on('response', record); - const pages = []; - const queue = [...start]; - while (queue.length > 0 && pages.length < MAX_PAGES) { - const path = queue.shift(); - if (pages.includes(path)) continue; - pages.push(path); - await page.goto(origin + path, { waitUntil: 'networkidle' }); - await page.waitForTimeout(1500); - // Views a page loads on demand: a deployment's Diff tab and a run's executed SQL. - const views = page.locator('button[data-statement-sequence]'); - for (let index = 0; index < (await views.count()); index += 1) await views.nth(index).click(); - const diff = page.getByRole('button', { name: 'Diff', exact: true }); - if ((await diff.count()) > 0) await diff.click(); - await page.waitForLoadState('networkidle'); - await page.waitForTimeout(500); - const links = await page.$$eval('a[href^="/"]', (anchors) => - anchors.map((anchor) => new URL(anchor.href).pathname + new URL(anchor.href).search) - ); - for (const link of links) { - if (SKIPPED_PAGES.some((skipped) => link.startsWith(skipped))) continue; - if (!pages.includes(link) && !queue.includes(link)) queue.push(link); - } - } - page.off('response', record); - return { pages, responses }; -} diff --git a/ui/scripts/record-demo.mjs b/ui/scripts/record-demo.mjs new file mode 100644 index 00000000..6811b691 --- /dev/null +++ b/ui/scripts/record-demo.mjs @@ -0,0 +1,164 @@ +/** + * Records the API responses the UI demo at sqltide.io/demo/ replays. + * + * Creates a basic `sqt playground` (ClickHouse in Docker), publishes it, adds and publishes + * large_orders, stages the completed-orders change, then opens every page of `sqt dev` reachable + * from the sidebar, opens each deployment's Diff tab and each run's executed SQL, and records each + * GET /api response the UI asks for. The playground and `sqt dev` run on free ports and under a + * Docker project of their own, so a playground or server already running here is never recorded. + * Writes src/lib/demo/recordings.json. Each release PR writes its version into the recorded + * /api/status, so the demo shows the release it was built with. + * + * node scripts/record-demo.mjs + * + * Environment: + * SQT sqt executable (default: sqt on PATH) + * CHROME_PATH explicit browser binary + */ +import { execFileSync, spawn } from 'node:child_process'; +import { existsSync, mkdtempSync, readFileSync, writeFileSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { createServer } from 'node:net'; +import { join } from 'node:path'; +import { chromium } from 'playwright-core'; + +const SQT = process.env.SQT ?? 'sqt'; +const OUTPUT = new URL('../src/lib/demo/recordings.json', import.meta.url); +const MAX_PAGES = 120; +const SKIPPED_PAGES = ['/login', '/destruction']; +const LARGE_ORDERS_SQL = `MODEL ( + engine "MergeTree()", + order_by ["order_id"] +); + +SELECT + order_id::UInt64 AS order_id, + total_cents::Int64 AS total_cents, + _replay_partition::Int32 AS _replay_partition, + _replay_offset::Int64 AS _replay_offset +FROM __ref("order_report") +WHERE total_cents >= 1000 +`; + +function resolveBrowser() { + const candidates = [ + process.env.CHROME_PATH, + chromium.executablePath(), + '/usr/bin/chromium', + '/usr/bin/google-chrome', + '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' + ]; + const found = candidates.find((candidate) => candidate && existsSync(candidate)); + if (!found) throw new Error('Set CHROME_PATH to an explicit browser binary.'); + return found; +} + +function sqt(project, ...args) { + console.log(`$ sqt ${args.join(' ')}`); + execFileSync(SQT, [...args, '--project-dir', project], { stdio: 'inherit' }); +} + +/** A loopback port nothing is listening on. */ +async function freePort() { + const probe = createServer(); + await new Promise((resolve) => probe.listen(0, '127.0.0.1', resolve)); + const { port } = probe.address(); + await new Promise((resolve) => probe.close(resolve)); + return port; +} + +async function waitForServer(origin, server) { + for (let attempt = 0; attempt < 120; attempt += 1) { + if (server.exitCode !== null) throw new Error(`sqt dev exited with status ${server.exitCode}`); + try { + if ((await fetch(`${origin}/api/status`)).ok) return; + } catch { + // not listening yet + } + await new Promise((resolve) => setTimeout(resolve, 500)); + } + throw new Error('sqt dev did not start'); +} + +/** The pathname and query the UI requested, which is how the demo looks responses up. */ +function key(url) { + const parsed = new URL(url); + return parsed.pathname + parsed.search; +} + +const workspace = mkdtempSync(join(tmpdir(), 'sqltide-ui-demo-')); +// Named as `sqt playground` names a visitor's project, which sqt records as its identity. +const project = join(workspace, 'sqltide-playground'); +process.env.COMPOSE_PROJECT_NAME = `sqltide-demo-${process.pid}`; +console.log(`$ sqt playground ${project} --no-start`); +execFileSync(SQT, ['playground', project, '--no-start'], { stdio: 'inherit' }); +const clickhousePort = await freePort(); +const composePath = join(project, 'compose.yaml'); +writeFileSync(composePath, readFileSync(composePath, 'utf8').replace(/127\.0\.0\.1:\d+:8123/, `127.0.0.1:${clickhousePort}:8123`)); +const settingsPath = join(project, 'sqltide_project.toml'); +writeFileSync(settingsPath, readFileSync(settingsPath, 'utf8').replace(/^port = \d+/m, `port = ${clickhousePort}`)); +let server; +try { + sqt(project, 'playground', 'up'); + sqt(project, 'build', '--auto-approve'); + sqt(project, 'deployment', 'promote', '--latest'); + writeFileSync(join(project, 'pipelines/pl__orders/large_orders.sql'), LARGE_ORDERS_SQL); + sqt(project, 'build', '--auto-approve'); + sqt(project, 'deployment', 'promote', '--latest'); + writeFileSync( + join(project, 'pipelines/pl__orders/order_report.sql'), + readFileSync(join(project, 'revisions/completed_orders.sql')) + ); + sqt(project, 'build', '--auto-approve'); + + const origin = `http://127.0.0.1:${await freePort()}`; + server = spawn(SQT, ['dev', '--project-dir', project, '--ui-port', new URL(origin).port], { + stdio: ['ignore', 'ignore', 'inherit'] + }); + await waitForServer(origin, server); + + const browser = await chromium.launch({ executablePath: resolveBrowser(), headless: true }); + const page = await browser.newPage({ viewport: { width: 1440, height: 900 } }); + const responses = {}; + page.on('response', async (response) => { + const request = response.request(); + if (request.method() !== 'GET' || !new URL(request.url()).pathname.startsWith('/api/')) return; + try { + responses[key(request.url())] = { status: response.status(), body: await response.json() }; + } catch { + // a response the page abandoned before it finished + } + }); + + const pages = []; + const queue = ['/']; + while (queue.length > 0 && pages.length < MAX_PAGES) { + const path = queue.shift(); + if (pages.includes(path)) continue; + pages.push(path); + await page.goto(origin + path, { waitUntil: 'networkidle' }); + await page.waitForTimeout(1500); + // Views a page loads on demand: a deployment's Diff tab and a run's executed SQL. + const views = page.locator('button[data-statement-sequence]'); + for (let index = 0; index < (await views.count()); index += 1) await views.nth(index).click(); + const diff = page.getByRole('button', { name: 'Diff', exact: true }); + if ((await diff.count()) > 0) await diff.click(); + await page.waitForLoadState('networkidle'); + await page.waitForTimeout(500); + const links = await page.$$eval('a[href^="/"]', (anchors) => + anchors.map((anchor) => new URL(anchor.href).pathname + new URL(anchor.href).search) + ); + for (const link of links) { + if (SKIPPED_PAGES.some((skipped) => link.startsWith(skipped))) continue; + if (!pages.includes(link) && !queue.includes(link)) queue.push(link); + } + } + await browser.close(); + + const version = execFileSync(SQT, ['--version'], { encoding: 'utf8' }).trim().replace(/^sqt /, ''); + writeFileSync(OUTPUT, `${JSON.stringify({ recordedWith: version, pages, responses }, null, '\t')}\n`); + console.log(`recorded ${Object.keys(responses).length} responses from ${pages.length} pages`); +} finally { + server?.kill(); + execFileSync(SQT, ['playground', 'down', '--volumes', '--project-dir', project], { stdio: 'inherit' }); +} diff --git a/ui/src/lib/api/_resources/polling.resource.ts b/ui/src/lib/api/_resources/polling.resource.ts index a8167c02..fbaba63c 100644 --- a/ui/src/lib/api/_resources/polling.resource.ts +++ b/ui/src/lib/api/_resources/polling.resource.ts @@ -3,12 +3,6 @@ export type PollingResource = { stop(): void; }; -/** - * How often the live state refreshes. The UI demo reads its engine in the page, which a new order - * changes every few seconds, so its pages follow it more closely than `sqt dev`'s held snapshot. - */ -const LIVE_STATE_POLL_MS: number = import.meta.env.VITE_SQLTIDE_DEMO === '1' ? 5_000 : 30_000; - export function createPollingResource(refresh: () => Promise): PollingResource { let started: boolean = false; let timer: ReturnType | null = null; @@ -19,7 +13,7 @@ export function createPollingResource(refresh: () => Promise): PollingReso started = true; timer = setInterval(() => { if (!document.hidden) void refresh(); - }, LIVE_STATE_POLL_MS); + }, 30_000); void timer; }, stop(): void { diff --git a/ui/src/lib/demo-readers/_api/catalog.ts b/ui/src/lib/demo-readers/_api/catalog.ts deleted file mode 100644 index 57a414a0..00000000 --- a/ui/src/lib/demo-readers/_api/catalog.ts +++ /dev/null @@ -1,69 +0,0 @@ -/** The catalog snapshot and managed-table inspection of one database, from system tables. */ -import { VIEW_ENGINE } from '../constants.ts'; -import type { Query } from '../types.ts'; -import { directBindingName, sourceRelationNames, targetRelationName } from '../_helpers/catalog-sql.ts'; -import type { Catalog, CatalogColumn, CatalogRelation, ManagedTableState } from '../_helpers/evidence-types.ts'; -import { candidateLogicalName } from '../_helpers/naming.ts'; -import { quoteString } from '../_helpers/values.ts'; - -type TableRow = { name: string; engine: string; create_table_query: string; as_select: string }; -type ColumnRow = { table: string; name: string; type: string; default_expression: string | null }; - -/** One catalog snapshot of `database`, relations ordered by name. */ -export async function loadCatalog(query: Query, database: string): Promise { - const quoted: string = quoteString(database); - const tables: TableRow[] = await query( - `SELECT name, engine, create_table_query, as_select FROM system.tables WHERE database = ${quoted} ORDER BY name` - ); - const columnRows: ColumnRow[] = await query( - `SELECT table, name, type, default_expression FROM system.columns WHERE database = ${quoted} ORDER BY table, position` - ); - const columns: Map = new Map(); - for (const row of columnRows) { - const list: CatalogColumn[] = columns.get(row.table) ?? []; - list.push({ - name: row.name, - type: row.type, - defaultExpression: row.default_expression === null || row.default_expression === '' ? null : row.default_expression - }); - columns.set(row.table, list); - } - const relations: CatalogRelation[] = tables.map((row) => ({ - name: row.name, - engine: row.engine, - definitionSql: row.create_table_query, - columns: columns.get(row.name) ?? [], - sourceRelationNames: row.as_select.trim() === '' ? [] : sourceRelationNames(row.as_select), - targetRelationName: targetRelationName(row.create_table_query), - stableBindingName: directBindingName(row.engine, row.as_select) - })); - return { database, relations }; -} - -/** Stable logical views and deployment-suffixed model candidates of `database`. */ -export async function inspectManagedTableState(query: Query, database: string): Promise { - const quoted: string = quoteString(database); - const views: { name: string; as_select: string }[] = await query( - `SELECT name, as_select FROM system.tables WHERE database = ${quoted} AND engine = 'View' ORDER BY name` - ); - const tables: { name: string }[] = await query( - `SELECT name FROM system.tables WHERE database = ${quoted} AND engine != 'View' ORDER BY name` - ); - const state: ManagedTableState = { activeBindings: [], physicalCandidates: [] }; - for (const view of views) { - const logical: string | null = candidateLogicalName(view.name); - if (logical !== null) { - state.physicalCandidates.push({ database, logicalName: logical, physicalName: view.name, objectType: 'view' }); - continue; - } - const physical: string | null = directBindingName(VIEW_ENGINE, view.as_select); - if (physical !== null) state.activeBindings.push({ database, logicalName: view.name, physicalName: physical }); - } - for (const table of tables) { - const logical: string | null = candidateLogicalName(table.name); - if (logical !== null) { - state.physicalCandidates.push({ database, logicalName: logical, physicalName: table.name, objectType: 'table' }); - } - } - return state; -} diff --git a/ui/src/lib/demo-readers/_api/inventory.ts b/ui/src/lib/demo-readers/_api/inventory.ts deleted file mode 100644 index 3757baf2..00000000 --- a/ui/src/lib/demo-readers/_api/inventory.ts +++ /dev/null @@ -1,173 +0,0 @@ -/** - * The deployment inventory: persisted lifecycle records and publications from the metadata - * tables, combined with the relations and stable bindings in the warehouse. - */ -import { DEPLOYMENT_STATUS_INCOMPLETE } from '../constants.ts'; -import type { Query } from '../types.ts'; -import { deploymentSummaries } from '../_helpers/lifecycle.ts'; -import { compareText, pythonDatetimeText, quoteString, sortedUnique } from '../_helpers/values.ts'; -import { inspectManagedTableState, loadCatalog } from './catalog.ts'; -import type { - Catalog, - DeploymentEvidence, - DeploymentInventory, - DeploymentRecord, - ManagedTableState, - MetadataKey, - PublishEvent -} from '../_helpers/evidence-types.ts'; - -const DEPLOYMENTS_TABLE: string = '_sqltide_virtual_deployments'; -const OBJECT_STATE_TABLE: string = '_sqltide_virtual_object_state'; -const PUBLISH_HISTORY_TABLE: string = '_sqltide_virtual_publications'; -const PROGRESS_TABLE: string = '_sqltide_virtual_deployment_progress'; - -type DeploymentRow = { deployment_id: string; created_at: string }; -type ObjectRow = { - deployment_id: string; - logical_database_name: string | null; - logical_object_type: string; - logical_object_name: string; - physical_relation_name: string | null; - logical_model_name: string | null; - is_selected_root: boolean | number; - observed_at: string; -}; -type PublishRow = { - publication_id: string; - deployment_id: string; - published_at: string; - logical_database_name: string; - logical_view_name: string; - physical_relation_name: string; -}; - -async function existingTables(query: Query, database: string, names: string[]): Promise> { - const rows: { name: string }[] = await query( - `SELECT name FROM system.tables WHERE database = ${quoteString(database)} AND name IN (${names.map(quoteString).join(', ')})` - ); - return new Set(rows.map((row) => row.name)); -} - -async function publishRows(query: Query, database: string): Promise { - const columns: { name: string }[] = await query( - `SELECT name FROM system.columns WHERE database = ${quoteString(database)} AND table = ${quoteString(PUBLISH_HISTORY_TABLE)}` - ); - const names: Set = new Set(columns.map((column) => column.name)); - const operation: string = names.has('operation') ? 'operation' : "'promote' AS operation"; - const rows: PublishRow[] = await query( - `SELECT DISTINCT publication_id, deployment_id, ${operation}, toString(published_at) AS published_at, ` + - `logical_database_name, logical_view_name, physical_relation_name FROM ${database}.${PUBLISH_HISTORY_TABLE}` - ); - return rows.map((row) => ({ ...row, published_at: pythonDatetimeText(row.published_at) })); -} - -function metadataKey(row: ObjectRow): MetadataKey { - return { database: row.logical_database_name, objectType: row.logical_object_type, name: row.logical_object_name }; -} - -function deploymentRecord( - row: DeploymentRow & { headerPresent: boolean }, - objects: ObjectRow[], - publications: PublishRow[], - unfinished: Set -): DeploymentRecord { - const owned: ObjectRow[] = objects.filter((object) => object.deployment_id === row.deployment_id); - const status: string = - !row.headerPresent || unfinished.has(row.deployment_id) - ? DEPLOYMENT_STATUS_INCOMPLETE - : publications.some((event) => event.deployment_id === row.deployment_id) - ? 'published' - : 'staged'; - return { - deploymentId: row.deployment_id, - createdAt: row.created_at, - status, - selectedRootKeys: owned.filter((object) => Boolean(object.is_selected_root)).map(metadataKey), - mappings: owned.flatMap((object) => - object.physical_relation_name === null || object.logical_model_name === null - ? [] - : [ - { - key: metadataKey(object), - physicalName: object.physical_relation_name, - logicalModelName: object.logical_model_name - } - ] - ) - }; -} - -/** Persisted deployment records and publish events; a missing metadata table reads as empty. */ -export async function loadDeploymentInventory(query: Query, database: string): Promise { - const present: Set = await existingTables(query, database, [ - DEPLOYMENTS_TABLE, - OBJECT_STATE_TABLE, - PUBLISH_HISTORY_TABLE, - PROGRESS_TABLE - ]); - const deployments: (DeploymentRow & { headerPresent: boolean })[] = present.has(DEPLOYMENTS_TABLE) - ? ( - await query( - `SELECT deployment_id, toString(created_at) AS created_at FROM ${database}.${DEPLOYMENTS_TABLE}` - ) - ).map((row) => ({ deployment_id: row.deployment_id, created_at: pythonDatetimeText(row.created_at), headerPresent: true })) - : []; - const objects: ObjectRow[] = present.has(OBJECT_STATE_TABLE) - ? ( - await query( - 'SELECT DISTINCT deployment_id, logical_database_name, logical_object_type, logical_object_name, ' + - 'physical_relation_name, logical_model_name, is_selected_root, toString(observed_at) AS observed_at ' + - `FROM ${database}.${OBJECT_STATE_TABLE} WHERE state_kind = 'deployment' AND deployment_id IS NOT NULL` - ) - ).map((row) => ({ ...row, observed_at: pythonDatetimeText(row.observed_at) })) - : []; - const publications: PublishRow[] = present.has(PUBLISH_HISTORY_TABLE) ? await publishRows(query, database) : []; - // Builds that recorded their start but not their completion failed while filling their tables. - const progress: { deployment_id: string; stage: string }[] = present.has(PROGRESS_TABLE) - ? await query(`SELECT DISTINCT deployment_id, stage FROM ${database}.${PROGRESS_TABLE}`) - : []; - const completed: Set = new Set( - progress.filter((row) => row.stage === 'completed').map((row) => row.deployment_id) - ); - const unfinished: Set = new Set( - progress.filter((row) => row.stage === 'started' && !completed.has(row.deployment_id)).map((row) => row.deployment_id) - ); - const persisted: Set = new Set(deployments.map((row) => row.deployment_id)); - for (const deploymentId of sortedUnique( - objects.filter((row) => !persisted.has(row.deployment_id)).map((row) => row.deployment_id) - )) { - const observed: string[] = objects - .filter((row) => row.deployment_id === deploymentId) - .map((row) => row.observed_at) - .sort(compareText); - deployments.push({ deployment_id: deploymentId, created_at: observed[0] ?? '', headerPresent: false }); - } - const publishEvents: PublishEvent[] = sortedUnique(publications.map((row) => row.publication_id)).map((id) => { - const rows: PublishRow[] = publications.filter((row) => row.publication_id === id); - return { - publicationId: id, - deploymentId: rows[0].deployment_id, - publishedAt: rows[0].published_at, - logicalViewNames: rows.map((row) => row.logical_view_name), - bindings: rows.map((row) => ({ - database: row.logical_database_name, - logicalName: row.logical_view_name, - physicalName: row.physical_relation_name - })) - }; - }); - return { - deployments: deployments.map((row) => deploymentRecord(row, objects, publications, unfinished)), - publishEvents - }; -} - -/** The inventory, managed state and catalog of `database`, and every deployment's summary. */ -export async function loadDeploymentEvidence(query: Query, database: string): Promise { - const inventory: DeploymentInventory = await loadDeploymentInventory(query, database); - const inspected: ManagedTableState = await inspectManagedTableState(query, database); - const catalog: Catalog = await loadCatalog(query, database); - const existing: Set = new Set(catalog.relations.map((relation) => relation.name)); - return { database, inventory, inspected, catalog, summaries: deploymentSummaries(inventory, inspected, existing) }; -} diff --git a/ui/src/lib/demo-readers/_api/measure-warehouse.ts b/ui/src/lib/demo-readers/_api/measure-warehouse.ts deleted file mode 100644 index 91e08565..00000000 --- a/ui/src/lib/demo-readers/_api/measure-warehouse.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** Every warehouse measurement the `/api/state` model and source entries use, read once. */ -import type { Query, StateDefinitions, StatePayload } from '../types.ts'; -import { addSourceExtents, relationOf, tableModels } from '../_helpers/live-state.ts'; -import type { - Extent, - Measurements, - ModelActivity, - PartitionObservation, - RelationStats -} from '../_helpers/live-state.ts'; -import { pyStr, quoteString, toInt } from '../_helpers/values.ts'; -import { inspectManagedTableState } from './catalog.ts'; -import { readModelActivity } from './model-activity.ts'; -import { relationStatsQuery } from './storage.ts'; - -const LANDED_AT_COLUMN: string = '_replay_landed_at'; - -/** Rows, bytes and active parts per relation; a stable view measures the relation it binds. */ -async function relationStats( - query: Query, - database: string, - bindings: [string, string][] -): Promise> { - const stats: Map = new Map(); - for (const row of await query<{ name: string; total_rows: unknown; total_bytes: unknown }>(relationStatsQuery(database))) { - stats.set(row.name, { rows: toInt(row.total_rows), bytes: toInt(row.total_bytes), parts: 0 }); - } - for (const row of await query<{ table: string; parts: unknown }>( - `SELECT table, count() AS parts FROM system.parts WHERE database = ${quoteString(database)} AND active GROUP BY table` - )) { - const entry: RelationStats | undefined = stats.get(row.table); - if (entry !== undefined) entry.parts = toInt(row.parts); - } - for (const [logical, physical] of bindings) { - const measured: RelationStats | undefined = stats.get(physical); - if (measured !== undefined) stats.set(logical, { ...measured }); - } - return stats; -} - -/** Relations carrying the landed-at lineage column, ordered by name. */ -async function lineageRelationNames(query: Query, database: string): Promise { - const rows: { table: string }[] = await query( - `SELECT DISTINCT table FROM system.columns WHERE database = ${quoteString(database)} ` + - `AND name = ${quoteString(LANDED_AT_COLUMN)} ORDER BY table` - ); - return rows.map((row) => row.table); -} - -async function landedExtents(query: Query, database: string, relationNames: string[]): Promise> { - if (relationNames.length === 0) return new Map(); - const sql: string = relationNames - .map( - (name) => - `SELECT '${name}' AS relation, toString(min(_replay_landed_at)) AS oldest, ` + - `toString(max(_replay_landed_at)) AS newest, count() AS rows FROM \`${database}\`.\`${name}\` HAVING count() > 0` - ) - .join(' UNION ALL '); - const rows: { relation: string; oldest: string; newest: string; rows: unknown }[] = await query(sql); - return new Map(rows.map((row) => [row.relation, { oldest: pyStr(row.oldest), newest: pyStr(row.newest), rows: toInt(row.rows) }])); -} - -/** `{relation: {partition: observation}}` for every source relation. */ -async function warehousePartitions( - query: Query, - database: string, - relationNames: string[] -): Promise>> { - const observations: Map> = new Map( - relationNames.map((name) => [name, new Map()]) - ); - if (relationNames.length === 0) return observations; - const sql: string = - relationNames - .map( - (name) => - `SELECT '${name}' AS relation, _replay_partition AS partition, max(_replay_offset) AS max_offset, ` + - 'toString(min(_replay_landed_at)) AS oldest, toString(max(_replay_landed_at)) AS newest, count() AS rows ' + - `FROM \`${database}\`.\`${name}\` GROUP BY partition` - ) - .join(' UNION ALL ') + ' ORDER BY relation, partition'; - const rows: { relation: string; partition: unknown; max_offset: unknown; oldest: string; newest: string; rows: unknown }[] = - await query(sql); - for (const row of rows) { - const partition: number = toInt(row.partition); - observations - .get(row.relation) - ?.set(partition, [partition, toInt(row.max_offset), pyStr(row.oldest), pyStr(row.newest), toInt(row.rows)]); - } - return observations; -} - -/** Read sizes, landed-event extents, partitions and activity once. */ -export async function measureWarehouse( - query: Query, - database: string, - capturedAt: string, - template: StatePayload, - definitions: StateDefinitions -): Promise { - const bindings: [string, string][] = (await inspectManagedTableState(query, database)).activeBindings.map((binding) => [ - binding.logicalName, - binding.physicalName - ]); - const stats: Map = await relationStats(query, database, bindings); - const lineage: string[] = await lineageRelationNames(query, database); - const sourceRelations: string[] = definitions.sources - .map((source) => relationOf(template.sources, source.name)) - .filter((relation) => lineage.includes(relation)); - const partitions: Map> = await warehousePartitions( - query, - database, - sourceRelations - ); - const extents: Map = await landedExtents( - query, - database, - lineage.filter((name) => !sourceRelations.includes(name)) - ); - addSourceExtents(partitions, extents); - const models: Set = tableModels(definitions); - const activity: Map = await readModelActivity( - query, - database, - Object.keys(template.models) - .filter((name) => models.has(name)) - .map((name) => relationOf(template.models, name)), - capturedAt, - new Map(bindings) - ); - return { capturedAt, stats, extents, partitions, activity }; -} diff --git a/ui/src/lib/demo-readers/_api/model-activity.ts b/ui/src/lib/demo-readers/_api/model-activity.ts deleted file mode 100644 index e6beb77d..00000000 --- a/ui/src/lib/demo-readers/_api/model-activity.ts +++ /dev/null @@ -1,187 +0,0 @@ -/** - * Explainable model activity from ClickHouse system logs. `query_views_log` and `part_log` may be - * absent (a browser engine has neither); without both, recent part modifications approximate it. - */ -import type { Query } from '../types.ts'; -import type { ModelActivity } from '../_helpers/live-state.ts'; -import { sqlLiteral, timestampMicros, toInt } from '../_helpers/values.ts'; - -type Observation = { - lastTriggeredAt: string | null; - lastWriteAt: string | null; - rowsWritten: number; - latestStatus: string | null; -}; - -const ACTIVITY_WINDOW_SECONDS: number = 120; -const EMPTY: Observation = { lastTriggeredAt: null, lastWriteAt: null, rowsWritten: 0, latestStatus: null }; -const SUCCESS_STATUS: string = 'QueryFinish'; -const FAILURE_STATUSES: readonly string[] = ['ExceptionBeforeStart', 'ExceptionWhileProcessing']; - -function payload( - state: ModelActivity['state'], - source: string, - sourceAvailable: boolean, - approximate: boolean, - detail: string, - observation: Observation = EMPTY -): ModelActivity { - return { - state, - source, - sourceAvailable, - approximate, - lastTriggeredAt: observation.lastTriggeredAt, - lastWriteAt: observation.lastWriteAt, - rowsWritten: observation.rowsWritten, - windowSeconds: ACTIVITY_WINDOW_SECONDS, - detail - }; -} - -function writePayload(observation: Observation, source: string): ModelActivity { - const moving: boolean = observation.rowsWritten > 0; - return payload( - moving ? 'moving' : 'idle', - source, - true, - false, - moving - ? `${observation.rowsWritten} rows were written in the last ${ACTIVITY_WINDOW_SECONDS}s.` - : `The model was triggered but wrote no rows in the last ${ACTIVITY_WINDOW_SECONDS}s.`, - observation - ); -} - -function unqualifiedRelation(value: string): string { - const unquoted: string = value.replaceAll('`', ''); - const at: number = unquoted.lastIndexOf('.'); - return at < 0 ? unquoted : unquoted.slice(at + 1); -} - -async function queryViewObservations(query: Query, database: string): Promise> { - const rows: { observed_at: string; view_target: string; written_rows: unknown; status: string }[] = await query( - 'SELECT toString(event_time_microseconds) AS observed_at, view_target, written_rows, toString(status) AS status ' + - `FROM system.query_views_log WHERE event_time >= now() - INTERVAL ${ACTIVITY_WINDOW_SECONDS} SECOND ` + - `AND view_type = 'Materialized' AND startsWith(replaceAll(view_target, '\`', ''), '${sqlLiteral(database)}.') ` + - 'ORDER BY event_time_microseconds' - ); - const observations: Map = new Map(); - for (const row of rows) { - const name: string = unqualifiedRelation(row.view_target); - const previous: Observation = observations.get(name) ?? EMPTY; - const written: number = toInt(row.written_rows); - const succeeded: boolean = row.status === SUCCESS_STATUS; - observations.set(name, { - lastTriggeredAt: row.observed_at, - lastWriteAt: succeeded && written > 0 ? row.observed_at : previous.lastWriteAt, - rowsWritten: succeeded ? previous.rowsWritten + written : previous.rowsWritten, - latestStatus: row.status - }); - } - return observations; -} - -async function partLogObservations(query: Query, database: string): Promise> { - const rows: { observed_at: string; table: string; rows: unknown }[] = await query( - 'SELECT toString(event_time_microseconds) AS observed_at, table, rows FROM system.part_log ' + - `WHERE database = '${sqlLiteral(database)}' AND event_type = 'NewPart' ` + - `AND event_time >= now() - INTERVAL ${ACTIVITY_WINDOW_SECONDS} SECOND ORDER BY event_time_microseconds` - ); - const observations: Map = new Map(); - for (const row of rows) { - const previous: Observation = observations.get(row.table) ?? EMPTY; - const written: number = toInt(row.rows); - observations.set(row.table, { - lastTriggeredAt: row.observed_at, - lastWriteAt: written > 0 ? row.observed_at : previous.lastWriteAt, - rowsWritten: previous.rowsWritten + written, - latestStatus: SUCCESS_STATUS - }); - } - return observations; -} - -async function partsObservations(query: Query, database: string): Promise> { - const rows: { table: string; last_modified_at: string }[] = await query( - 'SELECT table, toString(max(modification_time)) AS last_modified_at FROM system.parts ' + - `WHERE active AND database = '${sqlLiteral(database)}' GROUP BY table ORDER BY table` - ); - return new Map( - rows.map((row) => [ - row.table, - { lastTriggeredAt: null, lastWriteAt: row.last_modified_at, rowsWritten: 0, latestStatus: SUCCESS_STATUS } - ]) - ); -} - -function approximatePayload(observation: Observation, capturedAt: string): ModelActivity { - const written: number | null = observation.lastWriteAt === null ? null : timestampMicros(observation.lastWriteAt); - const now: number | null = timestampMicros(capturedAt); - const moving: boolean = - written !== null && now !== null && Math.max((now - written) / 1e6, 0) <= ACTIVITY_WINDOW_SECONDS; - return payload( - moving ? 'moving' : 'idle', - 'system_parts', - true, - true, - moving - ? 'A table part changed recently; this may include background merges.' - : 'No recent table-part modification was observed.', - observation - ); -} - -/** Capability-aware activity evidence for every model relation, keyed by relation name. */ -export async function readModelActivity( - query: Query, - database: string, - relationNames: string[], - capturedAt: string, - activeBindings: Map -): Promise> { - const unknown: ModelActivity = payload('unknown', 'unavailable', false, false, 'ClickHouse activity telemetry is unavailable.'); - let capabilities: string[]; - let views: Map; - let parts: Map; - let approximate: Map; - try { - const rows: { name: string }[] = await query( - "SELECT name FROM system.tables WHERE database = 'system' AND name IN ('part_log', 'query_views_log') ORDER BY name" - ); - capabilities = [...new Set(rows.map((row) => row.name))]; - views = capabilities.includes('query_views_log') ? await queryViewObservations(query, database) : new Map(); - parts = capabilities.includes('part_log') ? await partLogObservations(query, database) : new Map(); - approximate = capabilities.length === 0 ? await partsObservations(query, database) : new Map(); - } catch { - return new Map(relationNames.map((name) => [name, { ...unknown }])); - } - const activity: Map = new Map(); - for (const relationName of relationNames) { - const evidence: string = activeBindings.get(relationName) ?? relationName; - const find: (observations: Map) => Observation | undefined = (observations) => - observations.get(evidence) ?? observations.get(relationName); - const view: Observation | undefined = find(views); - const part: Observation | undefined = find(parts); - const modified: Observation | undefined = find(approximate); - let result: ModelActivity; - if (view !== undefined) { - result = - view.latestStatus !== null && FAILURE_STATUSES.includes(view.latestStatus) - ? payload('stalled', 'query_views_log', true, false, 'The latest materialized-view execution failed.', view) - : writePayload(view, 'query_views_log'); - } else if (part !== undefined) result = writePayload(part, 'part_log'); - else if (modified !== undefined) result = approximatePayload(modified, capturedAt); - else if (capabilities.length > 0) { - result = payload( - 'idle', - capabilities.includes('query_views_log') ? 'query_views_log' : 'part_log', - true, - false, - `No model writes were observed in the last ${ACTIVITY_WINDOW_SECONDS}s.` - ); - } else result = { ...unknown }; - activity.set(relationName, result); - } - return activity; -} diff --git a/ui/src/lib/demo-readers/_api/run-history.ts b/ui/src/lib/demo-readers/_api/run-history.ts deleted file mode 100644 index 5f21656d..00000000 --- a/ui/src/lib/demo-readers/_api/run-history.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** Terminal invocations and run event streams read from the append-only run tables. */ -import { INVOCATIONS_TABLE, RUN_EVENTS_TABLE } from '../constants.ts'; -import type { Query, RunPayload } from '../types.ts'; -import type { Streams } from '../_helpers/run-assembly.ts'; -import { streamsFromRows, terminalRun } from '../_helpers/run-rows.ts'; -import type { EventRow, InvocationRow } from '../_helpers/run-rows.ts'; -import { pyStr, sqlLiteral } from '../_helpers/values.ts'; -import { tableExists } from './warehouse-probes.ts'; - -const EVENT_COLUMNS: string = - 'invocation_id, sequence, toString(emitted_at) AS emitted_at, event_kind, step_id, phase, payload_json'; - -type TerminalFilter = { invocationId?: string; limit?: number; scheduled?: boolean }; - -type EventFilter = { - invocationId?: string; - after?: number; - rowLimit?: number; - recentLimit?: number; - activeOnly?: boolean; - excludeTerminalInvocations?: boolean; -}; - - -/** Terminal invocations by ID, newest start first. */ -export async function terminalRuns( - query: Query, - database: string, - filter: TerminalFilter, - present?: boolean -): Promise> { - const runs: Map = new Map(); - if (!(present ?? (await tableExists(query, database, INVOCATIONS_TABLE)))) return runs; - const clauses: string[] = []; - if (filter.invocationId !== undefined) clauses.push(`invocation_id = '${sqlLiteral(filter.invocationId)}'`); - if (filter.scheduled === true) clauses.push("command = 'audit' AND mode = 'scheduled'"); - if (filter.scheduled === false) clauses.push("NOT (command = 'audit' AND coalesce(mode, '') = 'scheduled')"); - const where: string = clauses.length === 0 ? '' : ` WHERE ${clauses.join(' AND ')}`; - const limit: string = filter.limit === undefined ? '' : ` LIMIT ${filter.limit}`; - const rows: InvocationRow[] = await query( - 'SELECT invocation_id, project_identity, command, mode, outcome, exit_code, ' + - 'toString(started_at) AS started_at, toString(completed_at) AS completed_at, ' + - 'duration_ms, selected_node_count, error_message, summary_json, tool_version ' + - `FROM \`${database}\`.\`${INVOCATIONS_TABLE}\`${where} ORDER BY started_at DESC${limit}` - ); - for (const row of rows) runs.set(pyStr(row.invocation_id), terminalRun(row)); - return runs; -} - -/** The `run_started` events of the given invocations. */ -export async function runStartedStreams( - query: Query, - database: string, - invocationIds: string[], - present: boolean -): Promise { - if (invocationIds.length === 0 || !present) return new Map(); - const literals: string = invocationIds.map((id) => `'${sqlLiteral(id)}'`).join(', '); - return streamsFromRows( - await query( - `SELECT ${EVENT_COLUMNS} FROM \`${database}\`.\`${RUN_EVENTS_TABLE}\` ` + - `WHERE invocation_id IN (${literals}) AND event_kind = 'run_started' ORDER BY invocation_id, sequence` - ) - ); -} - -export async function eventStreams( - query: Query, - database: string, - filter: EventFilter, - present?: boolean -): Promise { - if (!(present ?? (await tableExists(query, database, RUN_EVENTS_TABLE)))) return new Map(); - const events: string = `\`${database}\`.\`${RUN_EVENTS_TABLE}\``; - const clauses: string[] = []; - if (filter.invocationId !== undefined) clauses.push(`invocation_id = '${sqlLiteral(filter.invocationId)}'`); - if (filter.after !== undefined && filter.after !== 0) clauses.push(`sequence > ${filter.after}`); - if (filter.activeOnly === true) { - clauses.push( - `invocation_id IN (SELECT invocation_id FROM ${events} GROUP BY invocation_id ` + - "HAVING countIf(event_kind = 'run_started') > 0 AND countIf(event_kind = 'run_completed') = 0)" - ); - } - if (filter.excludeTerminalInvocations === true) { - clauses.push(`invocation_id NOT IN (SELECT invocation_id FROM \`${database}\`.\`${INVOCATIONS_TABLE}\`)`); - } - const where: string = clauses.length === 0 ? '' : ` WHERE ${clauses.join(' AND ')}`; - const sql: string = - filter.recentLimit === undefined - ? `SELECT ${EVENT_COLUMNS} FROM ${events}${where} ORDER BY invocation_id, sequence` + - (filter.rowLimit === undefined ? '' : ` LIMIT ${filter.rowLimit}`) - : `SELECT ${EVENT_COLUMNS} FROM (SELECT ${EVENT_COLUMNS}, ` + - `row_number() OVER (PARTITION BY invocation_id ORDER BY sequence DESC) AS recency FROM ${events}${where}) ` + - `WHERE recency <= ${filter.recentLimit} OR event_kind = 'run_started' ORDER BY invocation_id, sequence`; - return streamsFromRows(await query(sql)); -} diff --git a/ui/src/lib/demo-readers/_api/source-states.ts b/ui/src/lib/demo-readers/_api/source-states.ts deleted file mode 100644 index 39786999..00000000 --- a/ui/src/lib/demo-readers/_api/source-states.ts +++ /dev/null @@ -1,79 +0,0 @@ -/** The source entries of `/api/state` with their warehouse fields measured again. */ -import type { Query, StateDefinitions, StatePayload } from '../types.ts'; -import { - freshness, - lagSeconds, - partitionsPayload, - relationOf, - rowsPerSecond, - throughputWindow, - zeroFilledBuckets -} from '../_helpers/live-state.ts'; -import type { Extent, FreshnessPolicy, Measurements, Throughput } from '../_helpers/live-state.ts'; -import { toInt } from '../_helpers/values.ts'; - -/** Landed-event counts per source relation, bucketed over a window chosen by its newest age. */ -async function landedThroughputs( - query: Query, - database: string, - newestAges: Map -): Promise> { - const result: Map = new Map(); - if (newestAges.size === 0) return result; - const windows: [string, number, number][] = [...newestAges].map(([name, age]) => [name, ...throughputWindow(age)]); - const sql: string = - windows - .map( - ([name, window, bucket]) => - `SELECT '${name}' AS relation, toUnixTimestamp(toStartOfInterval(_replay_landed_at, INTERVAL ${bucket} SECOND)) AS bucket, ` + - `count() AS rows FROM \`${database}\`.\`${name}\` WHERE _replay_landed_at >= now64(3) - INTERVAL ${window} SECOND GROUP BY bucket` - ) - .join(' UNION ALL ') + ' ORDER BY relation, bucket'; - const counts: Map> = new Map(); - for (const row of await query<{ relation: string; bucket: unknown; rows: unknown }>(sql)) { - const byBucket: Map = counts.get(row.relation) ?? new Map(); - counts.set(row.relation, byBucket); - byBucket.set(toInt(row.bucket), toInt(row.rows)); - } - for (const [name, window, bucket] of windows) { - result.set(name, { windowSeconds: window, bucketSeconds: bucket, buckets: zeroFilledBuckets(counts.get(name) ?? new Map(), window, bucket) }); - } - return result; -} - -/** Source entries with their warehouse fields replaced; broker lag is unknown without a broker. */ -export async function sourceStates( - query: Query, - database: string, - template: StatePayload, - definitions: StateDefinitions, - measured: Measurements -): Promise { - const ages: Map = new Map(); - for (const source of definitions.sources) { - const relation: string = relationOf(template.sources, source.name); - const extent: Extent | undefined = measured.extents.get(relation); - if (extent !== undefined) ages.set(relation, lagSeconds(extent.newest, measured.capturedAt)); - } - const throughputs: Map = await landedThroughputs(query, database, ages); - const states: StatePayload['sources'] = {}; - for (const [name, entry] of Object.entries(template.sources)) { - const relation: string = relationOf(template.sources, name); - const newest: string | null = measured.extents.get(relation)?.newest ?? null; - const throughput: Throughput | null = throughputs.get(relation) ?? null; - const policy: FreshnessPolicy = definitions.sources.find((source) => source.name === name)?.freshness ?? null; - states[name] = { - ...entry, - rows: measured.stats.get(relation)?.rows ?? null, - oldestEventAt: measured.extents.get(relation)?.oldest ?? null, - newestEventAt: newest, - lastArrivalSeconds: lagSeconds(newest, measured.capturedAt), - kafkaLagMessages: null, - freshness: freshness(newest, measured.capturedAt, policy), - throughput, - rowsPerSecond: rowsPerSecond(throughput), - partitions: partitionsPayload(measured.partitions.get(relation)) - }; - } - return states; -} diff --git a/ui/src/lib/demo-readers/_api/statement-progress.ts b/ui/src/lib/demo-readers/_api/statement-progress.ts deleted file mode 100644 index e240c6e8..00000000 --- a/ui/src/lib/demo-readers/_api/statement-progress.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** Live warehouse progress of a run's active statement from `system.processes`. */ -import type { JsonObject, Query, RunEvent } from '../types.ts'; -import { compareText, get, pyStr, sqlLiteral, toInt } from '../_helpers/values.ts'; -import { activeStatement } from '../_helpers/run-assembly.ts'; - -type ProcessRow = { - elapsed: unknown; - read_rows: unknown; - read_bytes: unknown; - total_rows_approx: unknown; - memory_usage: unknown; - settings: { [name: string]: unknown } | null; -}; - -async function loadProcess(query: Query, queryId: string): Promise { - try { - const rows: ProcessRow[] = await query( - 'SELECT elapsed, read_rows, read_bytes, total_rows_approx, memory_usage, Settings AS settings ' + - `FROM system.processes WHERE query_id = '${sqlLiteral(queryId)}' LIMIT 1` - ); - return rows[0] ?? null; - } catch { - // Progress is optional: a warehouse failure reads as no progress. - return null; - } -} - -/** - * The active statement's live progress, or `null` when no statement is running. Replay offset - * progress needs the server's frontier observer and is not reported here. - */ -export async function statementProgress( - query: Query, - events: RunEvent[], - observedAt: string -): Promise { - const active: RunEvent | null = activeStatement(events); - if (active === null || get(active, 'queryId') === null) return null; - const queryId: string = pyStr(active.queryId); - const progress: ProcessRow | null = await loadProcess(query, queryId); - const payload: JsonObject = { - found: progress !== null, - queryId, - statementSequence: toInt(active.statementSequence), - stepId: get(active, 'stepId'), - phase: get(active, 'phase'), - observedAt - }; - if (progress === null) return payload; - const elapsed: number = Number(progress.elapsed); - const readRows: number = toInt(progress.read_rows); - const readBytes: number = toInt(progress.read_bytes); - const settings: [string, string][] = Object.entries(progress.settings ?? {}) - .map(([name, value]): [string, string] => [name, pyStr(value)]) - .sort(([left], [right]) => compareText(left, right)); - return { - ...payload, - elapsedSeconds: elapsed, - readRows, - readBytes, - totalRowsApprox: toInt(progress.total_rows_approx), - memoryUsageBytes: toInt(progress.memory_usage), - readRowsPerSecond: elapsed <= 0 ? 0 : readRows / elapsed, - readBytesPerSecond: elapsed <= 0 ? 0 : readBytes / elapsed, - settings: Object.fromEntries(settings) - }; -} diff --git a/ui/src/lib/demo-readers/_api/storage.ts b/ui/src/lib/demo-readers/_api/storage.ts deleted file mode 100644 index bba94edb..00000000 --- a/ui/src/lib/demo-readers/_api/storage.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** Approximate rows and bytes per relation from one scan of `system.tables`. */ -import type { Query } from '../types.ts'; -import { quoteString } from '../_helpers/values.ts'; -import type { Storage } from '../_helpers/evidence-types.ts'; - -type StatsRow = { name: string; total_rows: unknown; total_bytes: unknown }; - -/** The relation stats query of the state overlay and the deployment payloads. */ -export function relationStatsQuery(database: string): string { - return ( - 'SELECT name, coalesce(total_rows, 0) AS total_rows, coalesce(total_bytes, 0) AS total_bytes ' + - `FROM system.tables WHERE database = ${quoteString(database)}` - ); -} - -/** `int(value)` for numbers; anything else counts as zero. */ -function storageInt(value: unknown): number { - const parsed: number = typeof value === 'string' && value.trim() !== '' ? Number(value) : typeof value === 'number' ? value : Number.NaN; - return Number.isFinite(parsed) ? Math.trunc(parsed) : 0; -} - -export async function relationStorage(query: Query, database: string): Promise> { - const rows: StatsRow[] = await query(relationStatsQuery(database)); - return new Map(rows.map((row) => [row.name, { rows: storageInt(row.total_rows), bytes: storageInt(row.total_bytes) }])); -} diff --git a/ui/src/lib/demo-readers/_api/warehouse-health.ts b/ui/src/lib/demo-readers/_api/warehouse-health.ts deleted file mode 100644 index 89fda621..00000000 --- a/ui/src/lib/demo-readers/_api/warehouse-health.ts +++ /dev/null @@ -1,129 +0,0 @@ -/** - * Warehouse health a browser engine can report. Disk capacity, inodes and server memory describe - * the machine a ClickHouse server runs on, which an in-browser engine does not have, so they are - * left empty without the server's missing-evidence warnings, and the demo hides them. - */ -import type { JsonObject, Query } from '../types.ts'; -import { pyStr, quoteString, toInt } from '../_helpers/values.ts'; - -const CAPACITY_WARNING_AVAILABLE_FRACTION: number = 0.15; -const CAPACITY_CRITICAL_AVAILABLE_FRACTION: number = 0.05; -const DEAD_LETTERS_TABLE: string = '_sqltide_dead_letters'; -const DEAD_LETTER_PAYLOAD_CHARACTERS: number = 500; - -/** Run an optional probe; a failure only adds its warning. */ -async function optional(warnings: string[], warning: string, probe: () => Promise): Promise { - try { - const value: T | null = await probe(); - if (value === null) warnings.push(warning); - return value; - } catch { - warnings.push(warning); - return null; - } -} - -async function deadLetters(query: Query, database: string): Promise { - const [route]: { target_database: string }[] = await query( - "SELECT extract(create_table_query, 'TO `?([^.` ]+)`?\\\\.`?" + - `${DEAD_LETTERS_TABLE}') AS target_database FROM system.tables WHERE database = ${quoteString(database)} ` + - "AND engine = 'MaterializedView' AND target_database != '' LIMIT 1" - ); - const target: string = route?.target_database || database; - const present: unknown[] = await query( - `SELECT 1 AS present FROM system.tables WHERE database = ${quoteString(target)} AND name = ${quoteString(DEAD_LETTERS_TABLE)}` - ); - if (present.length === 0) return []; - const rows: { model_name: string; row_count: unknown; latest_failed_columns: unknown[]; latest_payload: string; latest_quarantined_at: string }[] = - await query( - 'SELECT model_name, count() AS row_count, argMax(failed_columns, quarantined_at) AS latest_failed_columns, ' + - `substringUTF8(argMax(payload, quarantined_at), 1, ${DEAD_LETTER_PAYLOAD_CHARACTERS}) AS latest_payload, ` + - `toString(max(quarantined_at)) AS latest_quarantined_at FROM ${target}.${DEAD_LETTERS_TABLE} ` + - 'WHERE quarantined_at >= now64(3) - INTERVAL 24 HOUR GROUP BY model_name ORDER BY model_name' - ); - return rows.map((row) => ({ - modelName: pyStr(row.model_name), - rowCount: toInt(row.row_count), - latestFailedColumns: row.latest_failed_columns.map(pyStr), - latestPayload: pyStr(row.latest_payload), - latestQuarantinedAt: pyStr(row.latest_quarantined_at) - })); -} - -/** - * The `warehouseHealth` of the state payload. `template` is the health `sqt dev` reported, which - * supplies the adapter name and whether managed Kafka sources are configured. - */ -export async function readWarehouseHealth( - query: Query, - database: string, - capturedAt: string, - template: JsonObject | null -): Promise { - const started: number = performance.now(); - const warnings: string[] = []; - const server: { version: string; uptime_seconds: unknown } | null = await optional( - warnings, - 'Server identity is unavailable.', - async () => (await query<{ version: string; uptime_seconds: unknown }>('SELECT version() AS version, uptime() AS uptime_seconds'))[0] ?? null - ); - const activity: JsonObject | null = await optional(warnings, 'Current warehouse activity is unavailable.', async () => { - const [row]: { active_queries: unknown; active_merges: unknown; incomplete_mutations: unknown }[] = await query( - 'SELECT (SELECT count() FROM system.processes WHERE query_id != currentQueryID()) AS active_queries, ' + - '(SELECT count() FROM system.merges) AS active_merges, ' + - '(SELECT count() FROM system.mutations WHERE NOT is_done) AS incomplete_mutations' - ); - return row === undefined - ? null - : { - activeQueries: toInt(row.active_queries), - activeMerges: toInt(row.active_merges), - incompleteMutations: toInt(row.incomplete_mutations) - }; - }); - // No managed Kafka engine exists in a browser engine, so configured sources cannot be observed. - const configured: number = Number((template?.kafkaConsumers as JsonObject | null | undefined)?.configuredTables ?? 0); - if (configured > 0) warnings.push('Managed Kafka consumer health is unavailable.'); - const kafkaConsumers: JsonObject | null = - configured > 0 - ? null - : { configuredTables: 0, materializedTables: 0, materializedTableNames: [], pollingTables: 0, exceptionTables: 0, stuckConsumers: [] }; - const letters: JsonObject[] | null = await optional(warnings, 'Dead-letter counts are unavailable.', () => - deadLetters(query, database) - ); - const tables: JsonObject[] | null = await optional(warnings, 'Project table footprint is unavailable.', async () => - ( - await query<{ table: string; rows: unknown; bytes_on_disk: unknown; active_parts: unknown }>( - 'SELECT table, sum(rows) AS rows, sum(bytes_on_disk) AS bytes_on_disk, count() AS active_parts ' + - `FROM system.parts WHERE active AND database = ${quoteString(database)} GROUP BY table ` + - 'ORDER BY bytes_on_disk DESC, table LIMIT 10' - ) - ).map((row) => ({ - name: pyStr(row.table), - rows: toInt(row.rows), - bytesOnDisk: toInt(row.bytes_on_disk), - activeParts: toInt(row.active_parts) - })) - ); - return { - availability: 'partial', - status: 'unknown', - adapter: template?.adapter ?? 'clickhouse', - database, - version: server === null ? null : pyStr(server.version), - uptimeSeconds: server === null ? null : toInt(server.uptime_seconds), - measuredAt: capturedAt, - collectionDurationMs: Math.round(performance.now() - started), - stale: false, - warnings, - capacityWarningFraction: CAPACITY_WARNING_AVAILABLE_FRACTION, - capacityCriticalFraction: CAPACITY_CRITICAL_AVAILABLE_FRACTION, - disks: [], - inodes: { total: null, free: null, status: 'unknown' }, - memory: null, - activity, - kafkaConsumers, - deadLetters: letters, - tables - }; -} diff --git a/ui/src/lib/demo-readers/_api/warehouse-probes.ts b/ui/src/lib/demo-readers/_api/warehouse-probes.ts deleted file mode 100644 index df3d2054..00000000 --- a/ui/src/lib/demo-readers/_api/warehouse-probes.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** Small warehouse probes the run and state readers share. */ -import type { Query } from '../types.ts'; -import { pyStr, quoteString, toInt } from '../_helpers/values.ts'; - -export async function tableExists(query: Query, database: string, table: string): Promise { - const rows: { present: unknown }[] = await query( - `SELECT count() AS present FROM system.tables WHERE database = ${quoteString(database)} AND name = ${quoteString(table)}` - ); - return rows.length > 0 && toInt(rows[0].present) > 0; -} - -/** The warehouse's current time as an exact UTC `DateTime64(3)` string. */ -export async function captureWarehouseTimestamp(query: Query): Promise { - const rows: { warehouse_timestamp: string }[] = await query( - "SELECT toString(now64(3, 'UTC'), 'UTC') AS warehouse_timestamp" - ); - if (rows.length === 0) throw new Error('ClickHouse returned no warehouse timestamp'); - return pyStr(rows[0].warehouse_timestamp); -} diff --git a/ui/src/lib/demo-readers/_helpers/catalog-sql.ts b/ui/src/lib/demo-readers/_helpers/catalog-sql.ts deleted file mode 100644 index e6794e9a..00000000 --- a/ui/src/lib/demo-readers/_helpers/catalog-sql.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Catalog facts read from ClickHouse's own SQL text. The server parses each relation's SQL with - * its SQL analyzer; ClickHouse normalizes `create_table_query` and `as_select` and qualifies every - * relation name, so these patterns recover the same facts from them. - */ -import { VIEW_ENGINE } from '../constants.ts'; - -const IDENTIFIER: string = '(?:`(?:[^`]|``)+`|[A-Za-z_][A-Za-z0-9_$]*)'; -const QUALIFIED: string = `${IDENTIFIER}(?:\\s*\\.\\s*${IDENTIFIER})?`; -const DIRECT_BINDING: RegExp = new RegExp(`^\\s*SELECT\\s+\\*\\s+FROM\\s+(${QUALIFIED})\\s*;?\\s*$`, 'i'); -const MATERIALIZED_VIEW_TARGET: RegExp = new RegExp( - `^\\s*CREATE\\s+MATERIALIZED\\s+VIEW\\s+[\\s\\S]*?\\sTO\\s+(${QUALIFIED})`, - 'i' -); -const READ_RELATION: RegExp = new RegExp(`\\b(?:FROM|JOIN)\\s+(${QUALIFIED})(\\s*\\()?`, 'gi'); -const CTE_NAME: RegExp = new RegExp(`(${IDENTIFIER})\\s+AS\\s*\\(`, 'gi'); - -function unquoted(identifier: string): string { - return identifier.startsWith('`') ? identifier.slice(1, -1).replaceAll('``', '`') : identifier; -} - -/** The unqualified relation name of `db.name` or `name`. */ -function relationName(qualified: string): string { - const parts: string[] = qualified.match(new RegExp(IDENTIFIER, 'g')) ?? [qualified]; - return unquoted(parts[parts.length - 1]); -} - -/** The relation a view binds directly, when its query is exactly `SELECT * FROM relation`. */ -export function directBindingName(engine: string, asSelect: string): string | null { - if (engine !== VIEW_ENGINE) return null; - const match: RegExpExecArray | null = DIRECT_BINDING.exec(asSelect); - return match === null ? null : relationName(match[1]); -} - -/** The `TO` relation of a materialized view. */ -export function targetRelationName(createTableQuery: string): string | null { - const match: RegExpExecArray | null = MATERIALIZED_VIEW_TARGET.exec(createTableQuery); - return match === null ? null : relationName(match[1]); -} - -/** Distinct relation names a query reads, in order; CTE names and table functions excluded. */ -export function sourceRelationNames(asSelect: string): string[] { - const code: string = asSelect.replace(/'(?:[^'\\]|\\.|'')*'/g, "''"); - const ctes: Set = new Set([...code.matchAll(CTE_NAME)].map((match) => unquoted(match[1]))); - const names: string[] = []; - for (const match of code.matchAll(READ_RELATION)) { - if (match[2] !== undefined) continue; - const name: string = relationName(match[1]); - if (!ctes.has(name) && !names.includes(name)) names.push(name); - } - return names; -} diff --git a/ui/src/lib/demo-readers/_helpers/deployment-diff.ts b/ui/src/lib/demo-readers/_helpers/deployment-diff.ts deleted file mode 100644 index 27b8d218..00000000 --- a/ui/src/lib/demo-readers/_helpers/deployment-diff.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** Which relations a deployment diff compares and how each comparison is summarized. */ -import { DEPLOYMENT_STATUS_INCOMPLETE, PUBLISHED_OBJECT_TYPES } from '../constants.ts'; -import type { DeploymentDiffStatus } from '../types.ts'; -import { compareText } from './values.ts'; -import type { Binding, CatalogColumn, DeploymentRecord } from './evidence-types.ts'; - -/** The endpoint naming the current stable bindings. */ -const ACTIVE_DIFF_ENDPOINT: string = 'active'; - -export type RelationPair = { - database: string; - logicalName: string; - fromPhysicalName: string | null; - toPhysicalName: string | null; -}; - -/** Whether the endpoint binds the relation, and its columns and row count when it exists. */ -export type DiffSide = { bound: boolean; found: { columns: CatalogColumn[]; rowCount: number } | null }; - -export function identifierError(value: string): string | null { - return /^[A-Za-z_][A-Za-z0-9_]*$/.test(value) ? null : `Deployment diff cannot query invalid identifier '${value}'`; -} - -/** `(from, to)` endpoints of `DEPLOYMENT` (compared with the active bindings) or `FROM:TO`. */ -export function parseComparison(comparison: string): [string, string] { - const parts: string[] = comparison.split(':'); - const [from, to]: [string, string] = - parts.length === 1 && parts[0] !== '' - ? [ACTIVE_DIFF_ENDPOINT, parts[0]] - : parts.length === 2 && parts[0] !== '' && parts[1] !== '' - ? [parts[0], parts[1]] - : (() => { - throw new Error('deployment diff expects DEPLOYMENT or FROM:TO'); - })(); - if (from === to) throw new Error('deployment diff endpoints must be different'); - return [from, to]; -} - -function key(database: string, name: string): string { - return `${database}\u0000${name}`; -} - -function endpointRelations( - endpoint: string, - deployments: DeploymentRecord[], - active: Binding[], - database: string -): Map { - if (endpoint === ACTIVE_DIFF_ENDPOINT) { - if (active.length === 0) throw new Error("deployment diff endpoint 'active' has no stable bindings"); - return new Map(active.map((binding) => [key(binding.database, binding.logicalName), binding.physicalName])); - } - const deployment: DeploymentRecord | undefined = deployments.find((item) => item.deploymentId === endpoint); - if (deployment === undefined) throw new Error(`Unknown deployment diff endpoint '${endpoint}'`); - if (deployment.status === DEPLOYMENT_STATUS_INCOMPLETE) { - throw new Error(`Deployment diff endpoint '${endpoint}' is incomplete`); - } - const relations: Map = new Map( - deployment.mappings - .filter((mapping) => PUBLISHED_OBJECT_TYPES.includes(mapping.key.objectType)) - .map((mapping) => [key(mapping.key.database || database, mapping.key.name), mapping.physicalName]) - ); - if (relations.size === 0) throw new Error(`Deployment diff endpoint '${endpoint}' has no model relations`); - return relations; -} - -/** Every logical relation either endpoint binds, sorted by `(database, logical name)`. */ -export function relationPairs( - from: string, - to: string, - deployments: DeploymentRecord[], - active: Binding[], - database: string -): RelationPair[] { - const fromRelations: Map = endpointRelations(from, deployments, active, database); - const toRelations: Map = endpointRelations(to, deployments, active, database); - const names: string[] = [...new Set([...fromRelations.keys(), ...toRelations.keys()])].sort(compareText); - return names.map((name) => { - const [pairDatabase, logicalName] = name.split('\u0000'); - return { - database: pairDatabase, - logicalName, - fromPhysicalName: fromRelations.get(name) ?? null, - toPhysicalName: toRelations.get(name) ?? null - }; - }); -} - -function sameFound(left: DiffSide['found'], right: DiffSide['found']): boolean { - if (left === null || right === null) return left === right; - return left.rowCount === right.rowCount && JSON.stringify(left.columns) === JSON.stringify(right.columns); -} - -/** The summary of one relation comparison. */ -export function diffStatus(from: DiffSide, to: DiffSide): DeploymentDiffStatus { - if ((from.bound && from.found === null) || (to.bound && to.found === null)) return 'physical_missing'; - if (!from.bound) return 'added'; - if (!to.bound) return 'removed'; - return sameFound(from.found, to.found) ? 'unchanged' : 'changed'; -} - -/** Names of `left` columns absent from `right`, in `left` order. */ -export function columnNamesMissingFrom(left: CatalogColumn[], right: CatalogColumn[]): string[] { - const rightNames: Set = new Set(right.map((column) => column.name)); - return left.map((column) => column.name).filter((name) => !rightNames.has(name)); -} diff --git a/ui/src/lib/demo-readers/_helpers/evidence-types.ts b/ui/src/lib/demo-readers/_helpers/evidence-types.ts deleted file mode 100644 index 96cc69ab..00000000 --- a/ui/src/lib/demo-readers/_helpers/evidence-types.ts +++ /dev/null @@ -1,114 +0,0 @@ -/** The warehouse and metadata evidence the deployment readers reconstruct. */ -import type { DeploymentState } from '../types.ts'; - -/** The logical key of one persisted deployment object. */ -export type MetadataKey = { - database: string | null; - objectType: string; - name: string; -}; - -export type PreparedMapping = { - key: MetadataKey; - physicalName: string; - logicalModelName: string; -}; - -/** One persisted deployment, as the ClickHouse lifecycle inventory reconstructs it. */ -export type DeploymentRecord = { - deploymentId: string; - createdAt: string; - status: string; - selectedRootKeys: MetadataKey[]; - mappings: PreparedMapping[]; -}; - -export type Binding = { - database: string; - logicalName: string; - physicalName: string; -}; - -export type PublishEvent = { - publicationId: string; - deploymentId: string; - publishedAt: string; - logicalViewNames: string[]; - bindings: Binding[]; -}; - -export type DeploymentInventory = { - deployments: DeploymentRecord[]; - publishEvents: PublishEvent[]; -}; - -export type PhysicalCandidate = { - database: string; - logicalName: string; - physicalName: string; - objectType: 'table' | 'view'; -}; - -export type ManagedTableState = { - activeBindings: Binding[]; - physicalCandidates: PhysicalCandidate[]; -}; - -export type CatalogColumn = { - name: string; - type: string; - defaultExpression: string | null; -}; - -/** One relation of `system.tables` with the facts the readers derive from its SQL. */ -export type CatalogRelation = { - name: string; - engine: string; - definitionSql: string; - columns: CatalogColumn[]; - sourceRelationNames: string[]; - targetRelationName: string | null; - stableBindingName: string | null; -}; - -export type Catalog = { - database: string; - relations: CatalogRelation[]; -}; - -export type DeploymentSummary = { - deploymentId: string; - state: DeploymentState; - createdAt: string | null; - persistedStatus: string | null; - rootNames: string[]; - physicalRelationNames: string[]; - missingPhysicalRelationNames: string[]; - activeBindingNames: string[]; - latestPublishedAt: string | null; -}; - -export type Storage = { rows: number; bytes: number }; - -/** The bindings a promotion writes and the stale stable names it drops. */ -export type BindingRequest = { - bindings: Binding[]; - removals: { database: string; logicalName: string }[]; -}; - -export type PromotionPreview = { - initialPublish: boolean; - additions: Binding[]; - replacements: { binding: Binding; fromPhysicalName: string }[]; - removals: { database: string; logicalName: string; physicalName: string }[]; - orphaned: { database: string; physicalName: string }[]; -}; - -/** Everything one deployment read gathers from the warehouse. */ -export type DeploymentEvidence = { - database: string; - inventory: DeploymentInventory; - inspected: ManagedTableState; - catalog: Catalog; - summaries: DeploymentSummary[]; -}; diff --git a/ui/src/lib/demo-readers/_helpers/lifecycle.ts b/ui/src/lib/demo-readers/_helpers/lifecycle.ts deleted file mode 100644 index 4c2fb4e5..00000000 --- a/ui/src/lib/demo-readers/_helpers/lifecycle.ts +++ /dev/null @@ -1,112 +0,0 @@ -/** Deployment lifecycle states and the deployment list entries built from them. */ -import { DEPLOYMENT_STATUS_INCOMPLETE } from '../constants.ts'; -import type { DeploymentState, DeploymentSummaryPayload } from '../types.ts'; -import type { - DeploymentInventory, - DeploymentRecord, - DeploymentSummary, - ManagedTableState, - Storage -} from './evidence-types.ts'; -import { deploymentIdOf, modelRelationNames } from './naming.ts'; -import { compareText, sortedUnique } from './values.ts'; - -/** Values grouped by deployment, dropping pairs without one. */ -function groupByDeployment(pairs: [string | null, string][]): Map { - const grouped: Map = new Map(); - for (const [deploymentId, value] of pairs) { - if (deploymentId !== null) grouped.set(deploymentId, [...(grouped.get(deploymentId) ?? []), value]); - } - return grouped; -} - -function deploymentState( - record: DeploymentRecord | undefined, - mapped: string[], - missing: string[], - active: string[], - publishedAt: string[] -): DeploymentState { - if (record === undefined) return 'metadata_missing'; - if (record.status === DEPLOYMENT_STATUS_INCOMPLETE) return 'incomplete'; - if (missing.length > 0) return 'physical_missing'; - if (active.length > 0) return 'active'; - if (publishedAt.length > 0) return 'superseded'; - if (mapped.length === 0) return 'physical_missing'; - return 'staged'; -} - -function rootNames(record: DeploymentRecord): string[] { - const selected: string[] = record.selectedRootKeys.map((key) => key.name); - return sortedUnique(selected.length > 0 ? selected : record.mappings.map((mapping) => mapping.key.name)); -} - -/** Every deployment any evidence names, newest deployment ID first, with its lifecycle state. */ -export function deploymentSummaries( - inventory: DeploymentInventory, - inspected: ManagedTableState, - existingNames: Set -): DeploymentSummary[] { - const records: Map = new Map( - inventory.deployments.map((record) => [record.deploymentId, record]) - ); - const physical: Map = groupByDeployment( - inspected.physicalCandidates.map((candidate) => [deploymentIdOf(candidate.physicalName), candidate.physicalName]) - ); - const active: Map = groupByDeployment( - inspected.activeBindings.map((binding) => [deploymentIdOf(binding.physicalName), binding.logicalName]) - ); - const publications: Map = groupByDeployment( - inventory.publishEvents.map((event) => [event.deploymentId, event.publishedAt]) - ); - const ids: string[] = sortedUnique([...records.keys(), ...physical.keys(), ...active.keys(), ...publications.keys()]); - return ids.reverse().map((deploymentId) => { - const record: DeploymentRecord | undefined = records.get(deploymentId); - const mapped: string[] = sortedUnique(record?.mappings.map((mapping) => mapping.physicalName) ?? []); - const missing: string[] = mapped.filter((name) => !existingNames.has(name)); - const activeNames: string[] = sortedUnique(active.get(deploymentId) ?? []); - const publishedAt: string[] = publications.get(deploymentId) ?? []; - return { - deploymentId, - state: deploymentState(record, mapped, missing, activeNames, publishedAt), - createdAt: record?.createdAt ?? null, - persistedStatus: record?.status ?? null, - rootNames: record === undefined ? [] : rootNames(record), - physicalRelationNames: sortedUnique([...mapped, ...(physical.get(deploymentId) ?? [])]), - missingPhysicalRelationNames: missing, - activeBindingNames: activeNames, - latestPublishedAt: publishedAt.length === 0 ? null : [...publishedAt].sort(compareText)[publishedAt.length - 1] - }; - }); -} - -export function storageOf(storage: Map, name: string): Storage { - return storage.get(name) ?? { rows: 0, bytes: 0 }; -} - -export function storageTotal(relationNames: string[], storage: Map): Storage { - return relationNames.reduce( - (total, name) => ({ rows: total.rows + storageOf(storage, name).rows, bytes: total.bytes + storageOf(storage, name).bytes }), - { rows: 0, bytes: 0 } - ); -} - -/** One deployment of the `/api/deployments` list. */ -export function summaryPayload(summary: DeploymentSummary, storage: Map): DeploymentSummaryPayload { - const totals: Storage = storageTotal(summary.physicalRelationNames, storage); - return { - deploymentId: summary.deploymentId, - state: summary.state, - createdAt: summary.createdAt, - publishedAt: summary.latestPublishedAt, - persistedStatus: summary.persistedStatus, - rootNames: summary.rootNames, - physicalRelationNames: summary.physicalRelationNames, - activeBindingNames: summary.activeBindingNames, - missingRelationNames: summary.missingPhysicalRelationNames, - modelCount: modelRelationNames(summary.physicalRelationNames).length, - relationCount: summary.physicalRelationNames.length, - rows: totals.rows, - bytes: totals.bytes - }; -} diff --git a/ui/src/lib/demo-readers/_helpers/live-state.ts b/ui/src/lib/demo-readers/_helpers/live-state.ts deleted file mode 100644 index fe0eba9f..00000000 --- a/ui/src/lib/demo-readers/_helpers/live-state.ts +++ /dev/null @@ -1,169 +0,0 @@ -/** The pure parts of the `/api/state` overlay: ages, freshness, buckets and model entries. */ -import type { JsonObject, StateDefinitions, StatePayload } from '../types.ts'; -import { round3, timestampMicros } from './values.ts'; - -const THROUGHPUT_WINDOW_LADDER: readonly (readonly [number, number])[] = [ - [3600, 60], - [86400, 1800], - [604800, 10800] -]; -const SECONDS_BY_DURATION_UNIT: Readonly> = { d: 86400, h: 3600, m: 60, s: 1 }; - -export type RelationStats = { rows: number; bytes: number; parts: number }; -export type Extent = { oldest: string | null; newest: string | null; rows: number }; -/** `(partition, max offset, oldest, newest, rows)` of one landed partition. */ -export type PartitionObservation = [number, number, string, string, number]; -export type Throughput = { windowSeconds: number; bucketSeconds: number; buckets: number[] }; - -export type FreshnessPolicy = { warnAfter: string | null; errorAfter: string | null } | null; - -export type ModelActivity = { - state: 'moving' | 'idle' | 'stalled' | 'unknown'; - source: string; - sourceAvailable: boolean; - approximate: boolean; - lastTriggeredAt: string | null; - lastWriteAt: string | null; - rowsWritten: number; - windowSeconds: number; - detail: string; -}; - -export type Measurements = { - capturedAt: string; - stats: Map; - extents: Map; - partitions: Map>; - activity: Map; -}; - -/** The relation name the template records for one model or source. */ -export function relationOf(entries: { [name: string]: JsonObject }, name: string): string { - return String(entries[name]?.relationName); -} - -/** Names of the table models; views have no storage of their own. */ -export function tableModels(definitions: StateDefinitions): Set { - return new Set(definitions.models.filter((model) => model.kind === 'table').map((model) => model.name)); -} - -/** Fold each source relation's partitions into one extent. */ -export function addSourceExtents( - partitions: Map>, - into: Map -): void { - for (const [relation, byPartition] of partitions) { - const observations: PartitionObservation[] = [...byPartition.values()]; - if (observations.length === 0) continue; - let oldest: string | null = null; - let newest: string | null = null; - let rows: number = 0; - for (const [, , first, last, count] of observations) { - if (oldest === null || first < oldest) oldest = first; - if (newest === null || last > newest) newest = last; - rows += count; - } - into.set(relation, { oldest, newest, rows }); - } -} - -/** `round((captured_at - newest).total_seconds(), 3)`; `null` when either does not parse. */ -export function lagSeconds(newest: string | null, capturedAt: string): number | null { - if (newest === null) return null; - const newestAt: number | null = timestampMicros(newest); - const now: number | null = timestampMicros(capturedAt); - return newestAt === null || now === null ? null : round3((now - newestAt) / 1e6); -} - -function policySeconds(value: string | null): number | null { - if (value === null) return null; - return Number(value.slice(0, -1)) * (SECONDS_BY_DURATION_UNIT[value.slice(-1)] ?? Number.NaN); -} - -export function freshness(newest: string | null, capturedAt: string, policy: FreshnessPolicy): string | null { - if (policy === null) return null; - const age: number | null = lagSeconds(newest, capturedAt); - if (age === null) return 'stalled'; - const errorAfter: number | null = policySeconds(policy.errorAfter); - if (errorAfter !== null && age > errorAfter) return 'stalled'; - const warnAfter: number | null = policySeconds(policy.warnAfter); - if (warnAfter !== null && age > warnAfter) return 'lagging'; - return 'fresh'; -} - -/** The smallest ladder rung whose window still contains the newest event. */ -export function throughputWindow(newestAgeSeconds: number | null): readonly [number, number] { - const last: readonly [number, number] = THROUGHPUT_WINDOW_LADDER[THROUGHPUT_WINDOW_LADDER.length - 1]; - if (newestAgeSeconds === null) return last; - return THROUGHPUT_WINDOW_LADDER.find(([window]) => newestAgeSeconds < window) ?? last; -} - -export function zeroFilledBuckets(counts: Map, windowSeconds: number, bucketSeconds: number): number[] { - const bucketCount: number = Math.floor(windowSeconds / bucketSeconds); - if (counts.size === 0) return new Array(bucketCount).fill(0); - const start: number = Math.max(...counts.keys()) - (bucketCount - 1) * bucketSeconds; - return Array.from({ length: bucketCount }, (_, index) => counts.get(start + index * bucketSeconds) ?? 0); -} - -export function rowsPerSecond(throughput: Throughput | null): number | null { - if (throughput === null || throughput.windowSeconds === 0) return null; - return round3(throughput.buckets.reduce((sum, count) => sum + count, 0) / throughput.windowSeconds); -} - -/** Per-partition offsets of one source; broker lag is unknown without a Kafka client. */ -export function partitionsPayload(observations: Map | undefined): unknown[] | null { - if (observations === undefined) return null; - return [...observations.values()] - .sort((left, right) => left[0] - right[0]) - .map(([partition, maxOffset, , newest]) => ({ - partition, - maxOffset, - newestEventAt: newest, - committedOffset: null, - endOffset: null, - kafkaLagMessages: null - })); -} - -/** Each model's freshness policy: its pipeline source's, else none. */ -function modelPolicies(definitions: StateDefinitions): Map { - const sourcePolicies: Map = new Map( - definitions.sources.map((source) => [source.name, source.freshness ?? null]) - ); - const policies: Map = new Map(); - for (const pipeline of definitions.pipelines) { - const policy: FreshnessPolicy = pipeline.sourceName === null ? null : (sourcePolicies.get(pipeline.sourceName) ?? null); - for (const model of pipeline.models) policies.set(model, policy); - } - return policies; -} - -/** Model entries with their warehouse fields replaced; compile-time comparisons kept. */ -export function modelStates( - template: StatePayload, - definitions: StateDefinitions, - measured: Measurements -): StatePayload['models'] { - const models: Set = tableModels(definitions); - const policies: Map = modelPolicies(definitions); - const states: StatePayload['models'] = {}; - for (const [name, entry] of Object.entries(template.models)) { - const isTable: boolean = models.has(name); - const relation: string = relationOf(template.models, name); - const stats: RelationStats | undefined = isTable ? measured.stats.get(relation) : undefined; - const extent: Extent | undefined = isTable ? measured.extents.get(relation) : undefined; - const newest: string | null = extent?.newest ?? null; - states[name] = { - ...entry, - rows: stats?.rows ?? null, - diskBytes: stats?.bytes ?? null, - parts: stats?.parts ?? null, - oldestRowAt: extent?.oldest ?? null, - newestRowAt: newest, - lagSeconds: lagSeconds(newest, measured.capturedAt), - freshness: freshness(newest, measured.capturedAt, isTable ? (policies.get(name) ?? null) : null), - activity: measured.activity.get(relation) ?? null - }; - } - return states; -} diff --git a/ui/src/lib/demo-readers/_helpers/naming.ts b/ui/src/lib/demo-readers/_helpers/naming.ts deleted file mode 100644 index bc0f6427..00000000 --- a/ui/src/lib/demo-readers/_helpers/naming.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** Deployment identifiers and the deployment-suffixed physical names built from them. */ -import { MATERIALIZED_VIEW_NAME_PREFIX } from '../constants.ts'; - -const DEPLOYMENT_SEPARATOR: string = '__'; -const KAFKA_TABLE_NAME_PREFIX: string = 'kafka__'; - -const DEPLOYMENT_ID: RegExp = /^\p{Nd}{8}T\p{Nd}{6}Z_[A-Za-z0-9]+$/u; - -export function isDeploymentId(text: string): boolean { - return DEPLOYMENT_ID.test(text); -} - -/** `(logical name, deployment ID)` split at the last `__`, if there is one. */ -export function splitPhysicalName(physicalName: string): [string, string] | null { - const at: number = physicalName.lastIndexOf(DEPLOYMENT_SEPARATOR); - return at < 0 ? null : [physicalName.slice(0, at), physicalName.slice(at + DEPLOYMENT_SEPARATOR.length)]; -} - -export function isDeploymentPhysicalName(physicalName: string): boolean { - const parts: [string, string] | null = splitPhysicalName(physicalName); - return parts !== null && parts[0] !== '' && isDeploymentId(parts[1]); -} - -/** The deployment of a deployment physical name, else `null`. */ -export function deploymentIdOf(physicalName: string): string | null { - return isDeploymentPhysicalName(physicalName) ? (splitPhysicalName(physicalName)?.[1] ?? null) : null; -} - -/** The logical name before the last separator, or the whole name without one. */ -export function logicalNameOf(physicalName: string): string { - return splitPhysicalName(physicalName)?.[0] ?? physicalName; -} - -/** The logical name of a deployment-suffixed model candidate; Kafka tables and writers are not. */ -export function candidateLogicalName(physicalName: string): string | null { - if (!isDeploymentPhysicalName(physicalName)) return null; - const logical: string = logicalNameOf(physicalName); - return logical.startsWith(KAFKA_TABLE_NAME_PREFIX) || logical.startsWith(MATERIALIZED_VIEW_NAME_PREFIX) - ? null - : logical; -} - -/** Deployment relations that receive a stable view; materialized-view writers are excluded. */ -export function modelRelationNames(relationNames: string[]): string[] { - return relationNames.filter((name) => !logicalNameOf(name).startsWith(MATERIALIZED_VIEW_NAME_PREFIX)); -} diff --git a/ui/src/lib/demo-readers/_helpers/promotion.ts b/ui/src/lib/demo-readers/_helpers/promotion.ts deleted file mode 100644 index f2d4c361..00000000 --- a/ui/src/lib/demo-readers/_helpers/promotion.ts +++ /dev/null @@ -1,213 +0,0 @@ -/** - * What promoting a deployment would do: the bindings it writes, the stale stable names it drops, - * the live effects, and why promotion would be refused. - */ -import { PUBLISHED_OBJECT_TYPES } from '../constants.ts'; -import { compareText } from './values.ts'; -import type { - Binding, - BindingRequest, - DeploymentEvidence, - DeploymentRecord, - PreparedMapping, - PromotionPreview -} from './evidence-types.ts'; -import { isDeploymentId, splitPhysicalName } from './naming.ts'; - -type Staged = { database: string | null; objectType: string; logicalName: string; physicalName: string }; - -/** Why a deployment whose build has not filled every table cannot be promoted. */ -export function incompleteMessage(deploymentId: string): string { - return ( - `Deployment ${deploymentId} has not finished building (its build failed or is still running), ` + - 'so it cannot be promoted. Promote a build once it finishes, by the ID it prints.' - ); -} - -/** One `(database, name)` pair as a map key. */ -function key(database: string, name: string): string { - return `${database}\u0000${name}`; -} - -function noRelations(deploymentId: string): string { - return `Deployment '${deploymentId}' has no staged model relations to publish`; -} - -/** Tables before views within each database, the default database (`null`) first. */ -function compareStaged(left: Staged, right: Staged): number { - return ( - compareText(left.database ?? '', right.database ?? '') || - Number(left.objectType !== 'table') - Number(right.objectType !== 'table') || - compareText(left.logicalName, right.logicalName) - ); -} - -function publishBindings(relations: Staged[], existing: Set, database: string, deploymentId: string): Binding[] { - const missing: string[] = relations.map((relation) => relation.physicalName).filter((name) => !existing.has(name)); - if (missing.length > 0) { - throw new Error(`Deployment '${deploymentId}' is missing staged relations: ${missing.sort(compareText).join(', ')}`); - } - const published: Staged[] = relations.filter((relation) => PUBLISHED_OBJECT_TYPES.includes(relation.objectType)); - if (published.length === 0) throw new Error(noRelations(deploymentId)); - return published.sort(compareStaged).map((relation) => ({ - database: relation.database ?? database, - logicalName: relation.logicalName, - physicalName: relation.physicalName - })); -} - -function bindingDatabase(mapping: PreparedMapping, database: string): string { - return mapping.key.database || database; -} - -/** Stable names an earlier publication of a current model bound that this one no longer binds. */ -function obsoleteRemovals( - current: PreparedMapping[], - evidence: DeploymentEvidence -): { database: string; logicalName: string }[] { - const { database, inventory, inspected } = evidence; - const publishing: PreparedMapping[] = current.filter((mapping) => PUBLISHED_OBJECT_TYPES.includes(mapping.key.objectType)); - const currentNames: Set = new Set(publishing.map((mapping) => `${bindingDatabase(mapping, database)}\u0000${mapping.key.name}`)); - const currentModels: Set = new Set(publishing.map((mapping) => mapping.logicalModelName)); - const published: Map> = new Map(); - for (const event of inventory.publishEvents) { - published.set(event.deploymentId, new Set([...(published.get(event.deploymentId) ?? []), ...event.logicalViewNames])); - } - const historical: Set = new Set(); - for (const deployment of inventory.deployments) { - const names: Set | undefined = published.get(deployment.deploymentId); - for (const mapping of deployment.mappings) { - const name: string = `${bindingDatabase(mapping, database)}\u0000${mapping.key.name}`; - if (currentModels.has(mapping.logicalModelName) && names?.has(mapping.key.name) && !currentNames.has(name)) { - historical.add(`${name}\u0000${mapping.physicalName}`); - } - } - } - const active: Set = new Set( - inspected.activeBindings.map((binding) => `${binding.database}\u0000${binding.logicalName}\u0000${binding.physicalName}`) - ); - return [...historical] - .sort(compareText) - .filter((binding) => active.has(binding)) - .map((binding) => { - const [bindingDb, logicalName] = binding.split('\u0000'); - return { database: bindingDb, logicalName }; - }); -} - -/** The validated bindings, and the stale bindings they retire, for publishing `deploymentId`. */ -export function buildPublishBindingRequest(evidence: DeploymentEvidence, deploymentId: string): BindingRequest { - const { database, inventory, inspected, catalog } = evidence; - const existing: Set = new Set(catalog.relations.map((relation) => relation.name)); - const record: DeploymentRecord | undefined = inventory.deployments.find((item) => item.deploymentId === deploymentId); - if (record === undefined) { - const suffix: string = `__${deploymentId}`; - const candidates: Staged[] = inspected.physicalCandidates - .filter((candidate) => candidate.physicalName.endsWith(suffix)) - .map((candidate) => ({ ...candidate, database: candidate.database })); - if (candidates.length === 0) throw new Error(noRelations(deploymentId)); - return { bindings: publishBindings(candidates, existing, database, deploymentId), removals: [] }; - } - if (record.status === 'incomplete') throw new Error(incompleteMessage(deploymentId)); - const relations: Staged[] = record.mappings.map((mapping) => ({ - database: mapping.key.database || null, - objectType: mapping.key.objectType, - logicalName: mapping.key.name, - physicalName: mapping.physicalName - })); - return { - bindings: publishBindings(relations, existing, database, deploymentId), - removals: obsoleteRemovals(record.mappings, evidence) - }; -} - -/** The live effects of applying `request` over the `active` bindings. */ -export function replacementPreview(request: BindingRequest, active: Binding[]): PromotionPreview { - const activeByName: Map = new Map( - active.map((binding) => [key(binding.database, binding.logicalName), binding.physicalName]) - ); - const preview: PromotionPreview = { initialPublish: false, additions: [], replacements: [], removals: [], orphaned: [] }; - for (const binding of request.bindings) { - const current: string | undefined = activeByName.get(key(binding.database, binding.logicalName)); - if (current === undefined) preview.additions.push(binding); - else if (current !== binding.physicalName) preview.replacements.push({ binding, fromPhysicalName: current }); - } - for (const removal of request.removals) { - const current: string | undefined = activeByName.get(key(removal.database, removal.logicalName)); - if (current !== undefined) preview.removals.push({ ...removal, physicalName: current }); - } - const finalByName: Map = new Map(activeByName); - for (const binding of request.bindings) finalByName.set(key(binding.database, binding.logicalName), binding.physicalName); - for (const removal of request.removals) finalByName.delete(key(removal.database, removal.logicalName)); - const remaining: Set = new Set( - [...finalByName].map(([name, physical]) => key(name.split('\u0000')[0], physical)) - ); - const orphaned: Set = new Set( - active.map((binding) => key(binding.database, binding.physicalName)).filter((relation) => !remaining.has(relation)) - ); - preview.orphaned = [...orphaned].sort(compareText).map((relation) => { - const [relationDb, physicalName] = relation.split('\u0000'); - return { database: relationDb, physicalName }; - }); - preview.initialPublish = - preview.additions.length > 0 && preview.additions.length === request.bindings.length && request.removals.length === 0; - return preview; -} - -/** - * Why promoting must be refused when a relation of the deployment reads another deployment's - * physical table that will not be its upstream's published version afterwards. - */ -export function staleUpstreamMessage( - evidence: DeploymentEvidence, - deploymentId: string, - request: BindingRequest -): string | null { - const { database, catalog, inventory } = evidence; - const published: Map = new Map(); - for (const relation of catalog.relations) { - if (relation.stableBindingName !== null) published.set(relation.name, relation.stableBindingName); - } - const own: Set = new Set(); - for (const binding of request.bindings) { - if (binding.database !== database) continue; - published.set(binding.logicalName, binding.physicalName); - own.add(binding.physicalName); - } - for (const removal of request.removals) { - if (removal.database === database) published.delete(removal.logicalName); - } - const stale: [string, string, string | undefined][] = []; - for (const relation of catalog.relations) { - const target: string | null = relation.targetRelationName; - const reader: string | null = - target !== null && own.has(target) ? target : own.has(relation.name) ? relation.name : null; - if (reader === null) continue; - for (const source of relation.sourceRelationNames) { - const parts: [string, string] | null = splitPhysicalName(source); - if (parts === null || own.has(source) || !isDeploymentId(parts[1])) continue; - const current: string | undefined = published.get(parts[0]); - if (current !== source) stale.push([reader, source, current]); - } - } - if (stale.length === 0) return null; - const models: Map = new Map(); - for (const deployment of inventory.deployments) { - if (deployment.deploymentId !== deploymentId) continue; - for (const mapping of deployment.mappings) models.set(mapping.physicalName, mapping.logicalModelName); - } - const model: (reader: string) => string = (reader) => models.get(reader) ?? splitPhysicalName(reader)?.[0] ?? reader; - const lines: string[] = []; - const selected: string[] = []; - for (const [reader, source, current] of stale) { - const logical: string = splitPhysicalName(source)?.[0] ?? source; - const now: string = current === undefined ? `${logical} is not published` : `${logical} now reads ${current}`; - lines.push(`- ${model(reader)} reads ${source}, but ${now}`); - if (!selected.includes(model(reader))) selected.push(model(reader)); - } - return ( - `Deployment ${deploymentId} reads an upstream version that is no longer published, so it cannot be promoted:\n` + - `${lines.join('\n')}\nRebuild the candidate with \`sqt build --select ${selected.join(' ')}\`, ` + - 'then promote that build by the ID it prints.' - ); -} diff --git a/ui/src/lib/demo-readers/_helpers/run-assembly.ts b/ui/src/lib/demo-readers/_helpers/run-assembly.ts deleted file mode 100644 index 68dcf40b..00000000 --- a/ui/src/lib/demo-readers/_helpers/run-assembly.ts +++ /dev/null @@ -1,225 +0,0 @@ -/** Run payloads assembled from terminal invocations and event streams, with derived status. */ -import type { JsonObject, RunEvent, RunPayload } from '../types.ts'; -import { compareText, get, getOr, pyStr, timestampMicros, toInt } from './values.ts'; - -/** Event streams by invocation, in row order. */ -export type Streams = Map; - -/** Seconds without a signal after which a running run is reported unresponsive. */ -const RUN_UNRESPONSIVE_AFTER_SECONDS: number = 45; - -const TERMINAL_STATUSES: readonly string[] = ['succeeded', 'failed', 'cancelled']; - -/** Microseconds of a warehouse timestamp, read as UTC. */ -export function parseTimestamp(value: string): number { - const micros: number | null = timestampMicros(value); - if (micros === null) throw new Error(`Invalid isoformat string: '${value}'`); - return micros; -} - -/** `max(int((later - earlier).total_seconds()), 0)`. */ -function wholeSeconds(later: number, earlier: number): number { - return Math.max(Math.trunc((later - earlier) / 1e6), 0); -} - -export function ageSeconds(timestamp: string, warehouseNow: number): number { - return wholeSeconds(warehouseNow, parseTimestamp(timestamp)); -} - -function deriveStatus( - terminalOutcome: string | null, - completedOutcome: string | null, - lastSignalAt: number, - warehouseNow: number, - presumedFailedAfterSeconds: number -): string { - for (const outcome of [terminalOutcome, completedOutcome]) { - if (outcome !== null && TERMINAL_STATUSES.includes(outcome)) return outcome; - } - const signalAge: number = Math.max((warehouseNow - lastSignalAt) / 1e6, 0); - if (signalAge < RUN_UNRESPONSIVE_AFTER_SECONDS) return 'running'; - if (signalAge < presumedFailedAfterSeconds) return 'unresponsive'; - return 'presumed_failed'; -} - -function firstOf(events: RunEvent[], kind: string): RunEvent | undefined { - return events.find((event) => event.event === kind); -} - -function lastOf(events: RunEvent[], kind: string): RunEvent | undefined { - return events.findLast((event) => event.event === kind); -} - -/** Take one completion for `key`; `false` when none is left to pair with a start. */ -function consume(counts: Map, key: string): boolean { - const count: number = counts.get(key) ?? 0; - if (count === 0) return false; - if (count === 1) counts.delete(key); - else counts.set(key, count - 1); - return true; -} - -function bump(counts: Map, key: string): void { - counts.set(key, (counts.get(key) ?? 0) + 1); -} - -/** The step of the latest statement or audit that started without a matching completion. */ -function activeStep(events: RunEvent[]): string | null { - const statements: Map = new Map(); - const audits: Map = new Map(); - for (const event of [...events].reverse()) { - const kind: string = pyStr(event.event); - const sequence: unknown = get(event, 'statementSequence'); - const stepId: unknown = get(event, 'stepId'); - if (kind === 'statement_completed' && sequence !== null) bump(statements, String(toInt(sequence))); - else if (kind === 'audit_completed' && stepId !== null) bump(audits, pyStr(stepId)); - else if (kind === 'statement_started') { - if (sequence !== null && consume(statements, String(toInt(sequence)))) continue; - return stepId === null ? null : pyStr(stepId); - } else if (kind === 'audit_started') { - if (stepId === null) return null; - if (consume(audits, pyStr(stepId))) continue; - return pyStr(stepId); - } - } - return null; -} - -/** The latest started statement without a matching completion. */ -export function activeStatement(events: RunEvent[]): RunEvent | null { - const statements: Map = new Map(); - for (const event of [...events].reverse()) { - const kind: string = pyStr(event.event); - const sequence: unknown = get(event, 'statementSequence'); - if (kind === 'statement_completed' && sequence !== null) bump(statements, String(toInt(sequence))); - else if (kind === 'statement_started' && sequence !== null && !consume(statements, String(toInt(sequence)))) { - return event; - } - } - return null; -} - -function eventAuditSummary(events: RunEvent[]): JsonObject | null { - const counts: JsonObject & Record<'passed' | 'warning' | 'failed' | 'error', number> = { - passed: 0, - warning: 0, - failed: 0, - error: 0 - }; - for (const event of events) { - if (event.event !== 'audit_completed') continue; - const status: string = pyStr(getOr(event, 'status', '')); - if (status === 'passed' || status === 'warning' || status === 'failed' || status === 'error') counts[status] += 1; - } - const total: number = counts.passed + counts.warning + counts.failed + counts.error; - return total === 0 ? null : { ...counts, total }; -} - -function runProgress(events: RunEvent[]): JsonObject { - const started: RunEvent | undefined = firstOf(events, 'run_started'); - const rawTotal: unknown = started === undefined ? null : get(started, 'totalStatements'); - return { - completedOperationCount: events.filter( - (event) => event.event === 'statement_completed' || event.event === 'audit_completed' - ).length, - totalStatements: rawTotal === null ? null : toInt(rawTotal), - currentStep: activeStep(events), - auditSummary: eventAuditSummary(events) - }; -} - -function lastActivity(events: RunEvent[]): string | null { - const event: RunEvent | undefined = events.findLast((item) => get(item, 'stepId') !== null); - return event === undefined ? null : pyStr(event.stepId); -} - -/** The run payload of an event stream with no durable terminal fact. */ -function activeRun( - invocationId: string, - events: RunEvent[], - failure: RunEvent | undefined, - cancellationCompleted: boolean, - warehouseNow: number, - presumedFailedAfterSeconds: number -): RunPayload { - const started: RunEvent = events[0]; - const completed: RunEvent | undefined = lastOf(events, 'run_completed'); - const lastSignalAt: string = pyStr(events[events.length - 1].emittedAt); - let status: string = deriveStatus( - null, - completed === undefined ? null : pyStr(get(completed, 'outcome')), - parseTimestamp(lastSignalAt), - warehouseNow, - presumedFailedAfterSeconds - ); - if (failure !== undefined) status = 'cancellation_failed'; - else if (cancellationCompleted) status = 'cancelled'; - const startedAt: string = pyStr(started.emittedAt); - const command: unknown = getOr(started, 'command', 'build'); - const end: number = completed === undefined ? warehouseNow : parseTimestamp(pyStr(completed.emittedAt)); - const run: RunPayload = { - invocationId, - command: pyStr(command), - displayCommand: pyStr(getOr(started, 'displayCommand', command)), - mode: pyStr(getOr(started, 'mode', 'unknown')), - status, - outcome: status, - exitCode: completed === undefined ? null : get(completed, 'exitCode'), - startedAt, - completedAt: completed === undefined ? null : completed.emittedAt, - lastSignalAt, - lastSignalAgeSeconds: ageSeconds(lastSignalAt, warehouseNow), - durationMs: wholeSeconds(end, parseTimestamp(startedAt)) * 1000, - selectedNodeCount: toInt(getOr(started, 'selectedNodeCount', 0)), - executedLogicalIds: get(started, 'executedLogicalIds'), - contextLogicalIds: get(started, 'contextLogicalIds'), - errorMessage: completed === undefined ? null : get(completed, 'errorMessage'), - toolVersion: pyStr(getOr(started, 'toolVersion', '')), - projectIdentity: get(started, 'projectIdentity'), - lastActivity: lastActivity(events), - ...runProgress(events) - }; - if (failure !== undefined) run.errorMessage = get(failure, 'errorMessage'); - return run; -} - -/** Merge terminal invocations with their event streams into run payloads, newest start first. */ -export function assembleRuns( - terminal: Map, - streams: Streams, - warehouseNow: number, - presumedFailedAfterSeconds: number -): RunPayload[] { - const copies: Map = new Map([...terminal].map(([id, run]) => [id, { ...run }])); - const runs: RunPayload[] = [...copies.values()]; - for (const [invocationId, events] of streams) { - const failure: RunEvent | undefined = lastOf(events, 'cancellation_failed'); - const cancellationCompleted: boolean = firstOf(events, 'cancellation_completed') !== undefined; - const run: RunPayload | undefined = copies.get(invocationId); - if (run === undefined) { - runs.push(activeRun(invocationId, events, failure, cancellationCompleted, warehouseNow, presumedFailedAfterSeconds)); - continue; - } - const started: RunEvent | undefined = firstOf(events, 'run_started'); - if (started !== undefined && Boolean(get(started, 'displayCommand'))) run.displayCommand = pyStr(started.displayCommand); - if (events.some((event) => event.event !== 'run_started')) { - run.lastSignalAt = events[events.length - 1].emittedAt; - const progress: JsonObject = runProgress(events); - if (get(run, 'auditSummary') !== null) delete progress.auditSummary; - Object.assign(run, progress); - } - if (failure !== undefined) { - run.status = 'cancellation_failed'; - run.outcome = 'cancellation_failed'; - run.errorMessage = get(failure, 'errorMessage'); - } else if (cancellationCompleted) { - run.status = 'cancelled'; - run.outcome = 'cancelled'; - } - } - // A stable descending sort keeps equal start times in their original order. - return runs - .map((run, index) => ({ run, index })) - .sort((left, right) => compareText(pyStr(right.run.startedAt), pyStr(left.run.startedAt)) || left.index - right.index) - .map(({ run }) => run); -} diff --git a/ui/src/lib/demo-readers/_helpers/run-rows.ts b/ui/src/lib/demo-readers/_helpers/run-rows.ts deleted file mode 100644 index 51cead8f..00000000 --- a/ui/src/lib/demo-readers/_helpers/run-rows.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** Run payloads and events shaped from rows of the run tables. */ -import type { JsonObject, RunEvent, RunPayload } from '../types.ts'; -import type { Streams } from './run-assembly.ts'; -import { get, getOr, parsedObject, pyStr, toInt } from './values.ts'; - -export type InvocationRow = { - invocation_id: string; - project_identity: string; - command: string; - mode: string | null; - outcome: string; - exit_code: unknown; - started_at: string; - completed_at: string; - duration_ms: unknown; - selected_node_count: unknown; - error_message: string | null; - summary_json: string; - tool_version: string; -}; - -export type EventRow = { - invocation_id: string; - sequence: unknown; - emitted_at: string; - event_kind: string; - step_id: string | null; - phase: string | null; - payload_json: string; -}; - -/** The outcome counts of a completed scheduled audit cycle. */ -export function terminalAuditSummary(command: string, mode: string, summaryJson: unknown): JsonObject | null { - if (command !== 'audit' || mode !== 'scheduled') return null; - const summary: JsonObject = parsedObject(summaryJson); - if (!Object.hasOwn(summary, 'scheduled_count') && !Object.hasOwn(summary, 'error_count')) return null; - if (get(summary, 'error_count') !== null) { - const errors: number = toInt(summary.error_count); - return { passed: 0, warning: 0, failed: 0, error: errors, total: errors }; - } - const total: number = toInt(getOr(summary, 'scheduled_count', 0)); - const warning: number = toInt(getOr(summary, 'warning_failure_count', 0)); - const failed: number = toInt(getOr(summary, 'error_failure_count', 0)); - const error: number = toInt(getOr(summary, 'execution_error_count', 0)); - return { passed: Math.max(total - warning - failed - error, 0), warning, failed, error, total }; -} - -export function terminalRun(row: InvocationRow): RunPayload { - return { - invocationId: row.invocation_id, - projectIdentity: pyStr(row.project_identity), - command: pyStr(row.command), - displayCommand: null, - mode: pyStr(row.mode), - status: pyStr(row.outcome), - outcome: pyStr(row.outcome), - exitCode: toInt(row.exit_code), - startedAt: pyStr(row.started_at), - completedAt: pyStr(row.completed_at), - lastSignalAt: pyStr(row.completed_at), - lastSignalAgeSeconds: 0, - durationMs: toInt(row.duration_ms), - selectedNodeCount: toInt(row.selected_node_count), - errorMessage: row.error_message, - summary: parsedObject(row.summary_json), - auditSummary: terminalAuditSummary(pyStr(row.command), pyStr(row.mode), row.summary_json), - toolVersion: pyStr(row.tool_version), - lastActivity: null, - completedOperationCount: null, - totalStatements: null, - currentStep: null - }; -} - -/** Event rows grouped by invocation, each event merged with its JSON payload. */ -export function streamsFromRows(rows: EventRow[]): Streams { - const streams: Streams = new Map(); - for (const row of rows) { - const invocationId: string = pyStr(row.invocation_id); - const stream: RunEvent[] = streams.get(invocationId) ?? []; - streams.set(invocationId, stream); - stream.push({ - sequence: toInt(row.sequence), - emittedAt: pyStr(row.emitted_at), - event: pyStr(row.event_kind), - stepId: row.step_id, - phase: row.phase, - ...parsedObject(row.payload_json) - } as RunEvent); - } - return streams; -} diff --git a/ui/src/lib/demo-readers/_helpers/values.ts b/ui/src/lib/demo-readers/_helpers/values.ts deleted file mode 100644 index 6d7dd271..00000000 --- a/ui/src/lib/demo-readers/_helpers/values.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** Conversions that reproduce how the Python dev server turns warehouse values into payloads. */ - -/** `int(str(value))`: 64-bit integers arrive from `JSONEachRow` as strings. */ -export function toInt(value: unknown): number { - const parsed: number = Math.trunc(Number(value)); - if (value === null || value === undefined || Number.isNaN(parsed)) { - throw new Error(`expected an integer, got ${String(value)}`); - } - return parsed; -} - -/** `str(value)` for the scalar values a row or event payload holds. */ -export function pyStr(value: unknown): string { - if (value === null || value === undefined) return 'None'; - if (value === true) return 'True'; - if (value === false) return 'False'; - if (typeof value === 'object') return JSON.stringify(value); - return String(value); -} - -/** `mapping.get(key)`: the stored value, or `null` when the key is absent. */ -export function get(mapping: { [key: string]: unknown }, key: string): unknown { - return Object.hasOwn(mapping, key) ? mapping[key] : null; -} - -/** `mapping.get(key, fallback)`: only an absent key takes the fallback. */ -export function getOr(mapping: { [key: string]: unknown }, key: string, fallback: unknown): unknown { - return Object.hasOwn(mapping, key) ? mapping[key] : fallback; -} - -/** - * `str(datetime)` of a `DateTime64` value the Python driver decoded: microseconds when there is a - * fraction, none at all when the fraction is zero. - */ -export function pythonDatetimeText(value: string): string { - const [whole, fraction = ''] = value.split('.'); - const micros: string = fraction.padEnd(6, '0').slice(0, 6); - return /^0*$/.test(micros) ? whole : `${whole}.${micros}`; -} - -/** One ClickHouse string literal, as `quote_clickhouse_sql_string` writes it. */ -export function quoteString(value: string): string { - return `'${value.replaceAll('\\', '\\\\').replaceAll("'", "''")}'`; -} - -/** The body of a single-quoted literal, as the run readers escape it. */ -export function sqlLiteral(value: string): string { - return value.replaceAll('\\', '\\\\').replaceAll("'", "\\'"); -} - -/** Microseconds since the epoch of a naive warehouse timestamp read as UTC; `null` if unparseable. */ -export function timestampMicros(value: string): number | null { - const match: RegExpExecArray | null = - /^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,6}))?)?$/.exec(value.replace(/Z$/, '')); - if (match === null) return null; - const [, year, month, day, hour, minute, second = '0', fraction = ''] = match; - const millis: number = Date.UTC( - Number(year), - Number(month) - 1, - Number(day), - Number(hour), - Number(minute), - Number(second) - ); - return millis * 1000 + Number(fraction.padEnd(6, '0')); -} - -/** `round(value, 3)`. */ -export function round3(value: number): number { - return Math.round(value * 1000) / 1000; -} - -/** Python's code-point string ordering, which `<` matches for the ASCII names here. */ -export function compareText(left: string, right: string): number { - return left < right ? -1 : left > right ? 1 : 0; -} - -export function sortedUnique(values: Iterable): string[] { - return [...new Set(values)].sort(compareText); -} - -/** Parse one JSON object payload; anything else is `{}`, as the run readers treat it. */ -export function parsedObject(text: unknown): { [key: string]: unknown } { - try { - const parsed: unknown = JSON.parse(pyStr(text)); - return parsed !== null && typeof parsed === 'object' && !Array.isArray(parsed) - ? (parsed as { [key: string]: unknown }) - : {}; - } catch { - return {}; - } -} diff --git a/ui/src/lib/demo-readers/constants.ts b/ui/src/lib/demo-readers/constants.ts deleted file mode 100644 index 84e784a7..00000000 --- a/ui/src/lib/demo-readers/constants.ts +++ /dev/null @@ -1,12 +0,0 @@ -export const MATERIALIZED_VIEW_NAME_PREFIX: string = 'mv__'; -export const VIEW_ENGINE: string = 'View'; -export const DEPLOYMENT_STATUS_INCOMPLETE: string = 'incomplete'; -/** Object types a promotion binds a stable view to. */ -export const PUBLISHED_OBJECT_TYPES: readonly string[] = ['table', 'view']; - -export const INVOCATIONS_TABLE: string = '_sqltide_invocations'; -export const RUN_EVENTS_TABLE: string = '_sqltide_run_events'; -/** `defaults.run_presumed_failed_after` when the project does not set it. */ -export const DEFAULT_PRESUMED_FAILED_AFTER_SECONDS: number = 600; -/** Recent events per run that status derivation reads. */ -export const RUN_EVENT_WINDOW_SIZE: number = 400; diff --git a/ui/src/lib/demo-readers/main/read-deployment-diff.ts b/ui/src/lib/demo-readers/main/read-deployment-diff.ts deleted file mode 100644 index 4efce61f..00000000 --- a/ui/src/lib/demo-readers/main/read-deployment-diff.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { loadCatalog, inspectManagedTableState } from '../_api/catalog.ts'; -import { - columnNamesMissingFrom, - diffStatus, - identifierError, - parseComparison, - relationPairs -} from '../_helpers/deployment-diff.ts'; -import type { DiffSide, RelationPair } from '../_helpers/deployment-diff.ts'; -import { loadDeploymentInventory } from '../_api/inventory.ts'; -import { toInt } from '../_helpers/values.ts'; -import type { - Catalog, - CatalogColumn, - CatalogRelation, - DeploymentInventory, - ManagedTableState -} from '../_helpers/evidence-types.ts'; -import type { DeploymentDiffPayload, DeploymentDiffRelationPayload, Query } from '../types.ts'; - -async function rowCount(query: Query, database: string, relation: CatalogRelation | undefined): Promise { - if (relation === undefined) return null; - const error: string | null = identifierError(database) ?? identifierError(relation.name); - if (error !== null) throw new Error(error); - const rows: { row_count: unknown }[] = await query( - `SELECT count() AS row_count FROM \`${database}\`.\`${relation.name}\`` - ); - if (rows.length !== 1) throw new Error(`Deployment diff count for '${relation.name}' returned an unexpected shape`); - return toInt(rows[0].row_count); -} - -async function compareRelation(query: Query, pair: RelationPair, catalog: Catalog): Promise { - const lookup: (name: string | null) => CatalogRelation | undefined = (name) => - name === null ? undefined : catalog.relations.find((relation) => relation.name === name); - const same: boolean = pair.fromPhysicalName !== null && pair.fromPhysicalName === pair.toPhysicalName; - const fromRelation: CatalogRelation | undefined = lookup(pair.fromPhysicalName); - const toRelation: CatalogRelation | undefined = same ? fromRelation : lookup(pair.toPhysicalName); - const fromRows: number | null = await rowCount(query, pair.database, fromRelation); - const toRows: number | null = same ? fromRows : await rowCount(query, pair.database, toRelation); - const side: (physical: string | null, relation: CatalogRelation | undefined, rows: number | null) => DiffSide = ( - physical, - relation, - rows - ) => ({ - bound: physical !== null, - found: relation === undefined ? null : { columns: relation.columns, rowCount: rows ?? 0 } - }); - const fromColumns: CatalogColumn[] = fromRelation?.columns ?? []; - const toColumns: CatalogColumn[] = toRelation?.columns ?? []; - return { - logicalName: pair.logicalName, - status: diffStatus(side(pair.fromPhysicalName, fromRelation, fromRows), side(pair.toPhysicalName, toRelation, toRows)), - fromPhysicalName: pair.fromPhysicalName, - toPhysicalName: pair.toPhysicalName, - fromRowCount: fromRows, - toRowCount: toRows, - addedColumns: columnNamesMissingFrom(toColumns, fromColumns), - removedColumns: columnNamesMissingFrom(fromColumns, toColumns) - }; -} - -/** - * `GET /api/deployments/{id}/diff[?against=]`: the schema and row-count comparison of one - * deployment with the active bindings, or with `against`. Throws the refusal for an endpoint - * that cannot be resolved. - */ -export async function readDeploymentDiff( - query: Query, - database: string, - deploymentId: string, - against: string | null = null -): Promise { - const identifier: string | null = identifierError(database); - if (identifier !== null) throw new Error(identifier); - const [from, to] = parseComparison(against === null ? deploymentId : `${against}:${deploymentId}`); - const inventory: DeploymentInventory = await loadDeploymentInventory(query, database); - const state: ManagedTableState = await inspectManagedTableState(query, database); - const pairs: RelationPair[] = relationPairs(from, to, inventory.deployments, state.activeBindings, database); - const catalogs: Map = new Map(); - for (const pairDatabase of new Set(pairs.map((pair) => pair.database))) { - catalogs.set(pairDatabase, await loadCatalog(query, pairDatabase)); - } - const relations: DeploymentDiffRelationPayload[] = []; - for (const pair of pairs) { - const catalog: Catalog | undefined = catalogs.get(pair.database); - if (catalog === undefined) throw new Error(`no catalog for ${pair.database}`); - relations.push(await compareRelation(query, pair, catalog)); - } - return { database, fromEndpoint: from, toEndpoint: to, relations }; -} diff --git a/ui/src/lib/demo-readers/main/read-deployment.ts b/ui/src/lib/demo-readers/main/read-deployment.ts deleted file mode 100644 index a63c08f7..00000000 --- a/ui/src/lib/demo-readers/main/read-deployment.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { loadDeploymentEvidence } from '../_api/inventory.ts'; -import type { - DeploymentEvidence, - DeploymentSummary, - PromotionPreview, - Storage -} from '../_helpers/evidence-types.ts'; -import { deploymentIdOf, logicalNameOf, modelRelationNames } from '../_helpers/naming.ts'; -import { - buildPublishBindingRequest, - incompleteMessage, - replacementPreview, - staleUpstreamMessage -} from '../_helpers/promotion.ts'; -import { relationStorage } from '../_api/storage.ts'; -import { storageOf, storageTotal, summaryPayload } from '../_helpers/lifecycle.ts'; -import type { - DeploymentDetailPayload, - DeploymentModelPayload, - PromotionPreviewPayload, - Query -} from '../types.ts'; - -function previewPayload(preview: PromotionPreview, blockedReason: string | null): PromotionPreviewPayload { - return { - classification: preview.initialPublish ? 'initial_publish' : 'promotion', - additions: preview.additions.map((binding) => ({ ...binding })), - replacements: preview.replacements.map(({ binding, fromPhysicalName }) => ({ - database: binding.database, - logicalName: binding.logicalName, - fromPhysicalName, - toPhysicalName: binding.physicalName - })), - removals: preview.removals.map((removal) => ({ ...removal })), - blockedReason - }; -} - -/** - * `GET /api/deployments/{id}`: one deployment with each model's staged versus live relation, - * what promoting it would change and why it would be refused. `null` when it does not exist. - */ -export async function readDeployment( - query: Query, - database: string, - deploymentId: string -): Promise { - const evidence: DeploymentEvidence = await loadDeploymentEvidence(query, database); - const deployment: DeploymentSummary | undefined = evidence.summaries.find((item) => item.deploymentId === deploymentId); - if (deployment === undefined) return null; - const storage: Map = await relationStorage(query, database); - const liveByLogical: Map = new Map( - evidence.inspected.activeBindings.map((binding) => [binding.logicalName, binding.physicalName]) - ); - const models: DeploymentModelPayload[] = modelRelationNames(deployment.physicalRelationNames).map((stagedRelation) => { - const logicalName: string = logicalNameOf(stagedRelation); - const liveRelation: string | null = liveByLogical.get(logicalName) ?? null; - const staged: Storage = storageOf(storage, stagedRelation); - return { - logicalName, - stagedRelation, - stagedRows: staged.rows, - stagedBytes: staged.bytes, - liveRelation, - liveDeploymentId: liveRelation === null ? null : deploymentIdOf(liveRelation), - liveRows: liveRelation === null ? null : storageOf(storage, liveRelation).rows, - isActive: liveRelation === stagedRelation, - isNew: liveRelation === null - }; - }); - let preview: PromotionPreview | null = null; - if (deployment.state === 'staged' || deployment.state === 'active') { - const candidate: PromotionPreview = replacementPreview( - buildPublishBindingRequest(evidence, deploymentId), - evidence.inspected.activeBindings - ); - const changes: boolean = - candidate.additions.length > 0 || candidate.replacements.length > 0 || candidate.removals.length > 0; - if (deployment.state === 'staged' || changes) preview = candidate; - } - // The same refusal `sqt deployment promote` applies, shown before it runs. - const blockedReason: string | null = - preview === null - ? null - : staleUpstreamMessage(evidence, deploymentId, buildPublishBindingRequest(evidence, deploymentId)); - const orphaned: string[] = preview?.orphaned.map((relation) => relation.physicalName) ?? []; - return { - database, - ...summaryPayload(deployment, storage), - models, - promotionPreview: - deployment.state === 'incomplete' - ? { - classification: 'promotion', - additions: [], - replacements: [], - removals: [], - blockedReason: incompleteMessage(deploymentId) - } - : preview === null - ? null - : previewPayload(preview, blockedReason), - wouldOrphan: { - relationNames: orphaned, - relationCount: orphaned.length, - bytes: storageTotal(orphaned, storage).bytes - } - }; -} diff --git a/ui/src/lib/demo-readers/main/read-deployments.ts b/ui/src/lib/demo-readers/main/read-deployments.ts deleted file mode 100644 index f4996dbd..00000000 --- a/ui/src/lib/demo-readers/main/read-deployments.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { loadDeploymentEvidence } from '../_api/inventory.ts'; -import type { DeploymentEvidence, Storage } from '../_helpers/evidence-types.ts'; -import { relationStorage } from '../_api/storage.ts'; -import { summaryPayload } from '../_helpers/lifecycle.ts'; -import type { DeploymentsPayload, Query } from '../types.ts'; - -/** `GET /api/deployments`: every reconstructed deployment with its storage totals. */ -export async function readDeployments(query: Query, database: string): Promise { - const evidence: DeploymentEvidence = await loadDeploymentEvidence(query, database); - const storage: Map = await relationStorage(query, database); - return { database, deployments: evidence.summaries.map((summary) => summaryPayload(summary, storage)) }; -} diff --git a/ui/src/lib/demo-readers/main/read-run-events.ts b/ui/src/lib/demo-readers/main/read-run-events.ts deleted file mode 100644 index 4ba030c6..00000000 --- a/ui/src/lib/demo-readers/main/read-run-events.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { DEFAULT_PRESUMED_FAILED_AFTER_SECONDS, RUN_EVENT_WINDOW_SIZE } from '../constants.ts'; -import { assembleRuns, parseTimestamp } from '../_helpers/run-assembly.ts'; -import { eventStreams, terminalRuns } from '../_api/run-history.ts'; -import { captureWarehouseTimestamp } from '../_api/warehouse-probes.ts'; -import type { Streams } from '../_helpers/run-assembly.ts'; -import { statementProgress } from '../_api/statement-progress.ts'; -import type { Query, RunEvent, RunEventsPayload, RunPayload } from '../types.ts'; - -const RUN_EVENT_PAGE_SIZE: number = 500; - -/** `GET /api/runs/{id}/events?after=N`: one page of durable events and the run's derived state. */ -export async function readRunEvents( - query: Query, - database: string, - invocationId: string, - after: number = 0, - presumedFailedAfterSeconds: number = DEFAULT_PRESUMED_FAILED_AFTER_SECONDS -): Promise { - const warehouseTimestamp: string = await captureWarehouseTimestamp(query); - const terminal: Map = await terminalRuns(query, database, { invocationId }); - const statusStreams: Streams = await eventStreams(query, database, { - invocationId, - recentLimit: RUN_EVENT_WINDOW_SIZE - }); - const [run]: RunPayload[] = assembleRuns( - terminal, - statusStreams, - parseTimestamp(warehouseTimestamp), - presumedFailedAfterSeconds - ); - const page: Streams = await eventStreams(query, database, { invocationId, after, rowLimit: RUN_EVENT_PAGE_SIZE }); - const events: RunEvent[] = page.get(invocationId) ?? []; - return { - found: run !== undefined || events.length > 0, - events, - hasMore: events.length === RUN_EVENT_PAGE_SIZE, - status: run?.status ?? null, - lastSignalAt: run?.lastSignalAt ?? null, - lastSignalAgeSeconds: run?.lastSignalAgeSeconds ?? null, - statementProgress: await statementProgress(query, statusStreams.get(invocationId) ?? [], warehouseTimestamp) - }; -} diff --git a/ui/src/lib/demo-readers/main/read-run-statement.ts b/ui/src/lib/demo-readers/main/read-run-statement.ts deleted file mode 100644 index 96ac778d..00000000 --- a/ui/src/lib/demo-readers/main/read-run-statement.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { tableExists } from '../_api/warehouse-probes.ts'; -import { pyStr, sqlLiteral } from '../_helpers/values.ts'; -import type { Query, RunStatementPayload } from '../types.ts'; - -const RUN_STATEMENTS_TABLE: string = '_sqltide_run_statements'; - -type StatementRow = { - step_id: string; - phase: string; - intent: string; - sql: string; - sql_sha256: string; - workflow_sha256: string; -}; - -/** `GET /api/runs/{id}/statements/{seq}`: one recorded SQL statement of a run. */ -export async function readRunStatement( - query: Query, - database: string, - invocationId: string, - statementSequence: number -): Promise { - if (!(await tableExists(query, database, RUN_STATEMENTS_TABLE))) return { found: false }; - const [row]: StatementRow[] = await query( - 'SELECT step_id, phase, intent, sql, toString(sql_sha256) AS sql_sha256, ' + - `toString(workflow_sha256) AS workflow_sha256 FROM \`${database}\`.\`${RUN_STATEMENTS_TABLE}\` FINAL ` + - `WHERE invocation_id = '${sqlLiteral(invocationId)}' AND statement_sequence = ${Math.trunc(statementSequence)} LIMIT 1` - ); - if (row === undefined) return { found: false }; - return { - found: true, - invocationId, - statementSequence, - stepId: pyStr(row.step_id), - phase: pyStr(row.phase), - intent: pyStr(row.intent), - sql: pyStr(row.sql), - sqlSha256: pyStr(row.sql_sha256), - workflowSha256: pyStr(row.workflow_sha256) - }; -} diff --git a/ui/src/lib/demo-readers/main/read-runs.ts b/ui/src/lib/demo-readers/main/read-runs.ts deleted file mode 100644 index 9c861818..00000000 --- a/ui/src/lib/demo-readers/main/read-runs.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { - DEFAULT_PRESUMED_FAILED_AFTER_SECONDS, - INVOCATIONS_TABLE, - RUN_EVENT_WINDOW_SIZE, - RUN_EVENTS_TABLE -} from '../constants.ts'; -import { assembleRuns, parseTimestamp } from '../_helpers/run-assembly.ts'; -import { eventStreams, runStartedStreams, terminalRuns } from '../_api/run-history.ts'; -import { captureWarehouseTimestamp, tableExists } from '../_api/warehouse-probes.ts'; -import type { Streams } from '../_helpers/run-assembly.ts'; -import type { Query, RunPayload } from '../types.ts'; - -const DEFAULT_RUNS_LIMIT: number = 100; -const SCHEDULED_RUNS_LIMIT: number = 25; - -/** `GET /api/runs`: terminal runs and unterminated event streams with derived states. */ -export async function readRuns( - query: Query, - database: string, - presumedFailedAfterSeconds: number = DEFAULT_PRESUMED_FAILED_AFTER_SECONDS -): Promise { - const warehouseNow: number = parseTimestamp(await captureWarehouseTimestamp(query)); - const invocationsPresent: boolean = await tableExists(query, database, INVOCATIONS_TABLE); - const eventsPresent: boolean = await tableExists(query, database, RUN_EVENTS_TABLE); - const terminal: Map = new Map(); - if (invocationsPresent) { - for (const [limit, scheduled] of [ - [DEFAULT_RUNS_LIMIT, false], - [SCHEDULED_RUNS_LIMIT, true] - ] as const) { - for (const [id, run] of await terminalRuns(query, database, { limit, scheduled }, true)) terminal.set(id, run); - } - } - const streams: Streams = await runStartedStreams(query, database, [...terminal.keys()], eventsPresent); - const active: Streams = await eventStreams( - query, - database, - { recentLimit: RUN_EVENT_WINDOW_SIZE, activeOnly: true, excludeTerminalInvocations: invocationsPresent }, - eventsPresent - ); - for (const [id, events] of active) streams.set(id, events); - return assembleRuns(terminal, streams, warehouseNow, presumedFailedAfterSeconds); -} diff --git a/ui/src/lib/demo-readers/main/read-state.ts b/ui/src/lib/demo-readers/main/read-state.ts deleted file mode 100644 index 76d17c99..00000000 --- a/ui/src/lib/demo-readers/main/read-state.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { captureWarehouseTimestamp } from '../_api/warehouse-probes.ts'; -import { measureWarehouse } from '../_api/measure-warehouse.ts'; -import { sourceStates } from '../_api/source-states.ts'; -import { modelStates } from '../_helpers/live-state.ts'; -import type { Measurements } from '../_helpers/live-state.ts'; -import { readWarehouseHealth } from '../_api/warehouse-health.ts'; -import type { JsonObject, Query, StateDefinitions, StatePayload } from '../types.ts'; - -/** - * `GET /api/state` recomputed against the engine. `template` is the payload `sqt dev` returned and - * `definitions` its `/api/definitions`; both describe the compiled project, which does not change. - * Every warehouse measurement is read again; compile-time comparisons (`drift`, `driftReasons`, - * `semanticDrift`, `consumerGroupDrift`) are kept from the template. Disk, inode and memory - * diagnostics are reported as unavailable, and broker lag as unknown, because a browser engine - * has no host machine or Kafka broker. - */ -export async function readState( - query: Query, - database: string, - template: StatePayload, - definitions: StateDefinitions -): Promise { - const capturedAt: string = await captureWarehouseTimestamp(query); - const warehouseHealth: JsonObject = await readWarehouseHealth(query, database, capturedAt, template.warehouseHealth); - const measured: Measurements = await measureWarehouse(query, database, capturedAt, template, definitions); - return { - capturedAt, - warehouseHealth, - models: modelStates(template, definitions, measured), - sources: await sourceStates(query, database, template, definitions, measured) - }; -} diff --git a/ui/src/lib/demo-readers/types.ts b/ui/src/lib/demo-readers/types.ts deleted file mode 100644 index 9a398971..00000000 --- a/ui/src/lib/demo-readers/types.ts +++ /dev/null @@ -1,141 +0,0 @@ -/** - * Runs one SQL statement against the warehouse and returns its rows decoded from ClickHouse - * `JSONEachRow`, so 64-bit integers arrive as strings. - */ -export type Query = (sql: string) => Promise; - -export type JsonObject = { [key: string]: unknown }; - -export type DeploymentState = - | 'active' - | 'staged' - | 'superseded' - | 'incomplete' - | 'metadata_missing' - | 'physical_missing'; - -export type DeploymentSummaryPayload = { - deploymentId: string; - state: DeploymentState; - createdAt: string | null; - publishedAt: string | null; - persistedStatus: string | null; - rootNames: string[]; - physicalRelationNames: string[]; - activeBindingNames: string[]; - missingRelationNames: string[]; - modelCount: number; - relationCount: number; - rows: number; - bytes: number; -}; - -export type DeploymentsPayload = { - database: string; - deployments: DeploymentSummaryPayload[]; -}; - -export type DeploymentModelPayload = { - logicalName: string; - stagedRelation: string; - stagedRows: number; - stagedBytes: number; - liveRelation: string | null; - liveDeploymentId: string | null; - liveRows: number | null; - isActive: boolean; - isNew: boolean; -}; - -export type PromotionPreviewPayload = { - classification: 'initial_publish' | 'promotion'; - additions: { database: string; logicalName: string; physicalName: string }[]; - replacements: { - database: string; - logicalName: string; - fromPhysicalName: string; - toPhysicalName: string; - }[]; - removals: { database: string; logicalName: string; physicalName: string }[]; - blockedReason: string | null; -}; - -export type DeploymentDetailPayload = DeploymentSummaryPayload & { - database: string; - models: DeploymentModelPayload[]; - promotionPreview: PromotionPreviewPayload | null; - wouldOrphan: { relationNames: string[]; relationCount: number; bytes: number }; -}; - -export type DeploymentDiffStatus = 'added' | 'removed' | 'changed' | 'unchanged' | 'physical_missing'; - -export type DeploymentDiffRelationPayload = { - logicalName: string; - status: DeploymentDiffStatus; - fromPhysicalName: string | null; - toPhysicalName: string | null; - fromRowCount: number | null; - toRowCount: number | null; - addedColumns: string[]; - removedColumns: string[]; -}; - -export type DeploymentDiffPayload = { - database: string; - fromEndpoint: string; - toEndpoint: string; - relations: DeploymentDiffRelationPayload[]; -}; - -/** One run event: its row columns merged with its JSON payload. */ -export type RunEvent = JsonObject & { - sequence: number; - emittedAt: string; - event: string; - stepId: unknown; - phase: unknown; -}; - -export type RunPayload = JsonObject & { invocationId: string; startedAt: string }; - -export type RunEventsPayload = { - found: boolean; - events: RunEvent[]; - hasMore: boolean; - status: unknown; - lastSignalAt: unknown; - lastSignalAgeSeconds: unknown; - statementProgress: JsonObject | null; -}; - -export type RunStatementPayload = - | { found: false } - | { - found: true; - invocationId: string; - statementSequence: number; - stepId: string; - phase: string; - intent: string; - sql: string; - sqlSha256: string; - workflowSha256: string; - }; - -/** The parts of the `/api/definitions` payload the state overlay needs. */ -export type StateDefinitions = { - sources: { name: string; freshness?: { warnAfter: string | null; errorAfter: string | null } | null }[]; - pipelines: { sourceName: string | null; models: string[] }[]; - models: { name: string; kind: string }[]; -}; - -/** - * The `/api/state` payload. Model and source entries keep the fields the compiled project defines - * and the readers replace every field the warehouse measures. - */ -export type StatePayload = { - capturedAt: string; - warehouseHealth: JsonObject | null; - models: { [name: string]: JsonObject }; - sources: { [name: string]: JsonObject }; -}; diff --git a/ui/src/lib/demo/_api/demo-fetch.ts b/ui/src/lib/demo/_api/demo-fetch.ts index 50802f95..dbdf0631 100644 --- a/ui/src/lib/demo/_api/demo-fetch.ts +++ b/ui/src/lib/demo/_api/demo-fetch.ts @@ -1,79 +1,41 @@ import recordings from '../recordings.json'; -import { DEMO_ENGINE_GETS, DEMO_NOT_IN_BROWSER_MESSAGE, DEMO_READ_ONLY_MESSAGE } from '../constants'; -import { answerFromEngine } from './engine-answers'; -import type { BuildRequest, DemoAnswer, DemoEngineLink, LiveDemo } from '../types'; -function reply({ status, body }: DemoAnswer): Response { +/** What every write in the demo returns, and what the UI shows for it. */ +export const DEMO_READ_ONLY_MESSAGE: string = + 'This is a read-only UI demo with example data. Run `sqt playground` to try it with ClickHouse on your machine.'; + +type Recording = { status: number; body: unknown }; + +function reply(status: number, body: unknown): Response { return new Response(JSON.stringify(body), { status, headers: { 'content-type': 'application/json' } }); } -const failure = (error: unknown): DemoAnswer => ({ - status: 500, - body: { detail: `The demo engine failed: ${error instanceof Error ? error.message : String(error)}` } -}); - -const DEPLOYMENT_ACTION: RegExp = /^\/api\/deployments\/([^/]+)\/(promote|rollback)$/; - -/** A write the real engine runs: Execute, Promote and Roll back, which sqt prepared. */ -async function write(live: LiveDemo, url: URL, body: string): Promise { - const deploymentAction: RegExpMatchArray | null = url.pathname.match(DEPLOYMENT_ACTION); - if (deploymentAction !== null) { - return live.story.deploymentAction( - deploymentAction[2] as 'promote' | 'rollback', - decodeURIComponent(deploymentAction[1]) - ); - } - if (url.pathname === '/api/build') return live.story.build(JSON.parse(body) as BuildRequest); - // Reloading the project or the warehouse status changes nothing here; both answer the status. - if (url.pathname === '/api/reload' || url.pathname === '/api/warehouse/refresh') { - return recordings.responses['/api/status']; - } - return { status: 403, body: { detail: DEMO_NOT_IN_BROWSER_MESSAGE } }; -} - /** - * Serves the UI's `/api` requests for the UI demo build. - * - * With the real engine, sqt's plans and actions come from the story it prepared, and every page - * that shows the warehouse reads the engine (see answerFromEngine). Requests made while the - * engine loads wait for it; if it cannot start, they wait for the visitor to choose the recording. - * - * Without it, GETs return what `sqt dev` returned for the same path and query, and writes return - * the read-only message. A GET with no recording fails loudly, so a UI change that needs a new - * endpoint is re-recorded. + * Serves the UI's `/api` requests from the recorded responses: GETs return what `sqt dev` + * returned for the same path and query, and writes return the read-only message. A GET with no + * recording fails loudly, so a UI change that needs a new endpoint is re-recorded. */ -export function installDemoFetch(engine: DemoEngineLink | null = null): void { - const responses: Record = recordings.responses; +export function installDemoFetch(): void { + const responses: Record = recordings.responses; const passThrough: typeof fetch = globalThis.fetch.bind(globalThis); globalThis.fetch = async (input: RequestInfo | URL, init?: RequestInit): Promise => { - const url: URL = new URL(input instanceof Request ? input.url : String(input), globalThis.location.href); + const url: URL = new URL( + input instanceof Request ? input.url : String(input), + globalThis.location.href + ); if (url.origin !== globalThis.location.origin || !url.pathname.startsWith('/api/')) { return passThrough(input, init); } - const method: string = (init?.method ?? (input instanceof Request ? input.method : 'GET')).toUpperCase(); - const forEngine: boolean = method !== 'GET' || DEMO_ENGINE_GETS.test(url.pathname); - const live: LiveDemo | null = engine !== null && engine.active() && forEngine ? await engine.whenReady() : null; - if (live !== null) { - const body: string = method === 'GET' ? '' : typeof init?.body === 'string' ? init.body : ''; - try { - const answer: DemoAnswer | null = - method === 'GET' ? await answerFromEngine(live, url, responses) : await write(live, url, body); - if (answer !== null) return reply(answer); - } catch (error) { - console.error(`The demo engine could not answer ${method} ${url.pathname}:`, error); - return reply(failure(error)); - } - } else if (method !== 'GET') { - return reply({ status: 403, body: { detail: DEMO_READ_ONLY_MESSAGE } }); - } - const recording: DemoAnswer | undefined = responses[url.pathname + url.search]; + const method: string = init?.method ?? (input instanceof Request ? input.method : 'GET'); + if (method.toUpperCase() !== 'GET') return reply(403, { detail: DEMO_READ_ONLY_MESSAGE }); + const recording: Recording | undefined = responses[url.pathname + url.search]; if (recording === undefined) { console.error(`UI demo has no recording for GET ${url.pathname}${url.search}`); - return reply({ status: 404, body: { detail: `No recording for ${url.pathname}` } }); + return reply(404, { detail: `No recording for ${url.pathname}` }); } - return reply(recording); + return reply(recording.status, recording.body); }; } diff --git a/ui/src/lib/demo/_api/download-engine.ts b/ui/src/lib/demo/_api/download-engine.ts deleted file mode 100644 index e54ced01..00000000 --- a/ui/src/lib/demo/_api/download-engine.ts +++ /dev/null @@ -1,40 +0,0 @@ -import type { z } from 'zod'; -import { engineManifestSchema } from '../schemas'; -import type { EngineProgress } from '../types'; - -/** - * Downloads the engine's gzip parts side by side, joins and gunzips them, and returns a blob URL of - * the wasm for the engine's worker to load. - */ -export async function downloadEngine(base: string, onProgress: (progress: EngineProgress) => void): Promise { - const manifestResponse: Response = await fetch(`${base}manifest.json`); - if (!manifestResponse.ok) throw new Error(`engine manifest: HTTP ${manifestResponse.status}`); - const manifest: z.infer = engineManifestSchema.parse(await manifestResponse.json()); - const total: number = manifest.parts.reduce((sum, part) => sum + part.bytes, 0); - let loaded: number = 0; - onProgress({ phase: 'download', loaded, total }); - const parts: Blob[] = await Promise.all( - manifest.parts.map(async ({ name }) => { - const response: Response = await fetch(`${base}${name}`); - if (!response.ok || response.body === null) throw new Error(`engine download ${name}: HTTP ${response.status}`); - const chunks: Uint8Array[] = []; - const reader: ReadableStreamDefaultReader> = response.body.getReader(); - for (;;) { - const { done, value } = await reader.read(); - if (done) break; - chunks.push(value); - loaded += value.length; - onProgress({ phase: 'download', loaded, total }); - } - return new Blob(chunks); - }) - ); - onProgress({ phase: 'start' }); - const wasm: Blob = await new Response( - new Blob(parts).stream().pipeThrough(new DecompressionStream('gzip')) - ).blob(); - if (wasm.size !== manifest.wasmBytes) { - throw new Error(`engine download was cut short: ${wasm.size} of ${manifest.wasmBytes} bytes`); - } - return URL.createObjectURL(new Blob([wasm], { type: 'application/wasm' })); -} diff --git a/ui/src/lib/demo/_api/engine-answers.ts b/ui/src/lib/demo/_api/engine-answers.ts deleted file mode 100644 index db726bc8..00000000 --- a/ui/src/lib/demo/_api/engine-answers.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { readDeployment } from '$lib/demo-readers/main/read-deployment'; -import { readDeploymentDiff } from '$lib/demo-readers/main/read-deployment-diff'; -import { readDeployments } from '$lib/demo-readers/main/read-deployments'; -import { readRunEvents } from '$lib/demo-readers/main/read-run-events'; -import { readRunStatement } from '$lib/demo-readers/main/read-run-statement'; -import { readRuns } from '$lib/demo-readers/main/read-runs'; -import { readState } from '$lib/demo-readers/main/read-state'; -import type { Query, StateDefinitions, StatePayload } from '$lib/demo-readers/types'; -import type { DemoAnswer, LiveDemo } from '../types'; - -const ok = (body: unknown): DemoAnswer => ({ status: 200, body }); -const notFound = (detail: string): DemoAnswer => ({ status: 404, body: { detail } }); - -/** - * A GET the engine answers: sqt's plan for this step of the story, the last build, and every page - * that shows the warehouse, read from the engine's tables as `sqt dev` reads ClickHouse. Null for - * the rest, which the recording answers (the project's definitions, auth, and settings). - */ -export async function answerFromEngine( - { engine, story }: LiveDemo, - url: URL, - recorded: Record -): Promise { - const query: Query = (sql: string): Promise => engine.rows(sql); - const { database } = engine; - const path: string[] = url.pathname.split('/').slice(2).map(decodeURIComponent); - const after: number = Number(url.searchParams.get('after') ?? 0); - if (url.pathname === '/api/plan') return story.plan(url.searchParams); - if (url.pathname === '/api/build/current') return ok(story.buildFeed()); - if (url.pathname === '/api/state') { - return ok( - await readState( - query, - database, - recorded['/api/state'].body as StatePayload, - recorded['/api/definitions'].body as StateDefinitions - ) - ); - } - if (path[0] === 'deployments') { - if (path.length === 1) return ok(await readDeployments(query, database)); - if (path.length === 2) { - const deployment: unknown = await readDeployment(query, database, path[1]); - return deployment === null ? notFound(`Deployment '${path[1]}' was not found`) : ok(deployment); - } - if (path.length === 3 && path[2] === 'diff') { - return ok(await readDeploymentDiff(query, database, path[1], url.searchParams.get('against'))); - } - } - if (path[0] === 'runs') { - if (path.length === 1) return ok(await readRuns(query, database)); - if (path.length === 3 && path[2] === 'events') return ok(await readRunEvents(query, database, path[1], after)); - if (path.length === 4 && path[2] === 'statements') { - return ok(await readRunStatement(query, database, path[1], Number(path[3]))); - } - } - return null; -} diff --git a/ui/src/lib/demo/_helpers/chdb-engine.ts b/ui/src/lib/demo/_helpers/chdb-engine.ts deleted file mode 100644 index df08766d..00000000 --- a/ui/src/lib/demo/_helpers/chdb-engine.ts +++ /dev/null @@ -1,136 +0,0 @@ -/** - * The demo's real ClickHouse: chdb-wasm's multi-threaded build in a worker, which runs the - * statements sqt wrote for the story and keeps adding orders to the source. - */ -import { downloadEngine } from '../_api/download-engine'; -import { createOrderGeneratorResource } from '../_resources/order-generator.resource'; -import type { DemoEngine, EngineProgress, OrderGeneratorResource, TableSize } from '../types'; - -/** What chdb-wasm's module exports that the demo uses. */ -type ChdbModule = { - AsyncChdb: { - create(options: { moduleUrl: string; wasmUrl: string }): Promise; - }; -}; -type ChdbClient = { - query(sql: string, format?: string): Promise<{ text(): string }>; - terminate(): Promise; -}; - -type SizeRow = { name: string; rows: string | number | null; bytes: string | number | null }; -type LatestOrderRow = { id: string | number; offset: string | number }; - -/** Downloads and starts the engine, with an empty `database`. */ -export async function startChdbEngine( - base: string, - database: string, - onProgress: (progress: EngineProgress) => void -): Promise { - /** - * A new engine in its own worker. The browser gives each worker a fixed pool of threads, which - * the default asynchronous file reads and one pipeline thread per core can use up ("Cannot - * schedule a task"); the demo's tables are small, so it reads synchronously on two threads. - */ - async function connect(progress: (progress: EngineProgress) => void): Promise { - const wasmUrl: string = await downloadEngine(base, progress); - let created: ChdbClient; - try { - const chdb: ChdbModule = await import(/* @vite-ignore */ `${base}index.js`); - created = await chdb.AsyncChdb.create({ moduleUrl: `${base}chdb.mjs`, wasmUrl }); - } finally { - URL.revokeObjectURL(wasmUrl); - } - try { - await created.query('SET max_threads = 2'); - await created.query(`SET local_filesystem_read_method = 'pread'`); - } catch (error) { - await created.terminate(); - throw error; - } - return created; - } - // Null while a restart has stopped the old engine and the new one has not started. - let client: ChdbClient | null = await connect(onProgress); - - // The engine deadlocks on overlapping queries, so every caller waits its turn. - let queue: Promise = Promise.resolve(); - let nextOrder: { id: number; offset: number } = { id: 0, offset: 0 }; - - function run(sql: string, format: string = 'TabSeparated'): Promise { - const turn: Promise = queue.then(async () => { - // A query sent to a stopped engine would wait forever, so it fails here instead. - if (client === null) throw new Error('The engine stopped while starting over. Use Start over again, or reload the page.'); - try { - return (await client.query(sql, format)).text(); - } catch (error) { - throw new Error(`${error instanceof Error ? error.message : String(error)}\n in: ${sql.slice(0, 300)}`); - } - }); - queue = turn.catch(() => undefined); - return turn; - } - - async function rows(sql: string): Promise { - const text: string = await run(sql, 'JSONEachRow'); - return text - .split('\n') - .filter((line) => line.trim() !== '') - .map((line) => JSON.parse(line) as Row); - } - - /** - * One new order: every third one is still pending, so the completed-orders filter shows. While - * an action switches tables a view can be missing for a moment, so a refused order is tried - * again on the next tick with the same ID. - */ - async function addOrder(): Promise { - const { id, offset } = nextOrder; - const status: string = id % 3 === 0 ? 'pending' : 'completed'; - const totalCents: number = 500 + ((id * 1373) % 5500); - try { - await run(`INSERT INTO ${database}.playground_orders VALUES (${id}, '${status}', ${totalCents}, 0, ${offset}, now64(3))`); - } catch { - return; - } - if (nextOrder.id === id) nextOrder = { id: id + 1, offset: offset + 1 }; - } - - const generator: OrderGeneratorResource = createOrderGeneratorResource(addOrder); - - const engine: DemoEngine = { - database, - run, - rows, - restart(): Promise { - // Dropping the database instead runs out of the worker's threads, and dropped tables - // stay in memory for minutes; a new worker starts empty from the cached download. - const turn: Promise = queue.then(async () => { - const stopping: ChdbClient | null = client; - client = null; - await stopping?.terminate(); - client = await connect(() => undefined); - }); - queue = turn.catch(() => undefined); - return turn; - }, - async tableSizes(): Promise> { - const sizes: SizeRow[] = await rows( - `SELECT name, total_rows AS rows, total_bytes AS bytes FROM system.tables WHERE database = '${database}'` - ); - return new Map(sizes.map((row) => [row.name, { rows: Number(row.rows ?? 0), bytes: Number(row.bytes ?? 0) }])); - }, - async startOrders(): Promise { - const [latest]: LatestOrderRow[] = await rows( - `SELECT max(order_id) AS id, max(_replay_offset) AS offset FROM ${database}.playground_orders` - ); - nextOrder = { id: Number(latest?.id ?? 0) + 1, offset: Number(latest?.offset ?? 0) + 1 }; - generator.start(); - }, - stopOrders: generator.stop, - get addingOrders(): boolean { - return generator.running; - } - }; - - return engine; -} diff --git a/ui/src/lib/demo/_helpers/demo-instance.svelte.ts b/ui/src/lib/demo/_helpers/demo-instance.svelte.ts deleted file mode 100644 index 822b68ec..00000000 --- a/ui/src/lib/demo/_helpers/demo-instance.svelte.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { createDemoState } from '../_state/demo.state.svelte'; -import type { DemoController } from '../types'; - -let instance: DemoController | undefined; - -export function getDemoInstance(): DemoController { - instance ??= createDemoState(); - return instance; -} diff --git a/ui/src/lib/demo/_helpers/engine-support.ts b/ui/src/lib/demo/_helpers/engine-support.ts deleted file mode 100644 index 176e001d..00000000 --- a/ui/src/lib/demo/_helpers/engine-support.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { RECORDING_CHOICE_KEY } from '../constants'; -import type { EngineSupport } from '../types'; - -// The smallest module with a 64-bit memory; only browsers with Memory64 accept it. -const MEMORY64_PROBE: Uint8Array = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 5, 3, 1, 4, 1]); - -type BrowserFacts = { - userAgent: string; - mobile: boolean | undefined; - /** The primary pointer is a finger, as on phones and tablets, even when they ask for the desktop site. */ - touchFirst: boolean; - saveData: boolean | undefined; - isolated: boolean; - memory64: boolean; - chosenRecording: boolean; -}; - -type NavigatorWithHints = Navigator & { - userAgentData?: { mobile?: boolean }; - connection?: { saveData?: boolean }; -}; - -function browserFacts(): BrowserFacts { - const navigatorWithHints: NavigatorWithHints = navigator; - let chosenRecording: boolean = false; - try { - chosenRecording = sessionStorage.getItem(RECORDING_CHOICE_KEY) === '1'; - } catch { - // storage blocked: nothing was chosen - } - return { - userAgent: navigator.userAgent, - mobile: navigatorWithHints.userAgentData?.mobile, - touchFirst: navigator.maxTouchPoints > 0 && globalThis.matchMedia?.('(pointer: coarse)').matches === true, - saveData: navigatorWithHints.connection?.saveData, - isolated: globalThis.crossOriginIsolated === true, - memory64: typeof WebAssembly === 'object' && WebAssembly.validate(MEMORY64_PROBE), - chosenRecording - }; -} - -/** Decides from the browser's facts; the checks run in the order a visitor would expect the note. */ -export function engineSupport(facts: BrowserFacts = browserFacts()): EngineSupport { - const { userAgent } = facts; - if (facts.chosenRecording) return { real: false, reason: 'You chose the recording.' }; - if (/iPhone|iPad|iPod/.test(userAgent)) { - return { real: false, reason: 'iOS browsers can’t run the real engine yet, so this is the recording.' }; - } - if (facts.mobile === true || facts.touchFirst || /Android|Mobi/.test(userAgent)) { - return { real: false, reason: 'The real engine is a 28 MB download meant for desktops, so phones get the recording.' }; - } - if (/Safari\//.test(userAgent) && !/Chrome\/|Chromium\/|Edg\//.test(userAgent)) { - return { real: false, reason: 'Safari can’t run the real engine yet, so this is the recording.' }; - } - if (facts.saveData === true) { - return { real: false, reason: 'Your browser asked to save data, so the 28 MB engine isn’t downloaded.' }; - } - if (!facts.memory64) { - return { - real: false, - reason: 'This browser can’t run the real engine (it needs Chrome or Edge 133+, or Firefox 134+), so this is the recording.' - }; - } - if (!facts.isolated) { - return { real: false, reason: 'This page isn’t cross-origin isolated, which the real engine needs, so this is the recording.' }; - } - return { real: true }; -} diff --git a/ui/src/lib/demo/_helpers/fill-slots.ts b/ui/src/lib/demo/_helpers/fill-slots.ts deleted file mode 100644 index 90cbc80d..00000000 --- a/ui/src/lib/demo/_helpers/fill-slots.ts +++ /dev/null @@ -1,97 +0,0 @@ -import type { PreparedBinding, SlotValues } from '../types'; - -const SLOT: RegExp = /\{\{(d|dt|u|t|s):([^}]+)\}\}/g; -const DEPLOYMENT_ID: RegExp = /^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})Z_[0-9a-f]{6}$/; - -const pad = (value: number, width: number = 2): string => String(value).padStart(width, '0'); - -/** A timestamp as sqt writes it: `s3` is `2026-11-14 08:23:10.359`, `T0` is `2026-11-14T08:23:10`. */ -function formatTime(at: number, format: string): string { - const date: Date = new Date(at); - const day: string = `${date.getUTCFullYear()}-${pad(date.getUTCMonth() + 1)}-${pad(date.getUTCDate())}`; - const time: string = `${pad(date.getUTCHours())}:${pad(date.getUTCMinutes())}:${pad(date.getUTCSeconds())}`; - const digits: number = Number(format.slice(1)); - const fraction: string = digits === 0 ? '' : `.${`${pad(date.getUTCMilliseconds(), 3)}000`.slice(0, digits)}`; - return `${day}${format.startsWith('T') ? 'T' : ' '}${time}${fraction}`; -} - -/** A deployment ID as sqt names one: the second it was created, then six random hex digits. */ -function deploymentId(at: number): string { - const compact: string = formatTime(at, 's0').replace(/[-:]/g, '').replace(' ', 'T'); - const suffix: string = Array.from(crypto.getRandomValues(new Uint8Array(3)), (byte: number): string => - byte.toString(16).padStart(2, '0') - ).join(''); - return `${compact}Z_${suffix}`; -} - -/** When sqt named a deployment, from its ID; null for an ID sqt did not write. */ -export function deploymentTime(id: string): number | null { - const parts: RegExpMatchArray | null = id.match(DEPLOYMENT_ID); - if (parts === null) return null; - const [, year, month, day, hour, minute, second] = parts.map(Number); - return Date.UTC(year, month - 1, day, hour, minute, second); -} - -/** - * Starts `role` now: it gets new UUIDs; the deployments it creates get IDs named after the moment - * sqt named them, and its times fall as long after its start as sqt's did. - */ -export function startRole( - values: SlotValues, - role: string, - startedAt: number, - { creates, times }: PreparedBinding, - ids: Record = {} -): void { - values.roleStarts[role] = startedAt; - values.times[role] = []; - for (const name of Object.keys(values.uuids)) { - if (name.startsWith(`${role}.`)) delete values.uuids[name]; - } - for (const [owner, ordinal, offset] of times) { - const ownerStart: number | undefined = values.roleStarts[owner]; - if (ownerStart === undefined) throw new Error(`The demo has not run ${owner}, which ${role} needs`); - (values.times[owner] ??= [])[ordinal] = ownerStart + offset; - } - for (const created of creates) { - // A deployment the page already named, such as the one a plan proposed, keeps its ID. - const given: string | undefined = ids[created.name]; - const givenAt: number | null = given === undefined ? null : deploymentTime(given); - if (given !== undefined && givenAt !== null) { - values.deployments[created.name] = { id: given, at: givenAt }; - continue; - } - // IDs sort in the order sqt created them, so a new one is at least a second after the others. - const latest: number = Math.max( - -Infinity, - ...Object.entries(values.deployments) - .filter(([name]) => name !== created.name) - .map(([, deployment]) => deployment.at) - ); - const at: number = Math.max(Math.floor((startedAt + created.offset) / 1000) * 1000, latest + 1000); - values.deployments[created.name] = { id: deploymentId(at), at }; - } -} - -/** Prepared text with its slots filled for this tab. */ -export function fillSlots(text: string, values: SlotValues): string { - return text.replaceAll('{{v}}', values.version).replace(SLOT, (whole: string, kind: string, body: string): string => { - const parts: string[] = body.split(':'); - if (kind === 's') { - if (values.startTime === null) throw new Error(`The demo has no start time for ${whole}`); - return formatTime(values.startTime, body); - } - if (kind === 'u') { - values.uuids[body] ??= crypto.randomUUID(); - return values.uuids[body]; - } - if (kind === 'd' || kind === 'dt') { - const deployment: { id: string; at: number } | undefined = values.deployments[parts[0]]; - if (deployment === undefined) throw new Error(`The demo has no deployment for ${whole}`); - return kind === 'd' ? deployment.id : formatTime(deployment.at, parts[1]); - } - const at: number | undefined = values.times[parts[0]]?.[Number(parts[1])]; - if (at === undefined) throw new Error(`The demo has no time for ${whole}`); - return formatTime(at, parts[2]); - }); -} diff --git a/ui/src/lib/demo/_helpers/selection-key.ts b/ui/src/lib/demo/_helpers/selection-key.ts deleted file mode 100644 index b42a41ef..00000000 --- a/ui/src/lib/demo/_helpers/selection-key.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** What the Plan page asks sqt for, from a plan request's query or a build request's body. */ -export type PlanSelection = { - selectors: string[]; - changed: boolean; - includeMissingUpstream: boolean; - startTime: string | null; -}; - -/** A plan request's selection, as `GET /api/plan` reads its query. */ -export function planSelection(params: URLSearchParams): PlanSelection { - return { - selectors: params.getAll('select'), - changed: params.get('changed') === 'true', - includeMissingUpstream: params.get('include_missing_upstream') === 'true', - startTime: params.get('start') - }; -} - -/** - * How prepared.json keys a selection (scripts/prepare-demo.mjs builds the same key): the selectors - * in any order, or changed models only; whether missing upstream is included; and whether it - * replays from a time, which the plan fills in. - */ -export function selectionKey(selection: PlanSelection): string { - return [ - selection.changed ? 'changed' : [...selection.selectors].sort().join(' '), - selection.includeMissingUpstream ? 'upstream' : '', - selection.startTime === null ? '' : 'from' - ].join('|'); -} diff --git a/ui/src/lib/demo/_resources/order-generator.resource.ts b/ui/src/lib/demo/_resources/order-generator.resource.ts deleted file mode 100644 index ff119b8b..00000000 --- a/ui/src/lib/demo/_resources/order-generator.resource.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ORDER_EVERY_MS } from '../constants'; -import type { OrderGeneratorResource } from '../types'; - -export function createOrderGeneratorResource(addOrder: () => Promise): OrderGeneratorResource { - let timer: ReturnType | null = null; - - function start(): void { - stop(); - timer = setInterval(() => void addOrder(), ORDER_EVERY_MS); - } - - function stop(): void { - if (timer !== null) clearInterval(timer); - timer = null; - } - - return { - start, - stop, - get running(): boolean { - return timer !== null; - } - }; -} diff --git a/ui/src/lib/demo/_resources/story.resource.ts b/ui/src/lib/demo/_resources/story.resource.ts deleted file mode 100644 index 5e2235db..00000000 --- a/ui/src/lib/demo/_resources/story.resource.ts +++ /dev/null @@ -1,187 +0,0 @@ -import { DEMO_OFF_STORY_MESSAGE, DEMO_SELECTABLE, DEMO_UNPREPARED_SELECTION_MESSAGE } from '../constants'; -import { fillSlots, startRole } from '../_helpers/fill-slots'; -import { planSelection, selectionKey } from '../_helpers/selection-key'; -import type { PlanSelection } from '../_helpers/selection-key'; -import type { - BuildRequest, - DemoAnswer, - DemoStory, - PreparedAction, - PreparedBinding, - PreparedDemo, - PreparedState, - SlotValues -} from '../types'; - -/** - * The story's state machine on the engine. sqt worked out every plan and every action's SQL - * ahead of time (scripts/prepare-demo.mjs); this fills in the values that differ in each tab, - * such as deployment IDs and times, and runs the SQL on the engine in order. - */ -export function createStoryResource( - prepared: PreparedDemo, - run: (sql: string) => Promise, - /** Empties the engine for Start over; the browser replaces it, since dropping uses up its threads. */ - reset: () => Promise = () => run(`DROP DATABASE IF EXISTS ${prepared.database}`) -): DemoStory { - const values: SlotValues = { - deployments: {}, - uuids: {}, - roleStarts: {}, - times: {}, - version: prepared.preparedWith, - startTime: null - }; - let stateName: string | null = prepared.start; - let acting: boolean = false; - let lastBuild: { invocationId: string; command: string; running: boolean; exitCode: number | null; stderr: string } | null = - null; - - const fill: (value: Value) => Value = (value: Value): Value => - JSON.parse(fillSlots(JSON.stringify(value), values)) as Value; - const answer: (status: number, detail: string) => DemoAnswer = (status, detail) => ({ status, body: { detail } }); - const state: () => PreparedState | null = () => (stateName === null ? null : prepared.states[stateName]); - const sql: (indexes: number[]) => string[] = (indexes) => - indexes.map((index) => fillSlots(prepared.statements[index], values)); - - function startFrom(startTime: string | null): void { - values.startTime = startTime === null ? null : Date.parse(startTime); - } - - /** Why a selection has nothing prepared: names the demo does not have, or a step off the story. */ - function unprepared(selection: PlanSelection): DemoAnswer { - if (acting) return answer(409, 'An action is still running on the engine. Try again when it finishes.'); - if (state() === null) return answer(409, DEMO_OFF_STORY_MESSAGE); - const unknown: string[] = selection.selectors.filter((selector) => !DEMO_SELECTABLE.includes(selector)); - const named: string = unknown.length === 0 ? 'this selection' : unknown.map((selector) => `\`${selector}\``).join(', '); - return answer(400, `The demo has no plan prepared for ${named}. ${DEMO_UNPREPARED_SELECTION_MESSAGE}`); - } - - /** - * Runs an action's statements in order, one action at a time as `sqt dev` does; the story moves - * on to the action's next state once they all ran. The slots are filled before it starts. - */ - async function act(action: PreparedAction, statements: string[]): Promise { - acting = true; - stateName = null; - try { - for (const statement of statements) await run(statement); - stateName = action.next; - } finally { - acting = false; - } - } - - async function replaySetup(onStep: (title: string, done: number, total: number) => void): Promise { - const total: number = prepared.setup.reduce((sum, step) => sum + step.statements.length, 0); - let done: number = 0; - for (const step of prepared.setup) { - startRole(values, step.role, Date.now(), step); - for (const statement of sql(step.statements)) { - onStep(step.title, done, total); - await run(statement); - done += 1; - } - } - onStep('Ready', done, total); - } - - return { - replaySetup, - - async startOver(): Promise { - if (acting) throw new Error('An action is still running.'); - acting = true; - stateName = null; - try { - await reset(); - Object.assign(values, { deployments: {}, uuids: {}, roleStarts: {}, times: {}, startTime: null }); - lastBuild = null; - await replaySetup(() => undefined); - stateName = prepared.start; - } finally { - acting = false; - } - }, - - plan(params: URLSearchParams): DemoAnswer { - const selection: PlanSelection = planSelection(params); - const plan: (DemoAnswer & PreparedBinding) | undefined = - state()?.plans[`${selectionKey(selection)}|${params.get('counts') === 'true' ? 'counts' : ''}`]; - if (plan === undefined) return unprepared(selection); - const pinned: string | null = params.get('deployment'); - startRole(values, 'plan', Date.now(), plan, pinned === null ? {} : { planned: pinned }); - startFrom(selection.startTime); - return fill({ status: plan.status, body: plan.body }); - }, - - async build(request: BuildRequest): Promise { - const selection: PlanSelection = { - selectors: request.selectors, - changed: request.changed ?? false, - includeMissingUpstream: request.includeMissingUpstream ?? false, - startTime: request.startTime - }; - const action: PreparedAction | undefined = state()?.actions[`build ${selectionKey(selection)}`]; - if (acting) return answer(409, 'A build is already running.'); - if (action === undefined) return unprepared(selection); - const ids: Record = {}; - if (request.deploymentId && action.creates.length === 1) ids[action.creates[0].name] = request.deploymentId; - startFrom(selection.startTime); - // The response names the run before it starts, as sqt's does; the run page then follows it. - startRole(values, action.role, Date.now(), action, ids); - const response: DemoAnswer = fill(action.response); - const invocationId: string = (response.body as { invocationId: string }).invocationId; - const command: string = ['sqt build', ...selection.selectors.map((selector) => `--select ${selector}`)].join(' '); - const statements: string[] = sql(action.statements); - lastBuild = { invocationId, command, running: true, exitCode: null, stderr: '' }; - const build: { running: boolean; exitCode: number | null; stderr: string } = lastBuild; - void act(action, statements).then( - () => Object.assign(build, { running: false, exitCode: 0 }), - (error: unknown) => { - console.error('The demo engine stopped partway through the build:', error); - Object.assign(build, { running: false, exitCode: 1, stderr: error instanceof Error ? error.message : String(error) }); - } - ); - return response; - }, - - async deploymentAction(kind: 'promote' | 'rollback', deploymentId: string): Promise { - // The plan's proposed deployment and the build that made it share one ID; take the name - // this state has an action for. - const name: string | undefined = Object.keys(values.deployments).find( - (candidate) => values.deployments[candidate].id === deploymentId && state()?.actions[`${kind} ${candidate}`] !== undefined - ); - const action: PreparedAction | undefined = name === undefined ? undefined : state()?.actions[`${kind} ${name}`]; - if (acting) return answer(409, 'Another action is still running.'); - if (action === undefined) { - return answer(409, state() === null ? DEMO_OFF_STORY_MESSAGE : `The demo has no ${kind === 'promote' ? 'promotion' : 'rollback'} prepared for ${deploymentId} at this step of the story. Run \`sqt playground\` to try it with ClickHouse on your machine.`); - } - startRole(values, action.role, Date.now(), action); - const response: DemoAnswer = fill(action.response); - await act(action, sql(action.statements)); - return response; - }, - - buildFeed(): unknown { - return { - running: lastBuild?.running ?? false, - invocationId: lastBuild?.invocationId ?? null, - currentInvocationId: lastBuild?.running ? lastBuild.invocationId : null, - command: lastBuild?.command ?? '', - exitCode: lastBuild?.exitCode ?? null, - events: [], - stderr: lastBuild?.stderr ?? '', - forceAvailable: false, - activeQueryId: null, - cancellationStatus: null, - cancellationError: null, - cancellationQueryId: null - }; - }, - - get stateName(): string | null { - return stateName; - } - }; -} diff --git a/ui/src/lib/demo/_state/demo.state.svelte.ts b/ui/src/lib/demo/_state/demo.state.svelte.ts deleted file mode 100644 index 07436bf2..00000000 --- a/ui/src/lib/demo/_state/demo.state.svelte.ts +++ /dev/null @@ -1,31 +0,0 @@ -import type { DemoController, DemoState, EngineProgress, LiveDemo } from '../types'; - -export function createDemoState(): DemoController { - const demo: DemoState = $state({ mode: { kind: 'recorded', reason: '' } }); - - let chooseRecording: () => void = () => undefined; - const recordingChosen: Promise = new Promise((resolve) => (chooseRecording = resolve)); - - function useRecording(reason: string): void { - demo.mode = { kind: 'recorded', reason }; - chooseRecording(); - } - - function startEngine(): void { - demo.mode = { kind: 'real', progress: null, live: null }; - } - - function showProgress(progress: EngineProgress): void { - if (demo.mode.kind === 'real') demo.mode = { kind: 'real', progress, live: null }; - } - - function engineReady(live: LiveDemo): void { - if (demo.mode.kind === 'real') demo.mode = { kind: 'real', progress: null, live }; - } - - function engineFailed(error: string): void { - demo.mode = { kind: 'failed', error }; - } - - return { demo, recordingChosen, useRecording, startEngine, showProgress, engineReady, engineFailed }; -} diff --git a/ui/src/lib/demo/components/demo-banner.svelte b/ui/src/lib/demo/components/demo-banner.svelte index c2e3e2b5..b9bb3c0c 100644 --- a/ui/src/lib/demo/components/demo-banner.svelte +++ b/ui/src/lib/demo/components/demo-banner.svelte @@ -1,102 +1,11 @@ - - - +
- {#if demo.mode.kind === 'recorded' || demo.mode.kind === 'failed'} - UI demo with recorded example data. It is read-only. - {#if demo.mode.kind === 'recorded' && demo.mode.reason} - {demo.mode.reason} - {#if demo.mode.reason === 'You chose the recording.'} - - {/if} - {/if} - - Run sqt playground to try SQLTide with ClickHouse on your machine. - - How the playground works → - {:else if loading !== null} - Starting a real ClickHouse engine in this tab. - {loading.label} - - - - - {:else} - Real ClickHouse running in this tab: Execute, Promote and Roll back run their SQL on it, and every page reads it. - - Worked out ahead by sqt: each plan, its SQL diff, and the SQL each action runs. The switch to a new version isn’t atomic in this engine, which renames tables where ClickHouse exchanges them. - - - {/if} + UI demo with recorded example data. It is read-only. + + Run sqt playground to try SQLTide with ClickHouse on your machine. + + How the playground works →
- -{#if demo.mode.kind === 'failed'} - -{/if} diff --git a/ui/src/lib/demo/components/engine-panel.svelte b/ui/src/lib/demo/components/engine-panel.svelte deleted file mode 100644 index 468a1f3d..00000000 --- a/ui/src/lib/demo/components/engine-panel.svelte +++ /dev/null @@ -1,159 +0,0 @@ - - - -{#if open} - -{:else} - -{/if} diff --git a/ui/src/lib/demo/constants.ts b/ui/src/lib/demo/constants.ts deleted file mode 100644 index e857e1fb..00000000 --- a/ui/src/lib/demo/constants.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** What every write in the recorded demo returns, and what the UI shows for it. */ -export const DEMO_READ_ONLY_MESSAGE: string = - 'This is a read-only UI demo with example data. Run `sqt playground` to try it with ClickHouse on your machine.'; - -/** The names the Plan page can select in the demo's project; every combination of them is prepared. */ -export const DEMO_SELECTABLE: readonly string[] = ['pipeline:pl__orders', 'order_report', 'large_orders']; - -/** Follows the names a plan request has nothing prepared for. */ -export const DEMO_UNPREPARED_SELECTION_MESSAGE: string = - 'It prepares every combination of pipeline:pl__orders, order_report and large_orders. Run `sqt playground` to plan anything with ClickHouse on your machine.'; - -/** What the API answers once an action has left the steps the demo prepared. */ -export const DEMO_OFF_STORY_MESSAGE: string = - 'The demo prepares the story’s steps ahead of time, and the last action left them. Use Start over in the live engine panel, or run `sqt playground` to try anything with ClickHouse on your machine.'; - -/** What a write the browser demo does not run returns, such as cleanup or a destroy. */ -export const DEMO_NOT_IN_BROWSER_MESSAGE: string = - 'This action isn’t part of the browser demo. Run `sqt playground` to try it with ClickHouse on your machine.'; - -/** - * The GETs the real engine answers: sqt's plans and builds for the story, and every page that - * shows the warehouse. The rest (auth, the project's definitions, its status) come from the - * recording at once, so the page and its loading banner show while the engine starts. - */ -export const DEMO_ENGINE_GETS: RegExp = /^\/api\/(plan|build\/current|state|deployments|runs)(\/|$)/; - -/** The key a visitor's choice of the recording is kept under for this tab. */ -export const RECORDING_CHOICE_KEY: string = 'sqltide-demo-recording'; - -/** How often the engine adds an order to the source table. */ -export const ORDER_EVERY_MS: number = 4000; diff --git a/ui/src/lib/demo/main/get-demo.ts b/ui/src/lib/demo/main/get-demo.ts deleted file mode 100644 index d7d32446..00000000 --- a/ui/src/lib/demo/main/get-demo.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { getDemoInstance } from '../_helpers/demo-instance.svelte'; -import type { DemoController } from '../types'; - -/** Where the UI demo's answers come from now, and the actions that change it. */ -export function getDemo(): DemoController { - return getDemoInstance(); -} diff --git a/ui/src/lib/demo/main/install-demo-fetch.ts b/ui/src/lib/demo/main/install-demo-fetch.ts index b77251ea..3e0ddd37 100644 --- a/ui/src/lib/demo/main/install-demo-fetch.ts +++ b/ui/src/lib/demo/main/install-demo-fetch.ts @@ -1,41 +1,6 @@ -import { startChdbEngine } from '../_helpers/chdb-engine'; import { installDemoFetch as install } from '../_api/demo-fetch'; -import { getDemoInstance } from '../_helpers/demo-instance.svelte'; -import { engineSupport } from '../_helpers/engine-support'; -import { createStoryResource } from '../_resources/story.resource'; -import type { DemoController, DemoEngine, DemoStory, EngineSupport, LiveDemo, PreparedDemo } from '../types'; -/** - * Answers the UI's API for the UI demo build: from a real engine in this tab where the browser can - * run it, otherwise from the recorded responses, with a note that says why. - */ +/** Answers the UI's API from the recorded responses; only the UI demo build calls this. */ export function installDemoFetch(): void { - const base: string | undefined = import.meta.env.VITE_SQLTIDE_DEMO_ENGINE; - const controller: DemoController = getDemoInstance(); - const support: EngineSupport = base === undefined ? { real: false, reason: '' } : engineSupport(); - if (!support.real || base === undefined) { - controller.useRecording(support.real ? '' : support.reason); - install(); - return; - } - controller.startEngine(); - const started: Promise = (async () => { - const { default: prepared } = (await import('../prepared.json')) as unknown as { default: PreparedDemo }; - const engine: DemoEngine = await startChdbEngine(base, prepared.database, controller.showProgress); - const story: DemoStory = createStoryResource(prepared, engine.run, engine.restart); - await story.replaySetup((step: string, done: number, total: number) => - controller.showProgress({ phase: 'replay', step, done, total }) - ); - await engine.startOrders(); - return { engine, story }; - })(); - started.then(controller.engineReady, (error: unknown) => { - console.error('The demo engine could not start:', error); - controller.engineFailed(error instanceof Error ? error.message : String(error)); - }); - const settled: Promise = started.catch(async () => { - await controller.recordingChosen; - return null; - }); - install({ active: () => controller.demo.mode.kind !== 'recorded', whenReady: () => settled }); + install(); } diff --git a/ui/src/lib/demo/prepared.json b/ui/src/lib/demo/prepared.json deleted file mode 100644 index 98c64ce9..00000000 --- a/ui/src/lib/demo/prepared.json +++ /dev/null @@ -1,36210 +0,0 @@ -{ - "preparedWith": "0.70.1", - "database": "sqltide_playground", - "start": "nothing-staged", - "setup": [ - { - "role": "seed", - "title": "Create the orders source", - "statements": [ - 0, - 1, - 2 - ], - "creates": [], - "times": [] - }, - { - "role": "publish1", - "title": "Publish the orders pipeline", - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 25, - 26, - 27, - 28, - 29, - 30, - 31, - 32, - 33, - 34, - 35, - 36, - 0, - 37, - 38, - 0, - 39, - 40, - 3, - 41, - 42, - 4, - 43, - 44, - 5, - 45, - 46, - 6, - 47, - 48, - 7, - 49, - 50, - 8, - 51, - 52, - 9, - 53, - 54, - 10, - 55, - 56, - 11, - 57, - 58, - 12, - 59, - 60, - 13, - 61, - 62, - 14, - 63, - 64, - 15, - 65, - 66, - 16, - 67, - 68, - 17, - 69, - 70, - 18, - 71, - 72, - 19, - 73, - 74, - 20, - 75, - 76, - 21, - 77, - 78, - 22, - 79, - 80, - 23, - 81, - 82, - 83, - 84, - 85, - 86, - 87, - 88, - 89, - 90, - 91, - 92, - 93, - 94, - 95, - 96, - 97, - 98, - 99, - 100, - 101, - 102, - 103, - 104, - 105, - 106, - 107, - 108, - 109, - 110, - 111, - 112, - 113, - 114, - 115, - 116, - 117, - 118, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 120, - 121, - 122, - 123, - 124, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 125, - 126, - 127, - 128, - 119 - ], - "creates": [ - { - "name": "v1", - "offset": 326 - } - ], - "times": [ - [ - "publish1", - 0, - 686 - ], - [ - "publish1", - 1, - 759 - ], - [ - "publish1", - 2, - 461 - ], - [ - "publish1", - 3, - 6715 - ], - [ - "publish1", - 4, - 7172 - ] - ] - }, - { - "role": "publish2", - "title": "Publish large_orders", - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 129, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 130, - 131, - 132, - 133, - 134, - 135, - 136, - 137, - 138, - 139, - 140, - 141, - 142, - 143, - 144, - 145, - 0, - 146, - 147, - 0, - 148, - 149, - 3, - 150, - 151, - 4, - 152, - 153, - 5, - 154, - 155, - 6, - 156, - 157, - 7, - 158, - 159, - 8, - 160, - 161, - 9, - 162, - 163, - 10, - 164, - 165, - 11, - 166, - 167, - 12, - 168, - 169, - 13, - 170, - 171, - 14, - 172, - 173, - 15, - 174, - 175, - 16, - 176, - 177, - 17, - 178, - 179, - 18, - 180, - 181, - 19, - 182, - 183, - 20, - 184, - 185, - 21, - 186, - 187, - 22, - 188, - 189, - 23, - 190, - 191, - 192, - 193, - 194, - 195, - 196, - 197, - 198, - 199, - 200, - 201, - 202, - 203, - 204, - 205, - 206, - 207, - 208, - 209, - 210, - 211, - 212, - 213, - 214, - 215, - 216, - 217, - 218, - 219, - 220, - 221, - 222, - 223, - 224, - 225, - 226, - 227, - 228, - 229, - 230, - 231, - 232, - 233, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 234, - 235, - 236, - 237, - 238, - 123, - 239, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 240, - 241, - 242, - 243, - 119 - ], - "creates": [ - { - "name": "v2", - "offset": 14 - } - ], - "times": [ - [ - "publish2", - 0, - 303 - ], - [ - "publish2", - 1, - 338 - ], - [ - "publish2", - 2, - 230 - ], - [ - "publish2", - 3, - 5989 - ], - [ - "publish2", - 4, - 6412 - ] - ] - } - ], - "states": { - "nothing-staged": { - "plans": { - "|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 18, - "planningMs": 71, - "replayCountsMs": 0, - "totalMs": 90 - } - }, - "creates": [ - { - "name": "planned", - "offset": -531 - } - ], - "times": [ - [ - "plan", - 0, - 20 - ] - ] - }, - "|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 16, - "planningMs": 57, - "replayCountsMs": 0, - "totalMs": 73 - } - }, - "creates": [ - { - "name": "planned", - "offset": -627 - } - ], - "times": [ - [ - "plan", - 0, - 20 - ] - ] - }, - "|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream requires --changed or --select" - }, - "creates": [], - "times": [] - }, - "|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream requires --changed or --select" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 48, - "replayCountsMs": 0, - "totalMs": 63 - } - }, - "creates": [ - { - "name": "planned", - "offset": -745 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 45, - "replayCountsMs": 0, - "totalMs": 59 - } - }, - "creates": [ - { - "name": "planned", - "offset": -811 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 47, - "replayCountsMs": 0, - "totalMs": 61 - } - }, - "creates": [ - { - "name": "planned", - "offset": -873 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 47, - "replayCountsMs": 0, - "totalMs": 62 - } - }, - "creates": [ - { - "name": "planned", - "offset": 3 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 15, - "planningMs": 57, - "replayCountsMs": 0, - "totalMs": 73 - } - }, - "creates": [ - { - "name": "planned", - "offset": -151 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "order_report|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 55, - "replayCountsMs": 0, - "totalMs": 70 - } - }, - "creates": [ - { - "name": "planned", - "offset": -226 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "order_report||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 18, - "planningMs": 54, - "replayCountsMs": 0, - "totalMs": 72 - } - }, - "creates": [ - { - "name": "planned", - "offset": -299 - } - ], - "times": [ - [ - "plan", - 0, - 21 - ] - ] - }, - "order_report||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 54, - "replayCountsMs": 0, - "totalMs": 68 - } - }, - "creates": [ - { - "name": "planned", - "offset": -455 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "order_report|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 12, - "planningMs": 44, - "replayCountsMs": 0, - "totalMs": 57 - } - }, - "creates": [ - { - "name": "planned", - "offset": -616 - } - ], - "times": [ - [ - "plan", - 0, - 14 - ] - ] - }, - "order_report pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 48, - "replayCountsMs": 0, - "totalMs": 61 - } - }, - "creates": [ - { - "name": "planned", - "offset": -674 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "order_report pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 46, - "replayCountsMs": 0, - "totalMs": 59 - } - }, - "creates": [ - { - "name": "planned", - "offset": -738 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "order_report pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 16, - "planningMs": 53, - "replayCountsMs": 0, - "totalMs": 70 - } - }, - "creates": [ - { - "name": "planned", - "offset": -885 - } - ], - "times": [ - [ - "plan", - 0, - 18 - ] - ] - }, - "order_report pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 42, - "replayCountsMs": 0, - "totalMs": 55 - } - }, - "creates": [ - { - "name": "planned", - "offset": -47 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "large_orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 15, - "planningMs": 37, - "replayCountsMs": 0, - "totalMs": 53 - } - }, - "creates": [ - { - "name": "planned", - "offset": -104 - } - ], - "times": [ - [ - "plan", - 0, - 18 - ] - ] - }, - "large_orders||from|": { - "status": 400, - "body": { - "detail": "Population root 'tbl__order_report' has no feeding view" - }, - "creates": [], - "times": [] - }, - "large_orders||from|counts": { - "status": 400, - "body": { - "detail": "Population root 'tbl__order_report' has no feeding view" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 31, - "planningMs": 56, - "replayCountsMs": 0, - "totalMs": 88 - } - }, - "creates": [ - { - "name": "planned", - "offset": -400 - } - ], - "times": [ - [ - "plan", - 0, - 34 - ] - ] - }, - "large_orders pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 37, - "planningMs": 44, - "replayCountsMs": 0, - "totalMs": 81 - } - }, - "creates": [ - { - "name": "planned", - "offset": -491 - } - ], - "times": [ - [ - "plan", - 0, - 39 - ] - ] - }, - "large_orders pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 45, - "replayCountsMs": 0, - "totalMs": 59 - } - }, - "creates": [ - { - "name": "planned", - "offset": -575 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "large_orders pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 44, - "replayCountsMs": 0, - "totalMs": 57 - } - }, - "creates": [ - { - "name": "planned", - "offset": -697 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "large_orders pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 51, - "replayCountsMs": 0, - "totalMs": 65 - } - }, - "creates": [ - { - "name": "planned", - "offset": -853 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "large_orders order_report|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 49, - "replayCountsMs": 0, - "totalMs": 63 - } - }, - "creates": [ - { - "name": "planned", - "offset": -921 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "large_orders order_report||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 49, - "replayCountsMs": 0, - "totalMs": 63 - } - }, - "creates": [ - { - "name": "planned", - "offset": 13 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "large_orders order_report||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 48, - "replayCountsMs": 0, - "totalMs": 62 - } - }, - "creates": [ - { - "name": "planned", - "offset": -119 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "large_orders order_report|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 48, - "replayCountsMs": 0, - "totalMs": 63 - } - }, - "creates": [ - { - "name": "planned", - "offset": -295 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "large_orders order_report pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 15, - "planningMs": 50, - "replayCountsMs": 0, - "totalMs": 65 - } - }, - "creates": [ - { - "name": "planned", - "offset": -360 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "large_orders order_report pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 15, - "planningMs": 50, - "replayCountsMs": 0, - "totalMs": 66 - } - }, - "creates": [ - { - "name": "planned", - "offset": -428 - } - ], - "times": [ - [ - "plan", - 0, - 18 - ] - ] - }, - "large_orders order_report pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 58, - "replayCountsMs": 0, - "totalMs": 73 - } - }, - "creates": [ - { - "name": "planned", - "offset": -560 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "large_orders order_report pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "changed|||": { - "status": 400, - "body": { - "detail": "--changed is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "changed|||counts": { - "status": 400, - "body": { - "detail": "--changed is only supported for direct models" - }, - "creates": [], - "times": [] - } - }, - "actions": { - "build ||": { - "role": "build", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:build.1}}", - "command": "sqt build --deployment-id {{d:built}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 244, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 245, - 246, - 247, - 248, - 249, - 250, - 251, - 252, - 253, - 254, - 255, - 256, - 257, - 258, - 259, - 260, - 0, - 261, - 262, - 0, - 263, - 264, - 3, - 265, - 266, - 4, - 267, - 268, - 5, - 269, - 270, - 6, - 271, - 272, - 7, - 273, - 274, - 8, - 275, - 276, - 9, - 277, - 278, - 10, - 279, - 280, - 11, - 281, - 282, - 12, - 283, - 284, - 13, - 285, - 286, - 14, - 287, - 288, - 15, - 289, - 290, - 16, - 291, - 292, - 17, - 293, - 294, - 18, - 295, - 296, - 19, - 297, - 298, - 20, - 299, - 300, - 21, - 301, - 302, - 22, - 303, - 304, - 23, - 305, - 306, - 307, - 308, - 309, - 310, - 311, - 312, - 313, - 314, - 315, - 316, - 317, - 318, - 319, - 320, - 321, - 322, - 323, - 324, - 325, - 326, - 327, - 328, - 329, - 330, - 331, - 332, - 333, - 334, - 335, - 336, - 337, - 338, - 339, - 340, - 341, - 342, - 343, - 344, - 345, - 346, - 347, - 348, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 349, - 350 - ], - "creates": [ - { - "name": "built", - "offset": -911 - } - ], - "times": [ - [ - "build", - 0, - 383 - ], - [ - "build", - 1, - 314 - ], - [ - "build", - 2, - 5969 - ] - ], - "next": "staged/large_orders+order_report" - }, - "build pipeline:pl__orders||": { - "role": "build", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:build.1}}", - "command": "sqt build --select pipeline:pl__orders --deployment-id {{d:built}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 244, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 351, - 246, - 352, - 248, - 353, - 250, - 354, - 252, - 253, - 254, - 255, - 256, - 257, - 258, - 259, - 260, - 0, - 261, - 262, - 0, - 263, - 264, - 3, - 265, - 266, - 4, - 355, - 268, - 5, - 356, - 270, - 6, - 357, - 272, - 7, - 273, - 274, - 8, - 358, - 276, - 9, - 359, - 278, - 10, - 279, - 280, - 11, - 360, - 282, - 12, - 283, - 284, - 13, - 285, - 286, - 14, - 287, - 288, - 15, - 289, - 290, - 16, - 291, - 292, - 17, - 293, - 294, - 18, - 295, - 296, - 19, - 297, - 298, - 20, - 299, - 300, - 21, - 361, - 302, - 22, - 303, - 304, - 23, - 362, - 306, - 363, - 308, - 309, - 310, - 311, - 364, - 319, - 365, - 366, - 313, - 367, - 368, - 316, - 369, - 321, - 370, - 323, - 324, - 371, - 326, - 372, - 373, - 329, - 330, - 374, - 332, - 375, - 334, - 335, - 336, - 337, - 376, - 339, - 377, - 341, - 342, - 343, - 344, - 378, - 379, - 380, - 381, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 382, - 350 - ], - "creates": [ - { - "name": "built", - "offset": -344 - } - ], - "times": [ - [ - "build", - 0, - 359 - ], - [ - "build", - 1, - 301 - ], - [ - "build", - 2, - 6001 - ] - ], - "next": "staged/large_orders+order_report" - }, - "build pipeline:pl__orders||from": { - "role": "build", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:build.1}}", - "command": "sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:built}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 244, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 383, - 246, - 384, - 248, - 249, - 250, - 354, - 252, - 253, - 254, - 385, - 256, - 257, - 258, - 259, - 260, - 0, - 261, - 262, - 0, - 263, - 264, - 3, - 265, - 266, - 4, - 267, - 268, - 5, - 269, - 270, - 6, - 271, - 272, - 7, - 273, - 274, - 8, - 275, - 276, - 9, - 277, - 278, - 10, - 279, - 280, - 11, - 360, - 282, - 12, - 283, - 284, - 13, - 285, - 286, - 14, - 287, - 288, - 15, - 289, - 290, - 16, - 291, - 292, - 17, - 293, - 294, - 18, - 295, - 296, - 19, - 297, - 298, - 20, - 299, - 300, - 21, - 301, - 302, - 22, - 303, - 304, - 23, - 362, - 306, - 386, - 308, - 309, - 310, - 311, - 364, - 319, - 365, - 366, - 313, - 367, - 368, - 316, - 369, - 321, - 370, - 323, - 324, - 387, - 326, - 388, - 373, - 329, - 330, - 389, - 332, - 390, - 391, - 392, - 393, - 394, - 395, - 396, - 397, - 398, - 399, - 400, - 401, - 402, - 403, - 344, - 404, - 405, - 406, - 407, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 408, - 409 - ], - "creates": [ - { - "name": "built", - "offset": -739 - } - ], - "times": [ - [ - "build", - 0, - 352 - ], - [ - "build", - 1, - 294 - ], - [ - "build", - 2, - 6013 - ] - ], - "next": "staged/large_orders+order_report" - }, - "build order_report||": { - "role": "build", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:build.1}}", - "command": "sqt build --select order_report --deployment-id {{d:built}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 244, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 410, - 246, - 411, - 248, - 412, - 250, - 354, - 252, - 253, - 254, - 255, - 256, - 257, - 258, - 413, - 260, - 0, - 414, - 262, - 0, - 263, - 264, - 3, - 415, - 266, - 4, - 355, - 268, - 5, - 269, - 270, - 6, - 357, - 272, - 7, - 273, - 274, - 8, - 275, - 276, - 9, - 359, - 278, - 10, - 279, - 280, - 11, - 281, - 282, - 12, - 416, - 284, - 13, - 417, - 286, - 14, - 418, - 288, - 15, - 289, - 290, - 16, - 419, - 292, - 17, - 293, - 294, - 18, - 295, - 296, - 19, - 420, - 298, - 20, - 299, - 300, - 21, - 361, - 302, - 22, - 421, - 304, - 23, - 422, - 306, - 423, - 308, - 309, - 310, - 424, - 364, - 319, - 425, - 366, - 313, - 426, - 368, - 316, - 427, - 321, - 428, - 323, - 324, - 429, - 326, - 430, - 431, - 329, - 330, - 432, - 332, - 433, - 334, - 335, - 434, - 337, - 376, - 339, - 435, - 341, - 342, - 343, - 344, - 378, - 436, - 437, - 438, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 439, - 350 - ], - "creates": [ - { - "name": "built", - "offset": -262 - } - ], - "times": [ - [ - "build", - 0, - 385 - ], - [ - "build", - 1, - 318 - ], - [ - "build", - 2, - 6103 - ] - ], - "next": "staged/large_orders+order_report" - }, - "build order_report||from": { - "role": "build", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:build.1}}", - "command": "sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:built}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 244, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 440, - 246, - 441, - 248, - 412, - 250, - 354, - 252, - 253, - 254, - 442, - 256, - 443, - 258, - 413, - 260, - 0, - 261, - 262, - 0, - 263, - 264, - 3, - 265, - 266, - 4, - 267, - 268, - 5, - 269, - 270, - 6, - 271, - 272, - 7, - 273, - 274, - 8, - 275, - 276, - 9, - 277, - 278, - 10, - 279, - 280, - 11, - 281, - 282, - 12, - 416, - 284, - 13, - 285, - 286, - 14, - 287, - 288, - 15, - 444, - 290, - 16, - 419, - 292, - 17, - 293, - 294, - 18, - 295, - 296, - 19, - 297, - 298, - 20, - 299, - 300, - 21, - 301, - 302, - 22, - 303, - 304, - 23, - 422, - 306, - 445, - 308, - 309, - 310, - 446, - 364, - 319, - 447, - 366, - 313, - 426, - 368, - 316, - 448, - 321, - 370, - 323, - 324, - 371, - 326, - 449, - 328, - 329, - 330, - 374, - 332, - 390, - 391, - 392, - 450, - 394, - 395, - 451, - 397, - 452, - 399, - 453, - 401, - 454, - 403, - 344, - 404, - 455, - 456, - 457, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 458, - 409 - ], - "creates": [ - { - "name": "built", - "offset": -21 - } - ], - "times": [ - [ - "build", - 0, - 364 - ], - [ - "build", - 1, - 302 - ], - [ - "build", - 2, - 6047 - ] - ], - "next": "staged/large_orders+order_report" - }, - "build order_report pipeline:pl__orders||": { - "role": "build", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:build.1}}", - "command": "sqt build --select pipeline:pl__orders order_report --deployment-id {{d:built}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 244, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 459, - 246, - 460, - 248, - 249, - 250, - 354, - 252, - 253, - 254, - 255, - 256, - 257, - 258, - 259, - 260, - 0, - 261, - 262, - 0, - 263, - 264, - 3, - 265, - 266, - 4, - 267, - 268, - 5, - 269, - 270, - 6, - 271, - 272, - 7, - 273, - 274, - 8, - 275, - 276, - 9, - 277, - 278, - 10, - 279, - 280, - 11, - 360, - 282, - 12, - 283, - 284, - 13, - 285, - 286, - 14, - 418, - 288, - 15, - 289, - 290, - 16, - 419, - 292, - 17, - 293, - 294, - 18, - 295, - 296, - 19, - 297, - 298, - 20, - 299, - 300, - 21, - 301, - 302, - 22, - 303, - 304, - 23, - 422, - 306, - 461, - 308, - 309, - 310, - 311, - 364, - 319, - 462, - 366, - 313, - 367, - 368, - 316, - 369, - 321, - 370, - 323, - 324, - 325, - 326, - 463, - 373, - 329, - 330, - 464, - 332, - 465, - 334, - 335, - 466, - 337, - 338, - 339, - 340, - 341, - 342, - 343, - 344, - 467, - 468, - 469, - 470, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 471, - 350 - ], - "creates": [ - { - "name": "built", - "offset": -643 - } - ], - "times": [ - [ - "build", - 0, - 345 - ], - [ - "build", - 1, - 281 - ], - [ - "build", - 2, - 5917 - ] - ], - "next": "staged/large_orders+order_report" - }, - "build order_report pipeline:pl__orders||from": { - "role": "build", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:build.1}}", - "command": "sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:built}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 244, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 472, - 246, - 473, - 248, - 249, - 250, - 354, - 252, - 253, - 254, - 255, - 256, - 257, - 258, - 259, - 260, - 0, - 414, - 262, - 0, - 263, - 264, - 3, - 265, - 266, - 4, - 267, - 268, - 5, - 269, - 270, - 6, - 357, - 272, - 7, - 273, - 274, - 8, - 275, - 276, - 9, - 277, - 278, - 10, - 474, - 280, - 11, - 360, - 282, - 12, - 283, - 284, - 13, - 285, - 286, - 14, - 287, - 288, - 15, - 289, - 290, - 16, - 419, - 292, - 17, - 293, - 294, - 18, - 295, - 296, - 19, - 297, - 298, - 20, - 299, - 300, - 21, - 361, - 302, - 22, - 303, - 304, - 23, - 362, - 306, - 475, - 308, - 309, - 310, - 311, - 364, - 319, - 365, - 366, - 313, - 367, - 368, - 316, - 369, - 321, - 370, - 323, - 324, - 371, - 326, - 476, - 373, - 329, - 330, - 464, - 332, - 390, - 391, - 392, - 477, - 394, - 395, - 478, - 397, - 479, - 399, - 453, - 401, - 480, - 403, - 344, - 481, - 482, - 483, - 484, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 485, - 409 - ], - "creates": [ - { - "name": "built", - "offset": -24 - } - ], - "times": [ - [ - "build", - 0, - 328 - ], - [ - "build", - 1, - 272 - ], - [ - "build", - 2, - 5916 - ] - ], - "next": "staged/large_orders+order_report" - }, - "build large_orders||": { - "role": "build", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:build.1}}", - "command": "sqt build --select large_orders --deployment-id {{d:built}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 244, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 486, - 246, - 487, - 248, - 249, - 250, - 488, - 489, - 0, - 490, - 491, - 0, - 492, - 493, - 3, - 494, - 495, - 4, - 496, - 497, - 5, - 498, - 499, - 6, - 500, - 501, - 7, - 502, - 503, - 8, - 504, - 505, - 9, - 506, - 507, - 10, - 508, - 509, - 11, - 510, - 511, - 12, - 512, - 513, - 13, - 514, - 515, - 14, - 516, - 517, - 15, - 518, - 519, - 16, - 520, - 521, - 17, - 522, - 523, - 18, - 524, - 525, - 19, - 526, - 527, - 20, - 528, - 529, - 21, - 530, - 531, - 22, - 532, - 533, - 23, - 534, - 535, - 536, - 537, - 538, - 539, - 540, - 324, - 541, - 542, - 543, - 544, - 545, - 546, - 547, - 344, - 548, - 549, - 550, - 551, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 552, - 553 - ], - "creates": [ - { - "name": "built", - "offset": -466 - } - ], - "times": [ - [ - "build", - 0, - 353 - ], - [ - "build", - 1, - 296 - ], - [ - "build", - 2, - 5832 - ] - ], - "next": "staged/no-models" - }, - "build large_orders pipeline:pl__orders||": { - "role": "build", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:build.1}}", - "command": "sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:built}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 244, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 554, - 246, - 555, - 248, - 412, - 250, - 556, - 252, - 557, - 254, - 558, - 256, - 443, - 258, - 259, - 260, - 0, - 261, - 262, - 0, - 559, - 264, - 3, - 265, - 266, - 4, - 355, - 268, - 5, - 356, - 270, - 6, - 357, - 272, - 7, - 560, - 274, - 8, - 275, - 276, - 9, - 359, - 278, - 10, - 474, - 280, - 11, - 561, - 282, - 12, - 283, - 284, - 13, - 285, - 286, - 14, - 562, - 288, - 15, - 444, - 290, - 16, - 419, - 292, - 17, - 563, - 294, - 18, - 564, - 296, - 19, - 420, - 298, - 20, - 565, - 300, - 21, - 566, - 302, - 22, - 421, - 304, - 23, - 422, - 306, - 567, - 308, - 309, - 310, - 424, - 364, - 319, - 425, - 366, - 313, - 568, - 368, - 316, - 427, - 321, - 322, - 323, - 324, - 569, - 326, - 570, - 328, - 329, - 330, - 571, - 332, - 465, - 334, - 335, - 336, - 337, - 338, - 339, - 340, - 341, - 572, - 343, - 344, - 378, - 573, - 574, - 575, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 576, - 350 - ], - "creates": [ - { - "name": "built", - "offset": -176 - } - ], - "times": [ - [ - "build", - 0, - 397 - ], - [ - "build", - 1, - 327 - ], - [ - "build", - 2, - 6158 - ] - ], - "next": "staged/large_orders+order_report" - }, - "build large_orders pipeline:pl__orders||from": { - "role": "build", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:build.1}}", - "command": "sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:built}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 244, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 577, - 246, - 578, - 248, - 249, - 250, - 556, - 252, - 253, - 254, - 255, - 256, - 257, - 258, - 259, - 260, - 0, - 414, - 262, - 0, - 263, - 264, - 3, - 265, - 266, - 4, - 267, - 268, - 5, - 269, - 270, - 6, - 271, - 272, - 7, - 273, - 274, - 8, - 275, - 276, - 9, - 277, - 278, - 10, - 279, - 280, - 11, - 561, - 282, - 12, - 283, - 284, - 13, - 285, - 286, - 14, - 287, - 288, - 15, - 444, - 290, - 16, - 579, - 292, - 17, - 563, - 294, - 18, - 564, - 296, - 19, - 420, - 298, - 20, - 565, - 300, - 21, - 361, - 302, - 22, - 421, - 304, - 23, - 422, - 306, - 580, - 308, - 309, - 310, - 581, - 364, - 319, - 582, - 366, - 313, - 426, - 368, - 316, - 448, - 321, - 322, - 323, - 324, - 371, - 326, - 583, - 328, - 329, - 330, - 571, - 332, - 433, - 391, - 392, - 584, - 394, - 395, - 396, - 397, - 585, - 399, - 586, - 401, - 454, - 403, - 344, - 404, - 587, - 588, - 589, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 590, - 409 - ], - "creates": [ - { - "name": "built", - "offset": -790 - } - ], - "times": [ - [ - "build", - 0, - 337 - ], - [ - "build", - 1, - 280 - ], - [ - "build", - 2, - 6042 - ] - ], - "next": "staged/large_orders+order_report" - }, - "build large_orders order_report||": { - "role": "build", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:build.1}}", - "command": "sqt build --select order_report large_orders --deployment-id {{d:built}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 244, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 591, - 246, - 592, - 248, - 593, - 250, - 354, - 252, - 557, - 254, - 594, - 256, - 257, - 258, - 259, - 260, - 0, - 261, - 262, - 0, - 263, - 264, - 3, - 265, - 266, - 4, - 355, - 268, - 5, - 269, - 270, - 6, - 357, - 272, - 7, - 273, - 274, - 8, - 275, - 276, - 9, - 277, - 278, - 10, - 474, - 280, - 11, - 561, - 282, - 12, - 283, - 284, - 13, - 285, - 286, - 14, - 287, - 288, - 15, - 289, - 290, - 16, - 595, - 292, - 17, - 293, - 294, - 18, - 564, - 296, - 19, - 297, - 298, - 20, - 299, - 300, - 21, - 361, - 302, - 22, - 303, - 304, - 23, - 362, - 306, - 596, - 308, - 309, - 310, - 311, - 364, - 319, - 462, - 366, - 313, - 367, - 368, - 316, - 369, - 321, - 370, - 323, - 324, - 371, - 326, - 597, - 328, - 329, - 330, - 389, - 332, - 375, - 334, - 335, - 598, - 337, - 376, - 339, - 435, - 341, - 342, - 343, - 344, - 345, - 599, - 600, - 601, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 602, - 350 - ], - "creates": [ - { - "name": "built", - "offset": -480 - } - ], - "times": [ - [ - "build", - 0, - 354 - ], - [ - "build", - 1, - 296 - ], - [ - "build", - 2, - 5998 - ] - ], - "next": "staged/large_orders+order_report" - }, - "build large_orders order_report||from": { - "role": "build", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:build.1}}", - "command": "sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:built}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 244, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 603, - 246, - 604, - 248, - 605, - 250, - 556, - 252, - 606, - 254, - 594, - 256, - 257, - 258, - 259, - 260, - 0, - 607, - 262, - 0, - 263, - 264, - 3, - 265, - 266, - 4, - 267, - 268, - 5, - 269, - 270, - 6, - 271, - 272, - 7, - 273, - 274, - 8, - 275, - 276, - 9, - 359, - 278, - 10, - 474, - 280, - 11, - 360, - 282, - 12, - 416, - 284, - 13, - 285, - 286, - 14, - 418, - 288, - 15, - 444, - 290, - 16, - 419, - 292, - 17, - 293, - 294, - 18, - 295, - 296, - 19, - 420, - 298, - 20, - 565, - 300, - 21, - 301, - 302, - 22, - 421, - 304, - 23, - 305, - 306, - 608, - 308, - 309, - 310, - 424, - 364, - 319, - 365, - 366, - 313, - 367, - 368, - 316, - 427, - 321, - 370, - 323, - 324, - 429, - 326, - 609, - 610, - 329, - 330, - 611, - 332, - 612, - 391, - 392, - 613, - 394, - 395, - 614, - 397, - 585, - 399, - 400, - 401, - 454, - 403, - 344, - 615, - 616, - 617, - 618, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 619, - 409 - ], - "creates": [ - { - "name": "built", - "offset": -873 - } - ], - "times": [ - [ - "build", - 0, - 348 - ], - [ - "build", - 1, - 284 - ], - [ - "build", - 2, - 6053 - ] - ], - "next": "staged/large_orders+order_report" - }, - "build large_orders order_report pipeline:pl__orders||": { - "role": "build", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:build.1}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:built}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 244, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 620, - 246, - 621, - 248, - 249, - 250, - 354, - 252, - 253, - 254, - 255, - 256, - 257, - 258, - 259, - 260, - 0, - 414, - 262, - 0, - 263, - 264, - 3, - 265, - 266, - 4, - 267, - 268, - 5, - 269, - 270, - 6, - 622, - 272, - 7, - 273, - 274, - 8, - 275, - 276, - 9, - 277, - 278, - 10, - 474, - 280, - 11, - 281, - 282, - 12, - 283, - 284, - 13, - 285, - 286, - 14, - 287, - 288, - 15, - 289, - 290, - 16, - 595, - 292, - 17, - 293, - 294, - 18, - 295, - 296, - 19, - 297, - 298, - 20, - 299, - 300, - 21, - 361, - 302, - 22, - 303, - 304, - 23, - 422, - 306, - 623, - 308, - 309, - 310, - 624, - 364, - 319, - 462, - 366, - 313, - 367, - 368, - 316, - 369, - 321, - 625, - 323, - 324, - 626, - 326, - 627, - 628, - 329, - 330, - 374, - 332, - 375, - 334, - 335, - 629, - 337, - 376, - 339, - 377, - 341, - 630, - 343, - 344, - 378, - 631, - 632, - 633, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 634, - 350 - ], - "creates": [ - { - "name": "built", - "offset": -626 - } - ], - "times": [ - [ - "build", - 0, - 363 - ], - [ - "build", - 1, - 294 - ], - [ - "build", - 2, - 6046 - ] - ], - "next": "staged/large_orders+order_report" - }, - "build large_orders order_report pipeline:pl__orders||from": { - "role": "build", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:build.1}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:built}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 244, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 635, - 246, - 636, - 248, - 249, - 250, - 556, - 252, - 253, - 254, - 255, - 256, - 443, - 258, - 637, - 260, - 0, - 261, - 262, - 0, - 263, - 264, - 3, - 265, - 266, - 4, - 638, - 268, - 5, - 269, - 270, - 6, - 271, - 272, - 7, - 560, - 274, - 8, - 275, - 276, - 9, - 639, - 278, - 10, - 279, - 280, - 11, - 360, - 282, - 12, - 283, - 284, - 13, - 640, - 286, - 14, - 418, - 288, - 15, - 444, - 290, - 16, - 419, - 292, - 17, - 293, - 294, - 18, - 295, - 296, - 19, - 297, - 298, - 20, - 299, - 300, - 21, - 301, - 302, - 22, - 303, - 304, - 23, - 362, - 306, - 641, - 308, - 309, - 310, - 424, - 364, - 319, - 462, - 366, - 313, - 367, - 368, - 316, - 369, - 321, - 625, - 323, - 324, - 371, - 326, - 642, - 373, - 329, - 330, - 571, - 332, - 333, - 391, - 392, - 584, - 394, - 395, - 643, - 397, - 452, - 399, - 453, - 401, - 402, - 403, - 344, - 404, - 644, - 645, - 646, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 647, - 409 - ], - "creates": [ - { - "name": "built", - "offset": 9 - } - ], - "times": [ - [ - "build", - 0, - 350 - ], - [ - "build", - 1, - 290 - ], - [ - "build", - 2, - 6024 - ] - ], - "next": "staged/large_orders+order_report" - }, - "rollback v1": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.0}}", - "deploymentId": "{{d:v1}}", - "publishedViews": [ - { - "logicalName": "tbl__order_report", - "physicalName": "tbl__order_report__{{d:v1}}" - } - ], - "graphAtomicPublish": false, - "previousDeploymentId": "{{d:v2}}" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 648, - 649, - 650, - 123, - 124, - 651, - 652, - 0, - 653, - 654, - 3, - 655, - 656, - 4, - 657, - 658, - 5, - 659, - 660, - 6, - 661, - 662, - 7, - 663, - 664, - 8, - 665, - 666, - 9, - 667, - 668, - 10, - 669, - 670, - 11, - 671, - 672, - 12, - 673, - 674, - 13, - 675, - 676, - 14, - 677, - 678, - 15, - 679, - 680, - 16, - 681, - 682, - 17, - 683, - 684, - 18, - 685, - 686, - 19, - 687, - 688, - 20, - 689, - 690, - 21, - 691, - 692, - 22, - 693, - 694, - 23, - 695, - 696, - 697, - 698, - 699, - 700, - 701, - 119, - 702, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 703 - ], - "creates": [], - "times": [ - [ - "extra", - 0, - 250 - ], - [ - "extra", - 1, - 113 - ], - [ - "extra", - 2, - 487 - ] - ], - "next": null - } - } - }, - "staged/large_orders+order_report": { - "plans": { - "|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 17, - "planningMs": 50, - "replayCountsMs": 0, - "totalMs": 67 - } - }, - "creates": [ - { - "name": "planned", - "offset": -197 - } - ], - "times": [ - [ - "plan", - 0, - 19 - ] - ] - }, - "|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 55, - "replayCountsMs": 0, - "totalMs": 69 - } - }, - "creates": [ - { - "name": "planned", - "offset": -267 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream requires --changed or --select" - }, - "creates": [], - "times": [] - }, - "|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream requires --changed or --select" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 16, - "planningMs": 53, - "replayCountsMs": 0, - "totalMs": 70 - } - }, - "creates": [ - { - "name": "planned", - "offset": -375 - } - ], - "times": [ - [ - "plan", - 0, - 19 - ] - ] - }, - "pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 51, - "replayCountsMs": 0, - "totalMs": 66 - } - }, - "creates": [ - { - "name": "planned", - "offset": -447 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 17, - "planningMs": 51, - "replayCountsMs": 0, - "totalMs": 69 - } - }, - "creates": [ - { - "name": "planned", - "offset": -516 - } - ], - "times": [ - [ - "plan", - 0, - 20 - ] - ] - }, - "pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 26, - "planningMs": 63, - "replayCountsMs": 0, - "totalMs": 89 - } - }, - "creates": [ - { - "name": "planned", - "offset": -662 - } - ], - "times": [ - [ - "plan", - 0, - 30 - ] - ] - }, - "pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 17, - "planningMs": 55, - "replayCountsMs": 0, - "totalMs": 73 - } - }, - "creates": [ - { - "name": "planned", - "offset": -863 - } - ], - "times": [ - [ - "plan", - 0, - 19 - ] - ] - }, - "order_report|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 20, - "planningMs": 71, - "replayCountsMs": 0, - "totalMs": 92 - } - }, - "creates": [ - { - "name": "planned", - "offset": 61 - } - ], - "times": [ - [ - "plan", - 0, - 23 - ] - ] - }, - "order_report||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 17, - "planningMs": 55, - "replayCountsMs": 0, - "totalMs": 72 - } - }, - "creates": [ - { - "name": "planned", - "offset": -34 - } - ], - "times": [ - [ - "plan", - 0, - 20 - ] - ] - }, - "order_report||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 17, - "planningMs": 98, - "replayCountsMs": 0, - "totalMs": 115 - } - }, - "creates": [ - { - "name": "planned", - "offset": -225 - } - ], - "times": [ - [ - "plan", - 0, - 32 - ] - ] - }, - "order_report|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 16, - "planningMs": 64, - "replayCountsMs": 0, - "totalMs": 80 - } - }, - "creates": [ - { - "name": "planned", - "offset": -451 - } - ], - "times": [ - [ - "plan", - 0, - 19 - ] - ] - }, - "order_report pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 19, - "planningMs": 67, - "replayCountsMs": 0, - "totalMs": 87 - } - }, - "creates": [ - { - "name": "planned", - "offset": -534 - } - ], - "times": [ - [ - "plan", - 0, - 22 - ] - ] - }, - "order_report pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 24, - "planningMs": 72, - "replayCountsMs": 0, - "totalMs": 97 - } - }, - "creates": [ - { - "name": "planned", - "offset": -624 - } - ], - "times": [ - [ - "plan", - 0, - 28 - ] - ] - }, - "order_report pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 18, - "planningMs": 72, - "replayCountsMs": 0, - "totalMs": 90 - } - }, - "creates": [ - { - "name": "planned", - "offset": -803 - } - ], - "times": [ - [ - "plan", - 0, - 21 - ] - ] - }, - "order_report pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 16, - "planningMs": 54, - "replayCountsMs": 0, - "totalMs": 70 - } - }, - "creates": [ - { - "name": "planned", - "offset": -46 - } - ], - "times": [ - [ - "plan", - 0, - 19 - ] - ] - }, - "large_orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 20, - "planningMs": 59, - "replayCountsMs": 0, - "totalMs": 80 - } - }, - "creates": [ - { - "name": "planned", - "offset": -119 - } - ], - "times": [ - [ - "plan", - 0, - 24 - ] - ] - }, - "large_orders||from|": { - "status": 400, - "body": { - "detail": "Population root 'tbl__order_report' has no feeding view" - }, - "creates": [], - "times": [] - }, - "large_orders||from|counts": { - "status": 400, - "body": { - "detail": "Population root 'tbl__order_report' has no feeding view" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 29, - "planningMs": 90, - "replayCountsMs": 0, - "totalMs": 120 - } - }, - "creates": [ - { - "name": "planned", - "offset": -532 - } - ], - "times": [ - [ - "plan", - 0, - 33 - ] - ] - }, - "large_orders pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 26, - "planningMs": 82, - "replayCountsMs": 0, - "totalMs": 109 - } - }, - "creates": [ - { - "name": "planned", - "offset": -656 - } - ], - "times": [ - [ - "plan", - 0, - 30 - ] - ] - }, - "large_orders pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 19, - "planningMs": 72, - "replayCountsMs": 0, - "totalMs": 92 - } - }, - "creates": [ - { - "name": "planned", - "offset": -769 - } - ], - "times": [ - [ - "plan", - 0, - 22 - ] - ] - }, - "large_orders pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 19, - "planningMs": 56, - "replayCountsMs": 0, - "totalMs": 75 - } - }, - "creates": [ - { - "name": "planned", - "offset": -938 - } - ], - "times": [ - [ - "plan", - 0, - 23 - ] - ] - }, - "large_orders pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 55, - "replayCountsMs": 0, - "totalMs": 69 - } - }, - "creates": [ - { - "name": "planned", - "offset": -118 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "large_orders order_report|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 27, - "planningMs": 95, - "replayCountsMs": 0, - "totalMs": 122 - } - }, - "creates": [ - { - "name": "planned", - "offset": -190 - } - ], - "times": [ - [ - "plan", - 0, - 31 - ] - ] - }, - "large_orders order_report||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 20, - "planningMs": 81, - "replayCountsMs": 0, - "totalMs": 102 - } - }, - "creates": [ - { - "name": "planned", - "offset": -316 - } - ], - "times": [ - [ - "plan", - 0, - 22 - ] - ] - }, - "large_orders order_report||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 19, - "planningMs": 60, - "replayCountsMs": 0, - "totalMs": 80 - } - }, - "creates": [ - { - "name": "planned", - "offset": -499 - } - ], - "times": [ - [ - "plan", - 0, - 21 - ] - ] - }, - "large_orders order_report|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 51, - "replayCountsMs": 0, - "totalMs": 65 - } - }, - "creates": [ - { - "name": "planned", - "offset": -687 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "large_orders order_report pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 55, - "replayCountsMs": 0, - "totalMs": 69 - } - }, - "creates": [ - { - "name": "planned", - "offset": -755 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "large_orders order_report pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 56, - "replayCountsMs": 0, - "totalMs": 71 - } - }, - "creates": [ - { - "name": "planned", - "offset": -826 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "large_orders order_report pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 51, - "replayCountsMs": 0, - "totalMs": 65 - } - }, - "creates": [ - { - "name": "planned", - "offset": 24 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "large_orders order_report pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "changed|||": { - "status": 400, - "body": { - "detail": "--changed is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "changed|||counts": { - "status": 400, - "body": { - "detail": "--changed is only supported for direct models" - }, - "creates": [], - "times": [] - } - }, - "actions": { - "build ||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 705, - 706, - 707, - 708, - 709, - 710, - 711, - 712, - 713, - 714, - 715, - 716, - 717, - 718, - 719, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 725, - 726, - 4, - 727, - 728, - 5, - 729, - 730, - 6, - 731, - 732, - 7, - 733, - 734, - 8, - 735, - 736, - 9, - 737, - 738, - 10, - 739, - 740, - 11, - 741, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 751, - 752, - 17, - 753, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 765, - 766, - 767, - 768, - 769, - 770, - 771, - 772, - 773, - 774, - 775, - 776, - 777, - 778, - 779, - 780, - 781, - 782, - 783, - 784, - 785, - 786, - 787, - 788, - 789, - 790, - 791, - 792, - 793, - 794, - 795, - 796, - 797, - 798, - 799, - 800, - 801, - 802, - 803, - 804, - 805, - 806, - 807, - 808, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 809, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": -334 - } - ], - "times": [ - [ - "extra", - 0, - 396 - ], - [ - "extra", - 1, - 331 - ], - [ - "extra", - 2, - 6057 - ] - ], - "next": null - }, - "build pipeline:pl__orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 811, - 706, - 812, - 708, - 709, - 710, - 813, - 712, - 814, - 714, - 815, - 716, - 717, - 718, - 816, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 727, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 821, - 736, - 9, - 822, - 738, - 10, - 823, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 825, - 750, - 16, - 751, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 827, - 766, - 828, - 768, - 769, - 770, - 771, - 829, - 779, - 830, - 831, - 773, - 832, - 833, - 776, - 834, - 781, - 835, - 783, - 784, - 836, - 786, - 837, - 838, - 789, - 790, - 839, - 792, - 840, - 794, - 795, - 841, - 797, - 798, - 799, - 800, - 801, - 842, - 803, - 804, - 843, - 844, - 845, - 846, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 847, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": -626 - } - ], - "times": [ - [ - "extra", - 0, - 386 - ], - [ - "extra", - 1, - 325 - ], - [ - "extra", - 2, - 6065 - ] - ], - "next": null - }, - "build pipeline:pl__orders||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 848, - 706, - 849, - 708, - 709, - 710, - 850, - 712, - 814, - 714, - 715, - 716, - 851, - 718, - 719, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 852, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 823, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 825, - 750, - 16, - 751, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 854, - 760, - 21, - 761, - 762, - 22, - 855, - 764, - 23, - 827, - 766, - 856, - 857, - 769, - 770, - 771, - 829, - 779, - 830, - 831, - 773, - 832, - 833, - 776, - 858, - 781, - 859, - 783, - 784, - 836, - 786, - 860, - 788, - 789, - 790, - 791, - 792, - 861, - 862, - 863, - 864, - 865, - 866, - 867, - 868, - 869, - 870, - 871, - 872, - 873, - 874, - 804, - 875, - 876, - 877, - 878, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 879, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -391 - } - ], - "times": [ - [ - "extra", - 0, - 393 - ], - [ - "extra", - 1, - 318 - ], - [ - "extra", - 2, - 6079 - ] - ], - "next": null - }, - "build order_report||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select order_report --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 881, - 706, - 882, - 708, - 883, - 710, - 813, - 712, - 884, - 714, - 885, - 716, - 717, - 718, - 719, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 852, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 823, - 740, - 11, - 824, - 742, - 12, - 886, - 744, - 13, - 745, - 746, - 14, - 887, - 748, - 15, - 825, - 750, - 16, - 751, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 888, - 760, - 21, - 889, - 762, - 22, - 890, - 764, - 23, - 765, - 766, - 891, - 768, - 769, - 770, - 892, - 829, - 779, - 893, - 831, - 773, - 894, - 833, - 776, - 834, - 781, - 895, - 783, - 784, - 785, - 786, - 896, - 897, - 789, - 790, - 898, - 792, - 840, - 794, - 795, - 899, - 797, - 900, - 799, - 800, - 801, - 802, - 803, - 804, - 805, - 901, - 902, - 903, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 904, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": -876 - } - ], - "times": [ - [ - "extra", - 0, - 400 - ], - [ - "extra", - 1, - 335 - ], - [ - "extra", - 2, - 6097 - ] - ], - "next": null - }, - "build order_report||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 905, - 706, - 906, - 708, - 709, - 710, - 907, - 712, - 814, - 714, - 715, - 716, - 851, - 718, - 719, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 727, - 728, - 5, - 818, - 730, - 6, - 908, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 737, - 738, - 10, - 823, - 740, - 11, - 741, - 742, - 12, - 886, - 744, - 13, - 909, - 746, - 14, - 887, - 748, - 15, - 825, - 750, - 16, - 751, - 752, - 17, - 753, - 754, - 18, - 910, - 756, - 19, - 911, - 758, - 20, - 888, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 912, - 766, - 913, - 914, - 769, - 770, - 915, - 829, - 779, - 830, - 831, - 773, - 916, - 833, - 776, - 917, - 781, - 782, - 783, - 784, - 785, - 786, - 918, - 919, - 789, - 790, - 898, - 792, - 861, - 862, - 863, - 864, - 865, - 866, - 867, - 868, - 920, - 870, - 871, - 872, - 921, - 874, - 804, - 922, - 923, - 924, - 925, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 926, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -173 - } - ], - "times": [ - [ - "extra", - 0, - 415 - ], - [ - "extra", - 1, - 337 - ], - [ - "extra", - 2, - 6202 - ] - ], - "next": null - }, - "build order_report pipeline:pl__orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders order_report --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 927, - 706, - 928, - 708, - 929, - 710, - 907, - 712, - 884, - 714, - 815, - 716, - 930, - 718, - 931, - 720, - 0, - 932, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 727, - 728, - 5, - 729, - 730, - 6, - 908, - 732, - 7, - 733, - 734, - 8, - 821, - 736, - 9, - 737, - 738, - 10, - 823, - 740, - 11, - 741, - 742, - 12, - 886, - 744, - 13, - 933, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 751, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 855, - 764, - 23, - 934, - 766, - 935, - 914, - 769, - 770, - 936, - 829, - 779, - 830, - 831, - 773, - 937, - 833, - 776, - 938, - 781, - 859, - 783, - 784, - 939, - 786, - 940, - 941, - 789, - 790, - 898, - 792, - 793, - 794, - 795, - 942, - 797, - 798, - 799, - 943, - 801, - 944, - 803, - 804, - 843, - 945, - 946, - 947, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 948, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": -451 - } - ], - "times": [ - [ - "extra", - 0, - 427 - ], - [ - "extra", - 1, - 355 - ], - [ - "extra", - 2, - 6321 - ] - ], - "next": null - }, - "build order_report pipeline:pl__orders||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 949, - 706, - 950, - 708, - 951, - 710, - 850, - 712, - 814, - 714, - 715, - 716, - 851, - 718, - 719, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 852, - 728, - 5, - 818, - 730, - 6, - 908, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 739, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 887, - 748, - 15, - 825, - 750, - 16, - 751, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 855, - 764, - 23, - 912, - 766, - 952, - 953, - 769, - 770, - 954, - 829, - 779, - 830, - 831, - 773, - 937, - 833, - 776, - 834, - 781, - 895, - 783, - 784, - 785, - 786, - 955, - 956, - 789, - 790, - 898, - 792, - 793, - 862, - 863, - 864, - 865, - 866, - 867, - 868, - 920, - 870, - 871, - 872, - 873, - 874, - 804, - 922, - 957, - 958, - 959, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 960, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -13 - } - ], - "times": [ - [ - "extra", - 0, - 388 - ], - [ - "extra", - 1, - 332 - ], - [ - "extra", - 2, - 6053 - ] - ], - "next": null - }, - "build large_orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select large_orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 961, - 706, - 962, - 708, - 709, - 710, - 850, - 963, - 0, - 964, - 965, - 0, - 966, - 967, - 3, - 968, - 969, - 4, - 970, - 971, - 5, - 972, - 973, - 6, - 974, - 975, - 7, - 976, - 977, - 8, - 978, - 979, - 9, - 980, - 981, - 10, - 982, - 983, - 11, - 984, - 985, - 12, - 986, - 987, - 13, - 988, - 989, - 14, - 990, - 991, - 15, - 992, - 993, - 16, - 994, - 995, - 17, - 996, - 997, - 18, - 998, - 999, - 19, - 1000, - 1001, - 20, - 1002, - 1003, - 21, - 1004, - 1005, - 22, - 1006, - 1007, - 23, - 1008, - 1009, - 1010, - 1011, - 1012, - 1013, - 1014, - 784, - 1015, - 1016, - 1017, - 1018, - 1019, - 1020, - 1021, - 804, - 1022, - 1023, - 1024, - 1025, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1026, - 1027 - ], - "creates": [ - { - "name": "extra", - "offset": -185 - } - ], - "times": [ - [ - "extra", - 0, - 368 - ], - [ - "extra", - 1, - 308 - ], - [ - "extra", - 2, - 5801 - ] - ], - "next": null - }, - "build large_orders pipeline:pl__orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1028, - 706, - 1029, - 708, - 951, - 710, - 1030, - 712, - 814, - 714, - 715, - 716, - 717, - 718, - 719, - 720, - 0, - 932, - 722, - 0, - 1031, - 724, - 3, - 725, - 726, - 4, - 727, - 728, - 5, - 729, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 739, - 740, - 11, - 1032, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 751, - 752, - 17, - 826, - 754, - 18, - 1033, - 756, - 19, - 1034, - 758, - 20, - 888, - 760, - 21, - 889, - 762, - 22, - 855, - 764, - 23, - 827, - 766, - 1035, - 768, - 769, - 770, - 1036, - 829, - 779, - 893, - 831, - 773, - 832, - 833, - 776, - 858, - 781, - 782, - 783, - 784, - 1037, - 786, - 1038, - 1039, - 789, - 790, - 1040, - 792, - 861, - 794, - 795, - 899, - 797, - 900, - 799, - 800, - 801, - 802, - 803, - 804, - 1041, - 1042, - 1043, - 1044, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1045, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": -257 - } - ], - "times": [ - [ - "extra", - 0, - 436 - ], - [ - "extra", - 1, - 379 - ], - [ - "extra", - 2, - 6086 - ] - ], - "next": null - }, - "build large_orders pipeline:pl__orders||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1046, - 706, - 1047, - 708, - 951, - 710, - 850, - 712, - 814, - 714, - 715, - 716, - 851, - 718, - 719, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 852, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 739, - 740, - 11, - 1048, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 890, - 764, - 23, - 827, - 766, - 1050, - 768, - 769, - 770, - 771, - 829, - 779, - 893, - 831, - 773, - 832, - 833, - 776, - 858, - 781, - 895, - 783, - 784, - 939, - 786, - 1051, - 919, - 789, - 790, - 898, - 792, - 861, - 862, - 863, - 1052, - 865, - 866, - 1053, - 868, - 869, - 870, - 871, - 872, - 873, - 874, - 804, - 1054, - 1055, - 1056, - 1057, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1058, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -546 - } - ], - "times": [ - [ - "extra", - 0, - 353 - ], - [ - "extra", - 1, - 293 - ], - [ - "extra", - 2, - 5995 - ] - ], - "next": null - }, - "build large_orders order_report||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select order_report large_orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1059, - 706, - 1060, - 708, - 709, - 710, - 1061, - 712, - 814, - 714, - 715, - 716, - 1062, - 718, - 719, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 852, - 728, - 5, - 818, - 730, - 6, - 908, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 739, - 740, - 11, - 741, - 742, - 12, - 886, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 751, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 889, - 762, - 22, - 890, - 764, - 23, - 1063, - 766, - 1064, - 768, - 769, - 770, - 771, - 829, - 779, - 893, - 831, - 773, - 832, - 833, - 776, - 858, - 781, - 782, - 783, - 784, - 939, - 786, - 1065, - 919, - 789, - 790, - 898, - 792, - 1066, - 794, - 795, - 841, - 797, - 798, - 799, - 943, - 801, - 802, - 803, - 804, - 843, - 1067, - 1068, - 1069, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1070, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": -609 - } - ], - "times": [ - [ - "extra", - 0, - 416 - ], - [ - "extra", - 1, - 359 - ], - [ - "extra", - 2, - 6077 - ] - ], - "next": null - }, - "build large_orders order_report||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1071, - 706, - 1072, - 708, - 709, - 710, - 850, - 712, - 814, - 714, - 1073, - 716, - 851, - 718, - 719, - 720, - 0, - 932, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 852, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 739, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 889, - 762, - 22, - 855, - 764, - 23, - 765, - 766, - 1074, - 768, - 769, - 770, - 771, - 829, - 779, - 893, - 831, - 773, - 832, - 833, - 776, - 858, - 781, - 782, - 783, - 784, - 785, - 786, - 1075, - 1076, - 789, - 790, - 839, - 792, - 861, - 862, - 863, - 1052, - 865, - 866, - 1077, - 868, - 1078, - 870, - 871, - 872, - 873, - 874, - 804, - 875, - 1079, - 1080, - 1081, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1082, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -445 - } - ], - "times": [ - [ - "extra", - 0, - 360 - ], - [ - "extra", - 1, - 299 - ], - [ - "extra", - 2, - 6010 - ] - ], - "next": null - }, - "build large_orders order_report pipeline:pl__orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1083, - 706, - 1084, - 708, - 709, - 710, - 1061, - 712, - 814, - 714, - 715, - 716, - 717, - 718, - 719, - 720, - 0, - 932, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 852, - 728, - 5, - 818, - 730, - 6, - 1085, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 739, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 825, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 855, - 764, - 23, - 827, - 766, - 1086, - 768, - 769, - 770, - 771, - 829, - 779, - 830, - 831, - 773, - 894, - 833, - 776, - 834, - 781, - 782, - 783, - 784, - 785, - 786, - 1087, - 897, - 789, - 790, - 1088, - 792, - 861, - 794, - 795, - 796, - 797, - 798, - 799, - 943, - 801, - 802, - 803, - 804, - 805, - 1089, - 1090, - 1091, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1092, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": -451 - } - ], - "times": [ - [ - "extra", - 0, - 451 - ], - [ - "extra", - 1, - 386 - ], - [ - "extra", - 2, - 6127 - ] - ], - "next": null - }, - "build large_orders order_report pipeline:pl__orders||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1093, - 706, - 1094, - 708, - 1095, - 710, - 850, - 712, - 1096, - 714, - 715, - 716, - 1062, - 718, - 1097, - 720, - 0, - 932, - 722, - 0, - 1031, - 724, - 3, - 817, - 726, - 4, - 727, - 728, - 5, - 818, - 730, - 6, - 908, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 739, - 740, - 11, - 741, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 887, - 748, - 15, - 825, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 827, - 766, - 1098, - 953, - 769, - 770, - 771, - 829, - 779, - 893, - 831, - 773, - 832, - 833, - 776, - 858, - 781, - 782, - 783, - 784, - 836, - 786, - 1099, - 838, - 789, - 790, - 791, - 792, - 1100, - 862, - 863, - 1052, - 865, - 866, - 1077, - 868, - 1078, - 870, - 871, - 872, - 1101, - 874, - 804, - 875, - 1102, - 1103, - 1104, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 904, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -927 - } - ], - "times": [ - [ - "extra", - 0, - 404 - ], - [ - "extra", - 1, - 333 - ], - [ - "extra", - 2, - 6095 - ] - ], - "next": null - }, - "promote built": { - "role": "promote", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:promote.0}}", - "deploymentId": "{{d:built}}", - "publishedViews": [ - { - "logicalName": "tbl__large_orders", - "physicalName": "tbl__large_orders__{{d:built}}" - }, - { - "logicalName": "tbl__order_report", - "physicalName": "tbl__order_report__{{d:built}}" - } - ], - "graphAtomicPublish": false - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1105, - 1106, - 1107, - 237, - 1108, - 1109, - 1110, - 123, - 1111, - 1112, - 1113, - 0, - 1114, - 1115, - 3, - 1116, - 1117, - 4, - 1118, - 1119, - 5, - 1120, - 1121, - 6, - 1122, - 1123, - 7, - 1124, - 1125, - 8, - 1126, - 1127, - 9, - 1128, - 1129, - 10, - 1130, - 1131, - 11, - 1132, - 1133, - 12, - 1134, - 1135, - 13, - 1136, - 1137, - 14, - 1138, - 1139, - 15, - 1140, - 1141, - 16, - 1142, - 1143, - 17, - 1144, - 1145, - 18, - 1146, - 1147, - 19, - 1148, - 1149, - 20, - 1150, - 1151, - 21, - 1152, - 1153, - 22, - 1154, - 1155, - 23, - 1156, - 1157, - 1158, - 1159, - 1160, - 1161, - 1162, - 119, - 1163, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1164 - ], - "creates": [], - "times": [ - [ - "promote", - 0, - 283 - ], - [ - "promote", - 1, - 1 - ], - [ - "promote", - 2, - 548 - ] - ], - "next": "promoted/large_orders+order_report" - }, - "rollback v1": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.0}}", - "deploymentId": "{{d:v1}}", - "publishedViews": [ - { - "logicalName": "tbl__order_report", - "physicalName": "tbl__order_report__{{d:v1}}" - } - ], - "graphAtomicPublish": false, - "previousDeploymentId": "{{d:v2}}" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 648, - 649, - 650, - 123, - 124, - 651, - 652, - 0, - 1165, - 654, - 3, - 1166, - 656, - 4, - 1167, - 658, - 5, - 659, - 660, - 6, - 661, - 662, - 7, - 663, - 664, - 8, - 665, - 666, - 9, - 667, - 668, - 10, - 1168, - 670, - 11, - 671, - 672, - 12, - 673, - 674, - 13, - 675, - 676, - 14, - 677, - 678, - 15, - 1169, - 680, - 16, - 681, - 682, - 17, - 683, - 684, - 18, - 685, - 686, - 19, - 687, - 688, - 20, - 1170, - 690, - 21, - 691, - 692, - 22, - 1171, - 694, - 23, - 1172, - 696, - 1173, - 698, - 1174, - 1175, - 1176, - 119, - 702, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1177 - ], - "creates": [], - "times": [ - [ - "extra", - 0, - 255 - ], - [ - "extra", - 1, - 122 - ], - [ - "extra", - 2, - 482 - ] - ], - "next": null - } - } - }, - "staged/no-models": { - "plans": { - "|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 17, - "planningMs": 47, - "replayCountsMs": 0, - "totalMs": 65 - } - }, - "creates": [ - { - "name": "planned", - "offset": -81 - } - ], - "times": [ - [ - "plan", - 0, - 20 - ] - ] - }, - "|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 81, - "replayCountsMs": 0, - "totalMs": 94 - } - }, - "creates": [ - { - "name": "planned", - "offset": -148 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream requires --changed or --select" - }, - "creates": [], - "times": [] - }, - "|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream requires --changed or --select" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 12, - "planningMs": 53, - "replayCountsMs": 0, - "totalMs": 66 - } - }, - "creates": [ - { - "name": "planned", - "offset": -280 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 15, - "planningMs": 49, - "replayCountsMs": 0, - "totalMs": 65 - } - }, - "creates": [ - { - "name": "planned", - "offset": -349 - } - ], - "times": [ - [ - "plan", - 0, - 18 - ] - ] - }, - "pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 59, - "replayCountsMs": 0, - "totalMs": 72 - } - }, - "creates": [ - { - "name": "planned", - "offset": -417 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 16, - "planningMs": 62, - "replayCountsMs": 0, - "totalMs": 78 - } - }, - "creates": [ - { - "name": "planned", - "offset": -567 - } - ], - "times": [ - [ - "plan", - 0, - 19 - ] - ] - }, - "pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 51, - "replayCountsMs": 0, - "totalMs": 65 - } - }, - "creates": [ - { - "name": "planned", - "offset": -741 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "order_report|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 17, - "planningMs": 72, - "replayCountsMs": 0, - "totalMs": 90 - } - }, - "creates": [ - { - "name": "planned", - "offset": -808 - } - ], - "times": [ - [ - "plan", - 0, - 20 - ] - ] - }, - "order_report||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 29, - "planningMs": 68, - "replayCountsMs": 0, - "totalMs": 97 - } - }, - "creates": [ - { - "name": "planned", - "offset": -901 - } - ], - "times": [ - [ - "plan", - 0, - 33 - ] - ] - }, - "order_report||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 15, - "planningMs": 50, - "replayCountsMs": 0, - "totalMs": 65 - } - }, - "creates": [ - { - "name": "planned", - "offset": -78 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "order_report|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 50, - "replayCountsMs": 0, - "totalMs": 64 - } - }, - "creates": [ - { - "name": "planned", - "offset": -234 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "order_report pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 48, - "replayCountsMs": 0, - "totalMs": 62 - } - }, - "creates": [ - { - "name": "planned", - "offset": -300 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "order_report pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 16, - "planningMs": 48, - "replayCountsMs": 0, - "totalMs": 64 - } - }, - "creates": [ - { - "name": "planned", - "offset": -365 - } - ], - "times": [ - [ - "plan", - 0, - 18 - ] - ] - }, - "order_report pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 46, - "replayCountsMs": 0, - "totalMs": 60 - } - }, - "creates": [ - { - "name": "planned", - "offset": -493 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "order_report pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 39, - "replayCountsMs": 0, - "totalMs": 53 - } - }, - "creates": [ - { - "name": "planned", - "offset": -672 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "large_orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 12, - "planningMs": 43, - "replayCountsMs": 0, - "totalMs": 56 - } - }, - "creates": [ - { - "name": "planned", - "offset": -727 - } - ], - "times": [ - [ - "plan", - 0, - 14 - ] - ] - }, - "large_orders||from|": { - "status": 400, - "body": { - "detail": "Population root 'tbl__order_report' has no feeding view" - }, - "creates": [], - "times": [] - }, - "large_orders||from|counts": { - "status": 400, - "body": { - "detail": "Population root 'tbl__order_report' has no feeding view" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 12, - "planningMs": 46, - "replayCountsMs": 0, - "totalMs": 59 - } - }, - "creates": [ - { - "name": "planned", - "offset": -44 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "large_orders pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 15, - "planningMs": 47, - "replayCountsMs": 0, - "totalMs": 62 - } - }, - "creates": [ - { - "name": "planned", - "offset": -106 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "large_orders pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 51, - "replayCountsMs": 0, - "totalMs": 64 - } - }, - "creates": [ - { - "name": "planned", - "offset": -170 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "large_orders pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 52, - "replayCountsMs": 0, - "totalMs": 66 - } - }, - "creates": [ - { - "name": "planned", - "offset": -303 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "large_orders pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 53, - "replayCountsMs": 0, - "totalMs": 68 - } - }, - "creates": [ - { - "name": "planned", - "offset": -473 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "large_orders order_report|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 58, - "replayCountsMs": 0, - "totalMs": 73 - } - }, - "creates": [ - { - "name": "planned", - "offset": -544 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "large_orders order_report||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 17, - "planningMs": 45, - "replayCountsMs": 0, - "totalMs": 62 - } - }, - "creates": [ - { - "name": "planned", - "offset": -619 - } - ], - "times": [ - [ - "plan", - 0, - 19 - ] - ] - }, - "large_orders order_report||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 47, - "replayCountsMs": 0, - "totalMs": 61 - } - }, - "creates": [ - { - "name": "planned", - "offset": -753 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "large_orders order_report|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 18, - "planningMs": 45, - "replayCountsMs": 0, - "totalMs": 63 - } - }, - "creates": [ - { - "name": "planned", - "offset": -921 - } - ], - "times": [ - [ - "plan", - 0, - 20 - ] - ] - }, - "large_orders order_report pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 15, - "planningMs": 50, - "replayCountsMs": 0, - "totalMs": 65 - } - }, - "creates": [ - { - "name": "planned", - "offset": 13 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "large_orders order_report pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 47, - "replayCountsMs": 0, - "totalMs": 60 - } - }, - "creates": [ - { - "name": "planned", - "offset": -54 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "large_orders order_report pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 48, - "replayCountsMs": 0, - "totalMs": 62 - } - }, - "creates": [ - { - "name": "planned", - "offset": -176 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "large_orders order_report pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "changed|||": { - "status": 400, - "body": { - "detail": "--changed is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "changed|||counts": { - "status": 400, - "body": { - "detail": "--changed is only supported for direct models" - }, - "creates": [], - "times": [] - } - }, - "actions": { - "build ||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1178, - 706, - 1179, - 708, - 951, - 710, - 850, - 712, - 814, - 714, - 715, - 716, - 1062, - 718, - 816, - 720, - 0, - 932, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 852, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 821, - 736, - 9, - 1180, - 738, - 10, - 1181, - 740, - 11, - 1182, - 742, - 12, - 886, - 744, - 13, - 745, - 746, - 14, - 887, - 748, - 15, - 825, - 750, - 16, - 751, - 752, - 17, - 1183, - 754, - 18, - 910, - 756, - 19, - 1034, - 758, - 20, - 888, - 760, - 21, - 889, - 762, - 22, - 1184, - 764, - 23, - 1063, - 766, - 1185, - 953, - 769, - 770, - 936, - 772, - 773, - 1186, - 775, - 776, - 777, - 778, - 779, - 780, - 781, - 782, - 783, - 784, - 785, - 786, - 1187, - 788, - 789, - 790, - 839, - 792, - 793, - 794, - 795, - 796, - 797, - 798, - 799, - 1188, - 801, - 802, - 803, - 804, - 805, - 1189, - 1190, - 1191, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1192, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": -521 - } - ], - "times": [ - [ - "extra", - 0, - 356 - ], - [ - "extra", - 1, - 292 - ], - [ - "extra", - 2, - 6098 - ] - ], - "next": null - }, - "build pipeline:pl__orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1193, - 706, - 1194, - 708, - 951, - 710, - 1030, - 712, - 884, - 714, - 715, - 716, - 1195, - 718, - 816, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 852, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 733, - 734, - 8, - 735, - 736, - 9, - 737, - 738, - 10, - 823, - 740, - 11, - 741, - 742, - 12, - 886, - 744, - 13, - 933, - 746, - 14, - 747, - 748, - 15, - 825, - 750, - 16, - 751, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 827, - 766, - 1196, - 768, - 769, - 770, - 936, - 829, - 779, - 1197, - 831, - 773, - 1198, - 833, - 776, - 834, - 781, - 782, - 783, - 784, - 785, - 786, - 1199, - 956, - 789, - 790, - 1200, - 792, - 1201, - 794, - 795, - 942, - 797, - 900, - 799, - 1188, - 801, - 802, - 803, - 804, - 805, - 1202, - 1203, - 1204, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1205, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": -690 - } - ], - "times": [ - [ - "extra", - 0, - 394 - ], - [ - "extra", - 1, - 336 - ], - [ - "extra", - 2, - 6114 - ] - ], - "next": null - }, - "build pipeline:pl__orders||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1206, - 706, - 1207, - 708, - 951, - 710, - 850, - 712, - 814, - 714, - 815, - 716, - 1208, - 718, - 719, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 852, - 728, - 5, - 818, - 730, - 6, - 908, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 737, - 738, - 10, - 739, - 740, - 11, - 824, - 742, - 12, - 886, - 744, - 13, - 933, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 751, - 752, - 17, - 753, - 754, - 18, - 1033, - 756, - 19, - 1034, - 758, - 20, - 888, - 760, - 21, - 889, - 762, - 22, - 1209, - 764, - 23, - 827, - 766, - 1210, - 857, - 769, - 770, - 915, - 829, - 779, - 830, - 831, - 773, - 832, - 833, - 776, - 834, - 781, - 895, - 783, - 784, - 1211, - 786, - 1212, - 956, - 789, - 790, - 1213, - 792, - 793, - 862, - 863, - 1214, - 865, - 866, - 867, - 868, - 1078, - 870, - 871, - 872, - 921, - 874, - 804, - 875, - 1215, - 1216, - 1217, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1218, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -782 - } - ], - "times": [ - [ - "extra", - 0, - 346 - ], - [ - "extra", - 1, - 289 - ], - [ - "extra", - 2, - 6054 - ] - ], - "next": null - }, - "build order_report||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select order_report --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1219, - 706, - 1220, - 708, - 1095, - 710, - 711, - 712, - 884, - 714, - 815, - 716, - 717, - 718, - 719, - 720, - 0, - 932, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 727, - 728, - 5, - 818, - 730, - 6, - 908, - 732, - 7, - 820, - 734, - 8, - 821, - 736, - 9, - 737, - 738, - 10, - 739, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 890, - 764, - 23, - 765, - 766, - 1221, - 768, - 769, - 770, - 771, - 829, - 779, - 1197, - 831, - 773, - 937, - 833, - 776, - 858, - 781, - 895, - 783, - 784, - 939, - 786, - 1222, - 1223, - 789, - 790, - 898, - 792, - 1224, - 794, - 795, - 1225, - 797, - 798, - 799, - 800, - 801, - 842, - 803, - 804, - 805, - 1226, - 1227, - 1228, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1229, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": -137 - } - ], - "times": [ - [ - "extra", - 0, - 454 - ], - [ - "extra", - 1, - 389 - ], - [ - "extra", - 2, - 6097 - ] - ], - "next": null - }, - "build order_report||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1230, - 706, - 1231, - 708, - 709, - 710, - 850, - 712, - 884, - 714, - 715, - 716, - 717, - 718, - 719, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 852, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 739, - 740, - 11, - 824, - 742, - 12, - 886, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 1034, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 890, - 764, - 23, - 765, - 766, - 1232, - 768, - 769, - 770, - 1036, - 829, - 779, - 893, - 831, - 773, - 832, - 833, - 776, - 834, - 781, - 895, - 783, - 784, - 836, - 786, - 1233, - 788, - 789, - 790, - 839, - 792, - 793, - 862, - 863, - 1234, - 865, - 866, - 1235, - 868, - 1078, - 870, - 1236, - 872, - 1237, - 874, - 804, - 1238, - 1239, - 1240, - 1241, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1242, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -126 - } - ], - "times": [ - [ - "extra", - 0, - 374 - ], - [ - "extra", - 1, - 306 - ], - [ - "extra", - 2, - 6083 - ] - ], - "next": null - }, - "build order_report pipeline:pl__orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders order_report --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1243, - 706, - 1244, - 708, - 929, - 710, - 711, - 712, - 1245, - 714, - 1246, - 716, - 1247, - 718, - 719, - 720, - 0, - 932, - 722, - 0, - 1248, - 724, - 3, - 1249, - 726, - 4, - 1250, - 728, - 5, - 818, - 730, - 6, - 1251, - 732, - 7, - 1252, - 734, - 8, - 821, - 736, - 9, - 1253, - 738, - 10, - 823, - 740, - 11, - 824, - 742, - 12, - 886, - 744, - 13, - 933, - 746, - 14, - 887, - 748, - 15, - 825, - 750, - 16, - 751, - 752, - 17, - 753, - 754, - 18, - 1033, - 756, - 19, - 1034, - 758, - 20, - 888, - 760, - 21, - 889, - 762, - 22, - 855, - 764, - 23, - 827, - 766, - 1254, - 914, - 769, - 770, - 771, - 829, - 779, - 893, - 831, - 773, - 1255, - 833, - 776, - 834, - 781, - 782, - 783, - 784, - 836, - 786, - 1256, - 838, - 789, - 790, - 898, - 792, - 861, - 794, - 795, - 796, - 797, - 798, - 799, - 1188, - 801, - 944, - 803, - 804, - 1257, - 1258, - 1259, - 1260, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1261, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": -237 - } - ], - "times": [ - [ - "extra", - 0, - 378 - ], - [ - "extra", - 1, - 319 - ], - [ - "extra", - 2, - 6145 - ] - ], - "next": null - }, - "build order_report pipeline:pl__orders||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1262, - 706, - 1263, - 708, - 1264, - 710, - 1265, - 712, - 884, - 714, - 1266, - 716, - 1062, - 718, - 719, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 1250, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 823, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 911, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 827, - 766, - 1267, - 1268, - 769, - 770, - 771, - 829, - 779, - 893, - 831, - 773, - 937, - 833, - 776, - 834, - 781, - 859, - 783, - 784, - 785, - 786, - 1269, - 1076, - 789, - 790, - 1088, - 792, - 1270, - 862, - 863, - 1271, - 865, - 866, - 1272, - 868, - 1078, - 870, - 871, - 872, - 1273, - 874, - 804, - 1274, - 1275, - 1276, - 1277, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1278, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -411 - } - ], - "times": [ - [ - "extra", - 0, - 339 - ], - [ - "extra", - 1, - 279 - ], - [ - "extra", - 2, - 6042 - ] - ], - "next": null - }, - "build large_orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select large_orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1279, - 706, - 1280, - 708, - 709, - 710, - 850, - 963, - 0, - 1281, - 965, - 0, - 966, - 967, - 3, - 1282, - 969, - 4, - 1283, - 971, - 5, - 972, - 973, - 6, - 974, - 975, - 7, - 976, - 977, - 8, - 1284, - 979, - 9, - 980, - 981, - 10, - 1285, - 983, - 11, - 984, - 985, - 12, - 986, - 987, - 13, - 1286, - 989, - 14, - 990, - 991, - 15, - 1287, - 993, - 16, - 1288, - 995, - 17, - 996, - 997, - 18, - 998, - 999, - 19, - 1000, - 1001, - 20, - 1002, - 1003, - 21, - 1004, - 1005, - 22, - 1006, - 1007, - 23, - 1289, - 1009, - 1290, - 1011, - 1012, - 1013, - 1014, - 784, - 1291, - 1016, - 1292, - 1293, - 1019, - 1294, - 1021, - 804, - 1295, - 1296, - 1297, - 1298, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1299, - 1027 - ], - "creates": [ - { - "name": "extra", - "offset": -744 - } - ], - "times": [ - [ - "extra", - 0, - 419 - ], - [ - "extra", - 1, - 359 - ], - [ - "extra", - 2, - 5904 - ] - ], - "next": null - }, - "build large_orders pipeline:pl__orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1300, - 706, - 1301, - 708, - 1302, - 710, - 1265, - 712, - 814, - 714, - 1266, - 716, - 1303, - 718, - 719, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 1304, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 739, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 827, - 766, - 1305, - 1306, - 769, - 770, - 892, - 829, - 779, - 893, - 831, - 773, - 937, - 833, - 776, - 834, - 781, - 782, - 783, - 784, - 785, - 786, - 1307, - 838, - 789, - 790, - 1088, - 792, - 1308, - 794, - 795, - 942, - 797, - 900, - 799, - 1188, - 801, - 1309, - 803, - 804, - 1310, - 1311, - 1312, - 1313, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1092, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": -776 - } - ], - "times": [ - [ - "extra", - 0, - 356 - ], - [ - "extra", - 1, - 297 - ], - [ - "extra", - 2, - 6038 - ] - ], - "next": null - }, - "build large_orders pipeline:pl__orders||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1314, - 706, - 1315, - 708, - 709, - 710, - 1316, - 712, - 814, - 714, - 715, - 716, - 851, - 718, - 719, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 1304, - 728, - 5, - 818, - 730, - 6, - 908, - 732, - 7, - 733, - 734, - 8, - 735, - 736, - 9, - 1253, - 738, - 10, - 739, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 1317, - 748, - 15, - 749, - 750, - 16, - 751, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 911, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 827, - 766, - 1318, - 1306, - 769, - 770, - 771, - 829, - 779, - 893, - 831, - 773, - 937, - 833, - 776, - 834, - 781, - 1319, - 783, - 784, - 836, - 786, - 1320, - 838, - 789, - 790, - 1213, - 792, - 793, - 862, - 863, - 1321, - 865, - 866, - 1077, - 868, - 1078, - 870, - 871, - 872, - 1273, - 874, - 804, - 1322, - 1323, - 1324, - 1325, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1326, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -13 - } - ], - "times": [ - [ - "extra", - 0, - 440 - ], - [ - "extra", - 1, - 372 - ], - [ - "extra", - 2, - 6158 - ] - ], - "next": null - }, - "build large_orders order_report||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select order_report large_orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1327, - 706, - 1328, - 708, - 1329, - 710, - 1330, - 712, - 1331, - 714, - 885, - 716, - 1332, - 718, - 1333, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 1250, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 737, - 738, - 10, - 739, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 1317, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 911, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 1334, - 766, - 1335, - 857, - 769, - 770, - 771, - 829, - 779, - 893, - 831, - 773, - 937, - 833, - 776, - 858, - 781, - 1319, - 783, - 784, - 939, - 786, - 1336, - 1223, - 789, - 790, - 1337, - 792, - 1338, - 794, - 795, - 942, - 797, - 1339, - 799, - 1340, - 801, - 802, - 803, - 804, - 1341, - 1342, - 1343, - 1344, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1345, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": -257 - } - ], - "times": [ - [ - "extra", - 0, - 359 - ], - [ - "extra", - 1, - 295 - ], - [ - "extra", - 2, - 6119 - ] - ], - "next": null - }, - "build large_orders order_report||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1346, - 706, - 1347, - 708, - 1348, - 710, - 711, - 712, - 713, - 714, - 885, - 716, - 1247, - 718, - 719, - 720, - 0, - 721, - 722, - 0, - 1031, - 724, - 3, - 817, - 726, - 4, - 1349, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 737, - 738, - 10, - 739, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 1317, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 911, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 1063, - 766, - 1350, - 914, - 769, - 770, - 1351, - 829, - 779, - 893, - 831, - 773, - 916, - 833, - 776, - 858, - 781, - 895, - 783, - 784, - 785, - 786, - 1352, - 956, - 789, - 790, - 1337, - 792, - 1224, - 862, - 863, - 1271, - 865, - 866, - 1235, - 868, - 920, - 870, - 1236, - 872, - 873, - 874, - 804, - 1353, - 1354, - 1355, - 1356, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1357, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -580 - } - ], - "times": [ - [ - "extra", - 0, - 442 - ], - [ - "extra", - 1, - 379 - ], - [ - "extra", - 2, - 6198 - ] - ], - "next": null - }, - "build large_orders order_report pipeline:pl__orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1358, - 706, - 1359, - 708, - 1095, - 710, - 1360, - 712, - 814, - 714, - 715, - 716, - 1062, - 718, - 719, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 727, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 1361, - 738, - 10, - 823, - 740, - 11, - 741, - 742, - 12, - 743, - 744, - 13, - 933, - 746, - 14, - 1362, - 748, - 15, - 825, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 1363, - 758, - 20, - 888, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 827, - 766, - 1364, - 953, - 769, - 770, - 892, - 829, - 779, - 893, - 831, - 773, - 937, - 833, - 776, - 858, - 781, - 1319, - 783, - 784, - 1365, - 786, - 1366, - 956, - 789, - 790, - 1040, - 792, - 1066, - 794, - 795, - 942, - 797, - 798, - 799, - 1188, - 801, - 1367, - 803, - 804, - 1368, - 1369, - 1370, - 1371, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1372, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": -781 - } - ], - "times": [ - [ - "extra", - 0, - 400 - ], - [ - "extra", - 1, - 327 - ], - [ - "extra", - 2, - 6225 - ] - ], - "next": null - }, - "build large_orders order_report pipeline:pl__orders||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1373, - 706, - 1374, - 708, - 709, - 710, - 711, - 712, - 814, - 714, - 715, - 716, - 851, - 718, - 816, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 1304, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 733, - 734, - 8, - 735, - 736, - 9, - 822, - 738, - 10, - 739, - 740, - 11, - 741, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 1317, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 911, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 890, - 764, - 23, - 827, - 766, - 1375, - 857, - 769, - 770, - 936, - 829, - 779, - 1197, - 831, - 773, - 916, - 833, - 776, - 834, - 781, - 895, - 783, - 784, - 785, - 786, - 1376, - 788, - 789, - 790, - 1377, - 792, - 1224, - 862, - 863, - 1378, - 865, - 866, - 1379, - 868, - 1380, - 870, - 1381, - 872, - 1273, - 874, - 804, - 1322, - 1382, - 1383, - 1384, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1385, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -54 - } - ], - "times": [ - [ - "extra", - 0, - 471 - ], - [ - "extra", - 1, - 407 - ], - [ - "extra", - 2, - 6229 - ] - ], - "next": null - }, - "rollback v1": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.0}}", - "deploymentId": "{{d:v1}}", - "publishedViews": [ - { - "logicalName": "tbl__order_report", - "physicalName": "tbl__order_report__{{d:v1}}" - } - ], - "graphAtomicPublish": false, - "previousDeploymentId": "{{d:v2}}" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 648, - 649, - 650, - 123, - 124, - 651, - 652, - 0, - 1165, - 654, - 3, - 655, - 656, - 4, - 657, - 658, - 5, - 659, - 660, - 6, - 661, - 662, - 7, - 663, - 664, - 8, - 1386, - 666, - 9, - 667, - 668, - 10, - 1168, - 670, - 11, - 671, - 672, - 12, - 1387, - 674, - 13, - 1388, - 676, - 14, - 677, - 678, - 15, - 1169, - 680, - 16, - 1389, - 682, - 17, - 683, - 684, - 18, - 1390, - 686, - 19, - 687, - 688, - 20, - 1170, - 690, - 21, - 691, - 692, - 22, - 1171, - 694, - 23, - 1391, - 696, - 1392, - 698, - 1393, - 1394, - 1395, - 119, - 702, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1396 - ], - "creates": [], - "times": [ - [ - "extra", - 0, - 257 - ], - [ - "extra", - 1, - 100 - ], - [ - "extra", - 2, - 490 - ] - ], - "next": null - } - } - }, - "promoted/large_orders+order_report": { - "plans": { - "|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 17, - "planningMs": 53, - "replayCountsMs": 0, - "totalMs": 70 - } - }, - "creates": [ - { - "name": "planned", - "offset": -283 - } - ], - "times": [ - [ - "plan", - 0, - 19 - ] - ] - }, - "|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 17, - "planningMs": 63, - "replayCountsMs": 0, - "totalMs": 81 - } - }, - "creates": [ - { - "name": "planned", - "offset": -356 - } - ], - "times": [ - [ - "plan", - 0, - 19 - ] - ] - }, - "|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream requires --changed or --select" - }, - "creates": [], - "times": [] - }, - "|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream requires --changed or --select" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 15, - "planningMs": 47, - "replayCountsMs": 0, - "totalMs": 62 - } - }, - "creates": [ - { - "name": "planned", - "offset": -490 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 45, - "replayCountsMs": 0, - "totalMs": 59 - } - }, - "creates": [ - { - "name": "planned", - "offset": -554 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 21, - "planningMs": 54, - "replayCountsMs": 0, - "totalMs": 75 - } - }, - "creates": [ - { - "name": "planned", - "offset": -615 - } - ], - "times": [ - [ - "plan", - 0, - 23 - ] - ] - }, - "pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 18, - "planningMs": 58, - "replayCountsMs": 0, - "totalMs": 76 - } - }, - "creates": [ - { - "name": "planned", - "offset": -771 - } - ], - "times": [ - [ - "plan", - 0, - 20 - ] - ] - }, - "pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 17, - "planningMs": 48, - "replayCountsMs": 0, - "totalMs": 66 - } - }, - "creates": [ - { - "name": "planned", - "offset": -10 - } - ], - "times": [ - [ - "plan", - 0, - 20 - ] - ] - }, - "order_report|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 47, - "replayCountsMs": 0, - "totalMs": 61 - } - }, - "creates": [ - { - "name": "planned", - "offset": -78 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "order_report||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 51, - "replayCountsMs": 0, - "totalMs": 65 - } - }, - "creates": [ - { - "name": "planned", - "offset": -141 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "order_report||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 16, - "planningMs": 53, - "replayCountsMs": 0, - "totalMs": 69 - } - }, - "creates": [ - { - "name": "planned", - "offset": -274 - } - ], - "times": [ - [ - "plan", - 0, - 18 - ] - ] - }, - "order_report|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 12, - "planningMs": 46, - "replayCountsMs": 0, - "totalMs": 59 - } - }, - "creates": [ - { - "name": "planned", - "offset": -439 - } - ], - "times": [ - [ - "plan", - 0, - 14 - ] - ] - }, - "order_report pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 23, - "planningMs": 48, - "replayCountsMs": 0, - "totalMs": 72 - } - }, - "creates": [ - { - "name": "planned", - "offset": -500 - } - ], - "times": [ - [ - "plan", - 0, - 25 - ] - ] - }, - "order_report pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 57, - "replayCountsMs": 0, - "totalMs": 72 - } - }, - "creates": [ - { - "name": "planned", - "offset": -574 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "order_report pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 50, - "replayCountsMs": 0, - "totalMs": 64 - } - }, - "creates": [ - { - "name": "planned", - "offset": -719 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "order_report pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 46, - "replayCountsMs": 0, - "totalMs": 60 - } - }, - "creates": [ - { - "name": "planned", - "offset": -897 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "large_orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 17, - "planningMs": 42, - "replayCountsMs": 0, - "totalMs": 59 - } - }, - "creates": [ - { - "name": "planned", - "offset": 41 - } - ], - "times": [ - [ - "plan", - 0, - 19 - ] - ] - }, - "large_orders||from|": { - "status": 400, - "body": { - "detail": "Population root 'tbl__order_report' has no feeding view" - }, - "creates": [], - "times": [] - }, - "large_orders||from|counts": { - "status": 400, - "body": { - "detail": "Population root 'tbl__order_report' has no feeding view" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 45, - "replayCountsMs": 0, - "totalMs": 59 - } - }, - "creates": [ - { - "name": "planned", - "offset": -292 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "large_orders pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 47, - "replayCountsMs": 0, - "totalMs": 60 - } - }, - "creates": [ - { - "name": "planned", - "offset": -354 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "large_orders pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 64, - "replayCountsMs": 0, - "totalMs": 78 - } - }, - "creates": [ - { - "name": "planned", - "offset": -416 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "large_orders pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 22, - "planningMs": 60, - "replayCountsMs": 0, - "totalMs": 82 - } - }, - "creates": [ - { - "name": "planned", - "offset": -591 - } - ], - "times": [ - [ - "plan", - 0, - 25 - ] - ] - }, - "large_orders pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 15, - "planningMs": 41, - "replayCountsMs": 0, - "totalMs": 56 - } - }, - "creates": [ - { - "name": "planned", - "offset": -784 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "large_orders order_report|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 44, - "replayCountsMs": 0, - "totalMs": 57 - } - }, - "creates": [ - { - "name": "planned", - "offset": -843 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "large_orders order_report||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 51, - "replayCountsMs": 0, - "totalMs": 65 - } - }, - "creates": [ - { - "name": "planned", - "offset": -902 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "large_orders order_report||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 15, - "planningMs": 52, - "replayCountsMs": 0, - "totalMs": 67 - } - }, - "creates": [ - { - "name": "planned", - "offset": -38 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "large_orders order_report|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 46, - "replayCountsMs": 0, - "totalMs": 60 - } - }, - "creates": [ - { - "name": "planned", - "offset": -229 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "large_orders order_report pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 46, - "replayCountsMs": 0, - "totalMs": 60 - } - }, - "creates": [ - { - "name": "planned", - "offset": -291 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "large_orders order_report pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 50, - "replayCountsMs": 0, - "totalMs": 64 - } - }, - "creates": [ - { - "name": "planned", - "offset": -353 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "large_orders order_report pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 17, - "planningMs": 50, - "replayCountsMs": 0, - "totalMs": 67 - } - }, - "creates": [ - { - "name": "planned", - "offset": -489 - } - ], - "times": [ - [ - "plan", - 0, - 20 - ] - ] - }, - "large_orders order_report pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "changed|||": { - "status": 400, - "body": { - "detail": "--changed is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "changed|||counts": { - "status": 400, - "body": { - "detail": "--changed is only supported for direct models" - }, - "creates": [], - "times": [] - } - }, - "actions": { - "build ||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1397, - 706, - 1398, - 708, - 1348, - 710, - 711, - 963, - 0, - 964, - 965, - 0, - 966, - 967, - 3, - 968, - 969, - 4, - 1283, - 971, - 5, - 1399, - 973, - 6, - 1400, - 975, - 7, - 976, - 977, - 8, - 1401, - 979, - 9, - 980, - 981, - 10, - 1285, - 983, - 11, - 984, - 985, - 12, - 986, - 987, - 13, - 988, - 989, - 14, - 1402, - 991, - 15, - 1287, - 993, - 16, - 994, - 995, - 17, - 996, - 997, - 18, - 998, - 999, - 19, - 1403, - 1001, - 20, - 1002, - 1003, - 21, - 1004, - 1005, - 22, - 1006, - 1007, - 23, - 1404, - 1009, - 1405, - 1406, - 1012, - 1407, - 1014, - 784, - 1291, - 1016, - 1408, - 1018, - 1019, - 1409, - 1021, - 804, - 1410, - 1411, - 1412, - 1413, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1414, - 1027 - ], - "creates": [ - { - "name": "extra", - "offset": -866 - } - ], - "times": [ - [ - "extra", - 0, - 369 - ], - [ - "extra", - 1, - 304 - ], - [ - "extra", - 2, - 5931 - ] - ], - "next": null - }, - "build pipeline:pl__orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1415, - 706, - 1416, - 708, - 1095, - 710, - 907, - 963, - 0, - 1281, - 965, - 0, - 966, - 967, - 3, - 1417, - 969, - 4, - 1418, - 971, - 5, - 972, - 973, - 6, - 974, - 975, - 7, - 976, - 977, - 8, - 978, - 979, - 9, - 980, - 981, - 10, - 982, - 983, - 11, - 984, - 985, - 12, - 986, - 987, - 13, - 1419, - 989, - 14, - 990, - 991, - 15, - 1287, - 993, - 16, - 994, - 995, - 17, - 996, - 997, - 18, - 1420, - 999, - 19, - 1000, - 1001, - 20, - 1002, - 1003, - 21, - 1004, - 1005, - 22, - 1006, - 1007, - 23, - 1008, - 1009, - 1421, - 1406, - 1012, - 1407, - 1014, - 784, - 1291, - 1016, - 1422, - 1018, - 1019, - 1423, - 1021, - 804, - 1424, - 1425, - 1426, - 1427, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1428, - 1027 - ], - "creates": [ - { - "name": "extra", - "offset": -365 - } - ], - "times": [ - [ - "extra", - 0, - 355 - ], - [ - "extra", - 1, - 296 - ], - [ - "extra", - 2, - 5863 - ] - ], - "next": null - }, - "build pipeline:pl__orders||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1429, - 706, - 1430, - 708, - 929, - 710, - 850, - 712, - 1431, - 714, - 885, - 716, - 717, - 718, - 816, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 1432, - 726, - 4, - 852, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 1433, - 736, - 9, - 853, - 738, - 10, - 739, - 740, - 11, - 824, - 742, - 12, - 886, - 744, - 13, - 909, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 1033, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 890, - 764, - 23, - 1434, - 766, - 1435, - 768, - 769, - 770, - 771, - 829, - 779, - 893, - 831, - 773, - 937, - 833, - 776, - 1436, - 781, - 859, - 783, - 784, - 1437, - 786, - 1438, - 897, - 789, - 790, - 1439, - 792, - 1201, - 862, - 1440, - 864, - 865, - 866, - 1235, - 868, - 920, - 870, - 871, - 872, - 1237, - 874, - 804, - 1441, - 1442, - 1443, - 1444, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1445, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -880 - } - ], - "times": [ - [ - "extra", - 0, - 420 - ], - [ - "extra", - 1, - 358 - ], - [ - "extra", - 2, - 6154 - ] - ], - "next": null - }, - "build order_report||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select order_report --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1446, - 706, - 1447, - 708, - 1302, - 710, - 1030, - 963, - 0, - 964, - 965, - 0, - 966, - 967, - 3, - 968, - 969, - 4, - 1448, - 971, - 5, - 972, - 973, - 6, - 974, - 975, - 7, - 976, - 977, - 8, - 978, - 979, - 9, - 1449, - 981, - 10, - 1285, - 983, - 11, - 984, - 985, - 12, - 1450, - 987, - 13, - 988, - 989, - 14, - 1451, - 991, - 15, - 1287, - 993, - 16, - 994, - 995, - 17, - 996, - 997, - 18, - 998, - 999, - 19, - 1000, - 1001, - 20, - 1002, - 1003, - 21, - 1004, - 1005, - 22, - 1452, - 1007, - 23, - 1453, - 1009, - 1454, - 1455, - 1012, - 1013, - 1014, - 784, - 1291, - 1016, - 1456, - 1457, - 1019, - 1409, - 1021, - 804, - 1458, - 1459, - 1460, - 1461, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1462, - 1027 - ], - "creates": [ - { - "name": "extra", - "offset": -662 - } - ], - "times": [ - [ - "extra", - 0, - 385 - ], - [ - "extra", - 1, - 309 - ], - [ - "extra", - 2, - 5879 - ] - ], - "next": null - }, - "build order_report||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1463, - 706, - 1464, - 708, - 1095, - 710, - 711, - 712, - 713, - 714, - 1465, - 716, - 1466, - 718, - 1467, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 725, - 726, - 4, - 727, - 728, - 5, - 729, - 730, - 6, - 908, - 732, - 7, - 733, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 739, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 1033, - 756, - 19, - 1034, - 758, - 20, - 1468, - 760, - 21, - 889, - 762, - 22, - 763, - 764, - 23, - 1063, - 766, - 1469, - 953, - 769, - 770, - 915, - 829, - 779, - 830, - 831, - 773, - 937, - 833, - 776, - 1436, - 781, - 895, - 783, - 784, - 939, - 786, - 1470, - 1471, - 789, - 790, - 839, - 792, - 1308, - 862, - 1440, - 864, - 865, - 866, - 1472, - 868, - 1078, - 870, - 1381, - 872, - 1473, - 874, - 804, - 1441, - 1474, - 1475, - 1476, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1477, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -144 - } - ], - "times": [ - [ - "extra", - 0, - 479 - ], - [ - "extra", - 1, - 413 - ], - [ - "extra", - 2, - 6289 - ] - ], - "next": null - }, - "build order_report pipeline:pl__orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders order_report --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1478, - 706, - 1479, - 708, - 929, - 710, - 813, - 963, - 0, - 964, - 965, - 0, - 966, - 967, - 3, - 968, - 969, - 4, - 1480, - 971, - 5, - 972, - 973, - 6, - 974, - 975, - 7, - 976, - 977, - 8, - 978, - 979, - 9, - 980, - 981, - 10, - 1285, - 983, - 11, - 984, - 985, - 12, - 1450, - 987, - 13, - 988, - 989, - 14, - 1402, - 991, - 15, - 1287, - 993, - 16, - 994, - 995, - 17, - 996, - 997, - 18, - 998, - 999, - 19, - 1000, - 1001, - 20, - 1481, - 1003, - 21, - 1482, - 1005, - 22, - 1452, - 1007, - 23, - 1483, - 1009, - 1484, - 1485, - 1012, - 1407, - 1014, - 784, - 1486, - 1016, - 1487, - 1457, - 1019, - 1488, - 1021, - 804, - 1489, - 1490, - 1491, - 1492, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1493, - 1027 - ], - "creates": [ - { - "name": "extra", - "offset": -381 - } - ], - "times": [ - [ - "extra", - 0, - 440 - ], - [ - "extra", - 1, - 325 - ], - [ - "extra", - 2, - 5981 - ] - ], - "next": null - }, - "build order_report pipeline:pl__orders||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1494, - 706, - 1495, - 708, - 1302, - 710, - 711, - 712, - 884, - 714, - 885, - 716, - 851, - 718, - 1333, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 852, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 1496, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 1497, - 766, - 1498, - 768, - 769, - 770, - 771, - 829, - 779, - 1197, - 831, - 773, - 832, - 833, - 776, - 858, - 781, - 895, - 783, - 784, - 785, - 786, - 1499, - 956, - 789, - 790, - 1200, - 792, - 1338, - 862, - 1440, - 864, - 865, - 866, - 1500, - 868, - 920, - 870, - 1236, - 872, - 921, - 874, - 804, - 875, - 1501, - 1502, - 1503, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1504, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -170 - } - ], - "times": [ - [ - "extra", - 0, - 393 - ], - [ - "extra", - 1, - 328 - ], - [ - "extra", - 2, - 6124 - ] - ], - "next": null - }, - "build large_orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select large_orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1505, - 706, - 1506, - 708, - 929, - 710, - 907, - 963, - 0, - 964, - 965, - 0, - 966, - 967, - 3, - 968, - 969, - 4, - 1448, - 971, - 5, - 972, - 973, - 6, - 974, - 975, - 7, - 976, - 977, - 8, - 978, - 979, - 9, - 980, - 981, - 10, - 1285, - 983, - 11, - 984, - 985, - 12, - 986, - 987, - 13, - 988, - 989, - 14, - 990, - 991, - 15, - 1287, - 993, - 16, - 994, - 995, - 17, - 996, - 997, - 18, - 998, - 999, - 19, - 1000, - 1001, - 20, - 1002, - 1003, - 21, - 1004, - 1005, - 22, - 1006, - 1007, - 23, - 1507, - 1009, - 1508, - 1011, - 1012, - 1509, - 1014, - 784, - 1486, - 1016, - 1510, - 1018, - 1019, - 1020, - 1021, - 804, - 1511, - 1512, - 1513, - 1514, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1515, - 1027 - ], - "creates": [ - { - "name": "extra", - "offset": -100 - } - ], - "times": [ - [ - "extra", - 0, - 392 - ], - [ - "extra", - 1, - 333 - ], - [ - "extra", - 2, - 5928 - ] - ], - "next": null - }, - "build large_orders pipeline:pl__orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1516, - 706, - 1517, - 708, - 709, - 710, - 1518, - 963, - 0, - 964, - 965, - 0, - 966, - 967, - 3, - 968, - 969, - 4, - 970, - 971, - 5, - 972, - 973, - 6, - 974, - 975, - 7, - 976, - 977, - 8, - 978, - 979, - 9, - 980, - 981, - 10, - 1285, - 983, - 11, - 984, - 985, - 12, - 986, - 987, - 13, - 988, - 989, - 14, - 990, - 991, - 15, - 1287, - 993, - 16, - 1519, - 995, - 17, - 996, - 997, - 18, - 1520, - 999, - 19, - 1000, - 1001, - 20, - 1002, - 1003, - 21, - 1004, - 1005, - 22, - 1006, - 1007, - 23, - 1521, - 1009, - 1522, - 1406, - 1012, - 1407, - 1014, - 784, - 1523, - 1016, - 1524, - 1018, - 1019, - 1488, - 1021, - 804, - 1295, - 1525, - 1526, - 1527, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1528, - 1027 - ], - "creates": [ - { - "name": "extra", - "offset": -870 - } - ], - "times": [ - [ - "extra", - 0, - 408 - ], - [ - "extra", - 1, - 344 - ], - [ - "extra", - 2, - 5889 - ] - ], - "next": null - }, - "build large_orders pipeline:pl__orders||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1529, - 706, - 1530, - 708, - 929, - 710, - 1061, - 712, - 1531, - 714, - 1266, - 716, - 851, - 718, - 1097, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 852, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 733, - 734, - 8, - 821, - 736, - 9, - 737, - 738, - 10, - 1532, - 740, - 11, - 741, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 854, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 827, - 766, - 1533, - 1268, - 769, - 770, - 771, - 829, - 779, - 1197, - 831, - 773, - 937, - 833, - 776, - 1436, - 781, - 782, - 783, - 784, - 939, - 786, - 1534, - 897, - 789, - 790, - 1535, - 792, - 793, - 862, - 1440, - 864, - 865, - 866, - 1536, - 868, - 920, - 870, - 1537, - 872, - 1273, - 874, - 804, - 1238, - 1538, - 1539, - 1540, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1541, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -571 - } - ], - "times": [ - [ - "extra", - 0, - 386 - ], - [ - "extra", - 1, - 318 - ], - [ - "extra", - 2, - 6174 - ] - ], - "next": null - }, - "build large_orders order_report||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select order_report large_orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1542, - 706, - 1543, - 708, - 1544, - 710, - 1545, - 963, - 0, - 1281, - 965, - 0, - 966, - 967, - 3, - 968, - 969, - 4, - 970, - 971, - 5, - 972, - 973, - 6, - 974, - 975, - 7, - 976, - 977, - 8, - 978, - 979, - 9, - 1546, - 981, - 10, - 1285, - 983, - 11, - 984, - 985, - 12, - 986, - 987, - 13, - 988, - 989, - 14, - 990, - 991, - 15, - 1287, - 993, - 16, - 1288, - 995, - 17, - 996, - 997, - 18, - 998, - 999, - 19, - 1000, - 1001, - 20, - 1002, - 1003, - 21, - 1004, - 1005, - 22, - 1452, - 1007, - 23, - 1404, - 1009, - 1547, - 1485, - 1012, - 1407, - 1014, - 784, - 1291, - 1016, - 1548, - 1293, - 1019, - 1020, - 1021, - 804, - 1022, - 1549, - 1550, - 1551, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1552, - 1027 - ], - "creates": [ - { - "name": "extra", - "offset": -587 - } - ], - "times": [ - [ - "extra", - 0, - 369 - ], - [ - "extra", - 1, - 308 - ], - [ - "extra", - 2, - 5890 - ] - ], - "next": null - }, - "build large_orders order_report||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1553, - 706, - 1554, - 708, - 1555, - 710, - 1556, - 712, - 814, - 714, - 815, - 716, - 851, - 718, - 816, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 852, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 739, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 825, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 765, - 766, - 1557, - 768, - 769, - 770, - 892, - 829, - 779, - 893, - 831, - 773, - 916, - 833, - 776, - 834, - 781, - 859, - 783, - 784, - 1558, - 786, - 1559, - 897, - 789, - 790, - 1560, - 792, - 1561, - 862, - 1440, - 1052, - 865, - 866, - 1379, - 868, - 869, - 870, - 1562, - 872, - 1563, - 874, - 804, - 1441, - 1564, - 1565, - 1566, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1567, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -281 - } - ], - "times": [ - [ - "extra", - 0, - 477 - ], - [ - "extra", - 1, - 421 - ], - [ - "extra", - 2, - 6254 - ] - ], - "next": null - }, - "build large_orders order_report pipeline:pl__orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1568, - 706, - 1569, - 708, - 1570, - 710, - 850, - 963, - 0, - 964, - 965, - 0, - 966, - 967, - 3, - 968, - 969, - 4, - 970, - 971, - 5, - 972, - 973, - 6, - 974, - 975, - 7, - 976, - 977, - 8, - 978, - 979, - 9, - 980, - 981, - 10, - 1285, - 983, - 11, - 1571, - 985, - 12, - 1450, - 987, - 13, - 988, - 989, - 14, - 990, - 991, - 15, - 1287, - 993, - 16, - 994, - 995, - 17, - 996, - 997, - 18, - 998, - 999, - 19, - 1403, - 1001, - 20, - 1002, - 1003, - 21, - 1004, - 1005, - 22, - 1006, - 1007, - 23, - 1521, - 1009, - 1572, - 1406, - 1012, - 1013, - 1014, - 784, - 1486, - 1016, - 1573, - 1574, - 1019, - 1020, - 1021, - 804, - 1575, - 1576, - 1577, - 1578, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1579, - 1027 - ], - "creates": [ - { - "name": "extra", - "offset": -247 - } - ], - "times": [ - [ - "extra", - 0, - 415 - ], - [ - "extra", - 1, - 334 - ], - [ - "extra", - 2, - 5885 - ] - ], - "next": null - }, - "build large_orders order_report pipeline:pl__orders||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1580, - 706, - 1581, - 708, - 1582, - 710, - 1061, - 712, - 814, - 714, - 885, - 716, - 851, - 718, - 1333, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 852, - 728, - 5, - 1583, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 823, - 740, - 11, - 741, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 1584, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 827, - 766, - 1585, - 953, - 769, - 770, - 954, - 829, - 779, - 893, - 831, - 773, - 1198, - 833, - 776, - 1436, - 781, - 895, - 783, - 784, - 1586, - 786, - 1587, - 1588, - 789, - 790, - 1589, - 792, - 1590, - 862, - 1440, - 1378, - 865, - 866, - 1591, - 868, - 920, - 870, - 1236, - 872, - 1273, - 874, - 804, - 1238, - 1592, - 1593, - 1594, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1595, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": 14 - } - ], - "times": [ - [ - "extra", - 0, - 463 - ], - [ - "extra", - 1, - 400 - ], - [ - "extra", - 2, - 6287 - ] - ], - "next": null - }, - "rollback v2": { - "role": "rollback", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:rollback.0}}", - "deploymentId": "{{d:v2}}", - "publishedViews": [ - { - "logicalName": "tbl__large_orders", - "physicalName": "tbl__large_orders__{{d:v2}}" - }, - { - "logicalName": "tbl__order_report", - "physicalName": "tbl__order_report__{{d:v2}}" - } - ], - "graphAtomicPublish": false, - "previousDeploymentId": "{{d:built}}" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1596, - 1597, - 1598, - 237, - 238, - 1599, - 1600, - 123, - 239, - 1601, - 1602, - 0, - 1603, - 1604, - 3, - 1605, - 1606, - 4, - 1607, - 1608, - 5, - 1609, - 1610, - 6, - 1611, - 1612, - 7, - 1613, - 1614, - 8, - 1615, - 1616, - 9, - 1617, - 1618, - 10, - 1619, - 1620, - 11, - 1621, - 1622, - 12, - 1623, - 1624, - 13, - 1625, - 1626, - 14, - 1627, - 1628, - 15, - 1629, - 1630, - 16, - 1631, - 1632, - 17, - 1633, - 1634, - 18, - 1635, - 1636, - 19, - 1637, - 1638, - 20, - 1639, - 1640, - 21, - 1641, - 1642, - 22, - 1643, - 1644, - 23, - 1645, - 1646, - 1647, - 1648, - 1649, - 1650, - 1651, - 119, - 1652, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1653 - ], - "creates": [], - "times": [ - [ - "rollback", - 0, - 309 - ], - [ - "rollback", - 1, - 147 - ], - [ - "rollback", - 2, - 561 - ] - ], - "next": "rolled-back/large_orders+order_report" - }, - "rollback v1": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.0}}", - "deploymentId": "{{d:v1}}", - "publishedViews": [ - { - "logicalName": "tbl__order_report", - "physicalName": "tbl__order_report__{{d:v1}}" - } - ], - "graphAtomicPublish": false, - "previousDeploymentId": "{{d:built}}" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 648, - 649, - 650, - 123, - 124, - 651, - 652, - 0, - 1165, - 654, - 3, - 655, - 656, - 4, - 657, - 658, - 5, - 659, - 660, - 6, - 661, - 662, - 7, - 663, - 664, - 8, - 665, - 666, - 9, - 667, - 668, - 10, - 1168, - 670, - 11, - 671, - 672, - 12, - 1387, - 674, - 13, - 675, - 676, - 14, - 1654, - 678, - 15, - 1169, - 680, - 16, - 681, - 682, - 17, - 1655, - 684, - 18, - 1656, - 686, - 19, - 1657, - 688, - 20, - 1658, - 690, - 21, - 691, - 692, - 22, - 693, - 694, - 23, - 695, - 696, - 1659, - 1660, - 1661, - 1662, - 1663, - 119, - 702, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1664 - ], - "creates": [], - "times": [ - [ - "extra", - 0, - 282 - ], - [ - "extra", - 1, - 119 - ], - [ - "extra", - 2, - 543 - ] - ], - "next": null - } - } - }, - "rolled-back/large_orders+order_report": { - "plans": { - "|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 24, - "planningMs": 80, - "replayCountsMs": 0, - "totalMs": 105 - } - }, - "creates": [ - { - "name": "planned", - "offset": -737 - } - ], - "times": [ - [ - "plan", - 0, - 27 - ] - ] - }, - "|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 17, - "planningMs": 73, - "replayCountsMs": 0, - "totalMs": 90 - } - }, - "creates": [ - { - "name": "planned", - "offset": -845 - } - ], - "times": [ - [ - "plan", - 0, - 20 - ] - ] - }, - "|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream requires --changed or --select" - }, - "creates": [], - "times": [] - }, - "|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream requires --changed or --select" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 21, - "planningMs": 49, - "replayCountsMs": 0, - "totalMs": 71 - } - }, - "creates": [ - { - "name": "planned", - "offset": 26 - } - ], - "times": [ - [ - "plan", - 0, - 23 - ] - ] - }, - "pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 45, - "replayCountsMs": 0, - "totalMs": 58 - } - }, - "creates": [ - { - "name": "planned", - "offset": -47 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 16, - "planningMs": 57, - "replayCountsMs": 0, - "totalMs": 73 - } - }, - "creates": [ - { - "name": "planned", - "offset": -108 - } - ], - "times": [ - [ - "plan", - 0, - 18 - ] - ] - }, - "pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 20, - "planningMs": 66, - "replayCountsMs": 0, - "totalMs": 86 - } - }, - "creates": [ - { - "name": "planned", - "offset": -281 - } - ], - "times": [ - [ - "plan", - 0, - 26 - ] - ] - }, - "pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 51, - "replayCountsMs": 0, - "totalMs": 65 - } - }, - "creates": [ - { - "name": "planned", - "offset": -481 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "order_report|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 65, - "replayCountsMs": 0, - "totalMs": 79 - } - }, - "creates": [ - { - "name": "planned", - "offset": -549 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "order_report||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 15, - "planningMs": 53, - "replayCountsMs": 0, - "totalMs": 69 - } - }, - "creates": [ - { - "name": "planned", - "offset": -631 - } - ], - "times": [ - [ - "plan", - 0, - 18 - ] - ] - }, - "order_report||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 54, - "replayCountsMs": 0, - "totalMs": 67 - } - }, - "creates": [ - { - "name": "planned", - "offset": -770 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "order_report|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 15, - "planningMs": 45, - "replayCountsMs": 0, - "totalMs": 61 - } - }, - "creates": [ - { - "name": "planned", - "offset": -931 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "order_report pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 17, - "planningMs": 51, - "replayCountsMs": 0, - "totalMs": 68 - } - }, - "creates": [ - { - "name": "planned", - "offset": 6 - } - ], - "times": [ - [ - "plan", - 0, - 19 - ] - ] - }, - "order_report pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 18, - "planningMs": 53, - "replayCountsMs": 0, - "totalMs": 71 - } - }, - "creates": [ - { - "name": "planned", - "offset": -65 - } - ], - "times": [ - [ - "plan", - 0, - 20 - ] - ] - }, - "order_report pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 12, - "planningMs": 46, - "replayCountsMs": 0, - "totalMs": 59 - } - }, - "creates": [ - { - "name": "planned", - "offset": -218 - } - ], - "times": [ - [ - "plan", - 0, - 14 - ] - ] - }, - "order_report pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "order_report pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 18, - "planningMs": 45, - "replayCountsMs": 0, - "totalMs": 64 - } - }, - "creates": [ - { - "name": "planned", - "offset": -374 - } - ], - "times": [ - [ - "plan", - 0, - 20 - ] - ] - }, - "large_orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [], - "contextModelNames": [], - "relationNames": [], - "actions": [], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 17, - "planningMs": 47, - "replayCountsMs": 0, - "totalMs": 64 - } - }, - "creates": [ - { - "name": "planned", - "offset": -439 - } - ], - "times": [ - [ - "plan", - 0, - 19 - ] - ] - }, - "large_orders||from|": { - "status": 400, - "body": { - "detail": "Population root 'tbl__order_report' has no feeding view" - }, - "creates": [], - "times": [] - }, - "large_orders||from|counts": { - "status": 400, - "body": { - "detail": "Population root 'tbl__order_report' has no feeding view" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 16, - "planningMs": 54, - "replayCountsMs": 0, - "totalMs": 71 - } - }, - "creates": [ - { - "name": "planned", - "offset": -800 - } - ], - "times": [ - [ - "plan", - 0, - 18 - ] - ] - }, - "large_orders pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 54, - "replayCountsMs": 0, - "totalMs": 68 - } - }, - "creates": [ - { - "name": "planned", - "offset": -873 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "large_orders pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 15, - "planningMs": 54, - "replayCountsMs": 0, - "totalMs": 70 - } - }, - "creates": [ - { - "name": "planned", - "offset": -944 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "large_orders pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 52, - "replayCountsMs": 0, - "totalMs": 67 - } - }, - "creates": [ - { - "name": "planned", - "offset": -87 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "large_orders pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 61, - "replayCountsMs": 0, - "totalMs": 76 - } - }, - "creates": [ - { - "name": "planned", - "offset": -289 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "large_orders order_report|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 28, - "planningMs": 61, - "replayCountsMs": 0, - "totalMs": 89 - } - }, - "creates": [ - { - "name": "planned", - "offset": -369 - } - ], - "times": [ - [ - "plan", - 0, - 31 - ] - ] - }, - "large_orders order_report||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 60, - "replayCountsMs": 0, - "totalMs": 75 - } - }, - "creates": [ - { - "name": "planned", - "offset": -461 - } - ], - "times": [ - [ - "plan", - 0, - 16 - ] - ] - }, - "large_orders order_report||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 15, - "planningMs": 54, - "replayCountsMs": 0, - "totalMs": 69 - } - }, - "creates": [ - { - "name": "planned", - "offset": -616 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "large_orders order_report|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|||": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 50, - "replayCountsMs": 0, - "totalMs": 63 - } - }, - "creates": [ - { - "name": "planned", - "offset": -777 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "large_orders order_report pipeline:pl__orders|||counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "full" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": null - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 14, - "planningMs": 50, - "replayCountsMs": 0, - "totalMs": 64 - } - }, - "creates": [ - { - "name": "planned", - "offset": -843 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "large_orders order_report pipeline:pl__orders||from|": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 15, - "planningMs": 50, - "replayCountsMs": 0, - "totalMs": 65 - } - }, - "creates": [ - { - "name": "planned", - "offset": -909 - } - ], - "times": [ - [ - "plan", - 0, - 17 - ] - ] - }, - "large_orders order_report pipeline:pl__orders||from|counts": { - "status": 200, - "body": { - "database": "sqltide_playground", - "userScope": [ - "pipeline:pl__orders", - "order_report", - "large_orders" - ], - "entries": [], - "prerequisites": [], - "teardown": [], - "creation": [], - "replayRoots": [], - "warnings": [], - "sourceRecreations": [], - "protections": [], - "replayWindow": { - "mode": "from", - "startTime": "{{s:s3}}" - }, - "plannedAt": "{{t:plan:0:s3}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:planned}}", - "mode": "virtual", - "executionOrder": [ - "virtual" - ], - "phases": [ - { - "mode": "virtual", - "effect": "staged", - "deploymentId": "{{d:planned}}", - "modelNames": [ - "order_report", - "large_orders" - ], - "contextModelNames": [ - "orders" - ], - "relationNames": [ - "tbl__order_report__{{d:planned}}", - "mv__order_report__{{d:planned}}", - "tbl__large_orders__{{d:planned}}", - "mv__large_orders__{{d:planned}}" - ], - "actions": [ - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "order_report", - "physicalName": "mv__order_report__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_table", - "logicalName": "large_orders", - "physicalName": "tbl__large_orders__{{d:planned}}" - }, - { - "phase": "plan", - "action": "plan_shadow_materialized_view", - "logicalName": "large_orders", - "physicalName": "mv__large_orders__{{d:planned}}" - }, - { - "phase": "backfill", - "action": "backfill_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "audit", - "action": "audit_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - }, - { - "phase": "publish", - "action": "publish_subtree", - "logicalName": "order_report", - "physicalName": "tbl__order_report__{{d:planned}}" - } - ], - "startTime": "{{s:s3}}" - } - ], - "deploymentId": "{{d:planned}}", - "upperBoundary": { - "mode": "captured_at_execution", - "continuesLive": true - }, - "timings": { - "connectionWaitMs": 13, - "planningMs": 49, - "replayCountsMs": 0, - "totalMs": 62 - } - }, - "creates": [ - { - "name": "planned", - "offset": -46 - } - ], - "times": [ - [ - "plan", - 0, - 15 - ] - ] - }, - "large_orders order_report pipeline:pl__orders|upstream||": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|upstream||counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|upstream|from|": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "large_orders order_report pipeline:pl__orders|upstream|from|counts": { - "status": 400, - "body": { - "detail": "--include-missing-upstream is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "changed|||": { - "status": 400, - "body": { - "detail": "--changed is only supported for direct models" - }, - "creates": [], - "times": [] - }, - "changed|||counts": { - "status": 400, - "body": { - "detail": "--changed is only supported for direct models" - }, - "creates": [], - "times": [] - } - }, - "actions": { - "build ||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1665, - 706, - 1666, - 708, - 1582, - 710, - 850, - 712, - 1245, - 714, - 1246, - 716, - 1667, - 718, - 1097, - 720, - 0, - 932, - 722, - 0, - 1031, - 724, - 3, - 725, - 726, - 4, - 727, - 728, - 5, - 818, - 730, - 6, - 908, - 732, - 7, - 733, - 734, - 8, - 821, - 736, - 9, - 1180, - 738, - 10, - 823, - 740, - 11, - 741, - 742, - 12, - 1668, - 744, - 13, - 933, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 1497, - 766, - 1669, - 1670, - 769, - 770, - 1671, - 772, - 773, - 1672, - 775, - 776, - 777, - 778, - 779, - 780, - 781, - 895, - 783, - 784, - 836, - 786, - 1673, - 1471, - 789, - 790, - 1674, - 792, - 861, - 794, - 795, - 942, - 797, - 1339, - 799, - 800, - 801, - 802, - 803, - 804, - 1675, - 1676, - 1677, - 1678, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1567, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": -539 - } - ], - "times": [ - [ - "extra", - 0, - 419 - ], - [ - "extra", - 1, - 348 - ], - [ - "extra", - 2, - 6180 - ] - ], - "next": null - }, - "build pipeline:pl__orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1679, - 706, - 1680, - 708, - 1681, - 710, - 1265, - 712, - 814, - 714, - 715, - 716, - 1062, - 718, - 816, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 852, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 739, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 1033, - 756, - 19, - 1034, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 765, - 766, - 1682, - 768, - 769, - 770, - 1351, - 829, - 779, - 893, - 831, - 773, - 937, - 833, - 776, - 834, - 781, - 859, - 783, - 784, - 1437, - 786, - 1683, - 1684, - 789, - 790, - 1560, - 792, - 1201, - 794, - 795, - 1685, - 797, - 1686, - 799, - 1687, - 801, - 1688, - 803, - 804, - 1341, - 1689, - 1690, - 1691, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1692, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": -642 - } - ], - "times": [ - [ - "extra", - 0, - 399 - ], - [ - "extra", - 1, - 335 - ], - [ - "extra", - 2, - 6232 - ] - ], - "next": null - }, - "build pipeline:pl__orders||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1693, - 706, - 1694, - 708, - 1555, - 710, - 1695, - 712, - 1696, - 714, - 815, - 716, - 717, - 718, - 816, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 727, - 728, - 5, - 818, - 730, - 6, - 908, - 732, - 7, - 733, - 734, - 8, - 821, - 736, - 9, - 737, - 738, - 10, - 823, - 740, - 11, - 741, - 742, - 12, - 886, - 744, - 13, - 933, - 746, - 14, - 887, - 748, - 15, - 825, - 750, - 16, - 751, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 1034, - 758, - 20, - 888, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 1063, - 766, - 1697, - 768, - 769, - 770, - 771, - 829, - 779, - 1698, - 831, - 773, - 916, - 833, - 776, - 1699, - 781, - 782, - 783, - 784, - 785, - 786, - 1700, - 956, - 789, - 790, - 1674, - 792, - 840, - 862, - 863, - 1234, - 865, - 866, - 1701, - 868, - 1078, - 870, - 871, - 872, - 873, - 874, - 804, - 1702, - 1703, - 1704, - 1705, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1706, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -476 - } - ], - "times": [ - [ - "extra", - 0, - 365 - ], - [ - "extra", - 1, - 308 - ], - [ - "extra", - 2, - 6198 - ] - ], - "next": null - }, - "build order_report||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select order_report --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1707, - 706, - 1708, - 708, - 1582, - 710, - 1265, - 712, - 1431, - 714, - 715, - 716, - 930, - 718, - 1097, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 852, - 728, - 5, - 729, - 730, - 6, - 819, - 732, - 7, - 733, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 739, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 887, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 753, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 890, - 764, - 23, - 765, - 766, - 1709, - 768, - 769, - 770, - 1036, - 829, - 779, - 1197, - 831, - 773, - 832, - 833, - 776, - 858, - 781, - 895, - 783, - 784, - 1437, - 786, - 1710, - 1471, - 789, - 790, - 1213, - 792, - 1224, - 794, - 795, - 942, - 797, - 900, - 799, - 1188, - 801, - 1711, - 803, - 804, - 805, - 1712, - 1713, - 1714, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 809, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": 49 - } - ], - "times": [ - [ - "extra", - 0, - 455 - ], - [ - "extra", - 1, - 393 - ], - [ - "extra", - 2, - 6120 - ] - ], - "next": null - }, - "build order_report||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1715, - 706, - 1716, - 708, - 1717, - 710, - 1545, - 712, - 1718, - 714, - 1719, - 716, - 717, - 718, - 719, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 852, - 728, - 5, - 818, - 730, - 6, - 908, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 737, - 738, - 10, - 823, - 740, - 11, - 741, - 742, - 12, - 743, - 744, - 13, - 933, - 746, - 14, - 1317, - 748, - 15, - 825, - 750, - 16, - 751, - 752, - 17, - 753, - 754, - 18, - 1033, - 756, - 19, - 1034, - 758, - 20, - 888, - 760, - 21, - 1720, - 762, - 22, - 855, - 764, - 23, - 765, - 766, - 1721, - 953, - 769, - 770, - 1036, - 829, - 779, - 893, - 831, - 773, - 937, - 833, - 776, - 834, - 781, - 895, - 783, - 784, - 1365, - 786, - 1722, - 941, - 789, - 790, - 1377, - 792, - 1066, - 862, - 863, - 1214, - 865, - 866, - 1723, - 868, - 1078, - 870, - 871, - 872, - 1273, - 874, - 804, - 1054, - 1724, - 1725, - 1726, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1727, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -527 - } - ], - "times": [ - [ - "extra", - 0, - 388 - ], - [ - "extra", - 1, - 333 - ], - [ - "extra", - 2, - 6228 - ] - ], - "next": null - }, - "build order_report pipeline:pl__orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders order_report --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1728, - 706, - 1729, - 708, - 1095, - 710, - 850, - 712, - 713, - 714, - 815, - 716, - 1195, - 718, - 1730, - 720, - 0, - 932, - 722, - 0, - 1031, - 724, - 3, - 725, - 726, - 4, - 1250, - 728, - 5, - 729, - 730, - 6, - 908, - 732, - 7, - 733, - 734, - 8, - 821, - 736, - 9, - 737, - 738, - 10, - 823, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 1034, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 827, - 766, - 1731, - 1306, - 769, - 770, - 1036, - 829, - 779, - 1197, - 831, - 773, - 937, - 833, - 776, - 1732, - 781, - 782, - 783, - 784, - 836, - 786, - 1733, - 941, - 789, - 790, - 1674, - 792, - 1561, - 794, - 795, - 899, - 797, - 798, - 799, - 1188, - 801, - 802, - 803, - 804, - 1041, - 1734, - 1735, - 1736, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1737, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": -713 - } - ], - "times": [ - [ - "extra", - 0, - 368 - ], - [ - "extra", - 1, - 308 - ], - [ - "extra", - 2, - 6109 - ] - ], - "next": null - }, - "build order_report pipeline:pl__orders||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1738, - 706, - 1739, - 708, - 709, - 710, - 1695, - 712, - 814, - 714, - 715, - 716, - 717, - 718, - 719, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 1304, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 823, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 1317, - 748, - 15, - 825, - 750, - 16, - 1049, - 752, - 17, - 753, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 765, - 766, - 1740, - 768, - 769, - 770, - 1036, - 829, - 779, - 893, - 831, - 773, - 937, - 833, - 776, - 858, - 781, - 895, - 783, - 784, - 1211, - 786, - 1741, - 956, - 789, - 790, - 1535, - 792, - 1066, - 862, - 863, - 1052, - 865, - 866, - 1742, - 868, - 920, - 870, - 1562, - 872, - 873, - 874, - 804, - 1743, - 1744, - 1745, - 1746, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1747, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -851 - } - ], - "times": [ - [ - "extra", - 0, - 372 - ], - [ - "extra", - 1, - 297 - ], - [ - "extra", - 2, - 6077 - ] - ], - "next": null - }, - "build large_orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select large_orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1748, - 706, - 1749, - 708, - 929, - 710, - 711, - 963, - 0, - 964, - 965, - 0, - 966, - 967, - 3, - 968, - 969, - 4, - 1283, - 971, - 5, - 1399, - 973, - 6, - 1400, - 975, - 7, - 1750, - 977, - 8, - 1284, - 979, - 9, - 1751, - 981, - 10, - 1285, - 983, - 11, - 984, - 985, - 12, - 986, - 987, - 13, - 988, - 989, - 14, - 990, - 991, - 15, - 1287, - 993, - 16, - 994, - 995, - 17, - 996, - 997, - 18, - 998, - 999, - 19, - 1000, - 1001, - 20, - 1002, - 1003, - 21, - 1004, - 1005, - 22, - 1006, - 1007, - 23, - 1404, - 1009, - 1752, - 1011, - 1012, - 1407, - 1014, - 784, - 1753, - 1016, - 1754, - 1574, - 1019, - 1755, - 1021, - 804, - 1295, - 1756, - 1757, - 1758, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1759, - 1027 - ], - "creates": [ - { - "name": "extra", - "offset": -109 - } - ], - "times": [ - [ - "extra", - 0, - 365 - ], - [ - "extra", - 1, - 301 - ], - [ - "extra", - 2, - 5866 - ] - ], - "next": null - }, - "build large_orders pipeline:pl__orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1760, - 706, - 1761, - 708, - 951, - 710, - 1265, - 712, - 713, - 714, - 815, - 716, - 1466, - 718, - 1333, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 1349, - 728, - 5, - 729, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 822, - 738, - 10, - 823, - 740, - 11, - 824, - 742, - 12, - 1668, - 744, - 13, - 745, - 746, - 14, - 1362, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 855, - 764, - 23, - 1497, - 766, - 1762, - 1306, - 769, - 770, - 954, - 829, - 779, - 893, - 831, - 773, - 894, - 833, - 776, - 834, - 781, - 859, - 783, - 784, - 836, - 786, - 1763, - 838, - 789, - 790, - 1764, - 792, - 1066, - 794, - 795, - 1765, - 797, - 798, - 799, - 1188, - 801, - 1309, - 803, - 804, - 1310, - 1766, - 1767, - 1768, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1769, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": -118 - } - ], - "times": [ - [ - "extra", - 0, - 497 - ], - [ - "extra", - 1, - 412 - ], - [ - "extra", - 2, - 6265 - ] - ], - "next": null - }, - "build large_orders pipeline:pl__orders||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1770, - 706, - 1771, - 708, - 1582, - 710, - 711, - 712, - 1245, - 714, - 1073, - 716, - 1195, - 718, - 1333, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 1304, - 728, - 5, - 818, - 730, - 6, - 908, - 732, - 7, - 733, - 734, - 8, - 735, - 736, - 9, - 1253, - 738, - 10, - 823, - 740, - 11, - 741, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 747, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 1063, - 766, - 1772, - 768, - 769, - 770, - 936, - 829, - 779, - 893, - 831, - 773, - 937, - 833, - 776, - 834, - 781, - 1773, - 783, - 784, - 836, - 786, - 1774, - 941, - 789, - 790, - 1764, - 792, - 1590, - 862, - 863, - 1378, - 865, - 866, - 1272, - 868, - 869, - 870, - 1381, - 872, - 1563, - 874, - 804, - 1353, - 1775, - 1776, - 1777, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1778, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -509 - } - ], - "times": [ - [ - "extra", - 0, - 424 - ], - [ - "extra", - 1, - 357 - ], - [ - "extra", - 2, - 6215 - ] - ], - "next": null - }, - "build large_orders order_report||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select order_report large_orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1779, - 706, - 1780, - 708, - 1095, - 710, - 850, - 712, - 814, - 714, - 715, - 716, - 717, - 718, - 719, - 720, - 0, - 721, - 722, - 0, - 1031, - 724, - 3, - 817, - 726, - 4, - 727, - 728, - 5, - 818, - 730, - 6, - 908, - 732, - 7, - 1781, - 734, - 8, - 821, - 736, - 9, - 737, - 738, - 10, - 823, - 740, - 11, - 824, - 742, - 12, - 886, - 744, - 13, - 933, - 746, - 14, - 1317, - 748, - 15, - 749, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 890, - 764, - 23, - 827, - 766, - 1782, - 953, - 769, - 770, - 954, - 829, - 779, - 1197, - 831, - 773, - 832, - 833, - 776, - 858, - 781, - 782, - 783, - 784, - 785, - 786, - 1783, - 1223, - 789, - 790, - 1784, - 792, - 840, - 794, - 795, - 841, - 797, - 900, - 799, - 1188, - 801, - 802, - 803, - 804, - 1041, - 1785, - 1786, - 1787, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1788, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": 54 - } - ], - "times": [ - [ - "extra", - 0, - 392 - ], - [ - "extra", - 1, - 332 - ], - [ - "extra", - 2, - 6042 - ] - ], - "next": null - }, - "build large_orders order_report||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1789, - 706, - 1790, - 708, - 1264, - 710, - 711, - 712, - 713, - 714, - 715, - 716, - 1247, - 718, - 719, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 1250, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 820, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 739, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 887, - 748, - 15, - 825, - 750, - 16, - 1049, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 757, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 890, - 764, - 23, - 827, - 766, - 1791, - 768, - 769, - 770, - 771, - 829, - 779, - 893, - 831, - 773, - 832, - 833, - 776, - 858, - 781, - 835, - 783, - 784, - 1437, - 786, - 1792, - 788, - 789, - 790, - 1337, - 792, - 840, - 862, - 863, - 1378, - 865, - 866, - 1053, - 868, - 1078, - 870, - 871, - 872, - 1793, - 874, - 804, - 1274, - 1794, - 1795, - 1796, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1445, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -62 - } - ], - "times": [ - [ - "extra", - 0, - 419 - ], - [ - "extra", - 1, - 324 - ], - [ - "extra", - 2, - 6119 - ] - ], - "next": null - }, - "build large_orders order_report pipeline:pl__orders||": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1797, - 706, - 1798, - 708, - 1302, - 710, - 1265, - 712, - 1096, - 714, - 815, - 716, - 717, - 718, - 719, - 720, - 0, - 721, - 722, - 0, - 723, - 724, - 3, - 817, - 726, - 4, - 852, - 728, - 5, - 818, - 730, - 6, - 819, - 732, - 7, - 733, - 734, - 8, - 735, - 736, - 9, - 853, - 738, - 10, - 739, - 740, - 11, - 824, - 742, - 12, - 743, - 744, - 13, - 745, - 746, - 14, - 887, - 748, - 15, - 825, - 750, - 16, - 1799, - 752, - 17, - 826, - 754, - 18, - 755, - 756, - 19, - 911, - 758, - 20, - 759, - 760, - 21, - 761, - 762, - 22, - 763, - 764, - 23, - 765, - 766, - 1800, - 768, - 769, - 770, - 771, - 829, - 779, - 830, - 831, - 773, - 937, - 833, - 776, - 834, - 781, - 859, - 783, - 784, - 785, - 786, - 1801, - 956, - 789, - 790, - 1439, - 792, - 793, - 794, - 795, - 841, - 797, - 900, - 799, - 1188, - 801, - 802, - 803, - 804, - 1041, - 1802, - 1803, - 1804, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1805, - 810 - ], - "creates": [ - { - "name": "extra", - "offset": -394 - } - ], - "times": [ - [ - "extra", - 0, - 416 - ], - [ - "extra", - 1, - 353 - ], - [ - "extra", - 2, - 6118 - ] - ], - "next": null - }, - "build large_orders order_report pipeline:pl__orders||from": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.1}}", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}", - "status": "starting" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 704, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1806, - 706, - 1807, - 708, - 1808, - 710, - 1518, - 712, - 1809, - 714, - 1810, - 716, - 1811, - 718, - 816, - 720, - 0, - 932, - 722, - 0, - 1812, - 724, - 3, - 725, - 726, - 4, - 727, - 728, - 5, - 1813, - 730, - 6, - 908, - 732, - 7, - 1781, - 734, - 8, - 821, - 736, - 9, - 737, - 738, - 10, - 823, - 740, - 11, - 741, - 742, - 12, - 886, - 744, - 13, - 933, - 746, - 14, - 887, - 748, - 15, - 1814, - 750, - 16, - 751, - 752, - 17, - 753, - 754, - 18, - 1033, - 756, - 19, - 1034, - 758, - 20, - 888, - 760, - 21, - 889, - 762, - 22, - 855, - 764, - 23, - 1497, - 766, - 1815, - 768, - 769, - 770, - 936, - 829, - 779, - 830, - 831, - 773, - 894, - 833, - 776, - 1699, - 781, - 895, - 783, - 784, - 785, - 786, - 1816, - 838, - 789, - 790, - 1213, - 792, - 1338, - 862, - 863, - 1052, - 865, - 866, - 867, - 868, - 1078, - 870, - 871, - 872, - 1563, - 874, - 804, - 1322, - 1817, - 1818, - 1819, - 119, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1820, - 880 - ], - "creates": [ - { - "name": "extra", - "offset": -632 - } - ], - "times": [ - [ - "extra", - 0, - 460 - ], - [ - "extra", - 1, - 391 - ], - [ - "extra", - 2, - 6505 - ] - ], - "next": null - }, - "rollback built": { - "role": "rollforward", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:rollforward.0}}", - "deploymentId": "{{d:built}}", - "publishedViews": [ - { - "logicalName": "tbl__large_orders", - "physicalName": "tbl__large_orders__{{d:built}}" - }, - { - "logicalName": "tbl__order_report", - "physicalName": "tbl__order_report__{{d:built}}" - } - ], - "graphAtomicPublish": false, - "previousDeploymentId": "{{d:v2}}" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1821, - 1822, - 1823, - 237, - 1108, - 1824, - 1825, - 123, - 1111, - 1826, - 1827, - 0, - 1828, - 1829, - 3, - 1830, - 1831, - 4, - 1832, - 1833, - 5, - 1834, - 1835, - 6, - 1836, - 1837, - 7, - 1838, - 1839, - 8, - 1840, - 1841, - 9, - 1842, - 1843, - 10, - 1844, - 1845, - 11, - 1846, - 1847, - 12, - 1848, - 1849, - 13, - 1850, - 1851, - 14, - 1852, - 1853, - 15, - 1854, - 1855, - 16, - 1856, - 1857, - 17, - 1858, - 1859, - 18, - 1860, - 1861, - 19, - 1862, - 1863, - 20, - 1864, - 1865, - 21, - 1866, - 1867, - 22, - 1868, - 1869, - 23, - 1870, - 1871, - 1872, - 1873, - 1874, - 1875, - 1876, - 119, - 1877, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 1878 - ], - "creates": [], - "times": [ - [ - "rollforward", - 0, - 254 - ], - [ - "rollforward", - 1, - 120 - ], - [ - "rollforward", - 2, - 504 - ] - ], - "next": "promoted/large_orders+order_report" - }, - "rollback v1": { - "role": "extra", - "response": { - "status": 200, - "body": { - "invocationId": "{{u:extra.0}}", - "deploymentId": "{{d:v1}}", - "publishedViews": [ - { - "logicalName": "tbl__order_report", - "physicalName": "tbl__order_report__{{d:v1}}" - } - ], - "graphAtomicPublish": false, - "previousDeploymentId": "{{d:v2}}" - } - }, - "statements": [ - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 648, - 649, - 650, - 123, - 124, - 651, - 652, - 0, - 1165, - 654, - 3, - 655, - 656, - 4, - 657, - 658, - 5, - 659, - 660, - 6, - 661, - 662, - 7, - 663, - 664, - 8, - 665, - 666, - 9, - 667, - 668, - 10, - 1168, - 670, - 11, - 671, - 672, - 12, - 1387, - 674, - 13, - 675, - 676, - 14, - 677, - 678, - 15, - 1879, - 680, - 16, - 681, - 682, - 17, - 683, - 684, - 18, - 685, - 686, - 19, - 687, - 688, - 20, - 1880, - 690, - 21, - 691, - 692, - 22, - 1171, - 694, - 23, - 1172, - 696, - 1881, - 698, - 1882, - 1883, - 1884, - 119, - 702, - 0, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 703 - ], - "creates": [], - "times": [ - [ - "extra", - 0, - 271 - ], - [ - "extra", - 1, - 123 - ], - [ - "extra", - 2, - 496 - ] - ], - "next": null - } - } - } - }, - "statements": [ - "CREATE DATABASE IF NOT EXISTS sqltide_playground", - "CREATE TABLE sqltide_playground.playground_orders\n(\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64,\n _replay_timestamp DateTime64(3)\n)\nENGINE = MergeTree()\nORDER BY (_replay_partition, _replay_offset)", - "INSERT INTO sqltide_playground.playground_orders VALUES\n (1, 'completed', 2500, 0, 1, '2026-01-01 10:00:00'),\n (2, 'pending', 1800, 0, 2, '2026-01-01 10:01:00'),\n (3, 'completed', 4200, 0, 3, '2026-01-01 10:02:00')", - "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (version)", - "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name)", - "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, 'UTC'),\n created_at DateTime64(3, 'UTC'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id)", - "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, ''))", - "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT 'promote',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name)", - "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id)", - "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, 'UTC'),\n completed_at DateTime64(3, 'UTC'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id)", - "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, 'UTC')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, 'UTC'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id)", - "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence)", - "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence)", - "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, 'UTC'),\n position_result_id String,\n recorded_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id)", - "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, 'UTC'),\n completed_at Nullable(DateTime64(3, 'UTC')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id)", - "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at)", - "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id)", - "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, 'UTC'),\n expires_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id)", - "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY", - "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, 'UTC')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id)", - "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage)", - "DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources", - "ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT 'promote' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation", - "INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, 'UTC') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9)", - "INSERT INTO sqltide_playground._sqltide_manifests (manifest_id, invocation_id, project_identity, target_name, target_database, is_production, project_revision, manifest_fingerprint, manifest_version, pipelines, resources, tool_version, published_at) VALUES\n('{{u:publish1.0}}', '{{u:publish1.1}}', 'sqltide_playground', 'local', 'sqltide_playground', false, NULL, 'c450f3920b1ac9f6c65f3112eac97de32b3a373c1ac5a25c5f6da0e559923ecf', 1, ['pl__orders'], [('pl__orders', 'model', 'order_report', 'materialization', 'sqltide_playground', 'mv__order_report', 'materialized_view'), ('pl__orders', 'model', 'order_report', 'primary', 'sqltide_playground', 'tbl__order_report', 'table')], '{{v}}', toDateTime64('{{t:publish1:0:s6}}', 6, 'UTC'))", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"build\",\"executedLogicalIds\":[\"model:order_report\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":1,\"selectors\":[],\"startTime\":null,\"startupTimings\":{\"compileMs\":96,\"observabilityMs\":153,\"planningMs\":83,\"totalMs\":332},\"toolVersion\":\"{{v}}\",\"totalStatements\":40}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:publish1.2}}'", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:publish1.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{t:publish1:1:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'69234f7e598c33672e6c02bd8775f982aad0ab1407dfe00cf001005912da1fd0\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:v1}}\\';', '095268f1113da18e3a9d9d2f7f80940e6b960f3a61567b7df6f7bb1aafc9b584', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:v1}}\\';', 'd098e43eb92eb4034f10b4e4bc567f94e9aae3d05bb556361a2aa698dbd17716', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:v1}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:v1}}\\';', '03601d916d740fb3d099533cb1873bfc11f95b6d0e633bd38ff64b86bc6eff00', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:v1}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:v1}}\\';', 'c7c6046eb7c13983bb6389e6dafe1f05953698ba4d574ff8d89b3f956543e5a0', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 5, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 6, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 7, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 8, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 9, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 10, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 11, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 12, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 13, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 14, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 15, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 16, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 17, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 18, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 19, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 20, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 21, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 22, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 23, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 24, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 25, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 26, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 27, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 28, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:v1}}\\', \\'f758aa4cf330fd7d4cef3c31a7d588cbbcb1a9513708f2cb5f04b2ff393f3bb1\\', \\'deployment\\', \\'{{d:v1}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:v1}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\\', \\'{{t:publish1:1:s3}}\\'),\n(\\'{{d:v1}}\\', \\'ebc4c6bd262a4dd3f85f684f6325676d65063e7c4d05b769130349ae675cabc3\\', \\'deployment\\', \\'{{d:v1}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:v1}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{t:publish1:1:s3}}\\');', 'df29cf7566e119d5203211b2bf4629c4e6ac865db65b8f315495fd7149127c49', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 29, 'realize_tbl__order_report__{{d:v1}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:v1}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '0a0d21757c64133509eb8ba0841049fc0619058a5b6b9b5b7559878e01ba269a', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 30, 'realize_mv__order_report__{{d:v1}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:v1}}\nTO sqltide_playground.tbl__order_report__{{d:v1}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders;', '1ba3a097503291cf6a127e565d400a073bb3b9935bc65f9c47e51fddb0fa99d7', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 31, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 32, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:v1}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:v1}}\\' AND stage = \\'started\\');', 'c01933f18e89d1ac5a10d9bac9d1521c0adc05fa68228a9abdae1673097796cd', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 33, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:v1}}\\', \\'69234f7e598c33672e6c02bd8775f982aad0ab1407dfe00cf001005912da1fd0\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{t:publish1:1:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:v1}}\\');', 'f5802277c812608b5b1735aee9e19023de27e6f65d1fadc83f15b93e2fdae3fa', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 34, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:v1}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:v1}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:v1}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'ef5dd276a4c7114e599296d4b7fd9cdf30779dfc1ab5495280ab002725ac1253', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 35, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:v1}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '4753a4345db62e6567e3dcec8c035780c9655bdc62c5c2258654a8acd2c1578a', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 36, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:v1}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:v1}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source;', 'ee90216f658ae90e414049f41d7213bf3b8a98a4d1f8a165aa0d8b62d8975699', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 37, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:v1}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:v1}};', 'a1fe666307c9e9216614a9d59ba5ee1f4a0fb8470823ea77dd02d05b522430ef', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 38, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:v1}}\\';', '37dba0f357fc7e5fb144afe29207f6090cd6718a555f41919302dfe032cb4cc7', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 39, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:v1}}\\';', '2cd5d30291b8c3e2afe8fd2ec6d279a540e2f02a07fd4723b3bb5de586f88cc2', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1),\n('{{u:publish1.1}}', 40, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:v1}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:v1}}\\' AND stage = \\'completed\\');', 'd970381f74fcf75ad01289c6f19fdb719e507dd06ee550ff9ffd1a30dbf56f86', '8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 2, 'statement_started', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:publish1.3}}\",\"replayOffsetProgress\":null,\"statementSequence\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 4, 'statement_started', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:publish1.4}}\",\"replayOffsetProgress\":null,\"statementSequence\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 6, 'statement_started', 'assert_candidate_relation_tbl__order_report__{{d:v1}}', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:publish1.5}}\",\"replayOffsetProgress\":null,\"statementSequence\":3}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 7, 'statement_completed', 'assert_candidate_relation_tbl__order_report__{{d:v1}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":9,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":3,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 8, 'statement_started', 'assert_candidate_relation_mv__order_report__{{d:v1}}', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:publish1.6}}\",\"replayOffsetProgress\":null,\"statementSequence\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 9, 'statement_completed', 'assert_candidate_relation_mv__order_report__{{d:v1}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":4,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 10, 'statement_started', 'prepare_target_database', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.7}}\",\"replayOffsetProgress\":null,\"statementSequence\":5}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 11, 'statement_completed', 'prepare_target_database', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":5,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 12, 'statement_started', 'prepare_metadata_1', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.8}}\",\"replayOffsetProgress\":null,\"statementSequence\":6}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 13, 'statement_completed', 'prepare_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":6,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 14, 'statement_started', 'prepare_metadata_2', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.9}}\",\"replayOffsetProgress\":null,\"statementSequence\":7}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 15, 'statement_completed', 'prepare_metadata_2', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":7,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 16, 'statement_started', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.10}}\",\"replayOffsetProgress\":null,\"statementSequence\":8}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 17, 'statement_completed', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":8,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 18, 'statement_started', 'prepare_metadata_4', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.11}}\",\"replayOffsetProgress\":null,\"statementSequence\":9}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 19, 'statement_completed', 'prepare_metadata_4', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":9,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 20, 'statement_started', 'prepare_metadata_5', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.12}}\",\"replayOffsetProgress\":null,\"statementSequence\":10}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 21, 'statement_completed', 'prepare_metadata_5', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":10,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 22, 'statement_started', 'prepare_metadata_6', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.13}}\",\"replayOffsetProgress\":null,\"statementSequence\":11}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 23, 'statement_completed', 'prepare_metadata_6', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":11,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 24, 'statement_started', 'prepare_metadata_7', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.14}}\",\"replayOffsetProgress\":null,\"statementSequence\":12}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 25, 'statement_completed', 'prepare_metadata_7', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":12,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 26, 'statement_started', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.15}}\",\"replayOffsetProgress\":null,\"statementSequence\":13}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 27, 'statement_completed', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":13,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 28, 'statement_started', 'prepare_metadata_9', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.16}}\",\"replayOffsetProgress\":null,\"statementSequence\":14}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 29, 'statement_completed', 'prepare_metadata_9', 'preparation', '{\"displayName\":null,\"elapsedMs\":19,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":14,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 30, 'statement_started', 'prepare_metadata_10', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.17}}\",\"replayOffsetProgress\":null,\"statementSequence\":15}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 31, 'statement_completed', 'prepare_metadata_10', 'preparation', '{\"displayName\":null,\"elapsedMs\":9,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 32, 'statement_started', 'prepare_metadata_11', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.18}}\",\"replayOffsetProgress\":null,\"statementSequence\":16}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 33, 'statement_completed', 'prepare_metadata_11', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":16,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 34, 'statement_started', 'prepare_metadata_12', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.19}}\",\"replayOffsetProgress\":null,\"statementSequence\":17}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 35, 'statement_completed', 'prepare_metadata_12', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":17,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 36, 'statement_started', 'prepare_metadata_13', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.20}}\",\"replayOffsetProgress\":null,\"statementSequence\":18}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 37, 'statement_completed', 'prepare_metadata_13', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":18,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 38, 'statement_started', 'prepare_metadata_14', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.21}}\",\"replayOffsetProgress\":null,\"statementSequence\":19}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 39, 'statement_completed', 'prepare_metadata_14', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":19,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 40, 'statement_started', 'prepare_metadata_15', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.22}}\",\"replayOffsetProgress\":null,\"statementSequence\":20}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 41, 'statement_completed', 'prepare_metadata_15', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 42, 'statement_started', 'prepare_metadata_16', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.23}}\",\"replayOffsetProgress\":null,\"statementSequence\":21}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 43, 'statement_completed', 'prepare_metadata_16', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":21,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 44, 'statement_started', 'prepare_metadata_17', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.24}}\",\"replayOffsetProgress\":null,\"statementSequence\":22}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 45, 'statement_completed', 'prepare_metadata_17', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":22,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 46, 'statement_started', 'prepare_metadata_18', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.25}}\",\"replayOffsetProgress\":null,\"statementSequence\":23}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 47, 'statement_completed', 'prepare_metadata_18', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":23,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 48, 'statement_started', 'prepare_metadata_19', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.26}}\",\"replayOffsetProgress\":null,\"statementSequence\":24}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 49, 'statement_completed', 'prepare_metadata_19', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":24,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 50, 'statement_started', 'prepare_metadata_20', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.27}}\",\"replayOffsetProgress\":null,\"statementSequence\":25}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 51, 'statement_completed', 'prepare_metadata_20', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":25,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 52, 'statement_started', 'prepare_metadata_21', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.28}}\",\"replayOffsetProgress\":null,\"statementSequence\":26}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 53, 'statement_completed', 'prepare_metadata_21', 'preparation', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":26,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 54, 'statement_started', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.29}}\",\"replayOffsetProgress\":null,\"statementSequence\":27}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 55, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":27,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 56, 'statement_started', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.30}}\",\"replayOffsetProgress\":null,\"statementSequence\":28}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:v1}}', 'f758aa4cf330fd7d4cef3c31a7d588cbbcb1a9513708f2cb5f04b2ff393f3bb1', 'deployment', '{{d:v1}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:v1}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders', '{{t:publish1:1:s3}}'),\n('{{d:v1}}', 'ebc4c6bd262a4dd3f85f684f6325676d65063e7c4d05b769130349ae675cabc3', 'deployment', '{{d:v1}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:v1}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{t:publish1:1:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 57, 'statement_completed', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":28,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 58, 'statement_started', 'realize_tbl__order_report__{{d:v1}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.31}}\",\"replayOffsetProgress\":null,\"statementSequence\":29}')", - "CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:v1}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 59, 'statement_completed', 'realize_tbl__order_report__{{d:v1}}', 'realization', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":29,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 60, 'statement_started', 'realize_mv__order_report__{{d:v1}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.32}}\",\"replayOffsetProgress\":null,\"statementSequence\":30}')", - "CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:v1}}\nTO sqltide_playground.tbl__order_report__{{d:v1}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 61, 'statement_completed', 'realize_mv__order_report__{{d:v1}}', 'realization', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":30,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 62, 'statement_started', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"intent\":\"wait\",\"queryId\":\"{{u:publish1.33}}\",\"replayOffsetProgress\":null,\"statementSequence\":31}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 63, 'statement_completed', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"elapsedMs\":5007,\"errorMessage\":null,\"intent\":\"wait\",\"statementSequence\":31,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 64, 'statement_started', 'record_population_started', 'boundary', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.34}}\",\"replayOffsetProgress\":null,\"statementSequence\":32}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '{{d:v1}}', 'started', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '{{d:v1}}' AND stage = 'started')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 65, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":32,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 66, 'statement_started', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.35}}\",\"replayOffsetProgress\":null,\"statementSequence\":33}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:v1}}', '69234f7e598c33672e6c02bd8775f982aad0ab1407dfe00cf001005912da1fd0', 'offsets', now64(3, 'UTC'), toDateTime64('{{t:publish1:1:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:v1}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 67, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":33,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 68, 'statement_started', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.36}}\",\"replayOffsetProgress\":null,\"statementSequence\":34}')", - "INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT '{{d:v1}}', 'sqltide_playground', 'table', 'tbl__order_report', 'sqltide_playground', 'table', 'playground_orders', 'offsets', 'integer', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, 'UTC')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:v1}}')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = '{{d:v1}}' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 69, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":11,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":34,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 70, 'statement_started', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:publish1.37}}\",\"replayOffsetProgress\":null,\"statementSequence\":35}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 71, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":30,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":35,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 72, 'statement_started', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.38}}\",\"replayOffsetProgress\":null,\"statementSequence\":36}')", - "INSERT INTO sqltide_playground.tbl__order_report__{{d:v1}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = '{{d:v1}}' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 73, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":17,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":36,\"writtenRows\":3}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 74, 'statement_started', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"intent\":\"query\",\"queryId\":\"{{u:publish1.39}}\",\"replayOffsetProgress\":null,\"statementSequence\":37}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 75, 'statement_completed', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":37,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 76, 'statement_started', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:publish1.40}}\",\"replayOffsetProgress\":null,\"statementSequence\":38}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 77, 'statement_completed', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":38,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 78, 'statement_started', 'read_boundary_time', 'audit', '{\"displayName\":null,\"intent\":\"query\",\"queryId\":\"{{u:publish1.41}}\",\"replayOffsetProgress\":null,\"statementSequence\":39}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 79, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":39,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 80, 'statement_started', 'record_population_completed', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish1.42}}\",\"replayOffsetProgress\":null,\"statementSequence\":40}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '{{d:v1}}', 'completed', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '{{d:v1}}' AND stage = 'completed')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 81, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_eda87ea8488a0ee4` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:publish1.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_eda87ea8488a0ee4` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_eda87ea8488a0ee4`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_eda87ea8488a0ee4`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:publish1.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:v1}}', NULL, 1, '{{t:publish1:2:s3}}', '{{t:publish1:3:s3}}', 6253, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish1.1}}', 82, 'run_completed', NULL, NULL, '{\"errorMessage\":null,\"exitCode\":0,\"operationEvidence\":null,\"outcome\":\"succeeded\"}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:publish1.43}}'", - "DROP VIEW IF EXISTS sqltide_playground.tbl__order_report", - "CREATE VIEW sqltide_playground.tbl__order_report AS\nSELECT * FROM sqltide_playground.tbl__order_report__{{d:v1}}", - "INSERT INTO sqltide_playground._sqltide_virtual_publications (publication_id, deployment_id, operation, previous_deployment_id, logical_database_name, logical_view_name, physical_database_name, physical_relation_name, published_at) VALUES\n('01794649981848300441_ddcb5e9f15a62e98b96b00b4602c11d82fd4a7cb298183d6dda9b1dec3e155e3', '{{d:v1}}', 'promote', NULL, 'sqltide_playground', 'tbl__order_report', 'sqltide_playground', 'tbl__order_report__{{d:v1}}', '{{t:publish1:4:s3}}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_0d4796093cead1ca` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:publish1.43}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_0d4796093cead1ca` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_0d4796093cead1ca`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_0d4796093cead1ca`", - "INSERT INTO sqltide_playground._sqltide_manifests (manifest_id, invocation_id, project_identity, target_name, target_database, is_production, project_revision, manifest_fingerprint, manifest_version, pipelines, resources, tool_version, published_at) VALUES\n('{{u:publish2.0}}', '{{u:publish2.1}}', 'sqltide_playground', 'local', 'sqltide_playground', false, NULL, 'e1317984c5d8b4a942b75d923a0b9d031f7e61a3cc872f0b068ebe553b2398af', 1, ['pl__orders'], [('pl__orders', 'model', 'large_orders', 'materialization', 'sqltide_playground', 'mv__large_orders', 'materialized_view'), ('pl__orders', 'model', 'large_orders', 'primary', 'sqltide_playground', 'tbl__large_orders', 'table'), ('pl__orders', 'model', 'order_report', 'materialization', 'sqltide_playground', 'mv__order_report', 'materialized_view'), ('pl__orders', 'model', 'order_report', 'primary', 'sqltide_playground', 'tbl__order_report', 'table')], '{{v}}', toDateTime64('{{t:publish2:0:s6}}', 6, 'UTC'))", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"build\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[],\"startTime\":null,\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":71,\"planningMs\":42,\"totalMs\":122},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:publish2.2}}'", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:publish2.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{t:publish2:1:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'b4becea27492ec90498f3182d630a2e50a3161cc159ffc95cb4be5761d7a54c4\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:v2}}\\';', '9f071d63972f1e7fcd9acca8c731beb13a13a4626f22b62da3ce43440ccd074c', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:v2}}\\';', 'b5f39f082cf498099648b6f449554a25df4a1d111081b8695782a30dbeebb4fc', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:v2}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:v2}}\\';', '369ae1e78b781bb38652732bca0991488660cc4654a132124a7d0c2c3ee78236', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:v2}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:v2}}\\';', 'eaf6fe6133703674482d1541a90fba265390a947cf1aa13522994f96184446a1', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:v2}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:v2}}\\';', '2c3e4d7955f581d4aeb523b43a613b297b2a37e55960c17ae1a03cf80894b6db', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:v2}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:v2}}\\';', '893cfcba93bd53d01faf65320fbd7135df0da0b85b723d51bcfd7c6fc470fa11', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:v2}}\\', \\'4f56769517a512d19361f4702fea8446bdc410b17d12752ec180f5701540f623\\', \\'deployment\\', \\'{{d:v2}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:v2}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{t:publish2:1:s3}}\\'),\n(\\'{{d:v2}}\\', \\'98f2f81d6ed139c9aa1f2b6917ccd80f373b664d2cfe8470233cb5a6bebd5304\\', \\'deployment\\', \\'{{d:v2}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:v2}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\\', \\'{{t:publish2:1:s3}}\\'),\n(\\'{{d:v2}}\\', \\'9bd79632dd1e2c2e4b3001fad7122e08194d206200bf96e6daae2cc78692f499\\', \\'deployment\\', \\'{{d:v2}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:v2}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{t:publish2:1:s3}}\\'),\n(\\'{{d:v2}}\\', \\'340ec1c2d52bbb540fa9dc1c18cbc525930b7afbdf0a71b93ee1aaee0e11abef\\', \\'deployment\\', \\'{{d:v2}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:v2}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{t:publish2:1:s3}}\\');', 'd4ed77429240fd7eb89f26354ce3eaaddb6c1f83355f36fcfbd55a19f671ee1f', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 31, 'realize_tbl__order_report__{{d:v2}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:v2}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '84a4db1551a476cb7a4af12257efccfc90b1956756beb0bc2113c55664bf9e0a', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 32, 'realize_tbl__large_orders__{{d:v2}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:v2}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '66f6edaf5f0ddc9101f11221c893e388a0ae64a08e0aa3a8fcca2f9d4855300d', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 33, 'realize_mv__large_orders__{{d:v2}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:v2}}\nTO sqltide_playground.tbl__large_orders__{{d:v2}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}}\nWHERE total_cents >= 1000;', 'c83be8b5a216ec5ac21b5e642d3e28c2968a0665f483aa131d1e13e95f598b5b', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 34, 'realize_mv__order_report__{{d:v2}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:v2}}\nTO sqltide_playground.tbl__order_report__{{d:v2}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders;', '9f81ab3d50a9195ce59f885a1718d898ccf4e520a8fd042bb9a00ae5a18da611', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:v2}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:v2}}\\' AND stage = \\'started\\');', '545643a42260554b943d36da17c12c9928b8813a973bb05c9bfe824523f1e73e', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:v2}}\\', \\'b4becea27492ec90498f3182d630a2e50a3161cc159ffc95cb4be5761d7a54c4\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{t:publish2:1:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:v2}}\\');', '89bdf36344a6fa6fb152d83c34916cc264a829330763551c5c7aa7f243b4ee49', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:v2}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:v2}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:v2}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '86dd25a3e63e4aacd98af5ba3d5911eb09731b52a7083a7d44f456cf770dd107', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:v2}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'f51f678539b425e7f7eb5d03dedd1b20c129c17d09eb2451749813d255dc39fa', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:v2}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:v2}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source;', '1e03efc70e366caff3550e70d7945457da57e5980865659f7d91530542e0822c', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:v2}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:v2}};', '85836d31e413b7b006ffd4001a2f1efa215f1c8a570d7bad9ce6662118e30417', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:v2}}\\';', '32158ed54de74b0e0c4e57ff0015f49a3029dfeca0ac864d06b8098f3c8e946d', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:v2}}\\';', 'c6815552de9ad2d6e874d0fb72827351b43e5a46cd333c9ecad8967e2f650435', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1),\n('{{u:publish2.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:v2}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:v2}}\\' AND stage = \\'completed\\');', '12bac6fc85d57cf313ca71bc85f217712280e086fa03d49d57176ab01d26ec87', '1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 2, 'statement_started', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:publish2.3}}\",\"replayOffsetProgress\":null,\"statementSequence\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 4, 'statement_started', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:publish2.4}}\",\"replayOffsetProgress\":null,\"statementSequence\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 6, 'statement_started', 'assert_candidate_relation_tbl__order_report__{{d:v2}}', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:publish2.5}}\",\"replayOffsetProgress\":null,\"statementSequence\":3}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 7, 'statement_completed', 'assert_candidate_relation_tbl__order_report__{{d:v2}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":3,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 8, 'statement_started', 'assert_candidate_relation_mv__order_report__{{d:v2}}', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:publish2.6}}\",\"replayOffsetProgress\":null,\"statementSequence\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 9, 'statement_completed', 'assert_candidate_relation_mv__order_report__{{d:v2}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":4,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 10, 'statement_started', 'assert_candidate_relation_tbl__large_orders__{{d:v2}}', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:publish2.7}}\",\"replayOffsetProgress\":null,\"statementSequence\":5}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 11, 'statement_completed', 'assert_candidate_relation_tbl__large_orders__{{d:v2}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":5,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 12, 'statement_started', 'assert_candidate_relation_mv__large_orders__{{d:v2}}', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:publish2.8}}\",\"replayOffsetProgress\":null,\"statementSequence\":6}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 13, 'statement_completed', 'assert_candidate_relation_mv__large_orders__{{d:v2}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":6,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 14, 'statement_started', 'prepare_target_database', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.9}}\",\"replayOffsetProgress\":null,\"statementSequence\":7}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 15, 'statement_completed', 'prepare_target_database', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":7,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 16, 'statement_started', 'prepare_metadata_1', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.10}}\",\"replayOffsetProgress\":null,\"statementSequence\":8}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 17, 'statement_completed', 'prepare_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":8,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 18, 'statement_started', 'prepare_metadata_2', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.11}}\",\"replayOffsetProgress\":null,\"statementSequence\":9}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 19, 'statement_completed', 'prepare_metadata_2', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":9,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 20, 'statement_started', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.12}}\",\"replayOffsetProgress\":null,\"statementSequence\":10}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 21, 'statement_completed', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":10,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 22, 'statement_started', 'prepare_metadata_4', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.13}}\",\"replayOffsetProgress\":null,\"statementSequence\":11}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 23, 'statement_completed', 'prepare_metadata_4', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":11,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 24, 'statement_started', 'prepare_metadata_5', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.14}}\",\"replayOffsetProgress\":null,\"statementSequence\":12}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 25, 'statement_completed', 'prepare_metadata_5', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":12,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 26, 'statement_started', 'prepare_metadata_6', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.15}}\",\"replayOffsetProgress\":null,\"statementSequence\":13}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 27, 'statement_completed', 'prepare_metadata_6', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":13,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 28, 'statement_started', 'prepare_metadata_7', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.16}}\",\"replayOffsetProgress\":null,\"statementSequence\":14}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 29, 'statement_completed', 'prepare_metadata_7', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":14,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 30, 'statement_started', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.17}}\",\"replayOffsetProgress\":null,\"statementSequence\":15}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 31, 'statement_completed', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 32, 'statement_started', 'prepare_metadata_9', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.18}}\",\"replayOffsetProgress\":null,\"statementSequence\":16}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 33, 'statement_completed', 'prepare_metadata_9', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":16,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 34, 'statement_started', 'prepare_metadata_10', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.19}}\",\"replayOffsetProgress\":null,\"statementSequence\":17}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 35, 'statement_completed', 'prepare_metadata_10', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":17,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 36, 'statement_started', 'prepare_metadata_11', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.20}}\",\"replayOffsetProgress\":null,\"statementSequence\":18}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 37, 'statement_completed', 'prepare_metadata_11', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":18,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 38, 'statement_started', 'prepare_metadata_12', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.21}}\",\"replayOffsetProgress\":null,\"statementSequence\":19}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 39, 'statement_completed', 'prepare_metadata_12', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":19,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 40, 'statement_started', 'prepare_metadata_13', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.22}}\",\"replayOffsetProgress\":null,\"statementSequence\":20}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 41, 'statement_completed', 'prepare_metadata_13', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 42, 'statement_started', 'prepare_metadata_14', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.23}}\",\"replayOffsetProgress\":null,\"statementSequence\":21}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 43, 'statement_completed', 'prepare_metadata_14', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":21,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 44, 'statement_started', 'prepare_metadata_15', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.24}}\",\"replayOffsetProgress\":null,\"statementSequence\":22}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 45, 'statement_completed', 'prepare_metadata_15', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":22,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 46, 'statement_started', 'prepare_metadata_16', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.25}}\",\"replayOffsetProgress\":null,\"statementSequence\":23}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 47, 'statement_completed', 'prepare_metadata_16', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":23,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 48, 'statement_started', 'prepare_metadata_17', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.26}}\",\"replayOffsetProgress\":null,\"statementSequence\":24}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 49, 'statement_completed', 'prepare_metadata_17', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":24,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 50, 'statement_started', 'prepare_metadata_18', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.27}}\",\"replayOffsetProgress\":null,\"statementSequence\":25}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 51, 'statement_completed', 'prepare_metadata_18', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":25,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 52, 'statement_started', 'prepare_metadata_19', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.28}}\",\"replayOffsetProgress\":null,\"statementSequence\":26}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 53, 'statement_completed', 'prepare_metadata_19', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":26,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 54, 'statement_started', 'prepare_metadata_20', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.29}}\",\"replayOffsetProgress\":null,\"statementSequence\":27}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 55, 'statement_completed', 'prepare_metadata_20', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":27,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 56, 'statement_started', 'prepare_metadata_21', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.30}}\",\"replayOffsetProgress\":null,\"statementSequence\":28}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 57, 'statement_completed', 'prepare_metadata_21', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":28,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 58, 'statement_started', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.31}}\",\"replayOffsetProgress\":null,\"statementSequence\":29}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 59, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":29,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 60, 'statement_started', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.32}}\",\"replayOffsetProgress\":null,\"statementSequence\":30}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:v2}}', '4f56769517a512d19361f4702fea8446bdc410b17d12752ec180f5701540f623', 'deployment', '{{d:v2}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:v2}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{t:publish2:1:s3}}'),\n('{{d:v2}}', '98f2f81d6ed139c9aa1f2b6917ccd80f373b664d2cfe8470233cb5a6bebd5304', 'deployment', '{{d:v2}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:v2}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders', '{{t:publish2:1:s3}}'),\n('{{d:v2}}', '9bd79632dd1e2c2e4b3001fad7122e08194d206200bf96e6daae2cc78692f499', 'deployment', '{{d:v2}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:v2}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{t:publish2:1:s3}}'),\n('{{d:v2}}', '340ec1c2d52bbb540fa9dc1c18cbc525930b7afbdf0a71b93ee1aaee0e11abef', 'deployment', '{{d:v2}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:v2}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{t:publish2:1:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 61, 'statement_completed', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":30,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 62, 'statement_started', 'realize_tbl__order_report__{{d:v2}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.33}}\",\"replayOffsetProgress\":null,\"statementSequence\":31}')", - "CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:v2}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 63, 'statement_completed', 'realize_tbl__order_report__{{d:v2}}', 'realization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 64, 'statement_started', 'realize_tbl__large_orders__{{d:v2}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.34}}\",\"replayOffsetProgress\":null,\"statementSequence\":32}')", - "CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:v2}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 65, 'statement_completed', 'realize_tbl__large_orders__{{d:v2}}', 'realization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":32,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 66, 'statement_started', 'realize_mv__large_orders__{{d:v2}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.35}}\",\"replayOffsetProgress\":null,\"statementSequence\":33}')", - "CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:v2}}\nTO sqltide_playground.tbl__large_orders__{{d:v2}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}}\nWHERE total_cents >= 1000", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 67, 'statement_completed', 'realize_mv__large_orders__{{d:v2}}', 'realization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":33,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 68, 'statement_started', 'realize_mv__order_report__{{d:v2}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.36}}\",\"replayOffsetProgress\":null,\"statementSequence\":34}')", - "CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:v2}}\nTO sqltide_playground.tbl__order_report__{{d:v2}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 69, 'statement_completed', 'realize_mv__order_report__{{d:v2}}', 'realization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":34,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 70, 'statement_started', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"intent\":\"wait\",\"queryId\":\"{{u:publish2.37}}\",\"replayOffsetProgress\":null,\"statementSequence\":35}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 71, 'statement_completed', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"elapsedMs\":5005,\"errorMessage\":null,\"intent\":\"wait\",\"statementSequence\":35,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 72, 'statement_started', 'record_population_started', 'boundary', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.38}}\",\"replayOffsetProgress\":null,\"statementSequence\":36}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '{{d:v2}}', 'started', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '{{d:v2}}' AND stage = 'started')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 73, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":36,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 74, 'statement_started', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.39}}\",\"replayOffsetProgress\":null,\"statementSequence\":37}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:v2}}', 'b4becea27492ec90498f3182d630a2e50a3161cc159ffc95cb4be5761d7a54c4', 'offsets', now64(3, 'UTC'), toDateTime64('{{t:publish2:1:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:v2}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 75, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":37,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 76, 'statement_started', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.40}}\",\"replayOffsetProgress\":null,\"statementSequence\":38}')", - "INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT '{{d:v2}}', 'sqltide_playground', 'table', 'tbl__order_report', 'sqltide_playground', 'table', 'playground_orders', 'offsets', 'integer', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, 'UTC')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:v2}}')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = '{{d:v2}}' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 78, 'statement_started', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:publish2.41}}\",\"replayOffsetProgress\":null,\"statementSequence\":39}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 79, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":11,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":39,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 80, 'statement_started', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.42}}\",\"replayOffsetProgress\":null,\"statementSequence\":40}')", - "INSERT INTO sqltide_playground.tbl__order_report__{{d:v2}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = '{{d:v2}}' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 81, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":46,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":6}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 82, 'statement_started', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"intent\":\"query\",\"queryId\":\"{{u:publish2.43}}\",\"replayOffsetProgress\":null,\"statementSequence\":41}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 83, 'statement_completed', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":41,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 84, 'statement_started', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:publish2.44}}\",\"replayOffsetProgress\":null,\"statementSequence\":42}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 85, 'statement_completed', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":42,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 86, 'statement_started', 'read_boundary_time', 'audit', '{\"displayName\":null,\"intent\":\"query\",\"queryId\":\"{{u:publish2.45}}\",\"replayOffsetProgress\":null,\"statementSequence\":43}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 87, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":43,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 88, 'statement_started', 'record_population_completed', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:publish2.46}}\",\"replayOffsetProgress\":null,\"statementSequence\":44}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '{{d:v2}}', 'completed', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '{{d:v2}}' AND stage = 'completed')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 89, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":44,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_8945bfbcec00059a` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:publish2.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_8945bfbcec00059a` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_8945bfbcec00059a`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_8945bfbcec00059a`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:publish2.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:v2}}', NULL, 2, '{{t:publish2:2:s3}}', '{{t:publish2:3:s3}}', 5759, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:publish2.1}}', 90, 'run_completed', NULL, NULL, '{\"errorMessage\":null,\"exitCode\":0,\"operationEvidence\":null,\"outcome\":\"succeeded\"}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:publish2.47}}'", - "DROP VIEW IF EXISTS sqltide_playground.tbl__large_orders", - "CREATE VIEW sqltide_playground.tbl__large_orders AS\nSELECT * FROM sqltide_playground.tbl__large_orders__{{d:v2}}", - "CREATE VIEW sqltide_playground.tbl__order_report AS\nSELECT * FROM sqltide_playground.tbl__order_report__{{d:v2}}", - "INSERT INTO sqltide_playground._sqltide_virtual_publications (publication_id, deployment_id, operation, previous_deployment_id, logical_database_name, logical_view_name, physical_database_name, physical_relation_name, published_at) VALUES\n('01794649988401238882_0b035b17c4b27de6139f11f7f3371cf1a1a1bd342b9d641043be61c01f0ab376', '{{d:v2}}', 'promote', NULL, 'sqltide_playground', 'tbl__large_orders', 'sqltide_playground', 'tbl__large_orders__{{d:v2}}', '{{t:publish2:4:s3}}'),\n('01794649988401238882_0b035b17c4b27de6139f11f7f3371cf1a1a1bd342b9d641043be61c01f0ab376', '{{d:v2}}', 'promote', NULL, 'sqltide_playground', 'tbl__order_report', 'sqltide_playground', 'tbl__order_report__{{d:v2}}', '{{t:publish2:4:s3}}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_018a7b0a18ea8beb` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:publish2.47}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_018a7b0a18ea8beb` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_018a7b0a18ea8beb`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_018a7b0a18ea8beb`", - "INSERT INTO sqltide_playground._sqltide_manifests (manifest_id, invocation_id, project_identity, target_name, target_database, is_production, project_revision, manifest_fingerprint, manifest_version, pipelines, resources, tool_version, published_at) VALUES\n('{{u:build.0}}', '{{u:build.1}}', 'sqltide_playground', 'local', 'sqltide_playground', false, NULL, 'e1317984c5d8b4a942b75d923a0b9d031f7e61a3cc872f0b068ebe553b2398af', 1, ['pl__orders'], [('pl__orders', 'model', 'large_orders', 'materialization', 'sqltide_playground', 'mv__large_orders', 'materialized_view'), ('pl__orders', 'model', 'large_orders', 'primary', 'sqltide_playground', 'tbl__large_orders', 'table'), ('pl__orders', 'model', 'order_report', 'materialization', 'sqltide_playground', 'mv__order_report', 'materialized_view'), ('pl__orders', 'model', 'order_report', 'primary', 'sqltide_playground', 'tbl__order_report', 'table')], '{{v}}', toDateTime64('{{t:build:0:s6}}', 6, 'UTC'))", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --deployment-id {{d:built}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[],\"startTime\":null,\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":66,\"planningMs\":44,\"totalMs\":118},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:build.2}}'", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:build.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'c6624385daba8990cce582b04061c75498c0ba8e93ee89c040c70a043fdf0631\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', 'a62d4c0a8ceccc2ea064373d8080b6355accf5e7bab2e53e058917b483a73cd9', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:built}}\\';', 'f5f250388032ad279cf4dff662c4510188bbe59948cec9645d69b85bfc8d454d', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', 'd1a04697edd2ea0d31452e5afca738e6915befb50a768d86593fc21db7d0a6dd', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:built}}\\';', '7d12253a41ee666530b6ba1444df4d5c6ecaeefcb6e1c39eba5d35c9b2af452d', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:built}}\\';', 'acea05fa4e67e51839fab90b92df461b2b04f32d6b5f46f8cd4b81193c522ebc', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:built}}\\';', '277ad3c0d7b4b11667101e738becc9071b774cb758a2aa3c26647963980829a9', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:built}}\\', \\'ac31c2b38b4e1e0ba24331c9f80422bb2b0eb9508146b1ac3e42a57f6491a00c\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'8a2a26c9e8cbb272606ee82e997284335344863ad887818f2f2e6effa6207b07\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:built}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'e84b3e7ead329a72f2a375baa0c5791b94226ed44a19d7842fd93e766158c5f7\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'95d7514da75ace017700bcdc193ffaea2d22580557c9058060832ca44de6eb6a\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:built}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\');', '5d72aa0908164ef3a83bc6194de656c06107bf9a535dd8163f2c66b08fb43abd', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 31, 'realize_tbl__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:built}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '7ffb23c9ac868aa7451d9f9f16fa700c1ac655673ca7f6fe705ef69bb715b3ed', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 32, 'realize_tbl__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:built}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '8d7a3cfa6559c65c66ec6a0fcb845bc9808daaa16987a064012ee14c9fee232d', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 33, 'realize_mv__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:built}}\nTO sqltide_playground.tbl__large_orders__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}}\nWHERE total_cents >= 1000;', '8823ceec27564d911ad977b23e850af5c096c4ab66b5f6cdf888f41b6b9754ef', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 34, 'realize_mv__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:built}}\nTO sqltide_playground.tbl__order_report__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '0d28f4ae4053051c62cdb158f0b37a3e7dd3bebdd21fd24dd2cdc40fa4c68a0d', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'started\\');', '8e9313a40d19f308ab9c2e2c937944a44ca6de6888c6cd3f51a8849702d7079d', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:built}}\\', \\'c6624385daba8990cce582b04061c75498c0ba8e93ee89c040c70a043fdf0631\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\');', '47b8a2886cc9db729f72c3637e2ce3f33c4ddf0d2543e112e3c723455523a1ef', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:built}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '63f4c9990e03065a3eb75b59157b0a3e9c1b242da96b2fe1506f8281c70276e5', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:built}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'f8c0f0b9d47dd54f98edcf32b101e884cb3d10664ca42548097b74fb557b7ca0', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:built}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'c23dcdc4f5c8512bb5154e2dc12c56bb171ef72aaed866d6e3174e0e4a55cdf7', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:built}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:built}};', 'b0e53b0e47c4ad5a9b423fb4cf12095da4e6876fe3bb416aa114f1158eaab098', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', '93b17644ce9639247ac129d80d830f67dbfa554a9027723b53febdeb629a4892', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', 'b06afd1f665301962fb83ede6f0c13b9847b6953195fd8a8c2bf5cad390dbc27', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1),\n('{{u:build.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'completed\\');', 'ba9968390671584fb30fd0a57bdc0dd30762de364562ef706bb456555a9596ba', 'ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 2, 'statement_started', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:build.3}}\",\"replayOffsetProgress\":null,\"statementSequence\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 4, 'statement_started', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:build.4}}\",\"replayOffsetProgress\":null,\"statementSequence\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 6, 'statement_started', 'assert_candidate_relation_tbl__order_report__{{d:built}}', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:build.5}}\",\"replayOffsetProgress\":null,\"statementSequence\":3}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 7, 'statement_completed', 'assert_candidate_relation_tbl__order_report__{{d:built}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":3,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 8, 'statement_started', 'assert_candidate_relation_mv__order_report__{{d:built}}', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:build.6}}\",\"replayOffsetProgress\":null,\"statementSequence\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 9, 'statement_completed', 'assert_candidate_relation_mv__order_report__{{d:built}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":4,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 10, 'statement_started', 'assert_candidate_relation_tbl__large_orders__{{d:built}}', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:build.7}}\",\"replayOffsetProgress\":null,\"statementSequence\":5}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 11, 'statement_completed', 'assert_candidate_relation_tbl__large_orders__{{d:built}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":5,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 12, 'statement_started', 'assert_candidate_relation_mv__large_orders__{{d:built}}', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:build.8}}\",\"replayOffsetProgress\":null,\"statementSequence\":6}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 13, 'statement_completed', 'assert_candidate_relation_mv__large_orders__{{d:built}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":6,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 14, 'statement_started', 'prepare_target_database', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.9}}\",\"replayOffsetProgress\":null,\"statementSequence\":7}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 15, 'statement_completed', 'prepare_target_database', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":7,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 16, 'statement_started', 'prepare_metadata_1', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.10}}\",\"replayOffsetProgress\":null,\"statementSequence\":8}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 17, 'statement_completed', 'prepare_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":8,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 18, 'statement_started', 'prepare_metadata_2', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.11}}\",\"replayOffsetProgress\":null,\"statementSequence\":9}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 19, 'statement_completed', 'prepare_metadata_2', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":9,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 20, 'statement_started', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.12}}\",\"replayOffsetProgress\":null,\"statementSequence\":10}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 21, 'statement_completed', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":10,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 22, 'statement_started', 'prepare_metadata_4', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.13}}\",\"replayOffsetProgress\":null,\"statementSequence\":11}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 23, 'statement_completed', 'prepare_metadata_4', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":11,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 24, 'statement_started', 'prepare_metadata_5', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.14}}\",\"replayOffsetProgress\":null,\"statementSequence\":12}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 25, 'statement_completed', 'prepare_metadata_5', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":12,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 26, 'statement_started', 'prepare_metadata_6', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.15}}\",\"replayOffsetProgress\":null,\"statementSequence\":13}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 27, 'statement_completed', 'prepare_metadata_6', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":13,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 28, 'statement_started', 'prepare_metadata_7', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.16}}\",\"replayOffsetProgress\":null,\"statementSequence\":14}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 29, 'statement_completed', 'prepare_metadata_7', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":14,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 30, 'statement_started', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.17}}\",\"replayOffsetProgress\":null,\"statementSequence\":15}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 31, 'statement_completed', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 32, 'statement_started', 'prepare_metadata_9', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.18}}\",\"replayOffsetProgress\":null,\"statementSequence\":16}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 33, 'statement_completed', 'prepare_metadata_9', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":16,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 34, 'statement_started', 'prepare_metadata_10', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.19}}\",\"replayOffsetProgress\":null,\"statementSequence\":17}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 35, 'statement_completed', 'prepare_metadata_10', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":17,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 36, 'statement_started', 'prepare_metadata_11', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.20}}\",\"replayOffsetProgress\":null,\"statementSequence\":18}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 37, 'statement_completed', 'prepare_metadata_11', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":18,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 38, 'statement_started', 'prepare_metadata_12', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.21}}\",\"replayOffsetProgress\":null,\"statementSequence\":19}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 39, 'statement_completed', 'prepare_metadata_12', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":19,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 40, 'statement_started', 'prepare_metadata_13', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.22}}\",\"replayOffsetProgress\":null,\"statementSequence\":20}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 41, 'statement_completed', 'prepare_metadata_13', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 42, 'statement_started', 'prepare_metadata_14', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.23}}\",\"replayOffsetProgress\":null,\"statementSequence\":21}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 43, 'statement_completed', 'prepare_metadata_14', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":21,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 44, 'statement_started', 'prepare_metadata_15', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.24}}\",\"replayOffsetProgress\":null,\"statementSequence\":22}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 45, 'statement_completed', 'prepare_metadata_15', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":22,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 46, 'statement_started', 'prepare_metadata_16', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.25}}\",\"replayOffsetProgress\":null,\"statementSequence\":23}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 47, 'statement_completed', 'prepare_metadata_16', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":23,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 48, 'statement_started', 'prepare_metadata_17', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.26}}\",\"replayOffsetProgress\":null,\"statementSequence\":24}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 49, 'statement_completed', 'prepare_metadata_17', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":24,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 50, 'statement_started', 'prepare_metadata_18', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.27}}\",\"replayOffsetProgress\":null,\"statementSequence\":25}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 51, 'statement_completed', 'prepare_metadata_18', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":25,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 52, 'statement_started', 'prepare_metadata_19', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.28}}\",\"replayOffsetProgress\":null,\"statementSequence\":26}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 53, 'statement_completed', 'prepare_metadata_19', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":26,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 54, 'statement_started', 'prepare_metadata_20', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.29}}\",\"replayOffsetProgress\":null,\"statementSequence\":27}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 55, 'statement_completed', 'prepare_metadata_20', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":27,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 56, 'statement_started', 'prepare_metadata_21', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.30}}\",\"replayOffsetProgress\":null,\"statementSequence\":28}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 57, 'statement_completed', 'prepare_metadata_21', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":28,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 58, 'statement_started', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.31}}\",\"replayOffsetProgress\":null,\"statementSequence\":29}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 59, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":29,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 60, 'statement_started', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.32}}\",\"replayOffsetProgress\":null,\"statementSequence\":30}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:built}}', 'ac31c2b38b4e1e0ba24331c9f80422bb2b0eb9508146b1ac3e42a57f6491a00c', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:built:s3}}'),\n('{{d:built}}', '8a2a26c9e8cbb272606ee82e997284335344863ad887818f2f2e6effa6207b07', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:built}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:built:s3}}'),\n('{{d:built}}', 'e84b3e7ead329a72f2a375baa0c5791b94226ed44a19d7842fd93e766158c5f7', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}'),\n('{{d:built}}', '95d7514da75ace017700bcdc193ffaea2d22580557c9058060832ca44de6eb6a', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:built}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 61, 'statement_completed', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":30,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 62, 'statement_started', 'realize_tbl__order_report__{{d:built}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.33}}\",\"replayOffsetProgress\":null,\"statementSequence\":31}')", - "CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:built}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 63, 'statement_completed', 'realize_tbl__order_report__{{d:built}}', 'realization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 64, 'statement_started', 'realize_tbl__large_orders__{{d:built}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.34}}\",\"replayOffsetProgress\":null,\"statementSequence\":32}')", - "CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:built}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 65, 'statement_completed', 'realize_tbl__large_orders__{{d:built}}', 'realization', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":32,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 66, 'statement_started', 'realize_mv__large_orders__{{d:built}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.35}}\",\"replayOffsetProgress\":null,\"statementSequence\":33}')", - "CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:built}}\nTO sqltide_playground.tbl__large_orders__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}}\nWHERE total_cents >= 1000", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 67, 'statement_completed', 'realize_mv__large_orders__{{d:built}}', 'realization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":33,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 68, 'statement_started', 'realize_mv__order_report__{{d:built}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.36}}\",\"replayOffsetProgress\":null,\"statementSequence\":34}')", - "CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:built}}\nTO sqltide_playground.tbl__order_report__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = 'completed'", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 69, 'statement_completed', 'realize_mv__order_report__{{d:built}}', 'realization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":34,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 70, 'statement_started', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"intent\":\"wait\",\"queryId\":\"{{u:build.37}}\",\"replayOffsetProgress\":null,\"statementSequence\":35}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 71, 'statement_completed', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"elapsedMs\":5005,\"errorMessage\":null,\"intent\":\"wait\",\"statementSequence\":35,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 72, 'statement_started', 'record_population_started', 'boundary', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.38}}\",\"replayOffsetProgress\":null,\"statementSequence\":36}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '{{d:built}}', 'started', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '{{d:built}}' AND stage = 'started')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 73, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":36,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 74, 'statement_started', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.39}}\",\"replayOffsetProgress\":null,\"statementSequence\":37}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:built}}', 'c6624385daba8990cce582b04061c75498c0ba8e93ee89c040c70a043fdf0631', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:built:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:built}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 75, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":37,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 76, 'statement_started', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.40}}\",\"replayOffsetProgress\":null,\"statementSequence\":38}')", - "INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT '{{d:built}}', 'sqltide_playground', 'table', 'tbl__order_report', 'sqltide_playground', 'table', 'playground_orders', 'offsets', 'integer', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, 'UTC')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:built}}')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = '{{d:built}}' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":9,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 78, 'statement_started', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:build.41}}\",\"replayOffsetProgress\":null,\"statementSequence\":39}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 79, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":39,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 80, 'statement_started', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.42}}\",\"replayOffsetProgress\":null,\"statementSequence\":40}')", - "INSERT INTO sqltide_playground.tbl__order_report__{{d:built}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = '{{d:built}}' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = 'completed'", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 81, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":12,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 82, 'statement_started', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"intent\":\"query\",\"queryId\":\"{{u:build.43}}\",\"replayOffsetProgress\":null,\"statementSequence\":41}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 83, 'statement_completed', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":41,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 84, 'statement_started', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:build.44}}\",\"replayOffsetProgress\":null,\"statementSequence\":42}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 85, 'statement_completed', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":42,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 86, 'statement_started', 'read_boundary_time', 'audit', '{\"displayName\":null,\"intent\":\"query\",\"queryId\":\"{{u:build.45}}\",\"replayOffsetProgress\":null,\"statementSequence\":43}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 87, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":43,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 88, 'statement_started', 'record_population_completed', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.46}}\",\"replayOffsetProgress\":null,\"statementSequence\":44}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '{{d:built}}', 'completed', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '{{d:built}}' AND stage = 'completed')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 89, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":44,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_6038eb404fd5c8cc` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:build.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_6038eb404fd5c8cc` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_6038eb404fd5c8cc`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_6038eb404fd5c8cc`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:build.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:built}}', NULL, 2, '{{t:build:1:s3}}', '{{t:build:2:s3}}', 5654, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 90, 'run_completed', NULL, NULL, '{\"errorMessage\":null,\"exitCode\":0,\"operationEvidence\":null,\"outcome\":\"succeeded\"}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders --deployment-id {{d:built}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":56,\"planningMs\":45,\"totalMs\":109},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:build.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'024d4cab6844e67a2b9be258031420df0cc8b6e7080313dd0b0f2cef96985194\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', 'b74871b8ebfe86a218c065f9cc16993f0bc619b282f75554ea68de12af80a9df', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:built}}\\';', '8c2278031a1010d504d8a60a47803cc27e47ed9f42b49a653c57431db50e59ff', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', 'c96018101b4448237008e804a58a095593bb90897d96ed8b43c07e660833de48', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:built}}\\';', '43666ed20f569ffb5331744b8f020ae5ce9fd185739c37eb3104cdce4cbe31d3', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:built}}\\';', '8337adf44497d0ef9d4fb955b464281a8ee6f5bd625003469b3373c6595f016c', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:built}}\\';', '225221280c0f877fa8ff8e4aebf7a3bdf83c8113600f8b6ebd5c7fc45306006f', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:built}}\\', \\'c35b4c262276d04645a4b41d87d85de0603eeac4bd4899473a22392bab4695b5\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'aa69dbe8a65e896579c4890cd491a4a8b52f94a890b290bb152afd69ae1ea8e8\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:built}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'dc34098de1f0e772b36ecef74f333de3e3857dce68f90c592af4a98356082d94\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'6c8ae77362b5eb1a2045114e43869e0098dfe7059c108d0736c75c8e9eee7013\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:built}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\');', 'e68db5111738506719e8bca68dcbac4ff5f1620b40f4563902d176ba9a9d1ad8', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 31, 'realize_tbl__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:built}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'b07fa7ed9bdbaa5c09189f3b72432ada6fbd5a3d4c0e6daae1aef450ac3b9b96', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 32, 'realize_mv__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:built}}\nTO sqltide_playground.tbl__order_report__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '788a5894d69a219e649364c7fbf6642f0e58d5d04ef96675ee26f79f70bdbde1', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 33, 'realize_tbl__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:built}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '25cdf0573df029b4d05961e408f1a12ac48ef1177044d92c1fb2c1e28ec52005', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 34, 'realize_mv__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:built}}\nTO sqltide_playground.tbl__large_orders__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}}\nWHERE total_cents >= 1000;', '84197a44304ac7a489230311b5d405e897f64b689d6ff1fbf1a6b4ebee043b21', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'started\\');', 'c56a44ef8bd73e0dff681ddf3cceb0a47dc2e3b832e7dd9bec1129e790c91b4e', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:built}}\\', \\'024d4cab6844e67a2b9be258031420df0cc8b6e7080313dd0b0f2cef96985194\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\');', 'bb8757453dd73b3d520d66bfe46b5eb0a41bed40ee3c6fe5a742b43c419305be', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:built}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'aab1f601e912dbfdc5c3f2fffc587bc9ec0946341c19f4654320e712ff085ad1', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:built}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'c1b7cef7b44bf79adb1dfc7a0b2a10c16c5a0370c3ac2865b1acc14bc13ad2d8', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:built}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '9188016cf5eb256fc7a32b69d063030c61bdb7ef64a9b69023ab881f80a57d24', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:built}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:built}};', '64f47198bd773c1e83ecfc385516d44338dd2c3dfb81204f4ca65d1e967e34ff', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', 'bd32c0ee710c00af1cb8c5c77c388b019471d69ee0eb3c6463be59dfef051882', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', 'b6e9080947b3337d81d1d1ee7009bd68c98081038e03b80010ab051ea994995d', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1),\n('{{u:build.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'completed\\');', '81ec14e9ac969e7ae8a7149f64a94c5ef93db225a7030e821b21483faf9a8875', '13cf8f5fc186b5f8d4ae24203e986158adae2e742ee981cbed79755e6140dff1', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":19,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 21, 'statement_completed', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":10,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 23, 'statement_completed', 'prepare_metadata_4', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":11,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 25, 'statement_completed', 'prepare_metadata_5', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":12,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 29, 'statement_completed', 'prepare_metadata_7', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":14,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 31, 'statement_completed', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 35, 'statement_completed', 'prepare_metadata_10', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":17,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 55, 'statement_completed', 'prepare_metadata_20', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":27,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 59, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":29,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:built}}', 'c35b4c262276d04645a4b41d87d85de0603eeac4bd4899473a22392bab4695b5', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:built:s3}}'),\n('{{d:built}}', 'aa69dbe8a65e896579c4890cd491a4a8b52f94a890b290bb152afd69ae1ea8e8', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:built}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:built:s3}}'),\n('{{d:built}}', 'dc34098de1f0e772b36ecef74f333de3e3857dce68f90c592af4a98356082d94', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}'),\n('{{d:built}}', '6c8ae77362b5eb1a2045114e43869e0098dfe7059c108d0736c75c8e9eee7013', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:built}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 64, 'statement_started', 'realize_mv__order_report__{{d:built}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.34}}\",\"replayOffsetProgress\":null,\"statementSequence\":32}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 65, 'statement_completed', 'realize_mv__order_report__{{d:built}}', 'realization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":32,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 66, 'statement_started', 'realize_tbl__large_orders__{{d:built}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.35}}\",\"replayOffsetProgress\":null,\"statementSequence\":33}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 67, 'statement_completed', 'realize_tbl__large_orders__{{d:built}}', 'realization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":33,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 68, 'statement_started', 'realize_mv__large_orders__{{d:built}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.36}}\",\"replayOffsetProgress\":null,\"statementSequence\":34}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 69, 'statement_completed', 'realize_mv__large_orders__{{d:built}}', 'realization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":34,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 71, 'statement_completed', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"elapsedMs\":5004,\"errorMessage\":null,\"intent\":\"wait\",\"statementSequence\":35,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 73, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":36,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:built}}', '024d4cab6844e67a2b9be258031420df0cc8b6e7080313dd0b0f2cef96985194', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:built:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:built}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 75, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":37,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 79, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":11,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":39,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 83, 'statement_completed', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":41,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 85, 'statement_completed', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":42,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 89, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":44,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_caa5fd89fd8370c1` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:build.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_caa5fd89fd8370c1` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_caa5fd89fd8370c1`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_caa5fd89fd8370c1`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:build.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:built}}', NULL, 2, '{{t:build:1:s3}}', '{{t:build:2:s3}}', 5700, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:built}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":56,\"planningMs\":48,\"totalMs\":112},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:build.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'cfb27e70e5175666b1699fc54ec045902d5b94cf3de653272e68536937c359dc\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', 'ad5f49b2df4ea866afe065e184af501b17023b97d90c80c611428236b420a251', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:built}}\\';', '9965ee9814fc35a957a16614c8f8696048a68f12119773197648925a46e67b5b', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', '7fa68e7edf80270318f5c647052a1ab8e99efcb612bb16ceb69d041aaf862c0f', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:built}}\\';', 'c815ba603d042ef438d10a53b1c3346518d95090503b140448bd7461044e95e1', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:built}}\\';', '246d2ed0f368985dde9fb27e55328a347a3869378e1b1bb73a323bb6b34030c6', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:built}}\\';', '0132425c110dc7b80ed08509b1734af955cbea54923b3088690d0ac8ef59e66d', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:built}}\\', \\'cef1ee20764a3f59db2d9a1b9f3568576e24064e0204022932d8986a803a9b82\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'1d911d7d719a2e07b87eb50272893a0a4a56ddac86e4f48ceea8fd232801c1d8\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:built}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'e952ee3cdc0fbbb5d74f552af6de805e33ec1433674e57f93ff114110ef3f98a\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'734c84c082cdbface6a568dfd18eb2a68df8ebbf0e9a41b3fa985a7011e901d1\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:built}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\');', '07416a6d9330f4ac236bc62aa544100ebe5db289ba90a9035fdbc795183735a3', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 31, 'realize_tbl__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:built}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '3e6b09adaa04f4cba96e913f2afeabd3a4e1c42f8e3704846dc12d72dee95930', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 32, 'realize_mv__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:built}}\nTO sqltide_playground.tbl__order_report__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '25cc2e69f708286e9dc13c33a352dac17f41b85c6e833a6e056e9a78950eea54', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 33, 'realize_tbl__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:built}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '9fab2e52d7eca2e97044ff1ba994b6146e1c52e7e5be089d8c0a9581cb3fcd50', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 34, 'realize_mv__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:built}}\nTO sqltide_playground.tbl__large_orders__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}}\nWHERE total_cents >= 1000;', '4884efa519c68aad4f5dee3a45904be0bb945ad76b9cf96cba5715ecf7fbbcb7', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'started\\');', '8e3568a304ac69e8a1f861d22e540f8d364e2732e9c1423200f271d07685ce3c', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:built}}\\', \\'cfb27e70e5175666b1699fc54ec045902d5b94cf3de653272e68536937c359dc\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\');', '91853514d8d134d9493810681b242a497f329b574448f40b237907a97ae54ef6', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:built}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'ccadde8c3ef3409f0e113e8bfd2fceb066c3919b36b0e6ba62bfc5f065d5e81d', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:built}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '78adc025d1c164e06e556780d949019b03e5bc97c77ec316c0b71cc2b8b6f2b4', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:built}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', '482dbe18b3431e0cbcbaff32be2a134e56c0686dadcfb671906afe2e6277add5', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:built}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '57e985096524882aa6e891b7a02a9924b7371f290f7d814284f035f2109a7955', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:built}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:built}};', 'b2f80e17d5b525e0b9a3966b20de6dab8e4b10c6f40e43a8a90d35ebd7df8002', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', 'cfd7fb53a39a2618f531d84f03b9a35bd489dcc8e9732e5f8d0961f562233343', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', '1ce51a3cf6c76c36c60733618d8454d2a68d84574ad7dc12b6b1111d5dbf6269', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1),\n('{{u:build.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'completed\\');', 'b4a4b89e3692e6f6dab521f7e8b9bb7a56950a16ebf3fc9227718a47906381ca', 'cf6230d72005bb38bc74dfe7ff466dbe4524f425eeca30824ba998b8cd5d5ec7', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 9, 'statement_completed', 'assert_candidate_relation_mv__order_report__{{d:built}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":4,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:built}}', 'cef1ee20764a3f59db2d9a1b9f3568576e24064e0204022932d8986a803a9b82', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:built:s3}}'),\n('{{d:built}}', '1d911d7d719a2e07b87eb50272893a0a4a56ddac86e4f48ceea8fd232801c1d8', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:built}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:built:s3}}'),\n('{{d:built}}', 'e952ee3cdc0fbbb5d74f552af6de805e33ec1433674e57f93ff114110ef3f98a', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}'),\n('{{d:built}}', '734c84c082cdbface6a568dfd18eb2a68df8ebbf0e9a41b3fa985a7011e901d1', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:built}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 73, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":36,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:built}}', 'cfb27e70e5175666b1699fc54ec045902d5b94cf3de653272e68536937c359dc', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:built:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:built}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":11,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 79, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":12,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":39,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 80, 'statement_started', 'seed_tbl__order_report', 'replay', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.42}}\",\"replayOffsetProgress\":null,\"statementSequence\":40}')", - "INSERT INTO sqltide_playground.tbl__order_report__{{d:built}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64('{{s:s3}}', 3, 'UTC') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 81, 'statement_completed', 'seed_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":13,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 82, 'statement_started', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.43}}\",\"replayOffsetProgress\":null,\"statementSequence\":41}')", - "INSERT INTO sqltide_playground.tbl__order_report__{{d:built}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = '{{d:built}}' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64('{{s:s3}}', 3, 'UTC') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = 'completed'", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 83, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":22,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":41,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 84, 'statement_started', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"intent\":\"query\",\"queryId\":\"{{u:build.44}}\",\"replayOffsetProgress\":null,\"statementSequence\":42}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 85, 'statement_completed', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":42,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 86, 'statement_started', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:build.45}}\",\"replayOffsetProgress\":null,\"statementSequence\":43}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 87, 'statement_completed', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":43,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 88, 'statement_started', 'read_boundary_time', 'audit', '{\"displayName\":null,\"intent\":\"query\",\"queryId\":\"{{u:build.46}}\",\"replayOffsetProgress\":null,\"statementSequence\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 89, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":44,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 90, 'statement_started', 'record_population_completed', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.47}}\",\"replayOffsetProgress\":null,\"statementSequence\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 91, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":45,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_03a31e8257623961` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:build.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_03a31e8257623961` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_03a31e8257623961`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_03a31e8257623961`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:build.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:built}}', NULL, 2, '{{t:build:1:s3}}', '{{t:build:2:s3}}', 5719, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 92, 'run_completed', NULL, NULL, '{\"errorMessage\":null,\"exitCode\":0,\"operationEvidence\":null,\"outcome\":\"succeeded\"}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report --deployment-id {{d:built}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"order_report\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":65,\"planningMs\":55,\"totalMs\":129},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:build.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'94fb48ac4918d4f6142a6561041efd093a020f62c5ae56184bb3cd4ea86de7ec\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', 'a78f074eeb7d9baaf722d3d98eac4365a3d4285ea5e2cd8d7dd88261083c884a', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:built}}\\';', 'f12396b0ecf4381750114579885df7612c7bfe1f14b25de8f99660ad57d931fd', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', 'e23b450725c11b174dc7661c36f68879ad711370807624dd5017b39cbc2b935f', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:built}}\\';', '2b1037d36938929fd9721c023cec100efae66ebae1af167b96365229d546aa0a', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:built}}\\';', '82c72f47b131936b2ef4622cfb50be064ecb733186010d7db42b1abbaac4cc2e', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:built}}\\';', 'f6c95470aaf39c82a92d28cc1bb986ba8b06a43d95ae5798a0eb4465ffc3c743', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:built}}\\', \\'f4dc95c9d6c3f8529f2e4f6b15025e56a0af70a7a78476b241126dd4d4b028be\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'d477add3877e64c28e068c46b65a534221a5b079ce7bcbd256dac3abba319ef0\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:built}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'7331053c55f73e9d6b7b9a2bb77a76bce9a089e12b552fba5ec30cca36f4e569\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'3ecfd7ad239ee2175a2bc28d290aff5412ef57d3474d746829a60257f73b3032\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:built}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\');', '8246a019e073298a280d2e0d4bc71d4ce4509a92c5cca2a4a502381a7cc7efa6', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 31, 'realize_tbl__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:built}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '0c5b8f043165f4d4efba2d6bb722bb7f84a3159f3bb24a5dc34865f3f5349a63', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 32, 'realize_mv__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:built}}\nTO sqltide_playground.tbl__order_report__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '041fe6074bde2832b44c5a8086d4ee0ab9762af0308e4227b7dffb6eceaf9528', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 33, 'realize_tbl__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:built}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '619493f8067a1d3203a6388cf2242bb30ce48e022f4b94c190c5a1e921ca3bac', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 34, 'realize_mv__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:built}}\nTO sqltide_playground.tbl__large_orders__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}}\nWHERE total_cents >= 1000;', 'c6472f8ba8d5dbd2c2a3f708b4ac7e4bccac16a58c10c2921d3da36271e0e61c', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'started\\');', '0bdfee9e46ccbfdd39e67da46c3a0afdae6a4c2b879e17827657a1f0b21218d3', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:built}}\\', \\'94fb48ac4918d4f6142a6561041efd093a020f62c5ae56184bb3cd4ea86de7ec\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\');', 'f1be1a0b670784811069007c1d5ae1e7a00c347b050d46f7169b3102bdfdf83c', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:built}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '40bffb1b5ee42bcb16452495c87f4ed437fbbebd77aa63a18f83c1ef16bc7dba', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:built}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '2b0a527ce66b40243cd9726260e535a55305d120a069c7993631e768834c7264', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:built}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'e241fcd827c7e2bce76d2537e7346bb53385179090d36b6a5afd0456fe7233dd', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:built}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:built}};', '0724e9e717a072e55a693373d76ef59e5c137057a297808d01eb2820fe681c75', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', 'd82977f3ef11639c727c4aed6c14639868e9aa264e1ee37a568235db0efe30ec', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', 'f1ee7acd491aff148dde8f9047aa8a4a05bd0c22ea6a97d99a5fce7b93d214e6', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1),\n('{{u:build.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'completed\\');', 'b1389eb9122910bc7fea245a81c131186098a779eebe0082f3740cee4df693ba', '26c96bf4c02d64ee71c047d1a894900067555d508fd6402a0683eec4a24695c3', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 13, 'statement_completed', 'assert_candidate_relation_mv__large_orders__{{d:built}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":6,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 15, 'statement_completed', 'prepare_target_database', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":7,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 19, 'statement_completed', 'prepare_metadata_2', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":9,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 37, 'statement_completed', 'prepare_metadata_11', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":18,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 39, 'statement_completed', 'prepare_metadata_12', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":19,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 41, 'statement_completed', 'prepare_metadata_13', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 45, 'statement_completed', 'prepare_metadata_15', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":22,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 51, 'statement_completed', 'prepare_metadata_18', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":25,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 57, 'statement_completed', 'prepare_metadata_21', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":28,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 59, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":29,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:built}}', 'f4dc95c9d6c3f8529f2e4f6b15025e56a0af70a7a78476b241126dd4d4b028be', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:built:s3}}'),\n('{{d:built}}', 'd477add3877e64c28e068c46b65a534221a5b079ce7bcbd256dac3abba319ef0', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:built}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:built:s3}}'),\n('{{d:built}}', '7331053c55f73e9d6b7b9a2bb77a76bce9a089e12b552fba5ec30cca36f4e569', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}'),\n('{{d:built}}', '3ecfd7ad239ee2175a2bc28d290aff5412ef57d3474d746829a60257f73b3032', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:built}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 63, 'statement_completed', 'realize_tbl__order_report__{{d:built}}', 'realization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 65, 'statement_completed', 'realize_mv__order_report__{{d:built}}', 'realization', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":32,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 67, 'statement_completed', 'realize_tbl__large_orders__{{d:built}}', 'realization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":33,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 69, 'statement_completed', 'realize_mv__large_orders__{{d:built}}', 'realization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":34,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 71, 'statement_completed', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"elapsedMs\":5013,\"errorMessage\":null,\"intent\":\"wait\",\"statementSequence\":35,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 73, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":36,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:built}}', '94fb48ac4918d4f6142a6561041efd093a020f62c5ae56184bb3cd4ea86de7ec', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:built:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:built}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 75, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":37,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":13,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 79, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":13,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":39,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 81, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":15,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 85, 'statement_completed', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":42,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_f550a58e0ef8a6d1` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:build.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_f550a58e0ef8a6d1` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_f550a58e0ef8a6d1`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_f550a58e0ef8a6d1`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:build.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:built}}', NULL, 2, '{{t:build:1:s3}}', '{{t:build:2:s3}}', 5784, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:built}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"order_report\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":60,\"planningMs\":56,\"totalMs\":125},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:build.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'349ae6ecb2d312c7d3bd29e8d4fdb897e668bb728c174b5fea4de2973544bb65\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', '281422d80f2ef1382644debb1c9879766ecd233a3f0ca8dd1a30275266415248', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:built}}\\';', 'bae66a086be94d62f442d63779f958839cd49131e6d0315d1c23590e70217dfc', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', '6a56eaee4332368ee2c7330cdd53d471e1f2386052f8ff87d5dce256e45ad95f', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:built}}\\';', 'c7bd4d7b00c855cd2a46a63e4cece63971f4ac6f8ee2d35d0c672219e6bdff16', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:built}}\\';', 'e6c65d7e90d75058cd742248da32a33432a61d95b40229fe797c6ce42b5ff7a5', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:built}}\\';', 'c515fdc21c2d328fb6c75e13c93b98730bc10c4982015ee8105ab14f5cc22ae3', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:built}}\\', \\'9a1b05fd5a12ea842bed7cad99e539a9e0f0e7568adc95e9c972353423e3476d\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'f89da1f1e86629316d821767185b871412318c99bf836c9030f4953efee95591\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:built}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'27d8f1749194af0517e3c61856ce4297f8746ac6e1131fdf01c9f10a54707364\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'078f13af1c3b1adef89a5db166f7d08918df433a3057f7a35407f9b02e2131fb\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:built}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\');', 'd0bf965ab341c1da87a0497a34159e36dac9e8b6c442f66e694d9ee703a59cdd', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 31, 'realize_tbl__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:built}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'b18f39d5ba201ff25c10e5757823642dd8d6960c174ace5448c42a4a2830c7ff', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 32, 'realize_mv__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:built}}\nTO sqltide_playground.tbl__order_report__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'b7c1b28419d25e6b78fd66848d07e2fda9e8fb529962483f0a35ec19ee520817', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 33, 'realize_tbl__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:built}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'ce977998bc83aff32263656644d3971f7ce538d2be2960751055b11d5c7b2acd', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 34, 'realize_mv__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:built}}\nTO sqltide_playground.tbl__large_orders__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}}\nWHERE total_cents >= 1000;', '9bfd2144266877d8755c2d4cf326adcee528ab9719aea43199fb125dcc1e4e90', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'started\\');', 'abfd316fab1ffa782fc90495fa663895499a80e381b8026d4973bb88e2adaef4', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:built}}\\', \\'349ae6ecb2d312c7d3bd29e8d4fdb897e668bb728c174b5fea4de2973544bb65\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\');', '63ca8901123c88ce6acd9b16e307ccd8a09e244714cdb9a099e64a824c446550', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:built}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'd3f37dceef3c44b43419f4c0b8e29a8fcc7e3aa5acdb490ddd3044f708399bf4', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:built}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'c8967008f249a571c51683f7567a7ee7ed9bd43fe08b9b146d806d2f0220087d', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:built}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', '96ecc95a627d19039a438f462eb01ef69da708fff335bdc8fdf6abadb7823282', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:built}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '5cc3ff05454e57720ecffef909aa3b5e768ea1119c1d9828d3aafc82f29818a5', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:built}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:built}};', 'f7d01889c91ba0f06de8f8dda1b7b45ffe6ef996deedc8d37db550309748ff2f', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', '74e48c703e71283858d5f445c798e4a7fcaa41ca17e083b6f52ba80cc1917b89', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', 'eff889262ae60137b89bb3b5260b83045832123d0c600449737eda0daaf1970f', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1),\n('{{u:build.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'completed\\');', 'e4a06254030329629844b472dd4abd6c023e12cc187f417b30af8781d223ee08', '628387d5184a83b5e45f94bc19494d6e60088ad1c499c5788e2cbb0e73082c77', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 9, 'statement_completed', 'assert_candidate_relation_mv__order_report__{{d:built}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":4,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 11, 'statement_completed', 'assert_candidate_relation_tbl__large_orders__{{d:built}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":5,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 43, 'statement_completed', 'prepare_metadata_14', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":21,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:built}}', '9a1b05fd5a12ea842bed7cad99e539a9e0f0e7568adc95e9c972353423e3476d', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:built:s3}}'),\n('{{d:built}}', 'f89da1f1e86629316d821767185b871412318c99bf836c9030f4953efee95591', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:built}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:built:s3}}'),\n('{{d:built}}', '27d8f1749194af0517e3c61856ce4297f8746ac6e1131fdf01c9f10a54707364', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}'),\n('{{d:built}}', '078f13af1c3b1adef89a5db166f7d08918df433a3057f7a35407f9b02e2131fb', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:built}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 63, 'statement_completed', 'realize_tbl__order_report__{{d:built}}', 'realization', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 65, 'statement_completed', 'realize_mv__order_report__{{d:built}}', 'realization', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":32,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 69, 'statement_completed', 'realize_mv__large_orders__{{d:built}}', 'realization', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":34,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:built}}', '349ae6ecb2d312c7d3bd29e8d4fdb897e668bb728c174b5fea4de2973544bb65', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:built:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:built}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 81, 'statement_completed', 'seed_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 83, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":16,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":41,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 85, 'statement_completed', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":42,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 87, 'statement_completed', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":43,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 89, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":44,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_d54906a94c8147e4` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:build.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_d54906a94c8147e4` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_d54906a94c8147e4`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_d54906a94c8147e4`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:build.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:built}}', NULL, 2, '{{t:build:1:s3}}', '{{t:build:2:s3}}', 5745, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report --deployment-id {{d:built}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"order_report\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":61,\"planningMs\":44,\"totalMs\":113},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:build.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'c85b2669e2d15f0a90159824b1dffa8a68476f4b3b60b34dedf96764514d99c7\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', '5c2134f35e5352d7c26b27c3d0dbd5c9bf7101b4ca57c1468b2ca50117687c52', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:built}}\\';', 'c76ed25c7f7c6f8645fddafeadf4fc1e1127d4fe51bf71275e20743c837dded9', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', 'e28a845effac03062f1373d4c4b8ea3bbafa8fbd7d86bbea88f776efad1c4fb6', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:built}}\\';', 'd3255bd9562e6bb1f61d49494d0b8e4110c342dc3d12ce7ec009e8927f15b6b5', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:built}}\\';', '3fd809337bf45f722170a747487e0ba1a9d60403fb7f00548edc0b529fa092dc', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:built}}\\';', '6ed89bac1ce1e106455dd5749cb1cafc87429689dfa9faaddf094b018b6b4c72', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:built}}\\', \\'768500ad08d8b456d61f352e774183d03de3b38b00465d079067621b68313b2d\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'537ccb2016ece8415165177ff8bbd02083a1594d5ba6cd956d5bb07a8aad5e7c\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:built}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'cbe909ed42910e58087611fa032759b607c85c6c6781565eed04aa1447a35d8d\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'b2d0f3c839b3fff5f00ee673a27c690b538fc29a782c4e0602d7a87c0c1c2bee\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:built}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\');', '2d3ff60836fd48b39bf0e1a8dd77faf91dc6283a45e63854bec957d4d5a40300', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 31, 'realize_tbl__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:built}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '225094865f689e904d9cb0d1c39ff53840d01b1a5ee802424899a35792a26464', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 32, 'realize_mv__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:built}}\nTO sqltide_playground.tbl__order_report__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'b9ab8bb21dd5a412be9374d745dfea4b9abc37efea0ed2cc313ff08f27126ba4', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 33, 'realize_tbl__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:built}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'f222d17d9c70166011547ff1f66421eb78eae8d254a40be0f602df80ad973a00', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 34, 'realize_mv__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:built}}\nTO sqltide_playground.tbl__large_orders__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}}\nWHERE total_cents >= 1000;', 'fe37dea9c5d1243ee0c6e852015918ff18b1b3081c632e775ead22ee74cb3019', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'started\\');', '6a61d262bf251a27de163abb2a6dd761cfdfbf04f49e38aaff4fcd0f6d0c0c9f', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:built}}\\', \\'c85b2669e2d15f0a90159824b1dffa8a68476f4b3b60b34dedf96764514d99c7\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\');', 'cf4f93a0f7c5e60e601f2106bc0ff43f6ff39f4067e4da2e005c24c6de5d76e3', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:built}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '875737a774228683da3833f176be45959f09493158e350bc031112b97ec78b80', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:built}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'd430cfce583afaa28c30beb59378755765d3faebf0dd28c919b9306f01f7216e', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:built}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '0e8dc339642629d5894fccbb30a4631c0e924fa5ebe6b725321c8281c36ad4ce', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:built}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:built}};', '6fd4c9b7848a5b3239c14850c46ca61e4756e3325ca756d6b8c4d8dfc72502f3', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', 'd3c24bc2c2e10bdb1354c30800e24f642d20e2be596cb6dc389fac0e668335cf', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', '1b2cd71b7041836e2a842a5a48ae9a1d6e64e873efd11a055711be8f7fba3252', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1),\n('{{u:build.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'completed\\');', '5795996fb3cbe34c49fef674732ffd2933a9dc1b57b738ff269b386abfb35cc7', '95a6eb0cf7bd5df32fee0bbc52ca9ac5f131952a528450b7909018c2e9f7fc71', 1)", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:built}}', '768500ad08d8b456d61f352e774183d03de3b38b00465d079067621b68313b2d', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:built:s3}}'),\n('{{d:built}}', '537ccb2016ece8415165177ff8bbd02083a1594d5ba6cd956d5bb07a8aad5e7c', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:built}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:built:s3}}'),\n('{{d:built}}', 'cbe909ed42910e58087611fa032759b607c85c6c6781565eed04aa1447a35d8d', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}'),\n('{{d:built}}', 'b2d0f3c839b3fff5f00ee673a27c690b538fc29a782c4e0602d7a87c0c1c2bee', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:built}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 65, 'statement_completed', 'realize_mv__order_report__{{d:built}}', 'realization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":32,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:built}}', 'c85b2669e2d15f0a90159824b1dffa8a68476f4b3b60b34dedf96764514d99c7', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:built:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:built}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 79, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":9,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":39,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 81, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 89, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":44,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_4922ade0031b5af0` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:build.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_4922ade0031b5af0` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_4922ade0031b5af0`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_4922ade0031b5af0`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:build.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:built}}', NULL, 2, '{{t:build:1:s3}}', '{{t:build:2:s3}}', 5636, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:built}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"order_report\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":54,\"planningMs\":45,\"totalMs\":107},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:build.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'acd1f431792144cb20d3ac5be256b149cd3b84582eed430fcbc6e982aa9e0261\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', 'eac7173d536ce70c8502ce7cf573ad3e8d094784f2ff4620dc5fbd72b4018424', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:built}}\\';', 'f92ae77865a891cab20f6d671249d0034909ca3be3ff6168e2d44e22c16b7656', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', 'b8c749d1cb90daceb29f79a7a1fcd439cd5dca788dbf218d4c6217a2a193cdc7', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:built}}\\';', 'dc3add4416febfea8914753d43187488c4aaa41e41d3d1b12491a0ace86e482e', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:built}}\\';', 'e973f0dce2989aed8486cae023634af17199b2a8793ee63ee861af994eb1883b', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:built}}\\';', '25700f9a227cceafc36983379c44a71bc4729aef4d9aae5d1d6e3ce4f5fda037', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:built}}\\', \\'7da0a2b33dd14bf560d5bd318294110e7259c190367bb8ee45f1087b13c7bd95\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'e206275186984adcd0fe7aa4c84e758f7f2146ba3577617bcbb7ee313fbc11eb\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:built}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'c8fa937b38efda82494b9463a4bff4b85df43e3be302dc5a71ca6f7c6abec320\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'ab51e98cc2caa73efd92110f144d6c42c2d913673457fe18432a31f2e3713cd2\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:built}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\');', 'ccea460f740010a0fe3031708fa29e9baf3364921673b3dacb9762ceea24ebda', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 31, 'realize_tbl__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:built}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '1ae3667a231843de243a86c417c400fbce024a20661c855f92c92cd75ec6cbd6', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 32, 'realize_mv__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:built}}\nTO sqltide_playground.tbl__order_report__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '9ae88a56cade9e7d0f877ec4e37a190f80e1eff350ee3bb9167dabde7943803c', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 33, 'realize_tbl__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:built}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'b6223b704b3c52db9c6128fbba370cfcb36b6f2210196926e493027aad2c9664', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 34, 'realize_mv__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:built}}\nTO sqltide_playground.tbl__large_orders__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}}\nWHERE total_cents >= 1000;', '6d3bbd1f9faef5fb7efc01801b670d27f39ffb6c3f4b34cb283c631950bf7ab6', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'started\\');', '0aaf9a4105256726667b3a56f925d5881d638434e4b909f9d12fb8a12f1f6f38', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:built}}\\', \\'acd1f431792144cb20d3ac5be256b149cd3b84582eed430fcbc6e982aa9e0261\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\');', '5a54b73743696a7b7d020402fc8bd4b38dfb736151b498f73a7c00e973b582c6', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:built}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '380e019ccc344c1d858c838363b1e9533c44f98759fc419524f33b4ed5bbb9b0', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:built}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'e83a72a8800ca9314bb1ccafb9f39881130b89735904cb4d7b08779cbabfe007', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:built}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', '181ac4ef2f4347e904f213807bb46c6de934a308292e74e10addd7b60e396404', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:built}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'e29b9ab54930882b6a566e50763a55dc6ccb9fd3d10f6b1af1b799b68555559e', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:built}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:built}};', '5037972cbdc0265890601a9c922263b24152ce4d01479b1b8105ba0015b4e931', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', 'f56e5b416dcf30013929b0a787df718b494c75be24f1c3e8445e547105d934b3', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', '00a587fc5d096d5f72a1b8d6d3396dcc80eda3a24822fe2b954da2551d4a2fbb', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1),\n('{{u:build.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'completed\\');', '3e7a2af9ed155a94a6a70e11003b15eb560a4de6eb77ad03fe2ba51e0593868f', '9d1dbce34621a5a5ec3ed38b03932515bbe69b5c303f3a14af34ebe8fb1f3ebb', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 33, 'statement_completed', 'prepare_metadata_9', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":16,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:built}}', '7da0a2b33dd14bf560d5bd318294110e7259c190367bb8ee45f1087b13c7bd95', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:built:s3}}'),\n('{{d:built}}', 'e206275186984adcd0fe7aa4c84e758f7f2146ba3577617bcbb7ee313fbc11eb', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:built}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:built:s3}}'),\n('{{d:built}}', 'c8fa937b38efda82494b9463a4bff4b85df43e3be302dc5a71ca6f7c6abec320', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}'),\n('{{d:built}}', 'ab51e98cc2caa73efd92110f144d6c42c2d913673457fe18432a31f2e3713cd2', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:built}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:built}}', 'acd1f431792144cb20d3ac5be256b149cd3b84582eed430fcbc6e982aa9e0261', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:built:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:built}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 81, 'statement_completed', 'seed_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 83, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":14,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":41,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 85, 'statement_completed', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":42,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 89, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":44,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 91, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":45,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_3b4236ea4f37cfb9` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:build.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_3b4236ea4f37cfb9` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_3b4236ea4f37cfb9`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_3b4236ea4f37cfb9`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:build.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:built}}', NULL, 2, '{{t:build:1:s3}}', '{{t:build:2:s3}}', 5643, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select large_orders --deployment-id {{d:built}}\",\"executedLogicalIds\":[],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":0,\"selectors\":[\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":55,\"planningMs\":40,\"totalMs\":103},\"toolVersion\":\"{{v}}\",\"totalStatements\":31}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:build.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'e2c53bc90cc00e48e191e19836a396765de03e2c90efd7fc5d6897ecc9510342\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', '30db0e3ab584fd97a6a320c3bb59930adf50fa49b37d2eaad930eb85019fd968', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:built}}\\';', 'e05686255e5a9feccc727579ff270ad4f2f52d4164d428f67044346c24225f3c', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 3, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 4, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 5, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 6, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 7, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 8, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 9, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 10, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 11, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 12, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 13, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 14, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 15, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 16, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 17, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 18, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 19, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 20, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 21, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 22, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 23, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 24, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 25, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 26, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:built}}\\', \\'2bbae0378108725100caea0dc4cd7c5a5f4321609215d13ad338f19165bca215\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, NULL, NULL, \\'mv__large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'42172eaad1597111ddccc64ae5578a1f505dd65f1016757aacc34d46e7dae8ea\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, NULL, NULL, \\'tbl__large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'1f3037b2377323f9fe8f94d09ac655f8af02e96ca80ae850ef9edddcf76133a5\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, NULL, NULL, \\'tbl__order_report\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\');', '83d3dafdf558c1ea291cd37dc209e3796faf61f6d4f2d943e327f53c49ff8b3f', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 27, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 28, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'started\\');', 'a7a26c10175436ecf49a3e2193bf69e911b8abc550041176e5e09427b2c3961a', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 29, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:built}}\\', \\'e2c53bc90cc00e48e191e19836a396765de03e2c90efd7fc5d6897ecc9510342\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\');', 'b763592f369305b2da77d3c6a36d37835e3a8e87f0c331dc962a8ea261274e5e', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 30, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', 'cb18044927c408dd403da95b19602d1966d618accd8698212adef62490ec5470', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1),\n('{{u:build.1}}', 31, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'completed\\');', 'fe2ce31c098596a3e729970c8fa47a0add521e5f094b56447350ec578aaa9ee7', 'a0bf4d5a310313c5d7a8483a9a6ef89cc53567bf5a9cab46ef4e1ae0ffb662ea', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 6, 'statement_started', 'prepare_target_database', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.5}}\",\"replayOffsetProgress\":null,\"statementSequence\":3}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 7, 'statement_completed', 'prepare_target_database', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":3,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 8, 'statement_started', 'prepare_metadata_1', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.6}}\",\"replayOffsetProgress\":null,\"statementSequence\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 9, 'statement_completed', 'prepare_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":4,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 10, 'statement_started', 'prepare_metadata_2', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.7}}\",\"replayOffsetProgress\":null,\"statementSequence\":5}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 11, 'statement_completed', 'prepare_metadata_2', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":5,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 12, 'statement_started', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.8}}\",\"replayOffsetProgress\":null,\"statementSequence\":6}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 13, 'statement_completed', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":6,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 14, 'statement_started', 'prepare_metadata_4', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.9}}\",\"replayOffsetProgress\":null,\"statementSequence\":7}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 15, 'statement_completed', 'prepare_metadata_4', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":7,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 16, 'statement_started', 'prepare_metadata_5', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.10}}\",\"replayOffsetProgress\":null,\"statementSequence\":8}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 17, 'statement_completed', 'prepare_metadata_5', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":8,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 18, 'statement_started', 'prepare_metadata_6', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.11}}\",\"replayOffsetProgress\":null,\"statementSequence\":9}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 19, 'statement_completed', 'prepare_metadata_6', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":9,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 20, 'statement_started', 'prepare_metadata_7', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.12}}\",\"replayOffsetProgress\":null,\"statementSequence\":10}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 21, 'statement_completed', 'prepare_metadata_7', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":10,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 22, 'statement_started', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.13}}\",\"replayOffsetProgress\":null,\"statementSequence\":11}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 23, 'statement_completed', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":11,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 24, 'statement_started', 'prepare_metadata_9', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.14}}\",\"replayOffsetProgress\":null,\"statementSequence\":12}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 25, 'statement_completed', 'prepare_metadata_9', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":12,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 26, 'statement_started', 'prepare_metadata_10', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.15}}\",\"replayOffsetProgress\":null,\"statementSequence\":13}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 27, 'statement_completed', 'prepare_metadata_10', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":13,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 28, 'statement_started', 'prepare_metadata_11', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.16}}\",\"replayOffsetProgress\":null,\"statementSequence\":14}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 29, 'statement_completed', 'prepare_metadata_11', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":14,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 30, 'statement_started', 'prepare_metadata_12', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.17}}\",\"replayOffsetProgress\":null,\"statementSequence\":15}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 31, 'statement_completed', 'prepare_metadata_12', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 32, 'statement_started', 'prepare_metadata_13', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.18}}\",\"replayOffsetProgress\":null,\"statementSequence\":16}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 33, 'statement_completed', 'prepare_metadata_13', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":16,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 34, 'statement_started', 'prepare_metadata_14', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.19}}\",\"replayOffsetProgress\":null,\"statementSequence\":17}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 35, 'statement_completed', 'prepare_metadata_14', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":17,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 36, 'statement_started', 'prepare_metadata_15', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.20}}\",\"replayOffsetProgress\":null,\"statementSequence\":18}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 37, 'statement_completed', 'prepare_metadata_15', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":18,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 38, 'statement_started', 'prepare_metadata_16', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.21}}\",\"replayOffsetProgress\":null,\"statementSequence\":19}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 39, 'statement_completed', 'prepare_metadata_16', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":19,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 40, 'statement_started', 'prepare_metadata_17', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.22}}\",\"replayOffsetProgress\":null,\"statementSequence\":20}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 41, 'statement_completed', 'prepare_metadata_17', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 42, 'statement_started', 'prepare_metadata_18', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.23}}\",\"replayOffsetProgress\":null,\"statementSequence\":21}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 43, 'statement_completed', 'prepare_metadata_18', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":21,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 44, 'statement_started', 'prepare_metadata_19', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.24}}\",\"replayOffsetProgress\":null,\"statementSequence\":22}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 45, 'statement_completed', 'prepare_metadata_19', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":22,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 46, 'statement_started', 'prepare_metadata_20', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.25}}\",\"replayOffsetProgress\":null,\"statementSequence\":23}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 47, 'statement_completed', 'prepare_metadata_20', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":23,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 48, 'statement_started', 'prepare_metadata_21', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.26}}\",\"replayOffsetProgress\":null,\"statementSequence\":24}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 49, 'statement_completed', 'prepare_metadata_21', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":24,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 50, 'statement_started', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.27}}\",\"replayOffsetProgress\":null,\"statementSequence\":25}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 51, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":25,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 52, 'statement_started', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.28}}\",\"replayOffsetProgress\":null,\"statementSequence\":26}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:built}}', '2bbae0378108725100caea0dc4cd7c5a5f4321609215d13ad338f19165bca215', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__large_orders', NULL, NULL, NULL, 'mv__large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:built:s3}}'),\n('{{d:built}}', '42172eaad1597111ddccc64ae5578a1f505dd65f1016757aacc34d46e7dae8ea', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__large_orders', NULL, NULL, NULL, 'tbl__large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}'),\n('{{d:built}}', '1f3037b2377323f9fe8f94d09ac655f8af02e96ca80ae850ef9edddcf76133a5', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__order_report', NULL, NULL, NULL, 'tbl__order_report', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 53, 'statement_completed', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":26,\"writtenRows\":3}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 54, 'statement_started', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"intent\":\"wait\",\"queryId\":\"{{u:build.29}}\",\"replayOffsetProgress\":null,\"statementSequence\":27}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 55, 'statement_completed', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"elapsedMs\":5012,\"errorMessage\":null,\"intent\":\"wait\",\"statementSequence\":27,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 56, 'statement_started', 'record_population_started', 'boundary', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.30}}\",\"replayOffsetProgress\":null,\"statementSequence\":28}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 57, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":28,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 58, 'statement_started', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.31}}\",\"replayOffsetProgress\":null,\"statementSequence\":29}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:built}}', 'e2c53bc90cc00e48e191e19836a396765de03e2c90efd7fc5d6897ecc9510342', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:built:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:built}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 59, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":29,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 60, 'statement_started', 'read_boundary_time', 'audit', '{\"displayName\":null,\"intent\":\"query\",\"queryId\":\"{{u:build.32}}\",\"replayOffsetProgress\":null,\"statementSequence\":30}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 61, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":30,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 62, 'statement_started', 'record_population_completed', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:build.33}}\",\"replayOffsetProgress\":null,\"statementSequence\":31}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 63, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_f38e6a50272ae345` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:build.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_f38e6a50272ae345` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_f38e6a50272ae345`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_f38e6a50272ae345`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:build.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:built}}', NULL, 0, '{{t:build:1:s3}}', '{{t:build:2:s3}}', 5535, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 64, 'run_completed', NULL, NULL, '{\"errorMessage\":null,\"exitCode\":0,\"operationEvidence\":null,\"outcome\":\"succeeded\"}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:built}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":10,\"observabilityMs\":69,\"planningMs\":61,\"totalMs\":140},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:build.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'40414ac9beed6adab59d26148ed391a7e9d4e2f8dce19d9eb243906d5003dfe8\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', '2702a5da3946f835529ceb2218c50f94176a06b9f9286d5df5eba3c9da9c6bff', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:built}}\\';', 'cbf1f5f8ad03de24f7423cb32649d541b9f01a7637dfd14adb1b9c1302a40120', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', '7b2034e588c06f9205b52aad34ab1b62d64f56bfc915c388150e50531db684c0', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:built}}\\';', 'b5635cf6bec4ed0409e4410733cadf212b7bd2eb6cac7267b73a16d8dcc4118e', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:built}}\\';', '6d841112868a7b505c0f5406c4af5e0d36030c9436d63630ea9c68c01779f60e', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:built}}\\';', '660665d49cc982cd7be3cf30b9d7727222d8ddcfeadc5f53eee4ad45c19e4df2', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:built}}\\', \\'0ad36eb21cc6d4301d2da166014e43966345c800a09ba772cd7fc04eb52bcf37\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'22d52ed744183ecc847b61f15bc54cfff252b42394cab9903f2144dac99ee6a0\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:built}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'92416cca9e4d82fc04bf9b9e2e701f87ddc89fd1ceeffead622dc8c60570d456\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'ed4da64cf97a4c6047537c6373be538b7d100ffc87ae5302b746b2e17fd7b416\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:built}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\');', 'b331622e9eec76a21cdca0a1a5b95b496c0cbb9433f71228d63682549352b56d', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 31, 'realize_tbl__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:built}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '8ac224c59ce59aa485956dd36d569fee26d9ba806fc29eb0183b34a14b93fd92', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 32, 'realize_mv__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:built}}\nTO sqltide_playground.tbl__order_report__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '667f8183a2167f7836628955a94a0f213f2cd9d8ad5a87608bf59435ad2387af', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 33, 'realize_tbl__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:built}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'eb5333677b40cf3d44cadcf018a98ac4c995eb647995845c2a400728209bbc15', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 34, 'realize_mv__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:built}}\nTO sqltide_playground.tbl__large_orders__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}}\nWHERE total_cents >= 1000;', '9afc22d9ea9afe8c32baa69b15d6fa011f197932d227d9c273c3ccab3858ad02', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'started\\');', 'f19c6c0e7dccd9192b4bfcf4182674041bd4e84e37b608da4d971fbf6f4578e7', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:built}}\\', \\'40414ac9beed6adab59d26148ed391a7e9d4e2f8dce19d9eb243906d5003dfe8\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\');', 'bcdf6c0aeef54f0f989fff02bde89128c024e56057708e8ae1125634e5a2c5c4', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:built}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '7f22c1e688eca91ffd75820197f1e5b51b98b8d180faf34f0773444300622354', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:built}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'a92e8d874a932cb0dd15acde17f0a7f27fccd663adb8471681c67bb6826b5a37', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:built}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '32c6a4b618e45c2dc965a18a6682bae8e0ed10ceff10134d29321282687879e1', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:built}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:built}};', '05c2545aed7fa56347ed4e2573c9dc83a8f28e8b435e23c3f73748296d7d9ca6', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', 'd4102e405cc22132c769a6edb1883d332a0727337c0fb2a6b479e9cdcf65834f', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', '9a21e6ce5aa38f3dc26400f6f71342b5c25b7110a6b1101a7ad88055f277ccd3', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1),\n('{{u:build.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'completed\\');', 'af571e3fdc7d6b86baf95a915f75c154c152033ddd2a0068df425ca6335fb6bc', 'cecce02042e5de48d55ae3b4417b4161a930ae8844cd22807858f84c04c113d2', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 7, 'statement_completed', 'assert_candidate_relation_tbl__order_report__{{d:built}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":3,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 9, 'statement_completed', 'assert_candidate_relation_mv__order_report__{{d:built}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":4,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 17, 'statement_completed', 'prepare_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":8,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 27, 'statement_completed', 'prepare_metadata_6', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":13,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 35, 'statement_completed', 'prepare_metadata_10', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":17,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 41, 'statement_completed', 'prepare_metadata_13', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 47, 'statement_completed', 'prepare_metadata_16', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":23,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 49, 'statement_completed', 'prepare_metadata_17', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":24,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 53, 'statement_completed', 'prepare_metadata_19', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":26,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 55, 'statement_completed', 'prepare_metadata_20', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":27,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:built}}', '0ad36eb21cc6d4301d2da166014e43966345c800a09ba772cd7fc04eb52bcf37', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:built:s3}}'),\n('{{d:built}}', '22d52ed744183ecc847b61f15bc54cfff252b42394cab9903f2144dac99ee6a0', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:built}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:built:s3}}'),\n('{{d:built}}', '92416cca9e4d82fc04bf9b9e2e701f87ddc89fd1ceeffead622dc8c60570d456', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}'),\n('{{d:built}}', 'ed4da64cf97a4c6047537c6373be538b7d100ffc87ae5302b746b2e17fd7b416', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:built}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 67, 'statement_completed', 'realize_tbl__large_orders__{{d:built}}', 'realization', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":33,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 73, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":9,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":36,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:built}}', '40414ac9beed6adab59d26148ed391a7e9d4e2f8dce19d9eb243906d5003dfe8', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:built:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:built}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":14,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 87, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":43,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_f8a284bbf5f7c368` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:build.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_f8a284bbf5f7c368` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_f8a284bbf5f7c368`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_f8a284bbf5f7c368`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:build.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:built}}', NULL, 2, '{{t:build:1:s3}}', '{{t:build:2:s3}}', 5831, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:built}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"large_orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":55,\"planningMs\":47,\"totalMs\":110},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:build.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'992a6b27892967aea60dc501b814a4f32198c87c85ab22544b1a5aa4f463d2d9\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', '59807d1e7a89956168e13eef949fc1c1be403ff443ab132770962d29515ed6f3', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:built}}\\';', '232c4cf5b317aa9891704eeb24986e95239e771b1eff58c9c5aaded53ee01065', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', 'c3feb6255c66ba0d73407d3bd097c8d0117f1cfca9c9a9a50a97c12a209e9e5f', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:built}}\\';', 'ba31a43ba42a5a4b35b78aab870bfc19dbdc7cc974449aeb93ee259c7f3d1e09', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:built}}\\';', '7c59853745310be681ed460bd0a2818f0435830c3b3a1f6f7c6b12cac61ab97a', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:built}}\\';', '22d5a62d66b7078e097577f0ab78ff49c90198c4e234fcf65bd25b75d3649311', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:built}}\\', \\'7c1516fbb6e047e139dae3ea57ac748abaf9615393124f9fb386ff3cdd36d00e\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'2710bc61515655951d6fbe0f71700c5b04545afbac3b377b0afaa205b7acfa39\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:built}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'869be9522c65c5b2f1710f92791a862a2d7678bf66b1a9d1a1b7ffa7def79f1d\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'28365803a3e9413c6d823d0511e21172cf8f12f3faa1b7c7fac6e3cbe3710b67\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:built}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\');', '9c1c2e9ef4da78a39bb7c57d7b4df3c4f9dfe4585bedca0185a352081cab4bf8', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 31, 'realize_tbl__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:built}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'ba387a7f0f415a74603f8a2731979c51d2da64b4ed2e94e928f275551da686a9', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 32, 'realize_mv__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:built}}\nTO sqltide_playground.tbl__order_report__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'e61f644fa9c4008b721b67aacecab709d0938eb5136efe1e6019a994fd4fb7fc', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 33, 'realize_tbl__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:built}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '9f79a0cc6a35fad31ee874bfd0efbc5de288664694c8918f44added1ec1978f9', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 34, 'realize_mv__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:built}}\nTO sqltide_playground.tbl__large_orders__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}}\nWHERE total_cents >= 1000;', '2fbb239db2e4aa81dd227e527bab3c6fd50ee59561ee772ac44b2b71182fbd0f', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'started\\');', 'd83a10138bb319f81ac63bfdb98e02da3b1c46a64f2268cde15d6da58005e7e3', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:built}}\\', \\'992a6b27892967aea60dc501b814a4f32198c87c85ab22544b1a5aa4f463d2d9\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\');', 'c4efda8cdc6748317503197c17528266a00beccc2435c6a0f8b58bae0241844b', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:built}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '9e18889630ee82d8ab0ceb0967d6f02e775ed7da378be1a5171deacd90a0cbbf', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:built}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '88e1bfe69e9ee16e87d2aa10b4cd3e3c7d26d4e469ae9aada6f980be7a3352c1', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:built}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', 'e1893f44e872bf937b2f70f72aee1e8b1fdd8c20d37235bfcd4063be9ef2d92b', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:built}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'd6f6a291e296bd716bd4682042d17e0dac47b9c97b44f752862a096a83915392', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:built}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:built}};', 'd4a84b523e39ef0b239cfc825377e1570a08120e40d4e74cc095d4e066dae864', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', 'fd8404819514b5b0022d2670578c077ba8c1ae42f9761d7e5d2e22f72d2d13b7', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', '931034d111c249e1aca6e07afa4582906a82af5cd6061e613713c385515679b1', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1),\n('{{u:build.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'completed\\');', 'a3ad7bc59d7a42fac1bb0c501a0f6cc23cf15abf19db9e5633bfe2181e5b16b4', 'c382461f38b95b918523850a30fbf9e59e311dc592909a563ce8029c51ed0182', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 45, 'statement_completed', 'prepare_metadata_15', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":22,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:built}}', '7c1516fbb6e047e139dae3ea57ac748abaf9615393124f9fb386ff3cdd36d00e', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:built:s3}}'),\n('{{d:built}}', '2710bc61515655951d6fbe0f71700c5b04545afbac3b377b0afaa205b7acfa39', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:built}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:built:s3}}'),\n('{{d:built}}', '869be9522c65c5b2f1710f92791a862a2d7678bf66b1a9d1a1b7ffa7def79f1d', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}'),\n('{{d:built}}', '28365803a3e9413c6d823d0511e21172cf8f12f3faa1b7c7fac6e3cbe3710b67', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:built}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 63, 'statement_completed', 'realize_tbl__order_report__{{d:built}}', 'realization', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 65, 'statement_completed', 'realize_mv__order_report__{{d:built}}', 'realization', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":32,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:built}}', '992a6b27892967aea60dc501b814a4f32198c87c85ab22544b1a5aa4f463d2d9', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:built:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:built}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 81, 'statement_completed', 'seed_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 85, 'statement_completed', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":42,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 87, 'statement_completed', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":43,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_64be7d80b98e84b3` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:build.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_64be7d80b98e84b3` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_64be7d80b98e84b3`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_64be7d80b98e84b3`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:build.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:built}}', NULL, 2, '{{t:build:1:s3}}', '{{t:build:2:s3}}', 5762, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report large_orders --deployment-id {{d:built}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"order_report\",\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":56,\"planningMs\":44,\"totalMs\":108},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:build.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'e97e674291bee67ae09b1e3709ea94e955270dfee3243f80a5d104f64ad4ca15\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', '986b3c679a098bccb1dfdc34e821f9fda04c8fe8836e4c5814bbd40c3caf9aef', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:built}}\\';', '979082bdee6a1590d864d692b88c3a2c072d87a01ec3e2f196faf57e0d9d257e', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', 'bb60ffbe2f08f4d48cb47f85037e47232cf7f1f4949f774e8edf001e5d122adb', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:built}}\\';', '802921df9862f4f4438ba30d757ff9e195802f474505c5c263dae6ba5093a82b', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:built}}\\';', 'f06456f3f9153225972e77aa0f04eb49ae4cbeec95f3f55b08635734465d1325', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:built}}\\';', '0c0ed16c8125b0399788f97898387050ca5063ecdc6ecbe474a6be839c309a49', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:built}}\\', \\'a8a86b8f0243a2e5500d648a46779d76702a224d36741b0a408d123754839faf\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'4a37eb7bf5a872ddd18721a0494e0b5f52ff6f7aefe45e4f6023a7f19eb2c444\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:built}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'2790b03ab440617233c5386445e167bc1f0a70b5464c5bf37f60ab46528ccc55\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'36e9933ececc4d7d22c618a922bb596f7ecc54099e9e11c88a7c45f63e918d56\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:built}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\');', '3cb00e4685170cc0eb70ec8dcc0fd7f38e00718c0724a2d62c4ea3791f621cf3', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 31, 'realize_tbl__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:built}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'f7b0c96fd11d305f3fe3231766cbbf271a15d515ff596e16fc3da84e7fcc5364', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 32, 'realize_mv__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:built}}\nTO sqltide_playground.tbl__order_report__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'd5e26f063448bb18d980b05182decaf86e04fdeb8b1e4f54b32feaf07b2aae78', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 33, 'realize_tbl__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:built}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '61fd4b5393daa91475bd19ba420fbd6bdee620c16b31d95fdb0a52aa22393ac0', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 34, 'realize_mv__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:built}}\nTO sqltide_playground.tbl__large_orders__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}}\nWHERE total_cents >= 1000;', '4cfa58dd80cc5302c3e5115bdd84c17c247cc3e3bb64e02fb5839f47d14a9adb', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'started\\');', 'ee87bdb992f9e9457ea488b4dd1a587faaecbf967ea9cd6091bcb43d7e1012b9', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:built}}\\', \\'e97e674291bee67ae09b1e3709ea94e955270dfee3243f80a5d104f64ad4ca15\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\');', 'c27e43b34e0cd0a532f50e3aab1f5f2cdfe92765ed57f540a7d1ee5b90265eab', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:built}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '5662ac595d6ee0fd219475366c191690b2b7daf05fcca8536f5cf699ee2331c2', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:built}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'c55938effaef8b30d57e10883f58e07be57e401035d259d059ec78084f0be240', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:built}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'f87ed40d74fa8960146321fe130bd8f8ebc7728c8c5c1589e6fda42b3fc5f5b4', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:built}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:built}};', 'c9412a5f0318cc47b4bca82d05dd0841b681df0267915d79fe7ec2c4ecdd3511', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', '170bfe9f70a10f39ad02ed0fd729fd888cbb3e568adbfe9bd124d3faaed761fb', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', '3d5cd5b77b70537aa58f1ba5e19c509f56150a41f34a5b2cbb0ddee7c3d6f270', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1),\n('{{u:build.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'completed\\');', 'a8424d31cb8f936ee1bed4e990f45ed8b034990758541a311cf5735a73b3ff15', '94406dcca84ffbd812d9c4d5f25af84847f1973a55e0c32640d04d92295b4fbe', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 9, 'statement_completed', 'assert_candidate_relation_mv__order_report__{{d:built}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":4,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 45, 'statement_completed', 'prepare_metadata_15', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":22,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:built}}', 'a8a86b8f0243a2e5500d648a46779d76702a224d36741b0a408d123754839faf', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:built:s3}}'),\n('{{d:built}}', '4a37eb7bf5a872ddd18721a0494e0b5f52ff6f7aefe45e4f6023a7f19eb2c444', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:built}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:built:s3}}'),\n('{{d:built}}', '2790b03ab440617233c5386445e167bc1f0a70b5464c5bf37f60ab46528ccc55', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}'),\n('{{d:built}}', '36e9933ececc4d7d22c618a922bb596f7ecc54099e9e11c88a7c45f63e918d56', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:built}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:built}}', 'e97e674291bee67ae09b1e3709ea94e955270dfee3243f80a5d104f64ad4ca15', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:built:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:built}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 81, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":19,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":4}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_5b171274911f04de` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:build.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_5b171274911f04de` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_5b171274911f04de`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_5b171274911f04de`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:build.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:built}}', NULL, 2, '{{t:build:1:s3}}', '{{t:build:2:s3}}', 5701, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:built}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"order_report\",\"large_orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":62,\"planningMs\":46,\"totalMs\":116},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:build.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'0cf56f5ed08e4033623c017555692506b46ba9413ac9ebf0cdb5efb97c9c14af\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', '907553073d01db09b84fa1c5216d70aba2467d3de24175b0729a9181f62bb207', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:built}}\\';', '4b78350f027d52d4307d4c2092ae9cdeb4688df99dd18ff7ae3fcc0d193753e6', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', '022ce720f0e592bdc6d2486bee338db64f1ca0c440050c5366280d5765b5816a', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:built}}\\';', 'e02915a6832c457992fc133c1adcae99c7f3c1b109c1fd312cde47a9c71b19e1', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:built}}\\';', '397c5887206dc35f8e2d1ee6f78d8ba9d5798308ce4da9f16437b0e0667832fd', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:built}}\\';', 'e5c33676a23332974df12832628477db13e262af90b59974c79bb0cae33cf1e8', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:built}}\\', \\'ca6f6ef684c307119f37bd895d59b1fe271c4cc8386e5168065ae487a7b2edee\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'ca3c0b726e3b6460ad559c517cb82719119d7eb67a19327a75bb8883d405c272\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:built}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'8d769f32ad03a4f92a98760dbde1552f67c21d9135176eedadb1bd955a673602\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'ff520b278377fe1a04d4b01252cdcd9fdde3c2c12e5224672de3f06df0dab64b\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:built}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\');', '5681cc594a8e4634e516785d8c2b366642e17a57a2db6e1b06a122d3e8517ab2', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 31, 'realize_tbl__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:built}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'ad8ea0aa55a96024b2e4cc87284a5f06ac33961334f4efcf6a152192a414b05d', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 32, 'realize_mv__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:built}}\nTO sqltide_playground.tbl__order_report__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'c301e2836165e8efff9463fb9c1f85d86b7dc7b623378a4124a86614954e763b', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 33, 'realize_tbl__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:built}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '9feacddb2f37a74986e3143df2e67b23fcfe2ba9023098a4ed2eb19e82bf2a1d', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 34, 'realize_mv__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:built}}\nTO sqltide_playground.tbl__large_orders__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}}\nWHERE total_cents >= 1000;', '08132191e856a063565064975a238986c023ee3e8efc290a8c03367edcfc804c', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'started\\');', 'f7f25ebd124861cfceafd1927049dbe800c2bdafe823623c0e8b4b66c9628545', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:built}}\\', \\'0cf56f5ed08e4033623c017555692506b46ba9413ac9ebf0cdb5efb97c9c14af\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\');', '0400b339be003a2bf6d9522e799c9bc448f9960fa30455737cd03f797c7fd0a0', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:built}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '79bab5473e311e7ad4c444ce27c1444803d2323ae68646f54779b5cbea1f4dfe', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:built}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'e519e54d2d6d216168bd92e6c6db7cb1ec05880749c9fa278a0a7c578778545e', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:built}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', '385e88a04113d9681d88421172ea5bb93b27c72b29312d152d9a2bfb6fb22d6b', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:built}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '4d9f1db7c54a5b5bb996a9365eb26100beb084cf7680a925e8636248b1e8f791', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:built}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:built}};', '0d974514cc79b964236b781ced013dfedc9674b233b1ccd702c9f12087c5bf0e', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', '3bfe5ff36ec983f381f360d04aa685140e4c43a23043dcf67c2d061aa454e048', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', 'e2b0f1a788b704bb50b5d72ac04faae20e2e837619956ba0c663c676bba74ab8', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1),\n('{{u:build.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'completed\\');', 'c3f8bffb2d6c7e5813f44e02dfe1c0533d09a9c56d7da8eb2e9e66ae04284bbd', 'b3b418ae6e116a1a6fff2b2d013caab7bf042f450574b65a9c5aaac83782e85f', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 7, 'statement_completed', 'assert_candidate_relation_tbl__order_report__{{d:built}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":3,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 15, 'statement_completed', 'prepare_target_database', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":7,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:built}}', 'ca6f6ef684c307119f37bd895d59b1fe271c4cc8386e5168065ae487a7b2edee', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:built:s3}}'),\n('{{d:built}}', 'ca3c0b726e3b6460ad559c517cb82719119d7eb67a19327a75bb8883d405c272', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:built}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:built:s3}}'),\n('{{d:built}}', '8d769f32ad03a4f92a98760dbde1552f67c21d9135176eedadb1bd955a673602', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}'),\n('{{d:built}}', 'ff520b278377fe1a04d4b01252cdcd9fdde3c2c12e5224672de3f06df0dab64b', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:built}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:built}}', '0cf56f5ed08e4033623c017555692506b46ba9413ac9ebf0cdb5efb97c9c14af', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:built:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:built}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 75, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":37,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":15,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 79, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":16,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":39,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 81, 'statement_completed', 'seed_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":12,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 83, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":19,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":41,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 91, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":9,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":45,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_09b61369721c75bc` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:build.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_09b61369721c75bc` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_09b61369721c75bc`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_09b61369721c75bc`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:build.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:built}}', NULL, 2, '{{t:build:1:s3}}', '{{t:build:2:s3}}', 5768, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:built}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"order_report\",\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":69,\"planningMs\":54,\"totalMs\":132},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:build.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'0dc9b7c67f4b30cff0004071b7f54cc7563625f05d80eefd27353b79cd8c2be7\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', '9f2ea51cba874f5a9453c3ae4ee59f300261700841edfb89be583044655e35c9', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:built}}\\';', '142e914acaa2584118fd2eaa3cc2aeff5bbdde3c9f2cee73516d7e57249e24e4', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', '3f0570414c1358c6d28679d1403084c93e2c0ff96b0270ba594143bc93514eda', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:built}}\\';', '0bf3acd445474e557acc90c0653c57595debdf0e504c2bd8ee41e311a743cee8', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:built}}\\';', '1b74e4c98e2e351a75d5d1e75cbc1e97dfd0612e76c21bbaf5759991ccbe10d8', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:built}}\\';', 'ff7359fec8da146234e87274d5696266220e3a1676d2502ca641b86ebf9f97bf', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:built}}\\', \\'79db2a3d1d39aa7d78ea37a333518f23a689536ded56d8a20a8c85926b86f6e2\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'68bb9a8341c174668b2d1d56252e586014717a1ed39311bb593221ff091971d9\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:built}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'4c73fdee2d9cc3aebf6821adf565c78a865022f24ce7ed1ccf1a64e0f839bbb0\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'10ca4892f55ac3f2d5b2dda918f8220c94705ad30fb52bddb7cac84121876648\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:built}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\');', 'a467f3d636ae9c9a95097842f1ea83605701d09857717fc89c45400340e721e1', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 31, 'realize_tbl__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:built}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'b6c7e04942685428f7c8aadefd03ca6306f09b51a7739a1d31d80b15dd4da62f', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 32, 'realize_mv__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:built}}\nTO sqltide_playground.tbl__order_report__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '9487a3a02cac2d6406b14e583768d2d7f795ef27f1af993ddb4b1fccb1ee96a3', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 33, 'realize_tbl__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:built}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '4e03ea1ba5b2de7bb061fcd8d169e15b490f91f9ea0a350fadf0bfc2ca4d9a7a', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 34, 'realize_mv__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:built}}\nTO sqltide_playground.tbl__large_orders__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}}\nWHERE total_cents >= 1000;', 'd83729dc2a9ac7c1d5f5ab84c668b2a048f25bfa823c664209b9ef7fd522cba8', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'started\\');', 'f54cacd554e3664039ae064e4c88bb42bf666d0be9280e38d930f93f70f6ffec', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:built}}\\', \\'0dc9b7c67f4b30cff0004071b7f54cc7563625f05d80eefd27353b79cd8c2be7\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\');', '0b8e473c611e839a071a37c1c58fccb735b0f0104acb4e8fe4f46d5717ea33ce', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:built}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '7e532678a66964fa1ae18c78019b0ba1816285833c4b0eb89919e6b06ba4c62c', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:built}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'efd15add6eb13a0c010e4150b614740cc06cb577a0a110e385cd962fdd23ef23', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:built}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'd6928f3f46d02117c80eb768945bb2d998e7412f5c40045170ae65965d16d0a0', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:built}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:built}};', 'b8d73b0790db30a6d7048cff0725aa8c1a5c1ed57c44cf96d2fce1db416d4cda', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', 'ed5383a7f7f30c96c2297ad49a081b0ca4844085dd46dd009676f32d81486f8e', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', 'fe104cd92be69c781e6411fe52b3bb8fcdf65682db50e5cb80ea153500034523', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1),\n('{{u:build.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'completed\\');', '6ee704011690653ae5890ef32206d3fd76003ab1c33a36f7a6786ae08d577927', '37d37cae2c6de1964257087e83a89641185da12e1ef1c9727b7ad2e2b83a6af7', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 25, 'statement_completed', 'prepare_metadata_5', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":12,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:built}}', '79db2a3d1d39aa7d78ea37a333518f23a689536ded56d8a20a8c85926b86f6e2', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:built:s3}}'),\n('{{d:built}}', '68bb9a8341c174668b2d1d56252e586014717a1ed39311bb593221ff091971d9', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:built}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:built:s3}}'),\n('{{d:built}}', '4c73fdee2d9cc3aebf6821adf565c78a865022f24ce7ed1ccf1a64e0f839bbb0', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}'),\n('{{d:built}}', '10ca4892f55ac3f2d5b2dda918f8220c94705ad30fb52bddb7cac84121876648', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:built}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 63, 'statement_completed', 'realize_tbl__order_report__{{d:built}}', 'realization', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 71, 'statement_completed', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"elapsedMs\":5006,\"errorMessage\":null,\"intent\":\"wait\",\"statementSequence\":35,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 73, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":36,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:built}}', '0dc9b7c67f4b30cff0004071b7f54cc7563625f05d80eefd27353b79cd8c2be7', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:built:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:built}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 75, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":16,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":37,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 81, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":20,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 87, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":43,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_524001103901b160` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:build.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_524001103901b160` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_524001103901b160`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_524001103901b160`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:build.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:built}}', NULL, 2, '{{t:build:1:s3}}', '{{t:build:2:s3}}', 5751, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:built}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"order_report\",\"large_orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":60,\"planningMs\":48,\"totalMs\":117},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:build.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'48d24329f2f244d40908b8f75df529a36cd34952197605475b3f2ceb4ee8f76b\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', '1f0b6be6ae47dc67c968d47efd9cc6a5dfcd2353bdbe87c575ac6f81a4efec65', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:built}}\\';', '4bef49f854e7187acd7d24e71ba185adf49d1f5f613ed306319fdcf26db4e484', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', '726317a712309253a30a03e61ca5d29c3607c715470dc174fd4394a12ca434c5', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:built}}\\';', '579d0a3009602b6a6921a153e8f5582638dc340e0600e029b8f0455cd489e97b', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:built}}\\';', 'b41ae38720dffc1bc6b6eb1fcff1dbc131a0a3709d5d3476c89e20ce4c403591', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:built}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:built}}\\';', '6f92e8652003e34622a369dea87c4b3eddeb819b5a436701ad3ba72072a8c698', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:built}}\\', \\'a4b4a98dd8c72c765013a40ce1881ffad6d1ee228338bf95d4aad310095b95e1\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'ebfea30480898f78a7a8eb63c33175274952a1294b62023f303b1cccea298344\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:built}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'2cf735912ddf9731851b7289f87721985534bfc44aadc18a55eb86d471727c17\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:built}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\'),\n(\\'{{d:built}}\\', \\'e07cb0927c0f84cf9e070133edb4bbe766cac338db85edc2a9d944bd7d43549c\\', \\'deployment\\', \\'{{d:built}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:built}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:built:s3}}\\');', '56e2e43c1d61c7394a9bd0ab87cd614227f456abc0d69cce83486217808de530', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 31, 'realize_tbl__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:built}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '06d124a0d81999d8d0ec3edb0872268e626061312164662ef490065cd2d13398', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 32, 'realize_mv__order_report__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:built}}\nTO sqltide_playground.tbl__order_report__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'd5e2af411335e9c2b8e12b090d7a1f11ecbb705170f4a699f2db9063178ba451', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 33, 'realize_tbl__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:built}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '11cdbf5db57288cf0dd2037f1a947261924e21f159cb2ce7794ec9ed537332ed', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 34, 'realize_mv__large_orders__{{d:built}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:built}}\nTO sqltide_playground.tbl__large_orders__{{d:built}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}}\nWHERE total_cents >= 1000;', 'd8457ae56574da4222835c61c4966e46131cd0df572f84d98dcc329100604ccb', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'started\\');', 'b63c4e2c45c31a7e13978a3c59e003d72b7010a393fd169f1748c469d49094df', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:built}}\\', \\'48d24329f2f244d40908b8f75df529a36cd34952197605475b3f2ceb4ee8f76b\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:built:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\');', '4f77eb169d66554295205452e3d108500e38bde96ab5ac4c2e816bf313324d19', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:built}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '04e9aca4266f436a64385f2727cbc238b403de75102d0a3fb13af20c96821f10', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:built}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'af2869772bd95843141aba630e4db8be95e4137fe32a6e6980974aa9ada6b326', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:built}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', '4795529554b021ae596704c33a7d0fa2ff078708c5c42e476683b08475bc110d', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:built}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:built}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '8fddb4a5fc6d71899592f8a7adb268a0d6939d2c291b4eece3337416aeb3b285', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:built}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:built}};', 'd6e1ab682444d816b902018345d40848f05b7c3dcb4d28d6e29caa70f684fb1f', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:built}}\\';', 'b6ca5fbd933aeedd07137d7742815269c5bb57ff8b7c5843466a0f5b9e8f2bc6', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:built}}\\';', '908720ee0038cc83cb311d5595467de446370f41e783ffa4b6b81363608d9b75', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1),\n('{{u:build.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:built}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:built}}\\' AND stage = \\'completed\\');', 'fb52b6b98676d67308d4143551171f0e1c43212d77813c5b46aa1a9f4af1e230', 'cb8cf305c9006a5d80f9f5a8ee0f511060dbfec44e922585279d80ec1f768c0b', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 13, 'statement_completed', 'assert_candidate_relation_mv__large_orders__{{d:built}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":6,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 21, 'statement_completed', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":10,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 31, 'statement_completed', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 39, 'statement_completed', 'prepare_metadata_12', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":19,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:built}}', 'a4b4a98dd8c72c765013a40ce1881ffad6d1ee228338bf95d4aad310095b95e1', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:built:s3}}'),\n('{{d:built}}', 'ebfea30480898f78a7a8eb63c33175274952a1294b62023f303b1cccea298344', 'deployment', '{{d:built}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:built}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:built:s3}}'),\n('{{d:built}}', '2cf735912ddf9731851b7289f87721985534bfc44aadc18a55eb86d471727c17', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:built}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}'),\n('{{d:built}}', 'e07cb0927c0f84cf9e070133edb4bbe766cac338db85edc2a9d944bd7d43549c', 'deployment', '{{d:built}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:built}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:built:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:built}}', '48d24329f2f244d40908b8f75df529a36cd34952197605475b3f2ceb4ee8f76b', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:built:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:built}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:build.1}}', 83, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":21,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":41,\"writtenRows\":2}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_014abd226c54064d` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:build.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_014abd226c54064d` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_014abd226c54064d`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_014abd226c54064d`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:build.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:built}}', NULL, 2, '{{t:build:1:s3}}', '{{t:build:2:s3}}', 5734, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 1, 'run_started', NULL, NULL, '{\"command\":\"deployment rollback\",\"contextLogicalIds\":[],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt deployment rollback {{d:v1}}\",\"executedLogicalIds\":[\"model:order_report\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":1,\"selectors\":[],\"startTime\":null,\"startupTimings\":null,\"toolVersion\":\"{{v}}\",\"totalStatements\":0}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.1}}'", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 2, 'statement_started', 'replace_stable_binding_tbl__order_report', 'stabilization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.2}}\",\"replayOffsetProgress\":null,\"statementSequence\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 3, 'statement_completed', 'replace_stable_binding_tbl__order_report', 'stabilization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":1,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 4, 'statement_started', 'migrate_metadata_0001', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.3}}\",\"replayOffsetProgress\":null,\"statementSequence\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 5, 'statement_completed', 'migrate_metadata_0001', 'finalization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":2,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 6, 'statement_started', 'migrate_metadata_0002', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.4}}\",\"replayOffsetProgress\":null,\"statementSequence\":3}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 7, 'statement_completed', 'migrate_metadata_0002', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":3,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 8, 'statement_started', 'migrate_metadata_0003', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.5}}\",\"replayOffsetProgress\":null,\"statementSequence\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 9, 'statement_completed', 'migrate_metadata_0003', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":4,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 10, 'statement_started', 'migrate_metadata_0004', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.6}}\",\"replayOffsetProgress\":null,\"statementSequence\":5}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 11, 'statement_completed', 'migrate_metadata_0004', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":5,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 12, 'statement_started', 'migrate_metadata_0005', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.7}}\",\"replayOffsetProgress\":null,\"statementSequence\":6}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 13, 'statement_completed', 'migrate_metadata_0005', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":6,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 14, 'statement_started', 'migrate_metadata_0006', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.8}}\",\"replayOffsetProgress\":null,\"statementSequence\":7}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 15, 'statement_completed', 'migrate_metadata_0006', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":7,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 16, 'statement_started', 'migrate_metadata_0007', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.9}}\",\"replayOffsetProgress\":null,\"statementSequence\":8}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 17, 'statement_completed', 'migrate_metadata_0007', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":8,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 18, 'statement_started', 'migrate_metadata_0008', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.10}}\",\"replayOffsetProgress\":null,\"statementSequence\":9}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 19, 'statement_completed', 'migrate_metadata_0008', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":9,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 20, 'statement_started', 'migrate_metadata_0009', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.11}}\",\"replayOffsetProgress\":null,\"statementSequence\":10}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 21, 'statement_completed', 'migrate_metadata_0009', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":10,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 22, 'statement_started', 'migrate_metadata_0010', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.12}}\",\"replayOffsetProgress\":null,\"statementSequence\":11}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 23, 'statement_completed', 'migrate_metadata_0010', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":11,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 24, 'statement_started', 'migrate_metadata_0011', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.13}}\",\"replayOffsetProgress\":null,\"statementSequence\":12}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 25, 'statement_completed', 'migrate_metadata_0011', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":12,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 26, 'statement_started', 'migrate_metadata_0012', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.14}}\",\"replayOffsetProgress\":null,\"statementSequence\":13}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 27, 'statement_completed', 'migrate_metadata_0012', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":13,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 28, 'statement_started', 'migrate_metadata_0013', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.15}}\",\"replayOffsetProgress\":null,\"statementSequence\":14}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 29, 'statement_completed', 'migrate_metadata_0013', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":14,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 30, 'statement_started', 'migrate_metadata_0014', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.16}}\",\"replayOffsetProgress\":null,\"statementSequence\":15}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 31, 'statement_completed', 'migrate_metadata_0014', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 32, 'statement_started', 'migrate_metadata_0015', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.17}}\",\"replayOffsetProgress\":null,\"statementSequence\":16}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 33, 'statement_completed', 'migrate_metadata_0015', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":16,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 34, 'statement_started', 'migrate_metadata_0016', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.18}}\",\"replayOffsetProgress\":null,\"statementSequence\":17}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 35, 'statement_completed', 'migrate_metadata_0016', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":17,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 36, 'statement_started', 'migrate_metadata_0017', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.19}}\",\"replayOffsetProgress\":null,\"statementSequence\":18}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 37, 'statement_completed', 'migrate_metadata_0017', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":18,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 38, 'statement_started', 'migrate_metadata_0018', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.20}}\",\"replayOffsetProgress\":null,\"statementSequence\":19}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 39, 'statement_completed', 'migrate_metadata_0018', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":19,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 40, 'statement_started', 'migrate_metadata_0019', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.21}}\",\"replayOffsetProgress\":null,\"statementSequence\":20}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 41, 'statement_completed', 'migrate_metadata_0019', 'finalization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 42, 'statement_started', 'migrate_metadata_0020', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.22}}\",\"replayOffsetProgress\":null,\"statementSequence\":21}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 43, 'statement_completed', 'migrate_metadata_0020', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":21,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 44, 'statement_started', 'migrate_metadata_0021', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.23}}\",\"replayOffsetProgress\":null,\"statementSequence\":22}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 45, 'statement_completed', 'migrate_metadata_0021', 'finalization', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":22,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 46, 'statement_started', 'migrate_metadata_0022', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.24}}\",\"replayOffsetProgress\":null,\"statementSequence\":23}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 47, 'statement_completed', 'migrate_metadata_0022', 'finalization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":23,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 48, 'statement_started', 'persist_publish_event_0001', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.25}}\",\"replayOffsetProgress\":null,\"statementSequence\":24}')", - "INSERT INTO sqltide_playground._sqltide_virtual_publications (publication_id, deployment_id, operation, previous_deployment_id, logical_database_name, logical_view_name, physical_database_name, physical_relation_name, published_at) VALUES\n('01794650099018314160_cefd9d356a4898b018fca4e55c10289d7baa62c4eac6c8e5021d4215c09ccc88', '{{d:v1}}', 'rollback', '{{d:v2}}', 'sqltide_playground', 'tbl__order_report', 'sqltide_playground', 'tbl__order_report__{{d:v1}}', '{{t:extra:0:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 49, 'statement_completed', 'persist_publish_event_0001', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":24,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_4603c97785704bfe` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.1}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_4603c97785704bfe` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_4603c97785704bfe`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_4603c97785704bfe`", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 50, 'run_completed', NULL, NULL, '{\"errorMessage\":null,\"exitCode\":0,\"operationEvidence\":null,\"outcome\":\"succeeded\"}')", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.0}}', 'sqltide-playground', 'sqltide_playground', 'deployment rollback', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:v1}}', NULL, 1, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 373, NULL, '{\"publishedViews\":1}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_manifests (manifest_id, invocation_id, project_identity, target_name, target_database, is_production, project_revision, manifest_fingerprint, manifest_version, pipelines, resources, tool_version, published_at) VALUES\n('{{u:extra.0}}', '{{u:extra.1}}', 'sqltide_playground', 'local', 'sqltide_playground', false, NULL, 'e1317984c5d8b4a942b75d923a0b9d031f7e61a3cc872f0b068ebe553b2398af', 1, ['pl__orders'], [('pl__orders', 'model', 'large_orders', 'materialization', 'sqltide_playground', 'mv__large_orders', 'materialized_view'), ('pl__orders', 'model', 'large_orders', 'primary', 'sqltide_playground', 'tbl__large_orders', 'table'), ('pl__orders', 'model', 'order_report', 'materialization', 'sqltide_playground', 'mv__order_report', 'materialized_view'), ('pl__orders', 'model', 'order_report', 'primary', 'sqltide_playground', 'tbl__order_report', 'table')], '{{v}}', toDateTime64('{{t:extra:0:s6}}', 6, 'UTC'))", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[],\"startTime\":null,\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":62,\"planningMs\":52,\"totalMs\":123},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'068839d156817f9ca95923f615eca05c96009df55a150004cd6fb092165855f8\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'a4df2cda7a99fe72d68c0483c2f455c635e175a0ff25db6f13308d5da7f365be', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '9b8f22f4132f214626e09a8f7fbb164deb9c108c50ccb5e727d6fe78d0d16799', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'fdc54586a57e4262b7d3b240e1fbd9607875dc09bff7f898195e4edc61136659', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '07b9c34df1bb9bcf437210ae538e793d51df7caf46c67d90486d07a5c2cea5af', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'e35aec4a8481ade80be36e07875df988d979d19ee7fd4ed139b6fefcb8c06ba3', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', 'c61ec2879604cd7a1e4bd3305f989e2422fc6ce8b4d9242c8954c7a7528a430a', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'8ac2ef3770320933629ad336aabfd155343c017a02ff8f3d2a6cc00f4168f118\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'4a5b087ac71b0d86e4a2a453680ecc3d6860f634df4a8916adae0b3154dd068a\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'e36378e8c111fc1d7e67034686559a8ebd2ac303a69b55282e15a6ba0a65a84a\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'90588d3c8e5c255af51b47e6d0f8544ff488c3b0f7f1744b9bfb177838427abd\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', 'b23f01d60ab020d97ddb22d1264ed9131d6c8e569454e606b8ef2d17c0fab4be', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'ee8b409a1543aeefcb64a8f20edb98c2703cd7e25be10de8c1f22cee51b82461', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 32, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '8f406e56a3607393eac53db382ce70a9707b9153e5df3be30d09f1eb55727604', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 33, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', 'e42ac622129ed2fd03df8e6665710c29fd3ad2c42a17a5d5104dd2f5d89ac08b', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 34, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '752f2f4aa3e35bd3d4e35c0fd1ece05c6db9337eba24190b91c1373112a82b16', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'b49717fc4844f04ac31b40990e9d5c8e51c869806d53751b8cf1700fb5d9fffc', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'068839d156817f9ca95923f615eca05c96009df55a150004cd6fb092165855f8\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '610f6f76383b56219f081e65f90d3b6c2cf4b2b8d0dcdbe8bf17be79f8752a39', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '0c8ff2fdd09a1e0c81a74caf474a0e377d5c2ec90e7208aa277db538d2662277', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'ba7d751a19c4a43d4c4d4770d53692b0c379d98abb2c510a76c8be2a70a46f9c', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'ac3b9a535cf61079e1fa1cb8683e7de13b0974a1daefe088aac89a7047067708', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '85a702453ead9a0ef006d6906f2515e6386280454b7c00918b20e22f63c73c2e', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '44c7ad44b8912200e0049147104065636a0fb168477158677efe5ff35829ed7f', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '305aac2a8d284908ea9b85255e56d3e808e5af9d75a76831bdf9e9609bf8c60e', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '0c4c728421235ec9193f5bc662fe7be5617a64397a9358712ff613b5978473b0', '6f980937db428276c9791144272eb6d89d852323a6ee5241bd68b6c9b2e05d83', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 2, 'statement_started', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:extra.3}}\",\"replayOffsetProgress\":null,\"statementSequence\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 4, 'statement_started', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:extra.4}}\",\"replayOffsetProgress\":null,\"statementSequence\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 6, 'statement_started', 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:extra.5}}\",\"replayOffsetProgress\":null,\"statementSequence\":3}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 7, 'statement_completed', 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":3,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 8, 'statement_started', 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:extra.6}}\",\"replayOffsetProgress\":null,\"statementSequence\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 9, 'statement_completed', 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":4,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 10, 'statement_started', 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:extra.7}}\",\"replayOffsetProgress\":null,\"statementSequence\":5}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 11, 'statement_completed', 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":5,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 12, 'statement_started', 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:extra.8}}\",\"replayOffsetProgress\":null,\"statementSequence\":6}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 13, 'statement_completed', 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":6,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 14, 'statement_started', 'prepare_target_database', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.9}}\",\"replayOffsetProgress\":null,\"statementSequence\":7}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 15, 'statement_completed', 'prepare_target_database', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":7,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 16, 'statement_started', 'prepare_metadata_1', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.10}}\",\"replayOffsetProgress\":null,\"statementSequence\":8}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 17, 'statement_completed', 'prepare_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":8,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 18, 'statement_started', 'prepare_metadata_2', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.11}}\",\"replayOffsetProgress\":null,\"statementSequence\":9}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 19, 'statement_completed', 'prepare_metadata_2', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":9,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 20, 'statement_started', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.12}}\",\"replayOffsetProgress\":null,\"statementSequence\":10}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 21, 'statement_completed', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":10,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 22, 'statement_started', 'prepare_metadata_4', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.13}}\",\"replayOffsetProgress\":null,\"statementSequence\":11}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 23, 'statement_completed', 'prepare_metadata_4', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":11,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 24, 'statement_started', 'prepare_metadata_5', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.14}}\",\"replayOffsetProgress\":null,\"statementSequence\":12}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 25, 'statement_completed', 'prepare_metadata_5', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":12,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 26, 'statement_started', 'prepare_metadata_6', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.15}}\",\"replayOffsetProgress\":null,\"statementSequence\":13}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 27, 'statement_completed', 'prepare_metadata_6', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":13,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 28, 'statement_started', 'prepare_metadata_7', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.16}}\",\"replayOffsetProgress\":null,\"statementSequence\":14}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 29, 'statement_completed', 'prepare_metadata_7', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":14,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 30, 'statement_started', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.17}}\",\"replayOffsetProgress\":null,\"statementSequence\":15}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 31, 'statement_completed', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 32, 'statement_started', 'prepare_metadata_9', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.18}}\",\"replayOffsetProgress\":null,\"statementSequence\":16}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 33, 'statement_completed', 'prepare_metadata_9', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":16,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 34, 'statement_started', 'prepare_metadata_10', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.19}}\",\"replayOffsetProgress\":null,\"statementSequence\":17}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 35, 'statement_completed', 'prepare_metadata_10', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":17,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 36, 'statement_started', 'prepare_metadata_11', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.20}}\",\"replayOffsetProgress\":null,\"statementSequence\":18}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 37, 'statement_completed', 'prepare_metadata_11', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":18,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 38, 'statement_started', 'prepare_metadata_12', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.21}}\",\"replayOffsetProgress\":null,\"statementSequence\":19}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 39, 'statement_completed', 'prepare_metadata_12', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":19,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 40, 'statement_started', 'prepare_metadata_13', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.22}}\",\"replayOffsetProgress\":null,\"statementSequence\":20}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 41, 'statement_completed', 'prepare_metadata_13', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 42, 'statement_started', 'prepare_metadata_14', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.23}}\",\"replayOffsetProgress\":null,\"statementSequence\":21}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 43, 'statement_completed', 'prepare_metadata_14', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":21,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 44, 'statement_started', 'prepare_metadata_15', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.24}}\",\"replayOffsetProgress\":null,\"statementSequence\":22}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 45, 'statement_completed', 'prepare_metadata_15', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":22,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 46, 'statement_started', 'prepare_metadata_16', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.25}}\",\"replayOffsetProgress\":null,\"statementSequence\":23}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 47, 'statement_completed', 'prepare_metadata_16', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":23,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 48, 'statement_started', 'prepare_metadata_17', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.26}}\",\"replayOffsetProgress\":null,\"statementSequence\":24}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 49, 'statement_completed', 'prepare_metadata_17', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":24,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 50, 'statement_started', 'prepare_metadata_18', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.27}}\",\"replayOffsetProgress\":null,\"statementSequence\":25}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 51, 'statement_completed', 'prepare_metadata_18', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":25,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 52, 'statement_started', 'prepare_metadata_19', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.28}}\",\"replayOffsetProgress\":null,\"statementSequence\":26}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 53, 'statement_completed', 'prepare_metadata_19', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":26,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 54, 'statement_started', 'prepare_metadata_20', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.29}}\",\"replayOffsetProgress\":null,\"statementSequence\":27}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 55, 'statement_completed', 'prepare_metadata_20', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":27,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 56, 'statement_started', 'prepare_metadata_21', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.30}}\",\"replayOffsetProgress\":null,\"statementSequence\":28}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 57, 'statement_completed', 'prepare_metadata_21', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":28,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 58, 'statement_started', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.31}}\",\"replayOffsetProgress\":null,\"statementSequence\":29}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 59, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":29,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 60, 'statement_started', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.32}}\",\"replayOffsetProgress\":null,\"statementSequence\":30}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '8ac2ef3770320933629ad336aabfd155343c017a02ff8f3d2a6cc00f4168f118', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '4a5b087ac71b0d86e4a2a453680ecc3d6860f634df4a8916adae0b3154dd068a', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'e36378e8c111fc1d7e67034686559a8ebd2ac303a69b55282e15a6ba0a65a84a', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '90588d3c8e5c255af51b47e6d0f8544ff488c3b0f7f1744b9bfb177838427abd', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 61, 'statement_completed', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":30,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 62, 'statement_started', 'realize_tbl__order_report__{{d:extra}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.33}}\",\"replayOffsetProgress\":null,\"statementSequence\":31}')", - "CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 63, 'statement_completed', 'realize_tbl__order_report__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 64, 'statement_started', 'realize_tbl__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.34}}\",\"replayOffsetProgress\":null,\"statementSequence\":32}')", - "CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 65, 'statement_completed', 'realize_tbl__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":32,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 66, 'statement_started', 'realize_mv__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.35}}\",\"replayOffsetProgress\":null,\"statementSequence\":33}')", - "CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 67, 'statement_completed', 'realize_mv__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":33,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 68, 'statement_started', 'realize_mv__order_report__{{d:extra}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.36}}\",\"replayOffsetProgress\":null,\"statementSequence\":34}')", - "CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = 'completed'", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 69, 'statement_completed', 'realize_mv__order_report__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":34,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 70, 'statement_started', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"intent\":\"wait\",\"queryId\":\"{{u:extra.37}}\",\"replayOffsetProgress\":null,\"statementSequence\":35}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 71, 'statement_completed', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"elapsedMs\":5004,\"errorMessage\":null,\"intent\":\"wait\",\"statementSequence\":35,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 72, 'statement_started', 'record_population_started', 'boundary', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.38}}\",\"replayOffsetProgress\":null,\"statementSequence\":36}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '{{d:extra}}', 'started', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '{{d:extra}}' AND stage = 'started')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 73, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":36,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 74, 'statement_started', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.39}}\",\"replayOffsetProgress\":null,\"statementSequence\":37}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '068839d156817f9ca95923f615eca05c96009df55a150004cd6fb092165855f8', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 75, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":37,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 76, 'statement_started', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.40}}\",\"replayOffsetProgress\":null,\"statementSequence\":38}')", - "INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT '{{d:extra}}', 'sqltide_playground', 'table', 'tbl__order_report', 'sqltide_playground', 'table', 'playground_orders', 'offsets', 'integer', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, 'UTC')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = '{{d:extra}}' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":9,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 78, 'statement_started', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:extra.41}}\",\"replayOffsetProgress\":null,\"statementSequence\":39}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 79, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":12,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":39,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 80, 'statement_started', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.42}}\",\"replayOffsetProgress\":null,\"statementSequence\":40}')", - "INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = '{{d:extra}}' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = 'completed'", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 81, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":13,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 82, 'statement_started', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"intent\":\"query\",\"queryId\":\"{{u:extra.43}}\",\"replayOffsetProgress\":null,\"statementSequence\":41}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 83, 'statement_completed', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":41,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 84, 'statement_started', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:extra.44}}\",\"replayOffsetProgress\":null,\"statementSequence\":42}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 85, 'statement_completed', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":42,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 86, 'statement_started', 'read_boundary_time', 'audit', '{\"displayName\":null,\"intent\":\"query\",\"queryId\":\"{{u:extra.45}}\",\"replayOffsetProgress\":null,\"statementSequence\":43}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 87, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":43,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 88, 'statement_started', 'record_population_completed', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.46}}\",\"replayOffsetProgress\":null,\"statementSequence\":44}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '{{d:extra}}', 'completed', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '{{d:extra}}' AND stage = 'completed')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 89, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":44,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_15b4333d44421cc2` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_15b4333d44421cc2` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_15b4333d44421cc2`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_15b4333d44421cc2`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5726, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 90, 'run_completed', NULL, NULL, '{\"errorMessage\":null,\"exitCode\":0,\"operationEvidence\":null,\"outcome\":\"succeeded\"}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":59,\"planningMs\":53,\"totalMs\":121},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'005b700e62f015ffac71268773febf7d836424806cd1a8599e72ef26a9a7d103\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '968b5bd0e7a6a245783972e25c454820d386377646a805c81e85bf95e169d323', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '7d32b9be520df6c4cd4466d8964e12234643e3f75e6b39e1968ab47d00db4ec7', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '2b7868a470ddaddafeda252fa9d63afb47e31258f9aebc80d7eea21289b8cad5', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', 'aef9fde41e27cf8749a4caeeae36258a72df3e3550cd08ef0debb9284e41d82e', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'd4d6366f4e03b2aad57b2b0c44f9dc184fd2ef9d82ac9089e356ae579d2093b1', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '833c016745a9616435795832eeb0290da7695c4e0ee56d8afc03d1213e229655', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'f84ddc8edfa857d718e1439e477cdcfc8a1051095bc9eac9e5493435bc305186\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'454ef55bc4fa86f7f7090baf053d59b548e6d1ec780f619339c91a66f3be27f0\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'01a4739afbfcfa739618fb783cac08173953604cb56abf5a56c1ab119a3fd15c\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'0809dfc5bcd518e29e62e5a3758418a9aa4a9df60e2a133a43f05834559b0896\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '25c3c8ec08ba926dcea454a4cad3ed9761555e659a0b5e425b3d6931604ec11d', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '52fe15e8b70c639a756c8e1195cafc26e81e9c8d73b2d9495c678c7f8762c47c', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'd08f428959c9a180e7ac0217968d63a91d3dda605b8979d489a744fa30ddbab4', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '383b848ec184706e8a5cb367e3d7be2d4c32b79aa1a5fe741a8572a78cd2ea5f', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', 'fdd4fc82599b620a86f8f2ae1e85a8ec23f7af21639620e1fe4e6bf9f5568e5a', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'd0d51230c4834841912a59d75a448412a4329a79dc9b7908152b49a0971d3492', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'005b700e62f015ffac71268773febf7d836424806cd1a8599e72ef26a9a7d103\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '4dba2eb01c866ab5829d53b230215baca2fdc618dbbf207e3c10ce917e36b04b', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '0ac79a4c9a532b88376a40eb8034de496b78db6cf7ee0a2eda41cfb270fda90b', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '299b87144605684a4c92444e2cc16fad61c809a4ccb5f9ec201621446cecb7a1', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '19f4c38814dd21b5315a5f24f56d0d48a9876b01beff1ac6479560298dbb94e9', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', 'fd83b659d7bdcc6d1f25d7f85a84d6977102445ecb73f1ec85a9a17203e33103', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'f3674161ef5ca253b826381375d44eaed396fb8b2aef0591e6453c1a6ed0b493', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '701747668560ab383d87813768e51c21e24c9e41fc88e86de32c46e106d3a7f4', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'd72dbedbcec820552f433d5f7c5e9ce45a1aaee0ee6de69e1e77a04293106965', 'e794db8e130e1efb4eaca6e0d54af03194a01c0b83c7a19a2c26139bee52a0ad', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 7, 'statement_completed', 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":3,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 9, 'statement_completed', 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":4,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 13, 'statement_completed', 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":6,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 19, 'statement_completed', 'prepare_metadata_2', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":9,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 23, 'statement_completed', 'prepare_metadata_4', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":11,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 25, 'statement_completed', 'prepare_metadata_5', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":12,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 27, 'statement_completed', 'prepare_metadata_6', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":13,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 29, 'statement_completed', 'prepare_metadata_7', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":14,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 31, 'statement_completed', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 33, 'statement_completed', 'prepare_metadata_9', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":16,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 35, 'statement_completed', 'prepare_metadata_10', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":17,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 43, 'statement_completed', 'prepare_metadata_14', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":21,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 47, 'statement_completed', 'prepare_metadata_16', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":23,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 59, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":29,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'f84ddc8edfa857d718e1439e477cdcfc8a1051095bc9eac9e5493435bc305186', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '454ef55bc4fa86f7f7090baf053d59b548e6d1ec780f619339c91a66f3be27f0', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '01a4739afbfcfa739618fb783cac08173953604cb56abf5a56c1ab119a3fd15c', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '0809dfc5bcd518e29e62e5a3758418a9aa4a9df60e2a133a43f05834559b0896', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 64, 'statement_started', 'realize_mv__order_report__{{d:extra}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.34}}\",\"replayOffsetProgress\":null,\"statementSequence\":32}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 65, 'statement_completed', 'realize_mv__order_report__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":32,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 66, 'statement_started', 'realize_tbl__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.35}}\",\"replayOffsetProgress\":null,\"statementSequence\":33}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 67, 'statement_completed', 'realize_tbl__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":33,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 68, 'statement_started', 'realize_mv__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.36}}\",\"replayOffsetProgress\":null,\"statementSequence\":34}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 69, 'statement_completed', 'realize_mv__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":34,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 71, 'statement_completed', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"elapsedMs\":5003,\"errorMessage\":null,\"intent\":\"wait\",\"statementSequence\":35,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 73, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":36,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '005b700e62f015ffac71268773febf7d836424806cd1a8599e72ef26a9a7d103', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 75, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":37,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 79, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":13,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":39,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 81, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":17,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 87, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":43,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 89, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":44,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_223eacd32e64f941` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_223eacd32e64f941` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_223eacd32e64f941`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_223eacd32e64f941`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5739, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":13,\"observabilityMs\":75,\"planningMs\":63,\"totalMs\":151},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'a95bc8bf091f974c298ea3ba21c88fa5d049f04c5ef920820330fbc96ee79573\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'ef0305aa7ef4c3d471fa2e4b97b86d623e15db751cf2cf5f320d8efde27e65e7', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '6a317e86b090529c6c1d7789e28acb93257b0b72db5fe770fa73336f92d7846d', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '03038ae80cb317de7a3caa2c3cd46dd95a36a51983e762d855bdb421c8a73eba', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', 'c0831a32336578344cb99f25150d225a48b2faf1017a3df720a28151871e6454', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '098967b84ea35f22005a6f4882aba0849a2abc67edba2466333d09b99af1a33a', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '8ff033f0a9b5233b3d181262cad79e341499a75df87d0d7fae03fd6d57984cba', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'0436d84894153a68c03a6d1235330cc953726a38be0d1c3347268722eabe2937\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'c5a5a03e1e6916cc01f017440fbe2d5506cd3f07f577c9d7acabab4573d7bfcd\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'be6f99408c480693cb8e387d5837e82b5a44d322e6336476835dff32fbb71e9f\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'2adae5555e9cd45e29fc10c17a85bc7d6985d43a3f159a5957e0a996c08d3cc4\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '1f7fdf8448a2ff4d1ec1a828eb7082afe1718e9ed171fff6b57699b4c46371c8', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '77133116979b2353b39ad0193fd9c98f2f3cdca626b1cf17b576a1058445381b', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '5c564774acac821ccf8bee7cfdde4b43c20ccae578922f30384dec76fd81cece', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'd7b307f6b1f69c7df99e457de4ba5390ce9788c01cbd0d8918c0bb057ad7cffb', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', 'fb2b91e139b2751f437c63acfbc5dab3ea3c4431b87d65a097cdb801d32cbfb4', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'bb22ed8d3b5eca058377c0137ca85c2280e5bb504479bfc0b966010a2f54dad8', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'a95bc8bf091f974c298ea3ba21c88fa5d049f04c5ef920820330fbc96ee79573\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '53931d58ae9ed072b4c0859b7b0e0ef3397c88d4dad145f0eac77fb1124f24ef', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'ef20f361fba3f6d015846585d16a92986b95eb956ed4f4c45ba459315063067c', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'fe33022f111eb4e216e84fe9625b879298caf70462a81a799d206e2c92696ba0', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', '95cd8fca0f60d8d7d56aa670f6c37f7db3c9e29947070d1fa972145b79cad86b', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'da59844fcfb2d79e1e1c181cec14234a91c41f937aa551c54e90e6a31951868e', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '0f94fd3cd47775b3b5131db468b5a41f6f1d8c63dd6e9187a62394069c2a3292', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'dc2cc783d8c3cafe8b1fb1309cc723e951e7bc862c7129e4293eb0e6f4f4c29a', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '844ba7ca4c7c2c4b6acb822e350cbec21ebc4090bcd7399db453555c23c80403', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'b13e59d4dae05807c25609fff8c51a9c58edecc953dce3e2e61797fcf5bf67a2', '22cdb9f791bfcfc379a6212785cfda2b5ec1f39cda4d22a244d0ffb9f563312b', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 11, 'statement_completed', 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":5,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 21, 'statement_completed', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":10,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 31, 'statement_completed', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 53, 'statement_completed', 'prepare_metadata_19', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":26,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 57, 'statement_completed', 'prepare_metadata_21', 'preparation', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":28,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '0436d84894153a68c03a6d1235330cc953726a38be0d1c3347268722eabe2937', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'c5a5a03e1e6916cc01f017440fbe2d5506cd3f07f577c9d7acabab4573d7bfcd', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'be6f99408c480693cb8e387d5837e82b5a44d322e6336476835dff32fbb71e9f', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '2adae5555e9cd45e29fc10c17a85bc7d6985d43a3f159a5957e0a996c08d3cc4', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 61, 'statement_completed', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":30,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 69, 'statement_completed', 'realize_mv__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":34,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 71, 'statement_completed', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"elapsedMs\":5006,\"errorMessage\":null,\"intent\":\"wait\",\"statementSequence\":35,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'a95bc8bf091f974c298ea3ba21c88fa5d049f04c5ef920820330fbc96ee79573', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 79, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":39,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 80, 'statement_started', 'seed_tbl__order_report', 'replay', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.42}}\",\"replayOffsetProgress\":null,\"statementSequence\":40}')", - "INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64('{{s:s3}}', 3, 'UTC') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 81, 'statement_completed', 'seed_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":9,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 82, 'statement_started', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.43}}\",\"replayOffsetProgress\":null,\"statementSequence\":41}')", - "INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = '{{d:extra}}' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64('{{s:s3}}', 3, 'UTC') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = 'completed'", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 83, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":15,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":41,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 84, 'statement_started', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"intent\":\"query\",\"queryId\":\"{{u:extra.44}}\",\"replayOffsetProgress\":null,\"statementSequence\":42}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 85, 'statement_completed', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":42,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 86, 'statement_started', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"intent\":\"assertion\",\"queryId\":\"{{u:extra.45}}\",\"replayOffsetProgress\":null,\"statementSequence\":43}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 87, 'statement_completed', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":43,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 88, 'statement_started', 'read_boundary_time', 'audit', '{\"displayName\":null,\"intent\":\"query\",\"queryId\":\"{{u:extra.46}}\",\"replayOffsetProgress\":null,\"statementSequence\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 89, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":44,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 90, 'statement_started', 'record_population_completed', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.47}}\",\"replayOffsetProgress\":null,\"statementSequence\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 91, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":45,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_4cdca49eb425fa0e` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_4cdca49eb425fa0e` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_4cdca49eb425fa0e`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_4cdca49eb425fa0e`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5760, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 92, 'run_completed', NULL, NULL, '{\"errorMessage\":null,\"exitCode\":0,\"operationEvidence\":null,\"outcome\":\"succeeded\"}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"order_report\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":10,\"observabilityMs\":63,\"planningMs\":53,\"totalMs\":126},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'dbed5defbf0e6ecb63175bad0fbf7ad86af2334f2c0b7833dde9d8f98f375d34\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'd6d9324c5911bd2a962852f5ab851c90dd9f6828a8f25d899a5782fbf06666a8', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'f58d06f232fcaa0e7649ec153af1e0e9abcc4ff077c7b91b311f9a4e1cc94fa3', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '15f7032b892fe97fa4b2efa797ca3d8d66b801a496ba20a4392204a1b1388715', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', 'd5404b896d41e1cc1464b42347cce9cb7c70fd0e4a9d1f1f8bb91f43c5472275', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '1c911cc1a50e6af9de9b02dd8bf3f117d34c4cf3568c294ff60edbd024d81933', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '60ceffd673f188cda4cf4859f043a3b02fc08e30cced1205e76d6a9ad03b16b0', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'320fd5ef929300f17bcfe245732cfb7dd6cb0038a5d76c62a0777d79909c8a9f\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'9bacf2c1467a8b756653e0f78cfb93562b7c0c39980c8dd096e881af13bf8d39\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'9a9cfd80252bf6c511ef206dd7a8736e7d46e735e5e96cbc7efe8baf791b2f5c\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'6d20b7e5515b27032dd35935ecf34f15aa4514c43aa3988a3c80ca94b6675cee\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '05467f800c8e044cfaf1fc5e1d35dd93481d59b539b8f865cb6e4479069c22c3', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '47daf0d892f7212c1d9910c14ed27e505a351a14b511ac8e07fd3f4d0099b5b0', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '4a24463588d5da22684720cecbc041dd1a13e0fdbe4509888c3affff9f385099', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'd37cab0d2abfa83d14e6bb2e127ec34865f2b98906d6bdfbc63b58e189384e82', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', 'a87c794e14899add19f032a705124539f8abcae9952fb70253ccc29e2d129456', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '1811587d3292e6cf114615bd51c94f129d9e256a295d79447e9d5bc63f1ce307', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'dbed5defbf0e6ecb63175bad0fbf7ad86af2334f2c0b7833dde9d8f98f375d34\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '79f4c9fa469de975841443cdd288475c126585e5ba702b43645532c0a5ada95f', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '43ee3ea326eabf07ded9e4864b1753e5df6290de15382453ae3501ce000137d8', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '0747b1d4fc90aa308ab1bbbca66c81f0f4d99643e45532629bede32170b41d28', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '8320f10eaa716330774bb4f84e47a098502fe039ef3250351494bdb6d86a067f', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '8dd9abbc73d0ba1730bf060ead41b3386084934e3492df3a9c8ecdde451d416a', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '9016b11d58bd8675c96371b2c0792a07dcff1fe263cef311fb9e613bfaa0dce0', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'b776f56bf0f915d6f620a7ca9b078b546135cde34b5f42996f60731581cf5fef', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '0ba95d673aaf328ba69382ea06784959d3360ef8543d2814389afafdf0f0aeca', 'a57d99a040809caaa88ca217b72f22b8f103e134a4ac452fba0f3c0929e580fa', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":22,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 7, 'statement_completed', 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":3,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 9, 'statement_completed', 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":4,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 37, 'statement_completed', 'prepare_metadata_11', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":18,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 41, 'statement_completed', 'prepare_metadata_13', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 53, 'statement_completed', 'prepare_metadata_19', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":26,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 55, 'statement_completed', 'prepare_metadata_20', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":27,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 57, 'statement_completed', 'prepare_metadata_21', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":28,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '320fd5ef929300f17bcfe245732cfb7dd6cb0038a5d76c62a0777d79909c8a9f', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '9bacf2c1467a8b756653e0f78cfb93562b7c0c39980c8dd096e881af13bf8d39', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '9a9cfd80252bf6c511ef206dd7a8736e7d46e735e5e96cbc7efe8baf791b2f5c', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '6d20b7e5515b27032dd35935ecf34f15aa4514c43aa3988a3c80ca94b6675cee', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 63, 'statement_completed', 'realize_tbl__order_report__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 65, 'statement_completed', 'realize_mv__order_report__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":32,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 67, 'statement_completed', 'realize_tbl__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":33,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 71, 'statement_completed', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"elapsedMs\":5005,\"errorMessage\":null,\"intent\":\"wait\",\"statementSequence\":35,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'dbed5defbf0e6ecb63175bad0fbf7ad86af2334f2c0b7833dde9d8f98f375d34', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 75, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":37,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":11,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 81, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":12,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 83, 'statement_completed', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":41,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_f74966353cbfa27a` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_f74966353cbfa27a` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_f74966353cbfa27a`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_f74966353cbfa27a`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5762, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"order_report\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":12,\"observabilityMs\":73,\"planningMs\":55,\"totalMs\":140},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'3d8ce13276c79be003f585858d29cd67659f8b7570fad4c690804010ee9bf7e0\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '8a323413303c1fce96e0c53c99a0201bd8a30e780361866a313493365a47f94a', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '8883081942f8299a8f4b8e6f7341be44947b3fd4164e887908babd95c0c2f1d2', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '30c2f3cf38e41b292bd7437028bc62c8b580677d0b749506acc581df62f70fc5', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '2004629f06bbe81f4c58804f9dca5a0fffca91eac56804323b4649cc2dd3e267', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'ff10fad0b367be7e98204ef7e47a99d79ab846112f33e5b288470fd63a169dca', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '6f2e5e0f774a3d18659303e6478fdb41a2797d57bcf1e1f6bbf0b1ad1abbcba6', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'c686560235af6c343fb862928ffeed0dcdd13f96938da2c77037aaadd3a6c1ee\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'7fea4ca82da3f173a4ee6cc9e63890868f205de4fc0e92ec4ea6b66f638a5550\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'ba65d454f1a24cc1b4bc631813102202305c68cf95240167b37f8edd9b3a68f6\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'81617ff27b1b8677d905a54a13cdcb65d49d046db48b7f292399e042bf365191\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '85ec9f7a43d35fa25779747d7b6bad14440273d87fcab5d551369f8e7d52b76c', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '1f3df883432319fe1efec0c5732d7116b0bdb836b6635d6ef6802276aafdd180', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'ea0e7be0c3f1f5ba56a4fa58b07d62045d84a0a67c4cfa041d6648b1bdb22f95', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '3bdb13f9c18744218217df9a44c577864bbbf9dae15749fbed2459db8330738d', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '7db350668098d5562abe770ca66ba25c64125f33145cae7e7875fe9eb3dee2b9', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'd482cb816083559e9b7d04a2912a7781ef260d1ace811cbd84e69752b9d2febe', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'3d8ce13276c79be003f585858d29cd67659f8b7570fad4c690804010ee9bf7e0\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '5dd04ff9876e6bf30b5081e2ddc1b4f3ebb41f46a2cb9ae26e60763c2615683c', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '42cef28a2c7214a944a62ad8a603d021d5fde1009ba5ad02b1c0ad36486b3e2e', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'da9b1ca0c15cb244f6a2c5ddcbd96e93e13e26d83f4e0be81c4a4f3c777eedee', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', '0c4789eb851557545f50be135615882ab8768506bc7c96847bd4108ac9973769', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '00674ace0ec7a6b6a8fe8d0fda6ae75c07881c700d2e5837d80f41af82b737aa', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '39f8898c5b2fc94d70e9fbffda2aeabcc98defbb55403a7a25b9b0d1dfd0cc41', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'f636391acba895a1b78fd5cdebe992d3b5c3388688e32370633442b97267c447', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '9aa403f40453d40e3250945361331a90982b68686e21c8d28e9b21fb89158dbb', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '2a3f4707b7ad43cd25267bc1776104f06099b220b3f076212191669936b24880', '46caeb3103c24e0baf90952a3a1c3d70b6038b8754f3ac90869bb1dbd7320a8c', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 25, 'statement_completed', 'prepare_metadata_5', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":12,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 39, 'statement_completed', 'prepare_metadata_12', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":19,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 49, 'statement_completed', 'prepare_metadata_17', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":24,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 51, 'statement_completed', 'prepare_metadata_18', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":25,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 59, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":9,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":29,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'c686560235af6c343fb862928ffeed0dcdd13f96938da2c77037aaadd3a6c1ee', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '7fea4ca82da3f173a4ee6cc9e63890868f205de4fc0e92ec4ea6b66f638a5550', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'ba65d454f1a24cc1b4bc631813102202305c68cf95240167b37f8edd9b3a68f6', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '81617ff27b1b8677d905a54a13cdcb65d49d046db48b7f292399e042bf365191', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 61, 'statement_completed', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":30,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 63, 'statement_completed', 'realize_tbl__order_report__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 67, 'statement_completed', 'realize_tbl__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":33,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 69, 'statement_completed', 'realize_mv__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":12,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":34,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '3d8ce13276c79be003f585858d29cd67659f8b7570fad4c690804010ee9bf7e0', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 75, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":37,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 85, 'statement_completed', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":42,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 89, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":44,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 91, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":45,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_d72dfbe01350bd04` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_d72dfbe01350bd04` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_d72dfbe01350bd04`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_d72dfbe01350bd04`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5865, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"order_report\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":71,\"planningMs\":58,\"totalMs\":138},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'7a41b41eca456dcef809da8bf21856e0e5ad48128249f90829ade0b354ef7b3a\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '5590ee222276a706ecd4c98ee3f24ec72c242ae2af48a8c3b1453dcdcc706c66', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '1eaed01ccb02fcddc69e7c2975b64e599e2efc8a08c44e78801c120c24503bc8', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'ec5c4655c5e6e6564558899d939149f17a1e71f11993f653bc422c2b2d5b7f53', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '1817a577bf2f5911f39129e5149beeb41240a3ad569cc34384a3e8ae253cf502', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '6d6e4cb31e79e754b212dfd58e5a519f56b4c9e26222de77cf3d444c78cef3c7', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '38c0a4fd7810b9543f4ae1dee1d8c45d9f5991db4a99c198b3a9badee56014ff', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'a279238b775054f5010d48ceb4ed3daeeb91225155b9184c82a83b1192934374\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'76fbe6107c763af22203d571d4a2a291620a9ccd97409973d898e9d4d0123394\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'54b2987f9d66cc540e51dd48edd4ceefd32c15dcca301dd2cf4e0e0cf69febeb\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'b20cb98bf47e766a714898209abab3940fd30cc122a41525e9f0ce3b308fa685\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', 'ed5428bf823fa13659d2a99360aabb9fca29ad2892defb4463606b17359e7596', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '2fe10ee226c814a63c3e8caf603eec07d7811046114b11eb2885e5a23d5e6d94', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '209f28221c2eedf0b97d1bc79d31eefd458e6231f57d799046664e879ea06939', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '2dca2e552d0f52a494a23afbc667eabd4a74c04ca81aa318073e334ac2e5751e', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '311c8ce4b63140a4968ce48ca12fcf864a6f26c0c5428e7393dd086013c2dd99', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'b407060b10ce97716f81ca5425e49d20a16fb5dd80b71ae2ac94942b7333a6ca', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'7a41b41eca456dcef809da8bf21856e0e5ad48128249f90829ade0b354ef7b3a\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', 'c1606c113110f4b194791d21559863b7e3d2ed67786f2ebededd75c504af7eef', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '76b2f952e5c0b61b7100bdb9777d6c46f95334d7c602cbca95ea727c05f893a5', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '2117a296244a61bee9b2e6e6809375aa8ad0fbacb66493693e3cf6d62b0d7988', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '44213dc410646168782e82d3e63084b4b3bd9942b78174d1f796ac3e8e3845c3', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', 'ed442c33bb2d15205137a4903cec4da075ef4a0846e072a7b9934c8d20bc2ec3', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'f43a180a89ba6dd7e928c189b734ec777eb30093a61f29aaefb8496c07c33947', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'a1739fc453565e8a239aca21d38e97f9b99f7b25accf05b5d3938f237e896a15', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '6d70447f1ac524f8cd884cb2ff152b9c04b28da9365967fb51b2352d770daa2a', '286d4356c51c25812558d90544e22f68b8ff056bd304aef634acd6c4a744191a', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 11, 'statement_completed', 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":9,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":5,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 13, 'statement_completed', 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":22,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":6,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 15, 'statement_completed', 'prepare_target_database', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":7,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 39, 'statement_completed', 'prepare_metadata_12', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":19,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 59, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":22,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":29,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'a279238b775054f5010d48ceb4ed3daeeb91225155b9184c82a83b1192934374', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '76fbe6107c763af22203d571d4a2a291620a9ccd97409973d898e9d4d0123394', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '54b2987f9d66cc540e51dd48edd4ceefd32c15dcca301dd2cf4e0e0cf69febeb', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'b20cb98bf47e766a714898209abab3940fd30cc122a41525e9f0ce3b308fa685', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 63, 'statement_completed', 'realize_tbl__order_report__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 67, 'statement_completed', 'realize_tbl__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":33,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 69, 'statement_completed', 'realize_mv__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":34,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 73, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":36,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '7a41b41eca456dcef809da8bf21856e0e5ad48128249f90829ade0b354ef7b3a', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 75, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":37,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 81, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":16,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 85, 'statement_completed', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":42,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 87, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":43,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_ffbdeb2f75664c7b` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_ffbdeb2f75664c7b` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_ffbdeb2f75664c7b`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_ffbdeb2f75664c7b`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5966, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"order_report\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":54,\"planningMs\":49,\"totalMs\":111},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'3d9016ca172810318920c843df29db2ada1fcf4f2068d366e242b09844390148\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '0a619ca0eec2574678c78ebdab3c817af51df9c4664b1c60f0f1d5747dd6aa40', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'cf275a83f93f7f02f0f40ace0a0e5cbc32ec1c7c4024784b7c80b7f8d23abbbf', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '27fbfce845ede796c97f71a3c9f7f00a82dfb4bfbfbb5bb0f7593ab5526ee16a', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '888736a3199c95d4f08a3b409175f76c3f29660a0efbfc52e8ac93c10b5bf087', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'f204b9e91aafcc3b37ff49a09f822cb4d8e314b9283410cc7599470c19733f8a', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '3af881e062a18c1bdf87c94c906d721f885c76d4aa5ed4cfa46a7429b241a308', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'1fce565c9a7a20bfa5d3875be447c66ebb72c87879540c5054f3f006401f2c11\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'ad95529e67f23d0a7496e5e0b42cab8983d6626000717718a6b72e9e090b8636\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'42395e70679aa59dcbae3337aaf8756fe6d76220ab3a5001bae5603fce54ab77\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'eb89d8296f0260ab7991d30a91dbb0d333c5ac8f34204b7a1e768da099cdf877\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '6518684809f6d50c0326e5954d564d0c6f6e31b459c02cb542b101db08940ea9', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'e1970d1955e0bdb32a525ce5ebc5b6bee8ab69308ce0ce8ffb82e9b4723c9a87', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '6f070f92421c5440c78c65cff617a061cc0906333d439a87f52e6b2a522892b7', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '960572166019719cd2991fe33d98aca1d5cf25a040a5791442175bfeee627e60', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '4b3337df04082cc318ca8c1bf575e0449867e4d6e20d56ccc1cddb3517ddf718', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '941dfab318f539cd9a320f2d45a77af4898eecc620e62d197425124769a2544c', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'3d9016ca172810318920c843df29db2ada1fcf4f2068d366e242b09844390148\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '8801f7605d24359a21ddf1bcd6190d751122d63df7e471514019ccc93a3c2a99', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '19b01d7d38666d297d946ce3726f759328971bb3b3a0eae5303ed441516a8fa6', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'f2a5bdefb88f50548dc791d33b55efe72ab2912ca25b47f0e57215d04161c8a2', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', '6ae11ccb99b252d79523aacdee02635b9ad6fbdd02e7ce4004772c82073a46e6', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '8478c128bff88d69cb08ffd5d873ef76ef8d3ad118ef0639d446bb97a1d0bd8f', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', 'c1f40f11f1b9648909379f37c994dc856eeab7beb3f7e97c6bde950de85428a5', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '4f737ab1bc0e7839ff73ecf1ad0d61f1e8fdd3fc8cb2a7d02b11c4ade37144c4', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '9f34288a60ddf04413b7068235a94d4d1b8cb5eb65cc8b1a2d112828fe325af3', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '5d259f423cb8ae268039ee42a3403c12aebd878fa8f177ead06e09a473ae193d', '15f2f6eee62e0e39ea0e929a19de8b4bae9ad3388f24ee9451129c8600145164', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '1fce565c9a7a20bfa5d3875be447c66ebb72c87879540c5054f3f006401f2c11', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'ad95529e67f23d0a7496e5e0b42cab8983d6626000717718a6b72e9e090b8636', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '42395e70679aa59dcbae3337aaf8756fe6d76220ab3a5001bae5603fce54ab77', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'eb89d8296f0260ab7991d30a91dbb0d333c5ac8f34204b7a1e768da099cdf877', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 61, 'statement_completed', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":30,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 63, 'statement_completed', 'realize_tbl__order_report__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '3d9016ca172810318920c843df29db2ada1fcf4f2068d366e242b09844390148', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 75, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":9,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":37,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_c42a485ac835f4a0` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_c42a485ac835f4a0` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_c42a485ac835f4a0`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_c42a485ac835f4a0`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5721, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select large_orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":0,\"selectors\":[\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":58,\"planningMs\":42,\"totalMs\":108},\"toolVersion\":\"{{v}}\",\"totalStatements\":31}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'6eed3c07a87652655c33e1485da35b9049ca90b03e12ae89d477036760f02b0b\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '6ef9f1afc6a08ea99d1f23b9ce6136c23e26305afe41dc811fa9d76d49d1511b', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '90cc441517bef72c51e365ca039dc284e665450ac65259cfd9a23c81f2c667be', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 3, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 4, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 5, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 6, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 7, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 26, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'d70897ca05675e51c3ebced284b54027634482968fa8f990f1e5c5515214db9e\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, NULL, NULL, \\'mv__large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'7161ad4b9dade94961172a7646a1d8d8f8bd3df5faef327e41d4db65bacbfa39\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, NULL, NULL, \\'tbl__large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'9e9087cd439da609bf8c8cf9435251e02f3dc1649846320a5c11cc9638c31a9d\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, NULL, NULL, \\'tbl__order_report\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', 'c33fcb81d7ff973ee7920c638584644520c3c83b097558c0bdff90a0eb6b5dcb', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 27, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 28, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '8db63682148efa2fc1a27f4f0eaae7aeaecd60eb859a6457bf1b340da30edf82', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 29, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'6eed3c07a87652655c33e1485da35b9049ca90b03e12ae89d477036760f02b0b\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '1a5c21592a3b037b4b96d66589af05f056f12b51ab5ac2d2c28c61bd33691565', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 30, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'b37381cd6e890e1e77a37a82a418d4bd1282c44c3794be4233cfa143b9f881d8', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1),\n('{{u:extra.1}}', 31, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '1bb38fc19dadfce1630cca03a5ad30e5d6810429562031f59a7522f5bf83b5ff', '82a1ebb626a8636b00441e4dc99fbc42a18eae996f9f45365c2d20a00d697f8a', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 6, 'statement_started', 'prepare_target_database', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.5}}\",\"replayOffsetProgress\":null,\"statementSequence\":3}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 7, 'statement_completed', 'prepare_target_database', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":3,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 8, 'statement_started', 'prepare_metadata_1', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.6}}\",\"replayOffsetProgress\":null,\"statementSequence\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 9, 'statement_completed', 'prepare_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":4,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 10, 'statement_started', 'prepare_metadata_2', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.7}}\",\"replayOffsetProgress\":null,\"statementSequence\":5}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 11, 'statement_completed', 'prepare_metadata_2', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":5,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 12, 'statement_started', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.8}}\",\"replayOffsetProgress\":null,\"statementSequence\":6}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 13, 'statement_completed', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":6,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 14, 'statement_started', 'prepare_metadata_4', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.9}}\",\"replayOffsetProgress\":null,\"statementSequence\":7}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 15, 'statement_completed', 'prepare_metadata_4', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":7,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 16, 'statement_started', 'prepare_metadata_5', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.10}}\",\"replayOffsetProgress\":null,\"statementSequence\":8}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 17, 'statement_completed', 'prepare_metadata_5', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":8,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 18, 'statement_started', 'prepare_metadata_6', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.11}}\",\"replayOffsetProgress\":null,\"statementSequence\":9}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 19, 'statement_completed', 'prepare_metadata_6', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":9,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 20, 'statement_started', 'prepare_metadata_7', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.12}}\",\"replayOffsetProgress\":null,\"statementSequence\":10}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 21, 'statement_completed', 'prepare_metadata_7', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":10,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 22, 'statement_started', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.13}}\",\"replayOffsetProgress\":null,\"statementSequence\":11}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 23, 'statement_completed', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":11,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 24, 'statement_started', 'prepare_metadata_9', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.14}}\",\"replayOffsetProgress\":null,\"statementSequence\":12}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 25, 'statement_completed', 'prepare_metadata_9', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":12,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 26, 'statement_started', 'prepare_metadata_10', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.15}}\",\"replayOffsetProgress\":null,\"statementSequence\":13}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 27, 'statement_completed', 'prepare_metadata_10', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":13,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 28, 'statement_started', 'prepare_metadata_11', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.16}}\",\"replayOffsetProgress\":null,\"statementSequence\":14}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 29, 'statement_completed', 'prepare_metadata_11', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":14,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 30, 'statement_started', 'prepare_metadata_12', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.17}}\",\"replayOffsetProgress\":null,\"statementSequence\":15}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 31, 'statement_completed', 'prepare_metadata_12', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 32, 'statement_started', 'prepare_metadata_13', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.18}}\",\"replayOffsetProgress\":null,\"statementSequence\":16}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 33, 'statement_completed', 'prepare_metadata_13', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":16,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 34, 'statement_started', 'prepare_metadata_14', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.19}}\",\"replayOffsetProgress\":null,\"statementSequence\":17}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 35, 'statement_completed', 'prepare_metadata_14', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":17,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 36, 'statement_started', 'prepare_metadata_15', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.20}}\",\"replayOffsetProgress\":null,\"statementSequence\":18}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 37, 'statement_completed', 'prepare_metadata_15', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":18,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 38, 'statement_started', 'prepare_metadata_16', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.21}}\",\"replayOffsetProgress\":null,\"statementSequence\":19}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 39, 'statement_completed', 'prepare_metadata_16', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":19,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 40, 'statement_started', 'prepare_metadata_17', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.22}}\",\"replayOffsetProgress\":null,\"statementSequence\":20}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 41, 'statement_completed', 'prepare_metadata_17', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 42, 'statement_started', 'prepare_metadata_18', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.23}}\",\"replayOffsetProgress\":null,\"statementSequence\":21}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 43, 'statement_completed', 'prepare_metadata_18', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":21,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 44, 'statement_started', 'prepare_metadata_19', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.24}}\",\"replayOffsetProgress\":null,\"statementSequence\":22}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 45, 'statement_completed', 'prepare_metadata_19', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":22,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 46, 'statement_started', 'prepare_metadata_20', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.25}}\",\"replayOffsetProgress\":null,\"statementSequence\":23}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 47, 'statement_completed', 'prepare_metadata_20', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":23,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 48, 'statement_started', 'prepare_metadata_21', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.26}}\",\"replayOffsetProgress\":null,\"statementSequence\":24}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 49, 'statement_completed', 'prepare_metadata_21', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":24,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 50, 'statement_started', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.27}}\",\"replayOffsetProgress\":null,\"statementSequence\":25}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 51, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":25,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 52, 'statement_started', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.28}}\",\"replayOffsetProgress\":null,\"statementSequence\":26}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'd70897ca05675e51c3ebced284b54027634482968fa8f990f1e5c5515214db9e', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, NULL, NULL, 'mv__large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '7161ad4b9dade94961172a7646a1d8d8f8bd3df5faef327e41d4db65bacbfa39', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, NULL, NULL, 'tbl__large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '9e9087cd439da609bf8c8cf9435251e02f3dc1649846320a5c11cc9638c31a9d', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, NULL, NULL, 'tbl__order_report', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 53, 'statement_completed', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":26,\"writtenRows\":3}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 54, 'statement_started', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"intent\":\"wait\",\"queryId\":\"{{u:extra.29}}\",\"replayOffsetProgress\":null,\"statementSequence\":27}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 55, 'statement_completed', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"elapsedMs\":5004,\"errorMessage\":null,\"intent\":\"wait\",\"statementSequence\":27,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 56, 'statement_started', 'record_population_started', 'boundary', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.30}}\",\"replayOffsetProgress\":null,\"statementSequence\":28}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 57, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":28,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 58, 'statement_started', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.31}}\",\"replayOffsetProgress\":null,\"statementSequence\":29}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '6eed3c07a87652655c33e1485da35b9049ca90b03e12ae89d477036760f02b0b', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 59, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":29,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 60, 'statement_started', 'read_boundary_time', 'audit', '{\"displayName\":null,\"intent\":\"query\",\"queryId\":\"{{u:extra.32}}\",\"replayOffsetProgress\":null,\"statementSequence\":30}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 61, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":30,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 62, 'statement_started', 'record_population_completed', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:extra.33}}\",\"replayOffsetProgress\":null,\"statementSequence\":31}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 63, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_7a3d885b2e08cabb` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_7a3d885b2e08cabb` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_7a3d885b2e08cabb`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_7a3d885b2e08cabb`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 0, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5492, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 64, 'run_completed', NULL, NULL, '{\"errorMessage\":null,\"exitCode\":0,\"operationEvidence\":null,\"outcome\":\"succeeded\"}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":54,\"planningMs\":47,\"totalMs\":109},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'42cdfdf5003284dd88773db10db2caa1778317be7e11473ef9ead3b26758afb5\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'a62acca495b3e2a5abae40b99a3bc6e8177b669fe80d7f89dfb2fe8f423cdfe7', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '40c427ce6cebdf4febaa1b840c91dfac8f45b5d500d3ff8a2671c86df978dbba', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '37a406629297f9ddfaa16d97a55d1a0ce8ced2982a0b37109c60cc946418d5c1', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '1eceb9f03c98ab381c95b0ff2595d51b2b88f51dd75317328af716625bdb10e5', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'b5002e83393aac4bcf0f450248907395f3480b193ca5f027742106d6c756cd40', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', 'fcff32cc976c5845c9ed190d2bb52d4670789775713f340a8bb6af861cd41f0b', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'10832038230e164b0fcb8413967ee8bbc248dc402adabd417c42d57dcc3a7ecd\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'0855e398c23a9168117ef8ca008b6f19385a2f0688fd3eeb399af2e8abd8c0bf\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'e994106e5632207c3f3d291c4bf8ae256d21e9d2d1e0272273ae7bea4cb8dac5\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'bc5b0aa0d9e9654264e3d1df08481adb9fcc801e830cbab9b04acb0adbb68836\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '16d911af5faee978f6a509dae63ef45706bde0c2070c0b49a6bdb1db3091150b', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'd8729e9686889bc0422858355733ec818296dc39d10e8cc9c668d1071f1d3680', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '2a2db6ff3aa8d5c56a108c3ba3a64143b61652e003af54743e158d8b3f5c6047', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'b6a02726e199b6909f66405cd605a8e2c5e96a9388e0a20439d076e974b6ca30', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '8c6e3eef588f96de3817871ac09bb771edd0398a3615eda390c13079871cee7b', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'eafc609a21ce8bdfe779e8732e114d3a49f2f382d5325a7f802e463f96097a98', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'42cdfdf5003284dd88773db10db2caa1778317be7e11473ef9ead3b26758afb5\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '46d0ab3c3b9243eb754e74cd1933da05293c8332330513bb0304af9266d0dae2', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '2171b92f1a25c0875736101828ace054fe9f9a56d548ad19f5e874f4e6d93644', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '0409f8fca69d1ffba12785ee55b4faa728b1be052c3983bddefe65bfe054e91c', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '5d98496aebf44e29d8dd663100826fca224e0c0ecd7d7de5950ec72066192fdf', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', 'e4b85f3fa94e2d998d86dedf84a45a8572fff2baf8a867281a8e33b78c84e798', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '1570eba418f97328f6c16a8635c704bbe16a2c8661353f31553c4a958d227ad9', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'dfa046afa6723753b31000f35cdb37224ff859f9839b0924c85ddabe2b222c0d', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'fdb984125f61a1420d4db97bbcb4c3cd315b81ac354699d7dd0264a8da77f57c', 'bf13b335f534077360f4d6a1c176961001f8ce8003d7159283d3175002c27c10', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 17, 'statement_completed', 'prepare_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":8,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 35, 'statement_completed', 'prepare_metadata_10', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":17,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 49, 'statement_completed', 'prepare_metadata_17', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":24,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 51, 'statement_completed', 'prepare_metadata_18', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":25,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '10832038230e164b0fcb8413967ee8bbc248dc402adabd417c42d57dcc3a7ecd', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '0855e398c23a9168117ef8ca008b6f19385a2f0688fd3eeb399af2e8abd8c0bf', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'e994106e5632207c3f3d291c4bf8ae256d21e9d2d1e0272273ae7bea4cb8dac5', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'bc5b0aa0d9e9654264e3d1df08481adb9fcc801e830cbab9b04acb0adbb68836', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 63, 'statement_completed', 'realize_tbl__order_report__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 73, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":16,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":36,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '42cdfdf5003284dd88773db10db2caa1778317be7e11473ef9ead3b26758afb5', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 75, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":15,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":37,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":16,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 89, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":44,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_9d697a302b2e574c` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_9d697a302b2e574c` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_9d697a302b2e574c`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_9d697a302b2e574c`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5706, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"large_orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":57,\"planningMs\":49,\"totalMs\":115},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'a994a7cc2feca78d624fdeb6f36016011503dbb99b6e9fd3121e1e6c6f36762f\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '4f8c689e25d55dfc070054984210822cd2a89209dbb4e70c81374601b973862c', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'c65c03120c10491061eed94210dedfde5178f1441d245fa3773d355460860dc1', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '33eb59369a3211a3fa9ef5cfc714362e1f567574b1db1166955b1370a4995c8c', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', 'ec6c86c4e3e7d26950776f2fff692b2d9cf7949ad3c134a2808e78b36a55ad38', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '2392c4c366859e11856b4911b652bb6a709f04fccffcdc4b4c9c8a3e053931a8', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', 'c0705956d0f67337fd40abfa70ca29a3cf650726ba61ba4abb577b6fe9e3372f', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'f295f3a86b39adb62391355b116d8c5c80110b307fc422ee3cd1492070897e6a\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'2f1df5cbadd018a475a9d0485158376711b23e7c0b2a3a71623110b30569c45d\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'4595f67ec427522f06269aa4b7c35819b9f39046259fe766080521444bbf8012\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'221a428fd6b73388fb7c6d17cffd58ad2c438ce029150331bb5bcb3a9a7f2d45\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '98736e720b73a9e3e5f86a7f36228e031d056986f21427f6f98bcb2fc88c0b54', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '912ceae2a6afcdc22dc588c7d0e27d7cc8439576de0eb41f2db0b70a72a8c9b7', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'b2eb196733a8318f67c45ec1cb000ae60175bc5cd9d7ef9c833787e8e8536d69', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '28210a728575d8973e36b71f7da0fd3a6e16dd3626dcffbd8d91ce66def8912b', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', 'd57c57923a382b2c5a53532c63cd7e79b6c2f5bfea08c47773d637501c03e30a', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '561ac9c0eea5ec92bf4bf456dac3cc13de3f0c235fe867e79790fa0066821d27', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'a994a7cc2feca78d624fdeb6f36016011503dbb99b6e9fd3121e1e6c6f36762f\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '5c5e6a8be8268f9d36220aa3e9d4b52c62d2881f11b8b28772b9dd2024c099ed', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '4293a2e2d17aa946891a543712604b08fec42774700e4428c0f4c456ec7038a4', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '964dcaaab13399da745abeee169c48a32785f1ac3a0bd54828fff8db3d07d867', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', 'd05e9501d5dad2fed846aae17ebd46844b1682a97a04c489214b6feebc6c8a2b', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '81014dc6a8563c5002c865dbf673f3057a15bcb3d86768e5eb0a2ad37b78b291', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '25341ebe600b6fd44a247138871f3986aa3c6bfe8fdd546bea1bed33a83a6088', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'ba33154514c1863f53c8a56ac697b4b3a13815fa4135b52f257a0464c4907b75', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'eabe5e4e7b06b975f380127e69a50fa161a0885180e5c7fc90760b106f177993', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '7bdc2b64060faee6fcecf53c2ac8f82a9c6410699f38e4a2d15ef70dffa75580', '6a990718cb94e98ea47838a86b20e53eb6b9f43eb449b75c325bcc03daae7733', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 35, 'statement_completed', 'prepare_metadata_10', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":17,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 45, 'statement_completed', 'prepare_metadata_15', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":22,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'f295f3a86b39adb62391355b116d8c5c80110b307fc422ee3cd1492070897e6a', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '2f1df5cbadd018a475a9d0485158376711b23e7c0b2a3a71623110b30569c45d', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '4595f67ec427522f06269aa4b7c35819b9f39046259fe766080521444bbf8012', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '221a428fd6b73388fb7c6d17cffd58ad2c438ce029150331bb5bcb3a9a7f2d45', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'a994a7cc2feca78d624fdeb6f36016011503dbb99b6e9fd3121e1e6c6f36762f', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 81, 'statement_completed', 'seed_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 83, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":18,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":41,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 91, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":45,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_9e4947291638072f` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_9e4947291638072f` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_9e4947291638072f`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_9e4947291638072f`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5702, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report large_orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"order_report\",\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":56,\"planningMs\":51,\"totalMs\":115},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'02cc782316e7452c7df4a5d5ca750fa954471b7e61061a8f1af9a927d255330c\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '8bbb9ce1b4cffdacb23a1fb41b200ea502024ec2c18f89d840988fe1e7897b2b', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '5711ae48ab89a763740ca1ec029ad06fae6ea9f399752c9a2e547ef611cf248b', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '23267c352bbb41da3c2549f5501c750e0e3a639458b822511e794705508e4236', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '0df313b1ee00bf160a5ede2bcd4c2e736e3c195c9b64663ac2817f16e2c8b2ba', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '2c5cd2806960e8d63bd0d4d33cbd832e0b1bbba88ba3d47e15a9f188360b9a8f', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '22c0cd6f91a0659e61b5ad42d1ca6c195174ee178838a8846ad6c0a0991ea786', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'04d9c3e7dc4bf56d8cb6a65e8c849a6b1b2332ced6e1f84faa21bf1c6b48334a\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'a5b19d2577f9d9c8428bb04830285e40589ae5512552d4910a1f1f3f89e3139c\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'61470e2d43d13e89e50dc3e6c56bb65705bbc143b7fb792da973ce380fe5e4b4\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'8d8e77b3db3c5c5bc07baf982a0c037e7c49eee9859779d3e3fc056a0d549433\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', 'c2f80d98343615ff1c2ff7f311ecab2c1aac5d744a3fbeba82bdfa4198b25c3d', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '915246749ad033b1c3160ecb441e1255609edd1e3fd7faa8676e9d7a062791d3', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'fe73fa0f57dbf73148947417189b8656f68f38ae4505ab265cb21688dc5808b4', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '9f45ee21cdbd7e38ceae149788325b05ca6bff83e8a84b813f9bc6387882f43f', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '0ce4d706d79c00f5fb085a0530959dbd37893708258b3feae382eaf1c07b853e', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'f64c60602dc259d93b6fa84df7317dd256208df900d91d3d4d2baa16ca269e94', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'02cc782316e7452c7df4a5d5ca750fa954471b7e61061a8f1af9a927d255330c\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', 'be2af1d5aefbd6e378d0af106f45fcadec58ab64e1bf754964448fcbe1d19bb8', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '13e0d663a30f9b9e529f27a45cd8ced45cab3b764257583679919056de151075', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '875acf7e32b2e8efed74880476dcf840a5da645e4d71f79dd0c7fee16bc11b02', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '7737b6f99fe101c7ac98afc1ca46dc02baff0c008d40924cab4729f0aae99982', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '21c62fd41705b53fb52082b369c30582d34a82616deb7d5964c5c3a0d5a65292', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'f8afeb4d9f30b48a16611be10a66d96f72a89cb86c7b481e4b841291c5b6529a', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '51c0e7e37ab5339a1100c099e9b9da629753861b24d7bb95a3288e3caa5f97fc', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'c56d762e9bf0a98ebbc8090db5d1287e9e316f6c9eae687679ef8d4cc9f97aad', '9a1780010cae6854aea4792e7cf69b8404595eb9af0523fac4c0ac0ea187d356', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 11, 'statement_completed', 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":5,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 59, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":29,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '04d9c3e7dc4bf56d8cb6a65e8c849a6b1b2332ced6e1f84faa21bf1c6b48334a', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'a5b19d2577f9d9c8428bb04830285e40589ae5512552d4910a1f1f3f89e3139c', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '61470e2d43d13e89e50dc3e6c56bb65705bbc143b7fb792da973ce380fe5e4b4', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '8d8e77b3db3c5c5bc07baf982a0c037e7c49eee9859779d3e3fc056a0d549433', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '02cc782316e7452c7df4a5d5ca750fa954471b7e61061a8f1af9a927d255330c', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 79, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":14,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":39,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_4265f1db464e3418` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_4265f1db464e3418` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_4265f1db464e3418`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_4265f1db464e3418`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5717, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"order_report\",\"large_orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":59,\"planningMs\":52,\"totalMs\":120},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'b74f0b9147b5640bb13e9d9cf8cb7f520b7100b6fb4f8877d576bb256cb97cff\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'fca93185839e80cd05d6b175dcfd620ea40debaa2af5e657c8c9662226900c08', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '319a3444a03a8862e42b779c20ed9f24885cb264776995a3420bb0cf871593d5', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '8c11b8d6c43d378d619f9aef112dbb8ff009b8a95205a02a0e892d0a9a0df534', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', 'be56914a870f086c04298b08a4001c91eb79dc74e078a45fb29a69cf1da703b8', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '1420bdd33254bbba7e695dc0fe947c6cef9da998f66208c3b9a21c901da8fe10', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', 'e6586f7510497c52049585ed5d7506cc6b232818c30c55ec6e0095166996fc15', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'155aa86791b6b94865a6bc9940a6f4e5c6df67dcb036185274386528bb6b15c9\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'e69303abba5968c8cec918aff71748922064ca714ad8841c5dbb8054cc8e8d56\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'7a5b58fcb4a1ec50a7fce3147cffde2e0f671aefb3a332b10c4a8050620b2dc1\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'b5c2f30b1ab6707a57993ca271a782134afcc7d8b396cba88d0fc05f25d7d059\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '7dae0fd9e78eb5c60bfe4de1f60fe5a90a0a527a8453cf7457577a7216027d0c', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '3b915af5903f107fbd28e05b4d16062af467e4593c843b0350a98a1516ab3755', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'aeb8abe3d20d533715971be80ca40ab2478222e44956670489184ace7a3b472b', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '083f1bd17cd433ac3ad26e2ba1779f16593f46924d7c4815d48b1ec748391f98', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '1efdd5321d8d78db12a636c375fb2ce8316b9759105f51778ea58a680f2b0925', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '13e54136f76ce50571b74e98695fe4f82a0d929ff3b2bb1cad12aab887ca1db2', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'b74f0b9147b5640bb13e9d9cf8cb7f520b7100b6fb4f8877d576bb256cb97cff\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '9eb8e0125c197fad191701560ba5ba709e4ef4f785d51549a99f2430726a60fd', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'b1e85cc4a65f054eda4b0338f7b48bb023f524ca6c657e6d9f9a371467daa976', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '99de8b6bc9ef34eb845540aae94594d151b68ac48788f6a592e54a425b0f84d0', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', 'f3fc704c050fa4c8516b13a75b5b8ac68557920c8a261219a2bcf8b678d8b898', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '01e2e3be4586b70f9bf7a643c36e124ff8149413c1289872eaafced5f5b2d7e7', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '327d11386add378dedb1b2b6626641c34f885b7609443ea03e07c61e3beaf862', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '11551a3d3c9c46247e2e69b60d814d2054ebdcd28ce86cda7d303885e258b280', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '53dfab304966d22c1b1d6cfeab55a18b6b04fd1ab8ae7f7291024b4cc3c00001', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'e0a9ab871bf8e120aba972e839cb0f164ad6a6017bee8c396cb7307f2ab2bc32', 'b9f369242cef6a794b874fea6af33c7f06db68382bec29f6c2d65e59e9e84574', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 9, 'statement_completed', 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":4,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '155aa86791b6b94865a6bc9940a6f4e5c6df67dcb036185274386528bb6b15c9', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'e69303abba5968c8cec918aff71748922064ca714ad8841c5dbb8054cc8e8d56', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '7a5b58fcb4a1ec50a7fce3147cffde2e0f671aefb3a332b10c4a8050620b2dc1', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'b5c2f30b1ab6707a57993ca271a782134afcc7d8b396cba88d0fc05f25d7d059', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'b74f0b9147b5640bb13e9d9cf8cb7f520b7100b6fb4f8877d576bb256cb97cff', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 75, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":13,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":37,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 83, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":16,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":41,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 85, 'statement_completed', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":42,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_06d5f74dbc19e74c` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_06d5f74dbc19e74c` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_06d5f74dbc19e74c`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_06d5f74dbc19e74c`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5711, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"order_report\",\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":65,\"planningMs\":60,\"totalMs\":134},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'ce8678212e6b151511ffd5dd0c0e05ade7b3c0fc973c04a13eee863b666196ff\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'bf07c9a3a7dd2c650bd7fab8e910adf893de85286f81a995416ba7ae798e626f', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '8fb4cf8e1c1298586c23f006dba728f9a9f90203ded2c3c5e98d9dac7d17bb75', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '504767db4e38ab537063b9c8f4d41c92180e3d06899f9fe76a76a51edec7d566', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', 'd22ca102680f15a0c2e0a244bdd09cfd6268ef29da7fc0d46661ada66c3d40d2', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '8e04ab58df905af49a53d5dc4758f88eadc806f2a2f0081a553e091476bf8416', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', 'cd94a9d94ffad5dce8867fa8fb839268f030eebd13158e459837cf9d434b77fa', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'c900ad3b0850cf68be58906dc11bb6a74921e1ee740bf3542c2cc63a63d550ea\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'c096e5c30e7cfc52c68fcaff2597a431f9ad2f0435efc0dd0d91b05a27d3cb87\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'f4dc732b8d130db678036694154065d4c0476e1250e9a6904424a3cd83a38754\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'8ea67df852e0d1411b48e4917b2fbf8aadb9e69f1d03a947fdef1b19d50a747e\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', 'b3127b5943a4eb29afc37e76c0ac543f9f6ccd6bda0254b7ebaf6c1f2a0e3056', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '4934f6fc680541d8d8b1d67aa86040fd28e1b3ef0f0a69d68651e6faa5829337', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '1d0019275395246701626f8943757b8102af0d5f6fb7c49cb637c06a3b67be48', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '7ab1ce78becd659e4c69917c2895aedd0c6741403f42e99de3c065ce2f64e48e', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '57ee16034d7b8f06bf5676d5dab1859776e18ce2a7981d7a1152d0b4ef36b556', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '31d57b775a5880cb8419032f868281ac9ee533c1345263b43ca71afb9f1ee4d0', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'ce8678212e6b151511ffd5dd0c0e05ade7b3c0fc973c04a13eee863b666196ff\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '686c18ed6f39f1280d53df5b913ae17cf3fda0ab5385f6a7ef80c2fa4e7adf51', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '121ce3cf11e54f0e8131fa91ec4288683f4baf3bc154c4420e5713bec14659ab', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '1f627ce08dc7c59b2bfb90ddbd5691f8d04e0a9b3b8688dde58960a21f33383d', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '6e02d92e97be45f58066261c8572c314fadc782ab809e24da5bdcc6d4cf2bc21', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', 'a2206925bde0e54ee946f9d85f5f8ad50b40dc1d1b97953246ff54625eee39ac', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'a67d028725b58169e150249b4de4bfdab8d8b5808b2f58f57f2c715ccdde0874', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'f4903a77cba3e62dd4903770ae6450974829ddfe9130f9738ea5eb369f9d2851', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'ab06ecce53ef4e91c9102d8bc73eb6f62734ec2ccb0765387a736332a83f349b', 'ecd530925816ad3574f95a52a021357d7e1d8088e61950b84fe1a68a7293ea28', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 25, 'statement_completed', 'prepare_metadata_5', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":12,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'c900ad3b0850cf68be58906dc11bb6a74921e1ee740bf3542c2cc63a63d550ea', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'c096e5c30e7cfc52c68fcaff2597a431f9ad2f0435efc0dd0d91b05a27d3cb87', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'f4dc732b8d130db678036694154065d4c0476e1250e9a6904424a3cd83a38754', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '8ea67df852e0d1411b48e4917b2fbf8aadb9e69f1d03a947fdef1b19d50a747e', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'ce8678212e6b151511ffd5dd0c0e05ade7b3c0fc973c04a13eee863b666196ff', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":15,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_d4764ec1ef3b00d9` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_d4764ec1ef3b00d9` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_d4764ec1ef3b00d9`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_d4764ec1ef3b00d9`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5741, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"order_report\",\"large_orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":69,\"planningMs\":55,\"totalMs\":132},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'298a7dceabeab3de50c1948b403556a5870468ce8abb93caa6fc509f628b970d\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '3fd69865958106c650c53c941c6595ce5d16368228dfec9945a15c1952cb99ea', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'f4d755bbbf402aa783d56d2ab27be3698da92c45917eb63e060849bc03cc0fae', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '1136b384f35630b287a1730e2a913a50bbec3d9d1a2fa9532d165b426c0e0111', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', 'f2a6493da9394cbd707adb7630b0ad61d80f5c0a0b215b273d1cffd905b6bbf7', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'cbba5839697a0c796e7e56efaeb35f568b83d488206d1e2062255a275d9c758b', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '770818183497b62ca2bc4cb68b21b56b3a124bf41001b8b5527c54ffe761f57e', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'a644b1b043c281221ea11384fa854a4098412dda49c793706fddb4dba3037886\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'c3ca3f27fc8ad40e2d4e5e646c70544e851285c7053e11c12ac46228cde31c82\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'ae5e263cba1a5c4ea532ab881b351e75a100d35ac787a8a503ca4934eb27debc\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'ade645338053388aa5288de7c39ce0a3970714129cf6e3bfb43e5d87d3e148e4\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', 'fa8cb9a08c26e1a950a0fb59a15ba467b28cccf3df96b2f7ee9d3446aa79c3a5', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '5a1842e195a4b2fdad361e7fadfad2e1f1436f50ba52e4c54b84145ebff1f71a', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'da5241b2201c50721c3668e09481d758f70381dcf2f9e0d6ab52f2bc70c50357', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '9cb50b02e07ff79fa8784ef6b75ed0010a49a244fe7530ac79bfe6b1ed95ae3f', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '810dcda3bebcab3073295db4c7aa511897beaea57f52cb8572e9386a0faf27ba', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '9537d40598ec7935b8019ce970c4fe64aab59f47447b39b37293620045afb1fc', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'298a7dceabeab3de50c1948b403556a5870468ce8abb93caa6fc509f628b970d\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '2bb55aa299e95d6ff3473170e03476b2d863454c14f03249fff08b423a6efbef', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '86004ea38aa55e2846f8415a45b84ba9f70f050d95c6927e9098bd55538513b7', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '8a04e22e4075bc6244d425617c955495c716189cd0671daf28d10ab9ce33dacd', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', 'dbc815df739fb38a9095428247021e2ebf3be707d75e4aaab92c8e368c36dcfe', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'f71f010b1ccf4a1adc872aaccbaeb1982594b989e8317bdb39d674e73bb1e80d', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '0ab6411cbbc712bb75528a614b1f192c12492e186e010a3fe74573badec99573', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'e9cb537e4bb670a74db0257b4702c6381d4f4c5ee42984d159d49c3c70d1939c', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '9056303b4ceb28b1e33d41250f67598164cfd7164affb61361863382a84f4c80', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'c0d44ab74bdd25aeee730255f54be8e0a3e43a6f90759e503e1be2ed3c6c2380', '0c12d124fb42a7cb87ceb6c54a75727c02bc99b26e15fff3166d9424ae8e784e', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 7, 'statement_completed', 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":3,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 13, 'statement_completed', 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":6,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'a644b1b043c281221ea11384fa854a4098412dda49c793706fddb4dba3037886', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'c3ca3f27fc8ad40e2d4e5e646c70544e851285c7053e11c12ac46228cde31c82', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'ae5e263cba1a5c4ea532ab881b351e75a100d35ac787a8a503ca4934eb27debc', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'ade645338053388aa5288de7c39ce0a3970714129cf6e3bfb43e5d87d3e148e4', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '298a7dceabeab3de50c1948b403556a5870468ce8abb93caa6fc509f628b970d', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 79, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":9,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":39,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 89, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":44,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_40e2699e33b106b1` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_40e2699e33b106b1` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_40e2699e33b106b1`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_40e2699e33b106b1`", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 1, 'run_started', NULL, NULL, '{\"command\":\"deployment promote\",\"contextLogicalIds\":[],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt deployment promote {{d:built}}\",\"executedLogicalIds\":[\"model:large_orders\",\"model:order_report\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[],\"startTime\":null,\"startupTimings\":null,\"toolVersion\":\"{{v}}\",\"totalStatements\":0}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:promote.1}}'", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 2, 'statement_started', 'replace_stable_binding_tbl__large_orders', 'stabilization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.2}}\",\"replayOffsetProgress\":null,\"statementSequence\":1}')", - "CREATE VIEW sqltide_playground.tbl__large_orders AS\nSELECT * FROM sqltide_playground.tbl__large_orders__{{d:built}}", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 3, 'statement_completed', 'replace_stable_binding_tbl__large_orders', 'stabilization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":1,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 4, 'statement_started', 'replace_stable_binding_tbl__order_report', 'stabilization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.3}}\",\"replayOffsetProgress\":null,\"statementSequence\":2}')", - "CREATE VIEW sqltide_playground.tbl__order_report AS\nSELECT * FROM sqltide_playground.tbl__order_report__{{d:built}}", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 5, 'statement_completed', 'replace_stable_binding_tbl__order_report', 'stabilization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":2,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 6, 'statement_started', 'migrate_metadata_0001', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.4}}\",\"replayOffsetProgress\":null,\"statementSequence\":3}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 7, 'statement_completed', 'migrate_metadata_0001', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":3,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 8, 'statement_started', 'migrate_metadata_0002', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.5}}\",\"replayOffsetProgress\":null,\"statementSequence\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 9, 'statement_completed', 'migrate_metadata_0002', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":4,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 10, 'statement_started', 'migrate_metadata_0003', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.6}}\",\"replayOffsetProgress\":null,\"statementSequence\":5}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 11, 'statement_completed', 'migrate_metadata_0003', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":5,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 12, 'statement_started', 'migrate_metadata_0004', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.7}}\",\"replayOffsetProgress\":null,\"statementSequence\":6}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 13, 'statement_completed', 'migrate_metadata_0004', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":6,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 14, 'statement_started', 'migrate_metadata_0005', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.8}}\",\"replayOffsetProgress\":null,\"statementSequence\":7}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 15, 'statement_completed', 'migrate_metadata_0005', 'finalization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":7,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 16, 'statement_started', 'migrate_metadata_0006', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.9}}\",\"replayOffsetProgress\":null,\"statementSequence\":8}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 17, 'statement_completed', 'migrate_metadata_0006', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":8,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 18, 'statement_started', 'migrate_metadata_0007', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.10}}\",\"replayOffsetProgress\":null,\"statementSequence\":9}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 19, 'statement_completed', 'migrate_metadata_0007', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":9,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 20, 'statement_started', 'migrate_metadata_0008', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.11}}\",\"replayOffsetProgress\":null,\"statementSequence\":10}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 21, 'statement_completed', 'migrate_metadata_0008', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":10,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 22, 'statement_started', 'migrate_metadata_0009', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.12}}\",\"replayOffsetProgress\":null,\"statementSequence\":11}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 23, 'statement_completed', 'migrate_metadata_0009', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":11,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 24, 'statement_started', 'migrate_metadata_0010', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.13}}\",\"replayOffsetProgress\":null,\"statementSequence\":12}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 25, 'statement_completed', 'migrate_metadata_0010', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":12,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 26, 'statement_started', 'migrate_metadata_0011', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.14}}\",\"replayOffsetProgress\":null,\"statementSequence\":13}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 27, 'statement_completed', 'migrate_metadata_0011', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":13,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 28, 'statement_started', 'migrate_metadata_0012', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.15}}\",\"replayOffsetProgress\":null,\"statementSequence\":14}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 29, 'statement_completed', 'migrate_metadata_0012', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":14,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 30, 'statement_started', 'migrate_metadata_0013', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.16}}\",\"replayOffsetProgress\":null,\"statementSequence\":15}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 31, 'statement_completed', 'migrate_metadata_0013', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 32, 'statement_started', 'migrate_metadata_0014', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.17}}\",\"replayOffsetProgress\":null,\"statementSequence\":16}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 33, 'statement_completed', 'migrate_metadata_0014', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":16,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 34, 'statement_started', 'migrate_metadata_0015', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.18}}\",\"replayOffsetProgress\":null,\"statementSequence\":17}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 35, 'statement_completed', 'migrate_metadata_0015', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":17,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 36, 'statement_started', 'migrate_metadata_0016', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.19}}\",\"replayOffsetProgress\":null,\"statementSequence\":18}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 37, 'statement_completed', 'migrate_metadata_0016', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":18,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 38, 'statement_started', 'migrate_metadata_0017', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.20}}\",\"replayOffsetProgress\":null,\"statementSequence\":19}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 39, 'statement_completed', 'migrate_metadata_0017', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":19,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 40, 'statement_started', 'migrate_metadata_0018', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.21}}\",\"replayOffsetProgress\":null,\"statementSequence\":20}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 41, 'statement_completed', 'migrate_metadata_0018', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 42, 'statement_started', 'migrate_metadata_0019', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.22}}\",\"replayOffsetProgress\":null,\"statementSequence\":21}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 43, 'statement_completed', 'migrate_metadata_0019', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":21,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 44, 'statement_started', 'migrate_metadata_0020', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.23}}\",\"replayOffsetProgress\":null,\"statementSequence\":22}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 45, 'statement_completed', 'migrate_metadata_0020', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":22,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 46, 'statement_started', 'migrate_metadata_0021', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.24}}\",\"replayOffsetProgress\":null,\"statementSequence\":23}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 47, 'statement_completed', 'migrate_metadata_0021', 'finalization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":23,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 48, 'statement_started', 'migrate_metadata_0022', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.25}}\",\"replayOffsetProgress\":null,\"statementSequence\":24}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 49, 'statement_completed', 'migrate_metadata_0022', 'finalization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":24,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 50, 'statement_started', 'persist_publish_event_0001', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:promote.26}}\",\"replayOffsetProgress\":null,\"statementSequence\":25}')", - "INSERT INTO sqltide_playground._sqltide_virtual_publications (publication_id, deployment_id, operation, previous_deployment_id, logical_database_name, logical_view_name, physical_database_name, physical_relation_name, published_at) VALUES\n('01794650222534545413_74ef2d1d1037582406404dabdbdb2170f0844910cc9e627c485b496cdf7fd0aa', '{{d:built}}', 'promote', NULL, 'sqltide_playground', 'tbl__large_orders', 'sqltide_playground', 'tbl__large_orders__{{d:built}}', '{{t:promote:0:s3}}'),\n('01794650222534545413_74ef2d1d1037582406404dabdbdb2170f0844910cc9e627c485b496cdf7fd0aa', '{{d:built}}', 'promote', NULL, 'sqltide_playground', 'tbl__order_report', 'sqltide_playground', 'tbl__order_report__{{d:built}}', '{{t:promote:0:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 51, 'statement_completed', 'persist_publish_event_0001', 'finalization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":25,\"writtenRows\":2}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_4266ef867180e411` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:promote.1}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_4266ef867180e411` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_4266ef867180e411`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_4266ef867180e411`", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:promote.0}}', 52, 'run_completed', NULL, NULL, '{\"errorMessage\":null,\"exitCode\":0,\"operationEvidence\":null,\"outcome\":\"succeeded\"}')", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:promote.0}}', 'sqltide-playground', 'sqltide_playground', 'deployment promote', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:built}}', NULL, 2, '{{t:promote:1:s3}}', '{{t:promote:2:s3}}', 546, NULL, '{\"publishedViews\":2}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 5, 'statement_completed', 'migrate_metadata_0001', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":2,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 7, 'statement_completed', 'migrate_metadata_0002', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":3,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 9, 'statement_completed', 'migrate_metadata_0003', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":4,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 21, 'statement_completed', 'migrate_metadata_0009', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":10,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 31, 'statement_completed', 'migrate_metadata_0014', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 41, 'statement_completed', 'migrate_metadata_0019', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 45, 'statement_completed', 'migrate_metadata_0021', 'finalization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":22,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 47, 'statement_completed', 'migrate_metadata_0022', 'finalization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":23,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_publications (publication_id, deployment_id, operation, previous_deployment_id, logical_database_name, logical_view_name, physical_database_name, physical_relation_name, published_at) VALUES\n('01794650224938818800_6e8db56eae6771990d71ca39deb57617e8bc289a7137a6be2d46f9acf813730a', '{{d:v1}}', 'rollback', '{{d:v2}}', 'sqltide_playground', 'tbl__order_report', 'sqltide_playground', 'tbl__order_report__{{d:v1}}', '{{t:extra:0:s3}}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_2ec8eded41ed8492` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.1}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_2ec8eded41ed8492` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_2ec8eded41ed8492`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_2ec8eded41ed8492`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.0}}', 'sqltide-playground', 'sqltide_playground', 'deployment rollback', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:v1}}', NULL, 1, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 360, NULL, '{\"publishedViews\":1}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[],\"startTime\":null,\"startupTimings\":{\"compileMs\":12,\"observabilityMs\":58,\"planningMs\":49,\"totalMs\":119},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'869928de68aee49505e8f101623306316d2e69271d97e0226ae8e9ee224ad3cb\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '8c076e2e75a8fba5101e147513b4ebd6ebd71b8f36003fd7548a05aa57c7a3d3', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '1a9521103c61eed34a5f2064eecb3141fe003485235c21079088890b8e61deb2', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '56fa1bad86531c3796d3f2137a1e8a09aa6b59749bcd90f991be8e05d97bdac6', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '715203fd4e3a43b3e90cd94ecbc9a448167f74365294bc613276e4b68377e5b8', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'cd316af0d07d322c0b70ce4472f4384176e4aeee211a60d58eeaadb2fa4220f4', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', 'a849f192de1630d7d291989eb4311d7052179d05742e727476352ff066216359', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'e898dfcf02f85cc23ddf1a028c7c5f46b7babe88de8c2089aba15b5cdff993db\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'3f86dfb6634955ed7d8e98df8018197ccfddccb814778b9a2b44df4d18b05136\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'6f0919117163fbff2a0b21e78ba76fe031c4988b68018f96ededcfe97473af18\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'2ee32175f82ebaf03501a722b21ed6f2d363cf3f82ce93fc1691992bf7064973\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', 'a04be7266a413f67e036fbd6b5942d64e11beda5639f1c0a70827d396cd1458f', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'ac9806f96255c8897c56e78c75cc369b84167bb48de08670218a49b592a01f1e', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 32, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '54c7366e741920ad1ecfdb33239567b57494e8e722d673fc70ab56858b939d11', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 33, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '37141e80db6394d38f296ab46d66bdac0b0d9729f4acd4e316eecf85a84da2b9', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 34, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '55716c51d2e6b02fbf6a193a47208f0e52c9855a44ac2182fd08a544eca62935', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '2c562568bee7026ced3c399da69e6d90d0673bc6ae5d0ae21a95e9a1440c517c', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'869928de68aee49505e8f101623306316d2e69271d97e0226ae8e9ee224ad3cb\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '202d428d3fc80b2883eeb6a69ad8e3492f250f4853dc7ae959482bbe409f4b37', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '5ca49168a66ccc2aadf0438671d43108b26c60c0d42e0b916af3b5d562b401e9', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '8d4a677c594770ee119d8ffd5d240e4a1694d760240baf99726af2cdc1230918', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '80fd066b1b55bafb930019188ef125a86eee9c3466391df0308eb7f411535793', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '9da7485622c196679d03d0eae49a09d1f4439b93ecbf2fb01aa3e2227375eade', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '60a5ff49260e5dec0eed73667bd9a2fe4ac1c8ee3cc74eb03a132874de6347a3', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '013074af7edb9151142696a8d7ecd5f74310364ff3b569c82ec553368065f8f7', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'e149e9643d32c863c516429e216ef856d354799c8c9134151515105dfeaf6fa7', 'c670f8fc2173fb8afd82d5335fcb96a8851e06a6ee79d3895619014a09bd8d94', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 31, 'statement_completed', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 33, 'statement_completed', 'prepare_metadata_9', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":16,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 35, 'statement_completed', 'prepare_metadata_10', 'preparation', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":17,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 47, 'statement_completed', 'prepare_metadata_16', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":23,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 57, 'statement_completed', 'prepare_metadata_21', 'preparation', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":28,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'e898dfcf02f85cc23ddf1a028c7c5f46b7babe88de8c2089aba15b5cdff993db', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '3f86dfb6634955ed7d8e98df8018197ccfddccb814778b9a2b44df4d18b05136', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '6f0919117163fbff2a0b21e78ba76fe031c4988b68018f96ededcfe97473af18', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '2ee32175f82ebaf03501a722b21ed6f2d363cf3f82ce93fc1691992bf7064973', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 65, 'statement_completed', 'realize_tbl__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":32,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '869928de68aee49505e8f101623306316d2e69271d97e0226ae8e9ee224ad3cb', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 85, 'statement_completed', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":42,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_846a9e21ae5c27f2` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_846a9e21ae5c27f2` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_846a9e21ae5c27f2`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_846a9e21ae5c27f2`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5805, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":57,\"planningMs\":52,\"totalMs\":117},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'e3111016bab611a3f4526da1236cc9b590094fe6167080076199621a3ce47e71\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '9b20851e651442e4c7d6a5b8182bd75117446009d082cab0830192f02a4d727c', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'f889a40bb1de086be916784ad98ae112457f3ce884683b6ac38fe06c5088def1', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '751f489a2ebfb7ed6df56fa31dd6f78ba343a2a97b73d6b437a00da01c153993', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', 'e5a58c9695904fdf1667d2bfdccea8eb996710470bad53dac91fb50bf0c1c22f', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'ce75e3b85164c452d30757f7a2f3fcd8bc60144b4b29e325ebc144201b0a8b72', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', 'bf6ccc55b6c34aed05a1fb1dc23d0516a7354a89d2ce3b858787fa6132750a84', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'bcc418865e2b7a78c9f79d886967cf7d268ee689f0cb5bb5f9f258e198221da0\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'a755883bb295fb791b448e65796aebc89dc286d582800a775e98de05e0efd121\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'39a16fcca410e1bfe52eb793a2db4d4e9cc0806c5b14d9305133a113c42bc8ce\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'2b5b58d9b44b3a97e8cc70c1e9644ec3d92a8ae514e243679a69ab0fd93094c9\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '3b9d86c1a0685f21bba8e942f3f5d7b16f9e47f2d41473f3c3e20e5819e22748', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '40b37fffb6ff70b25d64486b13d1758c4c9ca857e62deb1550265e101dab7626', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '2f251ae2e22497ad8140948ead6d7f5d1dce3bb6e7826b8e021fc2bc7cc15c64', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'b63bf6fce53df186a4886cd5a3891832c420d3dba16ec9f15c69d8640e8cfd3f', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '41ffa72349c10d34574f09f23f250128a1d8401117cd5376a03923a59c3a2259', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'd3951faa762ff18b22699dff9340da5cbe84a2fe039b1e1829ac0bfb6cb0cc3a', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'e3111016bab611a3f4526da1236cc9b590094fe6167080076199621a3ce47e71\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', 'c25b032741f8661f6609d1c7def947ddca2b97ec6b8c7e3b92752f1377194a35', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'cc6097363cbe82657a607dd6e40565ba52e4919f865d80db240704d4acfe030d', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'a6e2e11043e9e992a111c934e5f84e14f8bde166232e277ae51b9ec2e0db5cc4', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '6c53d9fe11e41284da8208f0f896361c3ad06a8fbb6c92d9a3b936f20dff8c0d', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '5e90ccace709bc701ba25a38a19d398dcaec7f7364ab07863261b8e6b2901977', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'c389bee9a749d5b2cf5005562a11557d64f548d6011a06c4f167ddf83f1452eb', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '674bb94516275fdbf61e021b122bdca0d351962529f4ca1b0496a8f651e6c8ba', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'a2fa39f8914cb7d8d6c91702b98cdd2ee64735ccd7ceab5fa3aaccac4d7e6b86', 'c7a8a5af153ffcad21015e0bdbd57496db3bd72cf8788a249de79df7f020896d', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 11, 'statement_completed', 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":5,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'bcc418865e2b7a78c9f79d886967cf7d268ee689f0cb5bb5f9f258e198221da0', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'a755883bb295fb791b448e65796aebc89dc286d582800a775e98de05e0efd121', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '39a16fcca410e1bfe52eb793a2db4d4e9cc0806c5b14d9305133a113c42bc8ce', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '2b5b58d9b44b3a97e8cc70c1e9644ec3d92a8ae514e243679a69ab0fd93094c9', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 65, 'statement_completed', 'realize_mv__order_report__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":32,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 67, 'statement_completed', 'realize_tbl__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":33,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'e3111016bab611a3f4526da1236cc9b590094fe6167080076199621a3ce47e71', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":23,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 79, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":26,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":39,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_511e588811128269` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_511e588811128269` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_511e588811128269`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_511e588811128269`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5778, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":55,\"planningMs\":49,\"totalMs\":112},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'9978b4d82772bb1376208aa6997d0d2cec9ada7583bdd9282777b36119223f83\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '2b7b7e675a945c6577224fc95021845f543b680006d771d8e48e4d37a9779075', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'cfbf7207d397e9fdcbc3a9892fbe5be745ba12424699895fdbcd8033fedbfaca', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '6dd023c2089245ae2a59750582bd2311313a25eadeb976cd59a0eb93a7980303', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '9c65b947524f6d5ecef697ce8960456ee4a1746d56cac4da522af37fa3b0aaf5', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'ed0748ece9b87f45cf276d293ba543dde99e25dd91d9188d093f8fae42dbfe3a', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '3ad3afd7ebb12185271fbb1daa4069db74ce7f8b3c8089f942bc3ec357dfdfaa', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'ec22b93fb43d865c8be56d23232e7c2a6654e22c86db4fd45eca9c9b32bdd13d\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'ce64bf4f647c38515eab4548cd77f0757410aa36e78f1c445de50b65bf30225e\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'2c39698cf7c2ba4fac410df5e499c2cde2cebfb3680207b78e7e0d7b0c512744\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'c4da3bb83df55a94ca2c803102ddb6ecf5075a99418b0edb1465f9ddbd51f63d\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', 'd152d006ef15cfe3b14f14b8e89a1e942a5653cedf4f1003dc9b30393dd453c0', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '129121d2455956a81f7cfe515c2b857d0f623d4fee95b27182e88ebc06c80856', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'e82945b067a67c5c2886faab67a97e585897687c7ce25f4a7892663dc4bfae54', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'b8b597036b8d6bebbd11af58957c537eecc3a40bd30a9bb43332062a8a2eaace', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '09f5fd61224dfca68604d56e251f4ef0b2040304460ee9564388cbb5ccdae6af', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '33d7a8efd2858c3c82fb151d0f25dbb513892c338f39f11383212bc6d4ef7ec7', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'9978b4d82772bb1376208aa6997d0d2cec9ada7583bdd9282777b36119223f83\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', 'f31d2ced7827c3546aa989a15356760cd45ab3ef46c257b63be01f9cd12080d3', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'b9add0bbb28b0259cf077054048301dd6b5bb29dc5b8fd52090a0b7460b968ea', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'b08c4daedf6c84f4dab24200619cdb6dd1985171adf9d666be67c947ff94a1a7', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', 'aaef6e3f770bb28512dda52fc81bff265d935341d45ef3d859004902fa4bfcbf', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'a957a5794d73a42eb04cb5431a49fb11363f751096f234248c988eebbe41ca09', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '0e60ae936a53f9f7d4521c29c7498b3bcd48490bfa5952b34cd6d6205eae236f', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '82844472cae7d8c21506cf3ad984938314c6510a96949776d5d58e509e0ad281', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '9fbfdb947f101459895dd1d7d37426804200abd3fcf51bfce1b42372ee66380e', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '422d5e89dbeb3d5e5d0a617e2ef72f2782db634c90f906cf8aa82bb0a41178cd', '577d79412f65291907e1d0dd0d49d6731fedc8bb8225c82aedd7049e1969869f', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 11, 'statement_completed', 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":12,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":5,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 57, 'statement_completed', 'prepare_metadata_21', 'preparation', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":28,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'ec22b93fb43d865c8be56d23232e7c2a6654e22c86db4fd45eca9c9b32bdd13d', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'ce64bf4f647c38515eab4548cd77f0757410aa36e78f1c445de50b65bf30225e', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '2c39698cf7c2ba4fac410df5e499c2cde2cebfb3680207b78e7e0d7b0c512744', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'c4da3bb83df55a94ca2c803102ddb6ecf5075a99418b0edb1465f9ddbd51f63d', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 73, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":9,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":36,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '9978b4d82772bb1376208aa6997d0d2cec9ada7583bdd9282777b36119223f83', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":13,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 81, 'statement_completed', 'seed_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":2}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_cf53d88d24f9db6c` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_cf53d88d24f9db6c` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_cf53d88d24f9db6c`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_cf53d88d24f9db6c`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5764, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"order_report\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":61,\"planningMs\":51,\"totalMs\":121},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'a357c1a9e483e409d06bd2d28ef8a3d56d10badee6c9833e281b1c796a5dfb42\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '024af3476cb85f3f8ff2194404b1364da346ffec5fef096c0762fa4de5d71e45', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '2a6b0ed862500fe072efde087325decc0b19d63117b337f29b607eab67864d20', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'df9c9eee984a0cc2f88a82f401a90fc47679f9532b8da3e47c5c83b2cd84727a', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '516da10054a1b1ba979ec047fb9b0a04863ce4a6d1eb7ca118cab4c913587319', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'e783af2a1db2318761983dba91033498b520d0228be90eefdc634031c8b47631', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '365e067b0e3517635c47a2560238c2948e115fcd7aa928527165befce08a18c3', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'c7a85dcf296c6e12dc6f9a4b36886483fb6741fee4673f1c24c7f0951f9c51d4\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'05c0ace1594bab17f314333c6a86111a2a444c3815484cf0b6dce78bcd960677\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'59cf0f0ee12aac25c3358a21fdd2e11fa57b448c61ee0e0e63cff165eee3cceb\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'c4171a961ceaebbbbf39135c412529b5d1b63b966210bfcb595cc5146e6e3178\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', 'd601df3aa75c0359c5bf68811dde8a981ab068325950f8814664acb49e7be62f', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '9d750b2a66a5d9f0cb3072f518e83cabb4087acb244de472291c399dff8321c3', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '42347640fa29cc0bcb09e677288a545047bb7c280cc54ba4c974b82d036c252b', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '45f81d719465c9f03b253212fb516991e33e01764a509ee685053af443cd38f3', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', 'dd06e43835d5faa5f4c56046a38c394b62fc3e7ffd3c440da4d7c57df40fa2eb', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '3a489c7336fa18683e799234ea5e24a6ea8829746d2b638b9ab6c75ce5415378', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'a357c1a9e483e409d06bd2d28ef8a3d56d10badee6c9833e281b1c796a5dfb42\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '75e26247cebb137618854d7a9aa6fa7fef2e1cdd7e8fd792840b1d53d2eed90e', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'd0709db077757e6617c13f055118754ee959867e9d4d617949cf437be58c969d', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'c8645d493b0448d831c49679a912a8b6fa0175a0d2bd2ff5e0fa597aa7470de9', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '3a5aef340b0c149ee4d71a32381eded216d24ba3f4d74a6b9fc389bc94da08c2', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', 'c863209c725a2210a1e36ff1770d7d03cd2aa4943736bebf8e6afc07ee9c7fc7', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '4a415f4058d5e76c333bf6950dec24792f1dbb130118e481c9a6c29276d7193c', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'db3d1ae5cfe0da5fbc2ea20f609a0ff0a63b5b4a950574118abf7ab12e00ceb8', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '7ec632ba70f212ede6e6e983eb503ae1f8e68ca2ea8d328cc370172f90da636f', 'bec067ca227b726f11d799fd3744169310d7b4ff5b87c5bd3a65c1d9fdca17ae', 1)", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'c7a85dcf296c6e12dc6f9a4b36886483fb6741fee4673f1c24c7f0951f9c51d4', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '05c0ace1594bab17f314333c6a86111a2a444c3815484cf0b6dce78bcd960677', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '59cf0f0ee12aac25c3358a21fdd2e11fa57b448c61ee0e0e63cff165eee3cceb', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'c4171a961ceaebbbbf39135c412529b5d1b63b966210bfcb595cc5146e6e3178', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'a357c1a9e483e409d06bd2d28ef8a3d56d10badee6c9833e281b1c796a5dfb42', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 75, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":37,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 79, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":11,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":39,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 81, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":14,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":4}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_e260db354b6545f8` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_e260db354b6545f8` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_e260db354b6545f8`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_e260db354b6545f8`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5707, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"order_report\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":68,\"planningMs\":66,\"totalMs\":142},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'2c261a3d04249147d78785db36a5b206f48f81a23f1f252d8bc3c07e8fa0b3a9\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '52ea828bc75366668e7e6ebdcec1bad2c012387496ab3dfe337cf9a37fed31df', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'afd48bc63ab95fa67b0bd16d439db194dc16b151298578870a9c1c0874b00dc8', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'b87075390950e51340ea4dd7f3ab9143eccee71ff772672bab0d20735874d1da', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '9b7a962506e322fb913f3e7e7c4b36955f25e5d661d9d20ffd6fb0e5d9396c3a', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'a9fb9c99096520e06bc2fb038da6e54a56a5e1d7fa9893310c779b7e2e3801ed', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '9fffb0bc58c5cb739238e17a9e969b21e104be5bc0deb5501cfb2091b53a35a3', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'a7c1718a2b48f6d2040c989fe3609b7997baffea4ac84054feee37d5fa383595\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'72ef1d403eb2a50965fef62dcf06262cf24cd14d1c3e3e67ff0341b4a2792bb3\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'142a2e9537c243c7cc868ab787ebe39bed621749a2e392b3646dc2ff2fa0580a\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'d1226e88275587fc265563439f6e855f0072bc43fcbbc5a22d68c85d36338577\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '2adabe7e269fc245585ed9230c768da8af73c8f8a98e05fffb8ca8373094a67e', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'fe00e4a5659563add9a5a29d709482f2c119bf440b36499da2cd6e5d6413e73a', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '87034cc6404b3217b13b52c8b3f599eaa37e4a38f78843c4387ccf04b15da53c', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'aac3004f957095ecded9592b64d80cc1b95cf6f207a509c0f4214f651e035656', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '71fbd20d49355766ebf8d3c73ffdbcfaeca86da08c878da371eef4784d318c19', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '77c464aaeffd382bc08e65cdd8c6a41ab80681932cee49a3b092eb3446caacf3', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'2c261a3d04249147d78785db36a5b206f48f81a23f1f252d8bc3c07e8fa0b3a9\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', 'b41ddf9f99beaa66b0c7fe57512415f3b36880bed90d90f1332b2536f85550a1', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'bf2e1aa3db989f776c291d114125831226b17232e13ad5757036186c82ff4ca0', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'f264df99031f55415781f282512b932a4ead133b9fb328345a7cf4c52494eea0', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', '00f0b26bc629219c3f95c6f590ab1ed53c65d22890e9602ecc365366bc201b63', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '111a82f1722f1c21392e36c643eb42675447f5b154f3e3f9c9601918f9908fc6', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '02ab132d592b01ae535d09c6e09f215cd419d278339900b8ca0ac76afd219f48', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '86f0dc098c697588b40c1c751454ef464b2562689c0c3988923dc0a03221bf0c', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '3bd1d1c4539d854a5f94ec8a1e25e452f3355f3a7ebb94c645504bf3af69e886', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'b3f622bab7fc20a1a23b34ac9c5cad3fa911c08273500f4f2402ae87f70605a9', 'a6d13e3a03a0f52118c2ed553965cbd29cda5a073dbb3351e61c37c090047544', 1)", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'a7c1718a2b48f6d2040c989fe3609b7997baffea4ac84054feee37d5fa383595', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '72ef1d403eb2a50965fef62dcf06262cf24cd14d1c3e3e67ff0341b4a2792bb3', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '142a2e9537c243c7cc868ab787ebe39bed621749a2e392b3646dc2ff2fa0580a', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'd1226e88275587fc265563439f6e855f0072bc43fcbbc5a22d68c85d36338577', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '2c261a3d04249147d78785db36a5b206f48f81a23f1f252d8bc3c07e8fa0b3a9', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 81, 'statement_completed', 'seed_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 83, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":20,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":41,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 87, 'statement_completed', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":43,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 89, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":44,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 91, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":45,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_fae26aa5186bfec0` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_fae26aa5186bfec0` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_fae26aa5186bfec0`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_fae26aa5186bfec0`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5777, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"order_report\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":57,\"planningMs\":53,\"totalMs\":118},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'ab2ac529e469e890b30e4e1b4a6dbf14c02996a5b6a2c25f2d90297ae471ec36\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '5898003a9162f2778d5b64508bba37d1daa1b7d4de3ff086b1462007c80ee3ed', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'e233a1a7cb5d74e094e31b2c4fb2e3e86d831920fb186833d82c88bf00a8451a', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '958212b92826a03a497a4c08ffbf97d95ee7aaee90cd6e4ad0f8401826aecb31', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '83da9364a570b285c3b021e24d92696d098069877161e4151039d658069b879e', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '4b81b4b0ee539e73f0c23e5beb7e790d10c8a425a60a0a71705f543975aeb5b5', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '0d131aba2af19c3b3cb60d9726f0f4516f1d725e0a582dcf88e4d0272df39e8d', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'ab14f401fbc5ed048c5a93f53bac34c5d6b6471644cc25591293a7e120babf22\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'a2e45e0da6705c02010e9b2750a141cac7b2bb31ee0683ece02b5ea89de3c82f\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'3eab8992876a0f541614b5edd6d64f372f741ed8fab26a087adb96cdfa4dbce5\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'547476811d5a8681e4c4a3ad16472d75616338dea09e12dae7e1bf900d9bc7f2\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', 'b8caf45c0b46405dbb995308c37899c05ac45b8c6ec281d72b36f9bea4ea2797', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '7408ee120313ad30560a578775a866302340d2ae25899178f14f642e3870776c', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '80c1e26b89982e5b1fb33df18a0feba3bb060badb540f616f8d18e39ea115796', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '5bb21bf4fd75969171475420124c956c925497de9830a07f4982244e5dd9c7eb', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', 'fa1ce427920673b93a9e3cb0ac3e85b74e4cdf25848542e964fb5c4103530eaa', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '7615d785ee5e5448706193ba37260581c0acbf664b98c518bea427a93c8a7b57', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'ab2ac529e469e890b30e4e1b4a6dbf14c02996a5b6a2c25f2d90297ae471ec36\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '7baa80996ca44e0a64119eb6980a1b37beba6e2c48713c599b5ae2f3a31ce190', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'a2422df53626cf1f3102102ae50a9ee19fcbeb307dc7fb0300d28ecb70f22c6d', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '59d44f694561776bef0ac92eb18a354bcd48e5917e636b5ba690a5a140faea4f', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '00cb0382d2fb8abd62c186aea5157d050df0ac6326568b14719194564de6f768', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', 'f4970983f072fed98f62ea3c4909eef5715068d3bc7b3999ffa6cb74407af3f9', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '29bcc27287bba8661ca7a5a75bdf08ce2b414683ced1333b633d5fc473e128a0', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '503f7bae8fc0539f24b25598a390fe043de4819091f286ec5937b40fe8acb5d0', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '237ee5bd18f7b706dd2d7fda336bef8ad5bfbcf0854faba0893b815a502ff613', 'fa1e1f7ecddb56f89438b64b13d773807258e3707d345de3731f634e599c2abf', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 7, 'statement_completed', 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":3,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 9, 'statement_completed', 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":4,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 11, 'statement_completed', 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":5,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 17, 'statement_completed', 'prepare_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":8,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 19, 'statement_completed', 'prepare_metadata_2', 'preparation', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":9,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 21, 'statement_completed', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":10,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 25, 'statement_completed', 'prepare_metadata_5', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":12,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 27, 'statement_completed', 'prepare_metadata_6', 'preparation', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":13,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 31, 'statement_completed', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'ab14f401fbc5ed048c5a93f53bac34c5d6b6471644cc25591293a7e120babf22', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'a2e45e0da6705c02010e9b2750a141cac7b2bb31ee0683ece02b5ea89de3c82f', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '3eab8992876a0f541614b5edd6d64f372f741ed8fab26a087adb96cdfa4dbce5', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '547476811d5a8681e4c4a3ad16472d75616338dea09e12dae7e1bf900d9bc7f2', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 67, 'statement_completed', 'realize_tbl__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":11,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":33,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'ab2ac529e469e890b30e4e1b4a6dbf14c02996a5b6a2c25f2d90297ae471ec36', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 89, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":20,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":44,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_e412aa511b4a09c8` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_e412aa511b4a09c8` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_e412aa511b4a09c8`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_e412aa511b4a09c8`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5825, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"order_report\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":58,\"planningMs\":48,\"totalMs\":114},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'5c49341ff272918cc6920a30fca8b95345c300a426bc01da78811b1686ce7245\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'dffbef1224a82a75aa2d3cc778c362dccacb5e4e576bec27d69a0d5bc1a6c9c1', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '15dd25f165dbb67126a61d7e70775ca881733bd43e503ee7ddef7c7cee1d7402', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'e0ea4e29f199de433e309df9bd77714578e2b0646ded64b7ee597188f44832cb', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '49ae17443ec7d831e386bdb7c7eb97b2d1d4517bf98425a5e439e4771d2bd0f2', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'ca02930ee10e6d551bf6abd2a781a57b14a156e4f49ee8cbdaa330883f6dbe40', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', 'da6288a53c916c9e2ea5adbec5ef0c9cccbb235855cddb84ab3f6af9cd590ccd', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'9b3473375a3d241d417d3a05f0400b989867a4fb64144c3d05f44ce9dbd5aff0\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'126317c4c770635e33850d57fdb8911bd3978a93618005a0ce364cb43e2c82c8\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'645ec1579612d8ca48cbbc7c9bfc5179dd67fe132d4d17c0c7604620f39f4a08\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'68da1718d6a60668e60423d113688d468149d70cd998e242f29ebfe0e66ea0e6\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '3ab8d529555a7078720c32106ca7e8bea61b0ab4bf97eccdc1eadb965eb2ff35', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'df4f43fe02eb082091ace78aeed356bea35c6bb48fd7dcb8eae9d97b04541411', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '5671997a865e6f0060c19b01633af34bd8f607413362b64fca21d45ca44c2214', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'bd91cb4d42f5f547bec67d3e805d0e85938994bddcf2d01c6dfc4fa4e618427f', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '59b6c518f8251d5dcebc09ffbe3f6b37684bea40d1f7a8bffb2dc404072a5903', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '3b8b0baf6103e5aa549fbaf3b8ccb0ba6670d0a3846cc494552b0d1d28594654', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'5c49341ff272918cc6920a30fca8b95345c300a426bc01da78811b1686ce7245\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '7da58d936d9bde453a2668c683dbdbc4629ed6468205c093f90e7a381a418949', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '675658451e47392665930c131cb1cb104d9283bedd8f4a53a505044dae299604', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '7dfaa70d45de44cbe0bff1787b75fb8bb44ab3c8d2da82d34be265f72af4f8c9', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', 'a9ba4a5925c727e0fde62949e002a5da048d7d29eb967db35ef46afcb91ec3b4', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'c6459235ca799815ec4754a8e14cf938b9639d6d6656acb149a60370fd3144e0', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '4f4277bf52e5989caf67afc96bd669fa47883df9a642da27af86f3b55086265f', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '8d1034542103724c0ad515b2b1c6271545f05b8a8ed25245fde186e8074089ef', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '041ea451a4015e3da12ddc8a4968e76faac270f50212b52b7a1aa0813ac9f8e0', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'c9fb579e5651205c2aa882818a37857a3ef9f7b692644b51de342e114682687d', 'cf95d6d1062756cd288c160d484c24cc1fea6d9b263d12aeef6b8bbe6dc97360', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 9, 'statement_completed', 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":4,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '9b3473375a3d241d417d3a05f0400b989867a4fb64144c3d05f44ce9dbd5aff0', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '126317c4c770635e33850d57fdb8911bd3978a93618005a0ce364cb43e2c82c8', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '645ec1579612d8ca48cbbc7c9bfc5179dd67fe132d4d17c0c7604620f39f4a08', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '68da1718d6a60668e60423d113688d468149d70cd998e242f29ebfe0e66ea0e6', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 61, 'statement_completed', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":30,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '5c49341ff272918cc6920a30fca8b95345c300a426bc01da78811b1686ce7245', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 79, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":17,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":39,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 81, 'statement_completed', 'seed_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":12,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 83, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":21,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":41,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 89, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":44,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 91, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":9,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":45,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_47c5f160c934ae6e` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_47c5f160c934ae6e` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_47c5f160c934ae6e`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_47c5f160c934ae6e`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5763, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select large_orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":0,\"selectors\":[\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":59,\"planningMs\":48,\"totalMs\":116},\"toolVersion\":\"{{v}}\",\"totalStatements\":31}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'39745e7f22e7095e3e3ff6a28b777cd8f3cf0db8a05314389198944041b6cb65\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'aec99cd9d7af7034b38da2127b19505182b57297e4d8c40feaef48361d60dcd3', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'a71578ce1a108796205b381eecbfee7692a5f4a4816ea15edb13520d8fe2aaf8', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 3, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 4, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 5, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 6, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 7, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 26, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'4466be8711d4f9b379412212dd162559ba9e7a3b630b6d2bf9cfbb2781c80e9a\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, NULL, NULL, \\'mv__large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'dca4fd62d4d2f4064fb671a4ac54669005ed9d921f43acde1ab919d275645f7e\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, NULL, NULL, \\'tbl__large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'60f2e2e0a0b326c3a5e02867c4fa5bce88303bbd4163b27568b263a1768fe55d\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, NULL, NULL, \\'tbl__order_report\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '33f39aea35eda04c3b8fc647f9163338369de9543333ad1adfa023d797532446', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 27, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 28, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '570b751c74e63f44b1c8736c73bb6e87bb1dd43e61152774ed23f2266432db13', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 29, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'39745e7f22e7095e3e3ff6a28b777cd8f3cf0db8a05314389198944041b6cb65\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '6fb7a840708ce9ada7937a2a7cffc1c4ddd1df9f5260aa4d9da7683aaeb2f269', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 30, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '1d1e382b427d16da510ff526e228cc0d9a11305f7a03a99eada3b02bcbfeb0ef', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1),\n('{{u:extra.1}}', 31, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '63b7357cdfe29e6227ea56f5d22a4b86bd085886ad13bb3b6dfd4722abcc534d', '58b2192d0d7eb92322a09794d390043d2e947307ae0ed0e07156a8fffcb83118', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 7, 'statement_completed', 'prepare_target_database', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":3,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 11, 'statement_completed', 'prepare_metadata_2', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":5,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 13, 'statement_completed', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":6,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 21, 'statement_completed', 'prepare_metadata_7', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":10,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 25, 'statement_completed', 'prepare_metadata_9', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":12,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 31, 'statement_completed', 'prepare_metadata_12', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 35, 'statement_completed', 'prepare_metadata_14', 'preparation', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":17,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 37, 'statement_completed', 'prepare_metadata_15', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":18,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 51, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":25,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '4466be8711d4f9b379412212dd162559ba9e7a3b630b6d2bf9cfbb2781c80e9a', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, NULL, NULL, 'mv__large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'dca4fd62d4d2f4064fb671a4ac54669005ed9d921f43acde1ab919d275645f7e', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, NULL, NULL, 'tbl__large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '60f2e2e0a0b326c3a5e02867c4fa5bce88303bbd4163b27568b263a1768fe55d', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, NULL, NULL, 'tbl__order_report', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 57, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":28,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '39745e7f22e7095e3e3ff6a28b777cd8f3cf0db8a05314389198944041b6cb65', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 59, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":29,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 61, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":11,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":30,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 63, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_1b4e254fbcf3d54e` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_1b4e254fbcf3d54e` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_1b4e254fbcf3d54e`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_1b4e254fbcf3d54e`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 0, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5545, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":57,\"planningMs\":50,\"totalMs\":116},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'8f050d7f1576391fb352d12148966375c57f8cb05eaa8fab1fa86f7f8fc9e6b5\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'e0137251e8f340732264fbdb4825c05ab9ad1d87a02d972b38de197dabedfc27', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '6f55b0c9305824924de4cc6670adf33714ed8c661c4fdcf0c29939b767bf8f35', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '67e564b7c995b15b363535896085ebeb47e1583856a138e59951aaacc7055407', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', 'e34eb07f82fdb78d11ad743f2d7a799b389171faeeb3392c67fc526bd85e412b', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '702e61c0263eed4101f8b19f76a9aa6cddca424fca30b7c99ecf112b372161f5', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '5a627c4a2f1320bd65f6540a4f67b8d9d6e226e3a90edefc9ab039a5ffc8314f', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'9538455ae10cdf2b98e4afc8de49488f8d434f5cd648a853c9cffc40c537c507\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'acc935cc7251c176e200b82498dba9157eaa703adeec3c13f0cd68e75638aec3\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'7336cd1557efcfb813eb67ca0354cdaabfbe507c0d88146af540b8721730c858\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'32177c7edbcfa3c018a6d945756954f6041e0bc17aa6e73029571f6104816f19\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '620cc0c103552a1782025ab446824e889a08fdda3bc6db482286aee65153e485', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'af4c349759e8034a012cab25b0afa6e86c00edbfb7cdecfa39b08c5f33610a72', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '2c80f3cc20dc2656d44fc626a17e30e9289424c0c322174528e6b227b6eecbd9', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '95edc19ce7ad8fa34589cac4d04deda163b87144cb2dd3ecc74ef70aab6a3fc0', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', 'd4597cce102a2efaa13e3a05963a62e41b76324791632fb8f3a4aa57dbf055e9', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '236cefe2da5683324f4e6e4bebb67575fd9c83c6746caa0833d15dbfcd416b7b', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'8f050d7f1576391fb352d12148966375c57f8cb05eaa8fab1fa86f7f8fc9e6b5\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '8d9724bd0795f364b537bcc2ecba081c8d2287197bca09ef62013b21324dc05c', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '264e3b2719b086b9a6809f657ae4b66aca08674b326c76be1d0b053897bb7662', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'b1f1a811c9c2263beb9ff34ba84bbf682d0505f7fd15ea6dbc648bc65de97d29', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'f2fa4fa1e350b024470a7eea5da6e882011e59b3ec6eaa943778da7037e16526', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '3854b82003a9e9d31aa508aae6e8571153356f5a5e105a9daec9548b6823be39', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '67c868d8e07bd8e952def342c52634580caeb6fd713bf4ec04484b3859eaafdf', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'd11d1e6d7554583719a9bfbdbed6f630ad0a8599b94b22df9f6ab4f1f50c5e5b', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'da67e1c9a15eb18a6805688ba319a2d09fe3bd5ea970b50158529eb4827d4218', 'be5512dbbda6c278e7b2fc983dd7cfc301179296d6c3933e24a636d3aea556c9', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 11, 'statement_completed', 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":5,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 21, 'statement_completed', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":10,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '9538455ae10cdf2b98e4afc8de49488f8d434f5cd648a853c9cffc40c537c507', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'acc935cc7251c176e200b82498dba9157eaa703adeec3c13f0cd68e75638aec3', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '7336cd1557efcfb813eb67ca0354cdaabfbe507c0d88146af540b8721730c858', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '32177c7edbcfa3c018a6d945756954f6041e0bc17aa6e73029571f6104816f19', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 61, 'statement_completed', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":30,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '8f050d7f1576391fb352d12148966375c57f8cb05eaa8fab1fa86f7f8fc9e6b5', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 79, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":15,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":39,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 87, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":43,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 89, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":44,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_12397eb487c55f93` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_12397eb487c55f93` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_12397eb487c55f93`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_12397eb487c55f93`", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"large_orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":10,\"observabilityMs\":67,\"planningMs\":63,\"totalMs\":140},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'e70a77c27771d5e567b5c4a7baa588e0b644be98a919a1b5756805dadc36efeb\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'f07d0138d1c9873738ffd62bd68c20d4fe4fd7a1faaf2ab9a2aa4cb8af25216a', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '58270946a0a6696e464754b6c0fec12af99205b348a150ea2ddc3d57e72c34a3', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '2b4c9cdc4a4ebd416377e3dd4ce42e7b1b25fd45de3d2de6030e2c3c68efce9f', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', 'd8e2a692e07d90a9f1a63663b949624bf04c0800b0daeea60ea3bc7b5947c0ef', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '217772edfa2314575ac3a9cecc977d35272ac43c150567bdea243d2229521d1e', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '77be9e64e8cc2289e631e73d48f2af79b8baddcd51cb3a1f6e27de4369717c62', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'3ab9fc8f2da63a805d70d0406f2ef1585cef7e950400f457c84b08c8fa61263c\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'e2099e4dfa52f5ac9d43f4e8626265e0d3d8c1d76f31bd43ab50ede53c7180b7\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'096f8958487613a3626f95cc50eea9eb85c40e041dae17489c827d794af2a8f1\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'8a04765c5c7e05c1e2b00c8216728cf3bfbb76dccc76b64a99edeb9ecd35f882\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '4204e4fc43ae1bcd2ea30830d2f7779741644ab936d0a613fe0ac3f63f8c4b13', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '118bc496966ef6b158264a0cac4ed66309014fe213adfcec1c1ab75682a6536a', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'c697cfd229ba868cbed6037fe00b4e1308767d80630eaf6e96245cac63edc36d', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'ebbebe8f749261487d31296a74397a3fe0fcf46e873165945468d9ce6988c555', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '6b5b389b6b0055c91414129688a4b78507aeabe5dae56045371525e9eacce1a4', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '727c5fb430fa9b57704dde06de685f82238cb4b7beff92395e714d2de072a13d', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'e70a77c27771d5e567b5c4a7baa588e0b644be98a919a1b5756805dadc36efeb\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '19675d4338c65252796b6965db5b6e910e6ba73bd7929871025cecb67403463a', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'a651cfdb5ffa536d0539ef7a4c9fb88ffc597adcc8d8fc37cdd365211130d594', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '346b85312d438465b3d863573c1e8a7186de1594f2cc7c39d0c910691758cbf3', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', 'e14d73a47482ce9d03f80f6343a382cf2ed85761eba98b4411b77f8519d8044b', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'a16c7daf918065f65aec04c8be2da894627fe30b2846e148d17c7e0e23119c83', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', 'c7b6b6adf53ad30be228061d6505d2ff3c6ed7c576445165e7da9551d0bc95a7', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '57c157f2c07b86b76b5747d98a4ebd6e69296710d09c97dc4213bd3d4bf1f087', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '5006b96dade21322068488960f3d816fdd85ebb27c1ff24cc44bdfe3c68ef964', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '06c1848ab6ae9b2c1ad256c97bb91b6a34268da48b7bc59d06ad8651136b32e2', '753bb7ca0e0a59124a3aa2b3ee565f0acf37bab14cef0f24e723b42557565e15', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":9,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 41, 'statement_completed', 'prepare_metadata_13', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '3ab9fc8f2da63a805d70d0406f2ef1585cef7e950400f457c84b08c8fa61263c', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'e2099e4dfa52f5ac9d43f4e8626265e0d3d8c1d76f31bd43ab50ede53c7180b7', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '096f8958487613a3626f95cc50eea9eb85c40e041dae17489c827d794af2a8f1', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '8a04765c5c7e05c1e2b00c8216728cf3bfbb76dccc76b64a99edeb9ecd35f882', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 71, 'statement_completed', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"elapsedMs\":5007,\"errorMessage\":null,\"intent\":\"wait\",\"statementSequence\":35,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'e70a77c27771d5e567b5c4a7baa588e0b644be98a919a1b5756805dadc36efeb', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 81, 'statement_completed', 'seed_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":11,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 91, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":45,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_3b768f46462fba9f` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_3b768f46462fba9f` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_3b768f46462fba9f`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_3b768f46462fba9f`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5785, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report large_orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"order_report\",\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":62,\"planningMs\":50,\"totalMs\":121},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'50e90ae56467c7432d4e30f5b7095efe8d84eb14655e1d645bbb1fd72fa53654\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '6b60b615979d7e82a4d42caea3e357327803b4b19a47ef9cfa0d97f836cbe185', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '975ee0fc8337afffc7ad9d41d617c494b711120353025a2f5671d2c21df4cca5', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'ed4b0bb7a69c1a15873f51cff82e8edabb3572b3907e7257b61ae091061301e9', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '540a12f139ed70c793ebe49427d90960bd4cb967e560612e90e4187d9896bb91', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '5220850242726423ae0be9e91885dce10970af732374adf198072c88e5e6eb59', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '6aba53754b8f2fe44fe8c1576c15b376103cb7cb169dd864e3f927e3b6e59155', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'69a86b71043a11b2b2bd8b676c277c1861874051da093752dec587c4c7fa9513\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'788ea962c97e30743299a833fad2b0d498131737c63dfe8fb37005173c63c16e\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'b1e816c30ef7d44066b0a2eb95f6664389b2c00f135cddb65df66874cafb06bc\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'cb7309b0846adfc336d229e09426bff3b8e413afa216f7687757eb26c4bca8b6\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '73cc6d69c20f964a17e91aa2cc11517a4ede07807fea07b1b548d2bcbe02a98e', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '966d1a3ce5632f9986ed7796b6e19cf0b5110596062aaa42926e6ee375072b43', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'bebdd3d969e7f444e8f1db920fe0e1affeb797b08c36b25475730aa02c1a128b', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '0c5a6428f781139c403790e2b17ec958ec59e09f577a8bc95502cec71eb25f3b', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '5ee265370ac36c48c4c4a4a8a70f1f1d476fe92a9d100cab98b4930e4e95edd8', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '96dfbe1f109fb39cd28c7e049ab5dca47eaa32759b71b20a94c9ed8f5f3678af', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'50e90ae56467c7432d4e30f5b7095efe8d84eb14655e1d645bbb1fd72fa53654\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', 'af3016932abf55f4a15f72f04487ac723771501b60b86971c475c69d2e2d2af0', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '0536cae4a60e5f18a812d6836bfe2e5b33cb00de022fa67e3d478c8e3ff848ab', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '004314280c6a700283a3fdd8dec544d1287d9db10744f7ff2571948d0d4303e4', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '78c0cdcb6d897907c40caa929b434ff1cbc2f88b95b2585947492abcf0e4902c', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '1a270435b63677532175c5a0920311b478a2475f9ce9a3e3c5e553c1a20657b5', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '909b3a7bd834f6e2057c1b1e6a3b351926542ae635f2854cff21d589052ac3b2', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '0f72ff0a7090bd20ff1866c576c2e50c01300fc30c8adce2ac56d9539103c00a', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '6f5edb26b72bf2ef1e70fe6e0ea2e9b39a39e5a93a9af1ed83f181ff7ccfee34', 'a8175eacaf09976ba00d7dd9eead429d137669448c34d60f85f75d0f52ed3f62', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":20,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":14,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 7, 'statement_completed', 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":16,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":3,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 11, 'statement_completed', 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":15,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":5,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 13, 'statement_completed', 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":6,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 59, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":29,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '69a86b71043a11b2b2bd8b676c277c1861874051da093752dec587c4c7fa9513', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '788ea962c97e30743299a833fad2b0d498131737c63dfe8fb37005173c63c16e', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'b1e816c30ef7d44066b0a2eb95f6664389b2c00f135cddb65df66874cafb06bc', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'cb7309b0846adfc336d229e09426bff3b8e413afa216f7687757eb26c4bca8b6', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '50e90ae56467c7432d4e30f5b7095efe8d84eb14655e1d645bbb1fd72fa53654', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":14,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 79, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":16,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":39,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 83, 'statement_completed', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":41,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 85, 'statement_completed', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":42,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 89, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":44,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_06dab7a6f0765270` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_06dab7a6f0765270` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_06dab7a6f0765270`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_06dab7a6f0765270`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5823, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"order_report\",\"large_orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":62,\"planningMs\":56,\"totalMs\":127},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'050a8da8a5817d3e627233763ad1c1609b815a1143970af900c9c663fb465e0b\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'c8898f78bf55818dba9dc9bfadbac668eab7af12d65539f2b1a7dda696c56c86', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'f974aa72104b93ad19c973e9551a7b4695122ea8c089926aac332cc29bc87eaf', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'f37fa07e9dbe9c5ec66a722eaf7e568b02a04e7956271a5f5a6d8396d7085499', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '2c8bb90366e18f5928bc6fe002f221350280c86f683a8f214d558da4689f3930', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '885a6f67a377e8a525a392402a3233f22e4030858c222f0577800fa6c9d439bb', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', 'c6e88d5567e94e96f26896f1394d1858c2908a38c21f7176ea934b974f193a02', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'d17ab4ed35b29a98e3ea0c9f61f1dd0d9792b8579e36ed3a3cfaa24e649f7199\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'caa8deee2c0e4778cb771869ece021404ccb10b6a86cfafeddf1441725e89602\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'53c3b33f9581b92a705153a71ee82aace1c10e1c79130da119c13c632d023523\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'85f11eb5eb41351b81e32e0673ae31145a4300366f72fb6ca4386ae6792f87f0\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', 'b1eafaf8debbe993f857a6ebd1de346a76467c3787cf2121a80495abd171f14c', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '034d6156cd11757a3a21317ab4f0daf9171d9b40cc8c1e45b63452b9d55d3256', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '30695ce1c8113bdfc0a0a1aef5d8e6cf7b9270b1be24840d7fbf7478c06ded86', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '928b2d0af4d2c216a4b7a63ffd7e7487e030280fc5a233102deb611f7e229148', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '0b29760626a212fc6e47ac53b3c1baeffaa20102ed2bb160c5773afa000988c5', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '9b4817f5b8833cbe239f63599322d9ff83c2609c86f3ad1746a005ef928f85e3', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'050a8da8a5817d3e627233763ad1c1609b815a1143970af900c9c663fb465e0b\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '28f9e26355ce75d288b8185ce31d8cf27c5a174c9784104122b0b750f43150b4', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'a8119d1aea4df5145f0bb5eb43f96bb4ef8e8f09cfd99451d228b6703e9cf347', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'c805a04d5196568c219b437b85f6e8bd67dac153e32204ad662a9f5882a6ea81', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', '7a8b27e4301781cf0e1f2009ce2ec165eaf0682b8d56e02280c69c78a82dd428', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'a01c859878341c589575bf5f24e767a2cf8a7b2c3d89e21b667fa1c6b0b1dd89', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '73f3e7556e4249bab5615081156136bed7c9cf24453265887cfd595d1dee5cf1', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '28f32b6663d72525ad64a70c04bb4948b6a5e18365d7e50dda2dbd757d524889', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '2f62d460379b8eeb1829f5908ff057512283727693196769775cd17e160f89b0', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '559ff38e52d7d51ded36ba529d3cdfb9dcd66f6a8134cf3492d8a7a98ea28f71', '78850cce4d1c1483a7cf7901b84c87a6f77379fb809e909448bb5cfe9524a8cd', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":9,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 21, 'statement_completed', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":10,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'd17ab4ed35b29a98e3ea0c9f61f1dd0d9792b8579e36ed3a3cfaa24e649f7199', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'caa8deee2c0e4778cb771869ece021404ccb10b6a86cfafeddf1441725e89602', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '53c3b33f9581b92a705153a71ee82aace1c10e1c79130da119c13c632d023523', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '85f11eb5eb41351b81e32e0673ae31145a4300366f72fb6ca4386ae6792f87f0', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 63, 'statement_completed', 'realize_tbl__order_report__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":9,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '050a8da8a5817d3e627233763ad1c1609b815a1143970af900c9c663fb465e0b', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 91, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":11,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":45,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_66b6c9485bed1fd6` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_66b6c9485bed1fd6` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_66b6c9485bed1fd6`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_66b6c9485bed1fd6`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5819, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"order_report\",\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":77,\"planningMs\":73,\"totalMs\":159},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'3f0d48ea687e6b128e44559388155255d2d83b807b8e4c38cfb3c48ec7877d7f\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '7660fbcba974425250f197d6bf2f9921a378a0553dc5c5caed8c31888383224a', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '6305565776987e43f6b13fc4dd6f2de1d8bd788719de128ee891465036f797ff', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '0a29a026d57f75661ed59171154e414dd7f90e3de73ea849455bbf5240d6fd76', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '626f6f6c7a9c784a7a731b6886a222483cefc89194796034f51129570f190851', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '770fcf9fe9b2a8c3090e0a2c81f94ebe5ba36869b517c0fa1971b01a00b99923', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '9a4379667195e8bfdb2987b0237517f8f06750481c056067aaf2ae3773c4144f', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'a48ae5d9875076404d6fade3f42edb6d2474d7ad0222d0cad2e8fd4494e600f5\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'ba80397e654c772ae9c79fb18e7c5baaaa154ef4e87a369c5e0388ddae4af3ae\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'5b461b643097de325ee8b9dda750b01631c5e7734c140ffbcc63b69197018224\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'4b09d2214aa686c633cb83d4c29299954d7e93b985c246b70000fb58b6f81dc2\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '300b00ad31f7c6cf3ba79295b51cd1c382d466346581f8bc3c39503b4d682226', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '1d2c375db80cd012ec1ed99bd10f4e498e2ed5eec8b8d9e82d06562ded811b5a', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'ef6f79a24037032c8db27ffb34f4f163dc7440838f39ef095b0c416e7d16bbf0', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'dceea95c9d54ceec55bd6f32e1a6d5a021019b080c69ccc6eb924c192cf94fb7', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '4a486656fc6fb60eb77a498d13f28985aa8afd4623f9d26cb9df17ee4ca0397c', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'c1f4969480b2a6d5f3f342d098a554c1928d81f67edec7a42ce50ec74acd705a', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'3f0d48ea687e6b128e44559388155255d2d83b807b8e4c38cfb3c48ec7877d7f\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', 'f08ab17b37c62da86af2579176bc3c94298e6f3cad02a24e95f500a750f531e4', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'e9101d44459d36ac98c5fe179c3cb27a8b61557d0852bcf994c6f68f0df2e3b9', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '72178bc825160f53b14cad81df32879ffbe4c6b8dfde745e0ce9166dbec196f2', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '2d36da8a9aade390b4392b81453e932afa7419759d21f7dedf68acb2104145ec', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '0e90b9b545f21fd2293fc57bfa9a3172de01a43b7786a5c6cae56e92f34b536f', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'adbb82b857abeed0936b86aaf5d55f79e34c8d06b0d896908a7788ea3cdb0383', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'b3042145678f689f9d6983fe9c0522792ef75e616fff56762e04ec107d18fdb3', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'd0cc3a999fe2d673e9b1f73821bad2784323f09e78496aad8b58744b349cd51a', '933ee5e3bceead00391a33a60180cb2809cc198f7f22a6255430f1ea3d8053a5', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":17,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 31, 'statement_completed', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 41, 'statement_completed', 'prepare_metadata_13', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 51, 'statement_completed', 'prepare_metadata_18', 'preparation', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":25,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'a48ae5d9875076404d6fade3f42edb6d2474d7ad0222d0cad2e8fd4494e600f5', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'ba80397e654c772ae9c79fb18e7c5baaaa154ef4e87a369c5e0388ddae4af3ae', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '5b461b643097de325ee8b9dda750b01631c5e7734c140ffbcc63b69197018224', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '4b09d2214aa686c633cb83d4c29299954d7e93b985c246b70000fb58b6f81dc2', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 73, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":36,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '3f0d48ea687e6b128e44559388155255d2d83b807b8e4c38cfb3c48ec7877d7f', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 87, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":43,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 89, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":12,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":44,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_27f297bac44a93d2` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_27f297bac44a93d2` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_27f297bac44a93d2`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_27f297bac44a93d2`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5898, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"order_report\",\"large_orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":62,\"planningMs\":62,\"totalMs\":133},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'8173696095c750b3bf8b92b19d5c3d45ef4357bd6f20684476df32d5ab774ed9\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'e6740f25f9950ea3906de711ebd866fbb467345607e4dfaeb8e3d56eba94079c', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '8e713ca21db2d154d92c991132a844b988a0c683fcef56fed9c78fac567a7fd9', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '8cbdcfe428b31488442f5e70df6081e10cd51ffa9502b07f023c407532ca7361', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', 'daccf851b3ce29c8fb74c8863a0a44bb510a3ae17daa4b686749ded9a0a34c73', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'fde7fbb6bbdfe037b58990cbdbe1b17b884ead75cdc223f9a87a4fb7e839599e', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '5820244436428018c5ccef8fb9d39388028acbfb93583bbe3c0556d9839d2625', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'d3173ed25652050340a8134d172ed8f0ccce094cb8c8409e22cc1018d5e8cb60\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'b243225c0311a727d68f2bb6084bf3bec6f1a8cce8fca2a4c48c8b034ad3ed83\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'6650f7782c324c429b953f4476585237e9e3b5debca3018c6986acd916380bfb\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'d2883e010caecbea95c79e7b8a2154e9ab1e83b851290ca44c052e454dcf62b3\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', 'fa5da8a161402aa071a2bc3eecf07a6c3a9a7bcf93300cf762e14bef44ef00ad', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'f18d0be0429a3bab54d4ebf70468188feb03a1124b80dc5c7827f58e51940fd1', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'a3953ac3c7a1451be34e8dd1ac837425b38af6e90dc6c96dcd06bb8f000d53b3', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'f03a4a1293d9b4b21513a0070a7701de385364e6480045f46fce9e87d2f99cd3', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', 'fe62dd07a59d2f8b594e5f72a8be179625448eed1d3634badde1ba193270cb4f', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '736e49a6b8e085f48ac0d152a717d90a692fe1a954c98a981d6153b7998a0fa9', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'8173696095c750b3bf8b92b19d5c3d45ef4357bd6f20684476df32d5ab774ed9\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', 'e95e71bec82bf70a3aabadfa78400064964587022ea9504b0f40e1e0e35f196f', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'cfbba24b0a4bba5da44dc745f7ffff35afc5d14b15c6f7256b569f3a25cf6a14', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'd6dbdbbe993e303f92b0fb031af1e3a4b49ec6f5716e2a7193a11d8886f12221', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', 'd1124086da802ace33b7bba7da8b3f77a6360dbfddc3749271ad1210395a0eb2', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'ca4bbe72b0664e6142ddd643b24d5684a3870e6369c7042c547c6d44aa618d26', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', 'f7828781827a925712e75d502ebc825c5361554ecec25db685d51c762ccd20b8', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'af8cae786e7e60f8a8f45a6855be0e07cd41a1afd3a2c6f946d417fab3170be1', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '9fc0ced97b93ce2256631b66a059fe9d4f5e36126337664c0b3b842c5b67b8f2', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '07323cadb5135b395336545ea3d63628869907c3f30da9946ff4ae53b5dd3b3b', '3550ccc11e32ea9a82b4001e1464d8fe9abc6310f6cccb52eaed0cceb1d07c86', 1)", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'd3173ed25652050340a8134d172ed8f0ccce094cb8c8409e22cc1018d5e8cb60', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'b243225c0311a727d68f2bb6084bf3bec6f1a8cce8fca2a4c48c8b034ad3ed83', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '6650f7782c324c429b953f4476585237e9e3b5debca3018c6986acd916380bfb', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'd2883e010caecbea95c79e7b8a2154e9ab1e83b851290ca44c052e454dcf62b3', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '8173696095c750b3bf8b92b19d5c3d45ef4357bd6f20684476df32d5ab774ed9', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":17,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 81, 'statement_completed', 'seed_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":14,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 83, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":24,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":41,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 85, 'statement_completed', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":42,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 87, 'statement_completed', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":43,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_085da7d9363e2949` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_085da7d9363e2949` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_085da7d9363e2949`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_085da7d9363e2949`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5822, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 17, 'statement_completed', 'migrate_metadata_0007', 'finalization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":8,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 25, 'statement_completed', 'migrate_metadata_0011', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":12,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 27, 'statement_completed', 'migrate_metadata_0012', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":13,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 33, 'statement_completed', 'migrate_metadata_0015', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":16,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 37, 'statement_completed', 'migrate_metadata_0017', 'finalization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":18,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 47, 'statement_completed', 'migrate_metadata_0022', 'finalization', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":23,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_publications (publication_id, deployment_id, operation, previous_deployment_id, logical_database_name, logical_view_name, physical_database_name, physical_relation_name, published_at) VALUES\n('01794650345657871582_d8e3e62eb8b523c7f4155f654a1b509d84d34a502fa2da53150cebd221928dbf', '{{d:v1}}', 'rollback', '{{d:v2}}', 'sqltide_playground', 'tbl__order_report', 'sqltide_playground', 'tbl__order_report__{{d:v1}}', '{{t:extra:0:s3}}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_e1903294cf73778b` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.1}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_e1903294cf73778b` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_e1903294cf73778b`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_e1903294cf73778b`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.0}}', 'sqltide-playground', 'sqltide_playground', 'deployment rollback', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:v1}}', NULL, 1, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 389, NULL, '{\"publishedViews\":1}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --deployment-id {{d:extra}}\",\"executedLogicalIds\":[],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":0,\"selectors\":[],\"startTime\":null,\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":66,\"planningMs\":61,\"totalMs\":135},\"toolVersion\":\"{{v}}\",\"totalStatements\":31}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'7123010a006c9652483a3e5daaef8e68fc4e932f8c900b5f7ad4df39b953fb87\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '14623c95448611a85063c7bc4cab86d9d1a288bad849fadf5a983093c2d04671', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '801fffd6436788feb205a28f2f4eeed247e833a0f719f979ff1cc22fe847feba', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 3, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 4, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 5, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 6, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 7, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 26, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'110983fa1677e4857229c56a09f771560447fd9f58a6b276b8845b7b32f802bb\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, NULL, NULL, \\'mv__large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'a62e2af7d45d6217ee81e687a5ce6385203127b3dc5e52715d9578c61af9ad3d\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, NULL, NULL, \\'mv__order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'98504bcbe0963eb987c402ddc56c66d5117df15af11d4721abb5ad4a2a7fcf59\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, NULL, NULL, \\'tbl__large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'81044f440b6cfc8b0ee1807c6143d54ecfad9f9fa896a6d8e534d3d5ecee9952\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, NULL, NULL, \\'tbl__order_report\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '7f8d058ab9b1e3c8e09ed465437a67518f2c3440ae59823478c0842092293d67', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 27, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 28, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'd341d2671d038d571db8a83c2bc48a26fd57859c04595aa66b828a1193f5e12c', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 29, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'7123010a006c9652483a3e5daaef8e68fc4e932f8c900b5f7ad4df39b953fb87\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '4f46a52d4cc3cbea6d14e106987f48d30fb3ebf859a9e1be3bfd1cb34843153e', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 30, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '4263eee2a603a3d33153e53ae384f9c846cb8a9ab5a3a3ae5be2667be470344a', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1),\n('{{u:extra.1}}', 31, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'e55757da2c8cc4e7adfae56f07cc6287ab2a7be99458d489936bd884ed35bd8d', '4db99ee97edce81cd145e4011118f83d9abecab58ee43b75c6c1b442da9fe07b', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 15, 'statement_completed', 'prepare_metadata_4', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":7,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 17, 'statement_completed', 'prepare_metadata_5', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":8,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 21, 'statement_completed', 'prepare_metadata_7', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":10,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 33, 'statement_completed', 'prepare_metadata_13', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":16,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 43, 'statement_completed', 'prepare_metadata_18', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":21,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 51, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":25,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '110983fa1677e4857229c56a09f771560447fd9f58a6b276b8845b7b32f802bb', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, NULL, NULL, 'mv__large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'a62e2af7d45d6217ee81e687a5ce6385203127b3dc5e52715d9578c61af9ad3d', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, NULL, NULL, 'mv__order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '98504bcbe0963eb987c402ddc56c66d5117df15af11d4721abb5ad4a2a7fcf59', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, NULL, NULL, 'tbl__large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '81044f440b6cfc8b0ee1807c6143d54ecfad9f9fa896a6d8e534d3d5ecee9952', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, NULL, NULL, 'tbl__order_report', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 53, 'statement_completed', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":26,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 55, 'statement_completed', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"elapsedMs\":5005,\"errorMessage\":null,\"intent\":\"wait\",\"statementSequence\":27,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '7123010a006c9652483a3e5daaef8e68fc4e932f8c900b5f7ad4df39b953fb87', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 61, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":30,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 63, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_b5fa4fd2dad198c5` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_b5fa4fd2dad198c5` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_b5fa4fd2dad198c5`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_b5fa4fd2dad198c5`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 0, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5626, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":0,\"selectors\":[\"pipeline:pl__orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":57,\"planningMs\":49,\"totalMs\":114},\"toolVersion\":\"{{v}}\",\"totalStatements\":31}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'faf8dcd2470bda23f7d941355dd8a5750813797f55dbaebb0b3eab73d6c2ca5d\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '483256f84b6c846a65331c0ad853c8f8112682d6a968d1e55a11b15c662141cb', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '6cccdfdf12d3702e6a3eb8d81fd6b7d76fe948fcf4c466c78bf8f500bc08c5b8', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 3, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 4, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 5, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 6, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 7, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 26, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'15cfde37da0b7aabb03746b52d8edec93f1abc74857828a00758d5376aa9bd8c\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, NULL, NULL, \\'mv__large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'a8a6df2f2667317e0bd788c4398e543d18666bfca1665fd40e511a5b70f3402b\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, NULL, NULL, \\'mv__order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'376796847d0c77d8bcb2cdce29c184faadee1b57e98e57033836aae39e7e7602\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, NULL, NULL, \\'tbl__large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'e402077422bb921714a695aa8d5594a5324dc49737890715decff0bc2b6fb6f1\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, NULL, NULL, \\'tbl__order_report\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '50a79d3abf4138956bf356d0c28a8133fafb0ec1ab81a6fccd6020de67ec59ea', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 27, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 28, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'd67628d1196f9db36d5a43a714947d26ab009f8daac06dab8d64fb321147a272', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 29, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'faf8dcd2470bda23f7d941355dd8a5750813797f55dbaebb0b3eab73d6c2ca5d\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '0ab8c905862370184ed3fb4ba29784758362d2a0ba0ef38ed5ded1352ec1c23d', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 30, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'fdf057237bceb26142db702b16e0d4a5468c6b23c279f2b3560309e265accd3c', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1),\n('{{u:extra.1}}', 31, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '8a7a940286f03d82fbe28eb641804d563b8c36db3d622976a88262f9cf4eab92', '4d81bcd6b500d102059744207db158ce3382223b4c0ad0f1a2cc53a598100cdd', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 11, 'statement_completed', 'prepare_metadata_2', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":5,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 13, 'statement_completed', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":6,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 31, 'statement_completed', 'prepare_metadata_12', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 41, 'statement_completed', 'prepare_metadata_17', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '15cfde37da0b7aabb03746b52d8edec93f1abc74857828a00758d5376aa9bd8c', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, NULL, NULL, 'mv__large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'a8a6df2f2667317e0bd788c4398e543d18666bfca1665fd40e511a5b70f3402b', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, NULL, NULL, 'mv__order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '376796847d0c77d8bcb2cdce29c184faadee1b57e98e57033836aae39e7e7602', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, NULL, NULL, 'tbl__large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'e402077422bb921714a695aa8d5594a5324dc49737890715decff0bc2b6fb6f1', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, NULL, NULL, 'tbl__order_report', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'faf8dcd2470bda23f7d941355dd8a5750813797f55dbaebb0b3eab73d6c2ca5d', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 61, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":14,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":30,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 63, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_e42b5915ffd7ad75` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_e42b5915ffd7ad75` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_e42b5915ffd7ad75`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_e42b5915ffd7ad75`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 0, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5566, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":61,\"planningMs\":51,\"totalMs\":121},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'86ac0a93e5dde83e3b7725514db5d517c61b0583f16b98ebd2f40883a344ecc9\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'f5abd5e678695b7d2204507163ff1e2b4166f8f952f33248831989d6a6e0b9b4', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '43cba2c0c26737811d82c4f541922df785f984a6acabace7c60e1d5ed53ca959', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '0188ee59aa11c6e912fa03427225f21f80404dbc534f9a7c312d9c0067357e5e', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '591cf6652cc08ec0fda3490b0a95b7263fdea58e324dc897fe873a32843880f9', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '90c9804e7af819c407ac2e8f86b1ef911c478549afa720b863aba2242e83c6b9', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '4ff192f4b9426121ff3c2eb22bef2616df03d8204f98c5eb2ce21eaffeb63333', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'61d6d2f27b8d9580ce48aed7dc5e7d0f0e8ee5f64d86e65fe92326529b3f92d1\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'2ff5c9cfae07fa37d2f45d9935b842bcc72879e2efe4164872c4da5705fdf79d\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'70fb429edd2a3dd5eaf50146d8249ba4faef0641e0723b7cfad43037d22705f3\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'4dd9db3eb9cbcf8a73697b8a7e387d7d9fd52037525218c8a6a5b846c87f9245\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', 'adcbc757c0ecc6e8ef1f2ca7b998ee13417115f524663b53f47aa6800c4fca47', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '70101cd290ad1b0ebb01c567ab05a0fce79865af491788c5d5f806992ca618ae', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '9e0a0953a3a0e009aa9834845fdd238bb452a3a5648847171d76e6eba26f9b67', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '0f4c3c9ef1ccd7db0290926498a9070e70490638da95679b3710e551e15acf7d', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', 'd3f50dcd3a9e020b732f70c55887b52b4011b7eabe8c2a2a9001509013c7f5f3', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '8ff603fa8e05020bb07c728146fbcba20a68f09d18e46a5857c71722256072d8', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'86ac0a93e5dde83e3b7725514db5d517c61b0583f16b98ebd2f40883a344ecc9\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '15665294621cdaf8d1b367e289139c34fd5d339b859e2e4e6f4e60c3749b2ba9', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '851afae2822f2bc376e7819db33a1f4b20a529ba392d5af443ce0a2b552b132f', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'b1b7d0f66931634240a09cbc79a99b3a2a83fff1be2f4ac0cefb2b72a7220735', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', '22971fcb075b9b07c4c1e42a094a369c4dccaf619a3d687c45b6aee0db335abe', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '33b27a8884a3fdd50438e28e49ad4799e03f7eb6b520660ad759067040d67217', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '7dcfb7f92f74776118f1e746ba0d895cb79f0cc98a12f42044c03d732171f27d', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'beeb406481eb3006418a3405c490284c1fe31ef35998bb559bcc3846df4eca5a', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'e58e8e219196913e58203991e927f0eb5d26878abf03e3a866cdb68a41277b9a', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'ae7ad47099b02afb631532e0f21642143bc9dadaca197029d9b849dea5fc3b49', 'b3007cfe9f3b6edb88a6f87488f4e7e049966fcb69fc603872db4c8547b20995', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 7, 'statement_completed', 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":3,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 19, 'statement_completed', 'prepare_metadata_2', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":9,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 29, 'statement_completed', 'prepare_metadata_7', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":14,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 59, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":29,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '61d6d2f27b8d9580ce48aed7dc5e7d0f0e8ee5f64d86e65fe92326529b3f92d1', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '2ff5c9cfae07fa37d2f45d9935b842bcc72879e2efe4164872c4da5705fdf79d', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '70fb429edd2a3dd5eaf50146d8249ba4faef0641e0723b7cfad43037d22705f3', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '4dd9db3eb9cbcf8a73697b8a7e387d7d9fd52037525218c8a6a5b846c87f9245', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 69, 'statement_completed', 'realize_mv__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":34,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 73, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":36,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '86ac0a93e5dde83e3b7725514db5d517c61b0583f16b98ebd2f40883a344ecc9', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":12,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64('{{s:s3}}', 3, 'UTC') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 91, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":45,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_ac31a8145a835fae` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_ac31a8145a835fae` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_ac31a8145a835fae`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_ac31a8145a835fae`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5795, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report --deployment-id {{d:extra}}\",\"executedLogicalIds\":[],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":0,\"selectors\":[\"order_report\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":75,\"planningMs\":60,\"totalMs\":144},\"toolVersion\":\"{{v}}\",\"totalStatements\":31}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'0e7dd394122c2a7f91a6c0df3c152e63c20bcf92507d376bf7b201eb9d21f88b\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '9c186bae249988aadfd809bd5a4ae14436cece6b991bcbd1b77c83775b97bc93', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'c953ce5eeeb154da567191f1ec5917763535d6645d18566db5a5a78107affc4a', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 3, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 4, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 5, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 6, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 7, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 26, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'8afee79d6d8fa688a31ac16341e37bf4a03f5bdf6ffcaf750ef78a3446d1b0f4\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, NULL, NULL, \\'mv__large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'62fd4f4f59cfa2871a7c6dbf24fe7a0e5a0bbe736092a1a39afde2718de57226\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, NULL, NULL, \\'mv__order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'40fd7211ab5e9f8012499f6afe3dfce6dda22c51e3c1a3779ee32855ad8c7bdc\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, NULL, NULL, \\'tbl__large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'a362045b9295e29aac7f835969cf23371d186229479d5640d9c2af44d83ae309\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, NULL, NULL, \\'tbl__order_report\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '9ea2cfc76b0a4a9e3b35fcb780d8ce2c7f12f01211b836691f2ca1136419395b', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 27, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 28, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '1fc9464a2feef642deb678b7dc89a25f41409779b8b10d9d02e13f849c4eae31', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 29, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'0e7dd394122c2a7f91a6c0df3c152e63c20bcf92507d376bf7b201eb9d21f88b\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '3981fc23682e438b9fd416d1d74857fd16416f945f4e75cda93d70db7a2d7eb3', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 30, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'e9d36669f99f99d0cb7e03dd8b22afe5eb26cd5ada3386e404e69216df459dbb', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1),\n('{{u:extra.1}}', 31, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'b77dbdfa0eb1be80b6e0d2395db1103e903e3617e077275496eea0d1a4648b61', '1c6ccf0e6a581dd58ee636fbcb6fa5c91872d6f63e3b174137ac4590aacf2c98', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 13, 'statement_completed', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":6,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 23, 'statement_completed', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":11,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 29, 'statement_completed', 'prepare_metadata_11', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":14,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 33, 'statement_completed', 'prepare_metadata_13', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":16,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 49, 'statement_completed', 'prepare_metadata_21', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":24,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 51, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":25,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '8afee79d6d8fa688a31ac16341e37bf4a03f5bdf6ffcaf750ef78a3446d1b0f4', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, NULL, NULL, 'mv__large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '62fd4f4f59cfa2871a7c6dbf24fe7a0e5a0bbe736092a1a39afde2718de57226', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, NULL, NULL, 'mv__order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '40fd7211ab5e9f8012499f6afe3dfce6dda22c51e3c1a3779ee32855ad8c7bdc', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, NULL, NULL, 'tbl__large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'a362045b9295e29aac7f835969cf23371d186229479d5640d9c2af44d83ae309', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, NULL, NULL, 'tbl__order_report', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 53, 'statement_completed', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":26,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '0e7dd394122c2a7f91a6c0df3c152e63c20bcf92507d376bf7b201eb9d21f88b', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 59, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":11,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":29,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 63, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_4705bea1643b1835` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_4705bea1643b1835` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_4705bea1643b1835`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_4705bea1643b1835`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 0, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5569, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"order_report\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":12,\"observabilityMs\":61,\"planningMs\":64,\"totalMs\":137},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'a4ccbebd19fad3de4cedef40938e2b4f1b3bd93e828ad6200816bfff90078554\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '0d034bee431f7f61a23722f08f8993b652d3cfaf7db229a75c3465a040d120df', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '1c3e1a2e7e79c006e284dbba83a62f663fa05599c103d070773b51e54195f0fb', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '41b6a85739b3885ab5995df68ad95cc1d21c4d482aaae07ea4e83bfd60c461c0', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '5bccbd0e14bccc0999c17f3de9987d983e8d7c9daac46878e7982b0ea224c81a', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '21a9cd3d5aa87da42f8da9d40a5edc01872cdc7e6183a8827b0f97d6c63705ef', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '44caafeae2ff71877da66d80fc3de26b485f4f31cb485921e61c7e705314b88d', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'1ed1dd8d8c9165bcda73af8ade8943c1d50b7e57704b41a54b6b8148ed4b62cb\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'c3eb68b6003d016ab936982f569a9a2ada371c3d6b4d56141cb3b48a785fbdf4\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'ed7ac9446b95d19ef8d38b41dcc004d374675550b742ad381f08648946f61038\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'c80baa0b9dd9d72c3e7604b6b3bd945ec58fd56da5a3d493a6422c24e91f34b8\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', 'd4776088eb2541c02c9ed3e0a3b6bb01927ae1ca5e8db685a43747e0e1ba22e5', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '5b6b7a5551a6021b7af4f6e0000c83e4e0f420ff51b6d53e77a56992972d5a2d', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '9152e29e5e8811503eb8cccb9910fc909d0e4fe8e8365dd84763bc0a072d0b35', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '4f98fbd2a382fcc6a007be82d11bc73ccc6c38dfcc9293247ce156c7d077da6d', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', 'fc98bd68b70b69238edc6afadb9cbfc131a3d10d1a15be583e06957c6ee7c67f', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'a75688506f8c8cbe5ad7c4344fa13093f600e70e676fd1fbffbc1bbda47bdfbd', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'a4ccbebd19fad3de4cedef40938e2b4f1b3bd93e828ad6200816bfff90078554\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '8fddd13bbbcf61164d9b458525b74cfa3e64cf34afa56d386dbf63283bf4a0b4', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'b7bbfb558f24ed8255eb28c111b24dd6970c57d6efe30c069c0ae0b8c818b145', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'b9cadab86d8a0ac587515659c454f5e096ef33e317d975037ca7e7086b87dd9a', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', '27e52590d4328c3e673f05eaa0496901f33afc1cf27839a1d1c0fe259b54bdd7', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'fec63cbb569e9fc6cf2a3fed10f64717fb5d00f609450599d91f2815a0e6c12b', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '8f8fe0a3beb914937cd6467f5b53d653849b391ace22bd68d6c7fd470e8346cf', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'd80988bf1f09be68a6da2ecfa73e6e54aa0beb6ce4d48438994dd8250a572109', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'e6cad5e9c2e5218a996985cdb2709a880b324e97ebf0e5721f0e5683e5a1cdf8', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '2a766fa3301f90d191198878dff392289253d5b8f10a2432bce52406f474313d', '11e54e7dc3ff4515e0de77b439352601245af13e601299f234f75f5ba098349b', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 9, 'statement_completed', 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":15,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":4,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 11, 'statement_completed', 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":11,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":5,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 13, 'statement_completed', 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":6,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 53, 'statement_completed', 'prepare_metadata_19', 'preparation', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":26,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '1ed1dd8d8c9165bcda73af8ade8943c1d50b7e57704b41a54b6b8148ed4b62cb', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'c3eb68b6003d016ab936982f569a9a2ada371c3d6b4d56141cb3b48a785fbdf4', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'ed7ac9446b95d19ef8d38b41dcc004d374675550b742ad381f08648946f61038', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'c80baa0b9dd9d72c3e7604b6b3bd945ec58fd56da5a3d493a6422c24e91f34b8', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'a4ccbebd19fad3de4cedef40938e2b4f1b3bd93e828ad6200816bfff90078554', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 75, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":11,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":37,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 83, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":28,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":41,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 89, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":44,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_7962bc178beccb84` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_7962bc178beccb84` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_7962bc178beccb84`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_7962bc178beccb84`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5876, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report --deployment-id {{d:extra}}\",\"executedLogicalIds\":[],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":0,\"selectors\":[\"pipeline:pl__orders\",\"order_report\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":115,\"planningMs\":61,\"totalMs\":184},\"toolVersion\":\"{{v}}\",\"totalStatements\":31}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'b15d11b609ecea018cf2b31db0a381a688bc9b4db9e0b9b41ca37aa5f1188b28\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'b023afa573be0154fcc3cac101cc57ac1c0af25f9fb79d7f372079859842d433', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'b9f37b38a0cfbf0cd3d44191add30088e08be47f8df28010ddcb6c0715c22d65', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 3, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 4, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 5, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 6, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 7, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 26, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'aebd7f6b772eb20445d9362ba3d7f5d10bc1fcdae49450b2137e3ccc3f64cf1f\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, NULL, NULL, \\'mv__large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'ed5444d445e8dd3508baa5c102bcc591449bf19d32e363303da3ffcdbe1d5c84\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, NULL, NULL, \\'mv__order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'3bd999c2a712f5a2a5cb307f3a29e8e73538e43efaee5fed6e876e9136e9952f\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, NULL, NULL, \\'tbl__large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'7e1eaece9bb52d9be7f359a98d757c38f096bb6fb5b7c654d0bd4abf71005df4\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, NULL, NULL, \\'tbl__order_report\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '9483bebb69411296e91cf044140790364147b87e5a4152db4ddad5f780b1302c', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 27, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 28, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'a0e65aa646901e5bf4153bbbaeba20869b03b581e179ac1d9e5fb98b2289d516', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 29, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'b15d11b609ecea018cf2b31db0a381a688bc9b4db9e0b9b41ca37aa5f1188b28\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '25cb789c8044b720f07abdbb192c954b22ce0ea9030cf52c58a8705b46fb3cba', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 30, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'a84033d84fba13f742c1d3d29c5fdd46e0069394d5ebdb70becb264f6c02367a', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1),\n('{{u:extra.1}}', 31, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '1a7037861bc4ef3fd252584b3e52a79ca5b5fda9f9a82b94deff19e113e16771', 'e30a88b0e5c307629337ade3935d392ba8b33651d7487bf6bea83697c92c8e32', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 13, 'statement_completed', 'prepare_metadata_3', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":6,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 45, 'statement_completed', 'prepare_metadata_19', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":22,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 47, 'statement_completed', 'prepare_metadata_20', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":23,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 51, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":25,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'aebd7f6b772eb20445d9362ba3d7f5d10bc1fcdae49450b2137e3ccc3f64cf1f', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, NULL, NULL, 'mv__large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'ed5444d445e8dd3508baa5c102bcc591449bf19d32e363303da3ffcdbe1d5c84', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, NULL, NULL, 'mv__order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '3bd999c2a712f5a2a5cb307f3a29e8e73538e43efaee5fed6e876e9136e9952f', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, NULL, NULL, 'tbl__large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '7e1eaece9bb52d9be7f359a98d757c38f096bb6fb5b7c654d0bd4abf71005df4', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, NULL, NULL, 'tbl__order_report', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 53, 'statement_completed', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":26,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 57, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":28,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'b15d11b609ecea018cf2b31db0a381a688bc9b4db9e0b9b41ca37aa5f1188b28', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 61, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":30,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 63, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":16,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_0f7efa9c6a626a21` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_0f7efa9c6a626a21` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_0f7efa9c6a626a21`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_0f7efa9c6a626a21`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 0, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5656, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"order_report\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":63,\"planningMs\":53,\"totalMs\":125},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'3876df5771733194d88199fe814541a100f8f92de7746b344e18b7b4649117ae\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'ccd43c5f55b516dd0df7dd1f1c6e4f80ed97413ebb81408defb54aaa401512f1', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '3f475c945c4597a825560c06d812ea5b8684a350e042e53760bfbbc6cddaa91b', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '851d7c557597cc3d64fb0d85215f34404d600dcc727892e245d47f71c2414b04', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', 'a4b020330013048788bbc5d395fd89ceb8f0aac2a4eafe537cada7bd6d993fea', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '9f87ec1b48070a669efe9c1b58558f17ed24704496807dbad89b730464401c98', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '415c81a6b98392982f091fe63e227444bf7a569dd0ae620c49f025c245ec255b', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'4866bd34529b0289f4b8daea0d3dfaff65981740de837662695edfc7f82e8e47\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'57a9fdc9d4feaaa6efb2d9c8a044d058abf8e83fa22e3825f9f031beb047bea4\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'823a235ec731020f7d1a40f1ca02e9e8c5e47dda8bf42dcec035157462045f55\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'d9b5a5c04d333dcd6a4a723bfa8bb02b4c4b5749be78432a436285e66e90e844\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '44924b49daa1d805db648158f7caac42922661b44a6c69dd1c15c8bb0de13c5e', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '26bd3f484c68ee4525fbda689ae2ec7697b81f58bf33fa499fc9ab47f5c91cd6', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '723555bf12c6118a28e0dcbadaeddb1c867bc5c05316cea9847cd69fbd964af6', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '6c7fc934b9e8ea776ef1744a08e5b89179bf24d2811b6c478be9616d179995eb', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '462ebea446b7ff106f83b31c6d13e280900d00b2124aa5317239743787ad75b0', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '70cc27530e5ae4f9007e29c6cc270a18e891ee5ef1665fe38337da70fcf5ece5', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'3876df5771733194d88199fe814541a100f8f92de7746b344e18b7b4649117ae\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '28f48a519dfb5e3d468fa0d16f3775b2ee3dc29983b67636ecf0973928039ddb', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'd77806a22f758c3e4641adb19f412bef2dfde3be68b09dcdd74873a0beaccddd', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '3d82fcbce357b1c65e1e131d46b73e0cf9112bc8c4ef6fa5cadc571618d2da96', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', '3d40870a7a30e87ebfecfc4b703d79617d9280f95669dd1b3efdc47a508531af', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '5efb5d8c03fc2ed00f8359ab22ecfcbc9e2fd743d169ecd0d2299eb5f9ab12b7', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '2968c943fceaa30d784d71502688a7a2f122932b1c44e048fa0a7b6ae918c9b4', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '2d69da135e3df226c43d6e331b6d85313eb368e3f65a6b7fa4ca8ef66db256ad', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '47f41152cc386b858e94aeadb8dc835887a053e66d6da439dda80c64c8632a39', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '6b929e2d3c15cbcfa5ae7e238ae5fdc4975530e03fda9999a9d3e0cbf63296b0', '53794a6353a8849ca8fb6c1795d30d43539884bd336f57cd3f0b589404df129e', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 33, 'statement_completed', 'prepare_metadata_9', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":16,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 59, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":29,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '4866bd34529b0289f4b8daea0d3dfaff65981740de837662695edfc7f82e8e47', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '57a9fdc9d4feaaa6efb2d9c8a044d058abf8e83fa22e3825f9f031beb047bea4', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '823a235ec731020f7d1a40f1ca02e9e8c5e47dda8bf42dcec035157462045f55', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'd9b5a5c04d333dcd6a4a723bfa8bb02b4c4b5749be78432a436285e66e90e844', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '3876df5771733194d88199fe814541a100f8f92de7746b344e18b7b4649117ae', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 83, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":30,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":41,\"writtenRows\":2}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_812b33617b3d7f20` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_812b33617b3d7f20` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_812b33617b3d7f20`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_812b33617b3d7f20`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5796, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select large_orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":0,\"selectors\":[\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":57,\"planningMs\":53,\"totalMs\":119},\"toolVersion\":\"{{v}}\",\"totalStatements\":31}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'81dfa284ee1fd321fad8638032c7a933db3208bd169841ea21c19e84d9499f92\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'ff0a9227f36910ed263ddd2a83c6deeff61bfe196abe14abef4cc3a29117ef43', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '2a27e66fd710a65b55e5665b82766e0e33c5e99c5ae05b8f1f60754cc7835d08', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 3, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 4, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 5, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 6, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 7, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 26, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'4574d97351efb4147df8ea3901dc821a5814b583dc6159de49c0c220bbc870d4\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, NULL, NULL, \\'mv__large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'2546568714740d76c86490e5923ff1697529c48d03f78b40d523516b634763cc\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, NULL, NULL, \\'tbl__large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'9e0ed5b8934f2e99c82367a791eaf16ec23ff7e770fb67d92f0096144deb0cb3\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, NULL, NULL, \\'tbl__order_report\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '1fac87419703196a3749563ba05e90ff8cd3ab1ce542091dda3b2b3e857da7a4', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 27, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 28, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '314dc8f439f891d4e9123832e6ebd5de92eae107f784e0284bbf4190c37d7512', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 29, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'81dfa284ee1fd321fad8638032c7a933db3208bd169841ea21c19e84d9499f92\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', 'b6123e41fbc204caa23b2221b8ac82704b5388146e7e833f9fed5880c0883f57', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 30, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '4bcf5b1ec8d05576b901cddd69ff8d16d386337972da54b2e0487fd0439358d5', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1),\n('{{u:extra.1}}', 31, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '69cf86b2db50d4af3e3a90cbfb7fe7311e91d2e6f308cf83697bc6489459700a', '9920047fc355408df9a1d29146f12b87b7ccb00a86c3c2df9ae19d9d1feb844d', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 51, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":20,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":25,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '4574d97351efb4147df8ea3901dc821a5814b583dc6159de49c0c220bbc870d4', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, NULL, NULL, 'mv__large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '2546568714740d76c86490e5923ff1697529c48d03f78b40d523516b634763cc', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, NULL, NULL, 'tbl__large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '9e0ed5b8934f2e99c82367a791eaf16ec23ff7e770fb67d92f0096144deb0cb3', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, NULL, NULL, 'tbl__order_report', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 55, 'statement_completed', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"elapsedMs\":5006,\"errorMessage\":null,\"intent\":\"wait\",\"statementSequence\":27,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '81dfa284ee1fd321fad8638032c7a933db3208bd169841ea21c19e84d9499f92', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 63, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":17,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_34e1001f1b874a0a` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_34e1001f1b874a0a` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_34e1001f1b874a0a`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_34e1001f1b874a0a`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 0, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5595, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":0,\"selectors\":[\"pipeline:pl__orders\",\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":62,\"planningMs\":44,\"totalMs\":115},\"toolVersion\":\"{{v}}\",\"totalStatements\":31}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'07d9c8172b43f1ab8626f592de9b1e083ce0d0ab1d3580471c52fb0f05dd314d\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '1ece295288754b9f8f032f3b1fe2f0c2417954d161d39170a5946bd8fe2a3350', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '2f67878068ae5f79179379244562a77efdfe1660e2d8ca1100453e8e3440d570', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 3, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 4, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 5, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 6, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 7, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 26, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'21735edf6348948f1a7d1558df3149f79228180057098c51079df290dc8fb2b8\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, NULL, NULL, \\'mv__large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'c9a8c0441c38590664cc5a4b93455dc2c448a1e3bf9c459717c12696df2dd121\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, NULL, NULL, \\'mv__order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'124d03245003913f3566ec5b10a1f2959e564f8ef41733a382fb22b927b6559f\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, NULL, NULL, \\'tbl__large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'6c334cd88b0b215f1e26705f3fbcd6ac3c8390a4e8e700fd5abdacdd594ea411\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, NULL, NULL, \\'tbl__order_report\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', 'caaa86296e887d937706e26bf7cea1924b2bafa990c501d56f0b6b0dbe51e3d1', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 27, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 28, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '069e7caad24b013e6c610c6fa6a48df7dd61625eb9abbc0507fc7fd1343bc427', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 29, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'07d9c8172b43f1ab8626f592de9b1e083ce0d0ab1d3580471c52fb0f05dd314d\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '6c72a3087d680924136715b1ec22a02904389c34f1709ad78beb67c7b7eaad92', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 30, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'b455c997cbcf638c51f72a9091505c46852bfe06d8eb9e87f71d2fe1960f5ad2', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1),\n('{{u:extra.1}}', 31, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '8e33f3ea6945735f23c50ff5307eec375cadfee8f89c131ccf609a902303bc52', 'fe703d59fd18dd2b5c8bcdcd041ce1e94784bc1b546a62d61c7d420ec2b9f818', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":11,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 37, 'statement_completed', 'prepare_metadata_15', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":18,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 41, 'statement_completed', 'prepare_metadata_17', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 51, 'statement_completed', 'prepare_metadata_22', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":25,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '21735edf6348948f1a7d1558df3149f79228180057098c51079df290dc8fb2b8', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, NULL, NULL, 'mv__large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'c9a8c0441c38590664cc5a4b93455dc2c448a1e3bf9c459717c12696df2dd121', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, NULL, NULL, 'mv__order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '124d03245003913f3566ec5b10a1f2959e564f8ef41733a382fb22b927b6559f', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, NULL, NULL, 'tbl__large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '6c334cd88b0b215f1e26705f3fbcd6ac3c8390a4e8e700fd5abdacdd594ea411', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, NULL, NULL, 'tbl__order_report', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 57, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":28,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '07d9c8172b43f1ab8626f592de9b1e083ce0d0ab1d3580471c52fb0f05dd314d', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_73561ee40762be14` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_73561ee40762be14` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_73561ee40762be14`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_73561ee40762be14`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 0, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5544, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"large_orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":68,\"planningMs\":65,\"totalMs\":141},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'c0bf17813dbdade79e86f20b471c81bd917d833d4df6e948e69110549fa7c519\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '15df7e4331672b45e4f728f90e02e57f8cf4b4e66ffe650720b864b9e9b2f81d', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '339cc70b247a335a833f2312513e068f52aedb0bf3b08536880071e508b5b167', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '0dc4a7733913b4e6e362aae362a7662419064c804424ef771529f61bb777489c', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '8d25ac1a5bb765c4cd67049c56a531053f2ff1b9b9d3d78ad0ccdb7b63d7110e', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '7fe58aad1fc7aeb74daad2b5450514a122f253ac97bd6a826edd43d8dd6b5219', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', 'd423166e8fc1b8276fed2a7495a7783ba75b54e03c036da6ccf43df6db1a1b12', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'80386f098749e6ba43116758ea801999e5942e0a53049c8dace45dc549f464f5\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'de4f44d8592e988c8c54fe7a0568e2d07b6e74c3f33c5238b5b605e702495d7d\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'2f5db877ef441cfe6901fca1977becedd6eeef7a821f0703715f7cf8a1cfaac6\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'eb16cfbe46fdb6820172bf8fa958c999f1c229abb6205abab0e700c3ac778f1a\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', 'a80a3480a8d679557765c77c32e33e6be748e9c7ceca284f9eb6bf81605b38a3', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '4bc96e4c9978617a6919acd29a02713f3e219ece96287c33e2246103439ed5c6', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '7115f88ff27120659d5e4f04273d8d1ecae362793152bf07a9eb35317edd2e93', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'edddb6bd363830a97d6bb33c092d8df1bc276698674e928916ebd491e21365b1', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '456c82571de33deceace6861f4e6c0a512731170e2aed7ffa35e89038c420b8e', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '893eddbaa7c19b00a7f989f5d5f0ca80b966f0f71007d24592aa86ca14b4c4d4', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'c0bf17813dbdade79e86f20b471c81bd917d833d4df6e948e69110549fa7c519\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '07b2dd0b5a872b470561be8bfcac6f84f4f96d4d787e32061bafcbee728d45f7', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '1c7664c49baf1770592e21da5f97d875f886100609fad0e1d883c6138d4db590', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'fd3efbac159c3a3841388c780ab1289a62dc31ef7607135af988003f8cebbcc5', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', '489cf24f5a508a8935531b543fd8af284fa9e1a9253f35682a038ff1bb7b7e67', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'ac74f97cda2c2c7a16853d002b204bd22bdca47d949a9ce50ca1eae3981dcabc', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', 'a21d7cfe16061a49b2502e2c4bfb1f8ccb23312fe6ec6cff891cd7915388d0b6', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '77014d652c24512f2517dbb10d1d4392734a7b45cd26f6b9cc914a5e3548771a', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '4df977f5ccf5c6f9a11ab534af8060a43d0e0c42318e23336355afec3530dedb', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'cf8428eeaa63728c969519c5caae38d73d4a38a390565097b3befd10c3c0653d', '805b3d6098e03098862660df32820ae545cef585daf3a7b5b8bd55d9cec5e1eb', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 7, 'statement_completed', 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":15,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":3,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 33, 'statement_completed', 'prepare_metadata_9', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":16,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '80386f098749e6ba43116758ea801999e5942e0a53049c8dace45dc549f464f5', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'de4f44d8592e988c8c54fe7a0568e2d07b6e74c3f33c5238b5b605e702495d7d', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '2f5db877ef441cfe6901fca1977becedd6eeef7a821f0703715f7cf8a1cfaac6', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'eb16cfbe46fdb6820172bf8fa958c999f1c229abb6205abab0e700c3ac778f1a', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'c0bf17813dbdade79e86f20b471c81bd917d833d4df6e948e69110549fa7c519', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":19,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 83, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":26,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":41,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 87, 'statement_completed', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":43,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_fb51505ca4de05fd` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_fb51505ca4de05fd` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_fb51505ca4de05fd`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_fb51505ca4de05fd`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5856, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report large_orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":0,\"selectors\":[\"order_report\",\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":58,\"planningMs\":44,\"totalMs\":111},\"toolVersion\":\"{{v}}\",\"totalStatements\":31}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'446395197be0e43ede15999bb59a3760954169639537fdc622d860fb91420d6f\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'f1aeb1c06331def9384c235e5f861110f17c11e29951d73195a60816ca12d04d', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'd5343d1e307f5de1577b71933a839cbb25d92ca171a5d3b58f365c35a79e74e1', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 3, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 4, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 5, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 6, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 7, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 26, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'be7c1dca428d61dbde0c0b4bf672b083ef952635fa56a4f99f434cee72f45a53\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, NULL, NULL, \\'mv__large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'84fb4b552bd00151a3d45fd48a5a63e3c8b2f84d2970da12b9173ad808870c75\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, NULL, NULL, \\'mv__order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'786aab5e9f4bce9f627889abf57e2696eb3d425fb1c23ba6ae239e72cd2eecbf\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, NULL, NULL, \\'tbl__large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'91d738c5987dade6ee4376dbbd2dd9e169c92d7d6ccff62bc56c912df4be2d1e\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, NULL, NULL, \\'tbl__order_report\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '24aa1ecaf010a1023315b153f43324a90fa72b67fa0a9db8feed9866f170a5f4', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 27, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 28, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '9947567447a481bb94aa2c7092a7ce83c5d9ab43888cd202ceb3f398379d4c55', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 29, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'446395197be0e43ede15999bb59a3760954169639537fdc622d860fb91420d6f\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '2e01804e48f4ec13cbb8c55dc719ef4dac076897a09cdb36d2a7673cf3a03b2e', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 30, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'dd8088029370cff4151e731eb5d5f1ec7235ff5214d19276bd4205db865127af', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1),\n('{{u:extra.1}}', 31, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '23eb9c95ff78958eaacf2107eab3d7eb888d4702cdc40a836b69ae018473c5f7', '774ee98988f84b642032305cedcd6d9956ad090f7ee1a421d450baea1675ce80', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":18,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":19,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 23, 'statement_completed', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":11,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'be7c1dca428d61dbde0c0b4bf672b083ef952635fa56a4f99f434cee72f45a53', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, NULL, NULL, 'mv__large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '84fb4b552bd00151a3d45fd48a5a63e3c8b2f84d2970da12b9173ad808870c75', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, NULL, NULL, 'mv__order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '786aab5e9f4bce9f627889abf57e2696eb3d425fb1c23ba6ae239e72cd2eecbf', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, NULL, NULL, 'tbl__large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '91d738c5987dade6ee4376dbbd2dd9e169c92d7d6ccff62bc56c912df4be2d1e', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, NULL, NULL, 'tbl__order_report', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '446395197be0e43ede15999bb59a3760954169639537fdc622d860fb91420d6f', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_813d18b4d6288fd2` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_813d18b4d6288fd2` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_813d18b4d6288fd2`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_813d18b4d6288fd2`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 0, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5581, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"order_report\",\"large_orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":53,\"planningMs\":48,\"totalMs\":109},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'dc23be61ba12d99747b5926384c79c94a02ed2b77467906b540c023b5a344289\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'de82d549d0a7dcfa29b8874cbb0c6073ad40763949657565142051c7fb876f31', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '818da2ccba0f9e9a2964bc24df57534e9412e09334b2bef44b64ccc22ea031d2', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'ce7b33433172d84ececbf5854160e3d31f1dc3400aba08442855670c0da83375', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', 'c58744c15b9a309eecbce5e05f02cf47b671f38f5eae51199f53144c819fce30', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'bd001700f23bbb49781c23103f51f609790a1820f41a710537710493368266b6', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', 'eae81fef38acaaffee9c415990f12487b3fc3f9b860492a8126d966baa822b47', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'c4eea1753a67f6cd80f5a2aeb459bb5144c19ae950c201ce28bc394de021f51e\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'a9d7f9ed38d878262a93fcb2af0eee139ddffbe2d6fc37cb61daf444257fbce8\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'247f7d5d56fae1682d911d4f535323c0339bcfab850f55e945260874af7ec695\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'126448598ff17d2a447389085ddaa33ff2fa0a701a7756ee2f668af25b0cfe89\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '8c1a920268dab69bd0875ba56c0f8c37c5f962ee17eaa5add75efce719ab0ad7', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'a84bb1523079ba963c0763689bb44666f6b4939b639475a17aa27cefd3ab3dd5', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '3da53d0a7c1f61711f2058c980926199fbb0cbd5b0a553883199d09fe228d6e6', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '3cff1417dd4b531acdbc0cc3f7afb376ec426bf2474b4005ce5e37be67f0a817', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '46758c49c20606591c7b4ea946769898a0dc6ebdf35d6175ecbbc3e4d56332ab', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'c0e0382101f85ed686a235f7f4c855c4924e1cd65daa49e088788c5fd378fb49', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'dc23be61ba12d99747b5926384c79c94a02ed2b77467906b540c023b5a344289\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '044561736b36d957862cb48acc1519c899d46e82dbb3c7f7dea163c1eb5f5243', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'a17bbbd14b136e56c76bc827cecb553352219dd49034723f30dc8f3a0963d002', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '1ff59e7f771d03d4095e5a8a759eb1fe4b779a32d36fddf2b0ada65a8284aae3', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', '6c4850d491df83b3a1abab025675d98e2f0b27d61be2b24d631645d9debd1bcd', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '16e1436fc67c503f4f5c5ef1e434ac6e0ba11f95d11cac7f2ee11571e5e1a280', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '50dd2176ef8a4a2010d53d97f0f532fa6391c3d0d50d18199b57e4c85a90b376', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '457cdf3b583caeac6d6d1cac9de9ab2018a0e19035ea612fa80b8fb21651aee2', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '0f65c001cc93ebb1450641b65c1819263e6211eac058fdfc62da283fa309118e', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '0e580e8e21a1f3285b4180e0cd8659a077b6e0676b5c7e41b3ef3c0a0e50805a', '4c991fe4e1f9b4ecbea7aecf3616efd70d845d7602f7ac59c54354a32a53c64f', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":23,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":25,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'c4eea1753a67f6cd80f5a2aeb459bb5144c19ae950c201ce28bc394de021f51e', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'a9d7f9ed38d878262a93fcb2af0eee139ddffbe2d6fc37cb61daf444257fbce8', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '247f7d5d56fae1682d911d4f535323c0339bcfab850f55e945260874af7ec695', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '126448598ff17d2a447389085ddaa33ff2fa0a701a7756ee2f668af25b0cfe89', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 73, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":36,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'dc23be61ba12d99747b5926384c79c94a02ed2b77467906b540c023b5a344289', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":25,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 79, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":19,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":39,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 87, 'statement_completed', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":43,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 89, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":9,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":44,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_d700d768d3733744` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_d700d768d3733744` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_d700d768d3733744`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_d700d768d3733744`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5832, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":0,\"selectors\":[\"pipeline:pl__orders\",\"order_report\",\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":10,\"observabilityMs\":84,\"planningMs\":42,\"totalMs\":136},\"toolVersion\":\"{{v}}\",\"totalStatements\":31}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'7f7b0d333dffb9a7be631237cc77ba56950db0f93589e26be29d7b60a7379cb4\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'b39e9cbb7416d3c703d323770ecf858536e5dab63b0212062741c34a6c90a9cf', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'e202cbf3c2278ba6a1efffa89a850623ba26870faf0bf79ab83e5543930e2feb', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 3, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 4, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 5, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 6, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 7, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 26, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'39b30cf06d59ef1adac43c1c10e4ab979746d4dd7331b9b9a08eb3c8eb8a8b65\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, NULL, NULL, \\'mv__large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'9e3693db64185e2593a5cc49853aabeb806782d04aa539abdf4873d2ae437da7\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, NULL, NULL, \\'mv__order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'693cbea181d1b4896987e0629822fb403e87a908770d81ee17ebae7da6bc4547\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, NULL, NULL, \\'tbl__large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'4bab93b833372b0a4604608ce83f061f093fb1c45f2be696abc35e1474580d83\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, NULL, NULL, \\'tbl__order_report\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '189ee60eb6e521df9508f265394508dfceb79f3ef9836fc72e5bec0590c5d20f', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 27, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 28, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'ac472b1d4c9a4ce3d266f9d3a237b868e217b00f74b23d57d132a4434418d34c', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 29, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'7f7b0d333dffb9a7be631237cc77ba56950db0f93589e26be29d7b60a7379cb4\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', 'e8256094850bb4ba6c50c208fd70d6a087836dd2c7e97bc874a8c69664b5ed4e', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 30, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '06bafaeecce89391a7e0601e4986ad6470b47ceae7e73b564399d55d8c6f2463', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1),\n('{{u:extra.1}}', 31, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '33989d779a387403df091f57cee909e0a8e71f82526895dc034fe6d194e1facd', '1c74df9384f219491dc13e46bb305b94ac02d9963cc78784d13f2f545673ea0d', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":15,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 27, 'statement_completed', 'prepare_metadata_10', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":13,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '39b30cf06d59ef1adac43c1c10e4ab979746d4dd7331b9b9a08eb3c8eb8a8b65', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, NULL, NULL, 'mv__large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '9e3693db64185e2593a5cc49853aabeb806782d04aa539abdf4873d2ae437da7', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, NULL, NULL, 'mv__order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '693cbea181d1b4896987e0629822fb403e87a908770d81ee17ebae7da6bc4547', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, NULL, NULL, 'tbl__large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '4bab93b833372b0a4604608ce83f061f093fb1c45f2be696abc35e1474580d83', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, NULL, NULL, 'tbl__order_report', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '7f7b0d333dffb9a7be631237cc77ba56950db0f93589e26be29d7b60a7379cb4', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 59, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":29,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 63, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":9,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_969b61ea2be440c5` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_969b61ea2be440c5` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_969b61ea2be440c5`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_969b61ea2be440c5`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 0, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5551, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"order_report\",\"large_orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":61,\"planningMs\":56,\"totalMs\":126},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'6efdc1d8040c76ffa4f9acdc94e6f717413f711d391e9bf9edf1ec0a3e3a5e63\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'bb5cb6781f90e420cae9cbf0a8f351358f385bbaac08c352d66f33342576b71c', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'e6b56ecb92d8ad655abc42fc95141f40ff9cabdd4aac49edbb0af5a674d4f60d', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '58701a4b8feaeaac14995af04fa459aaa06514e45cb67ee49eb57e9f720e9b4d', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '6de59f9b183280889d4ecaa369b6270c825b2be55c822261164d636e91c1190e', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'c27cc5d490802c39915592252de915b1626ec58f2f074c131be19699bd87902e', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', 'cbb4557262ea1d3342cd82553167dfb69e1dab6f7570d7304c569e51fcefe00b', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'de3799940e77d5c50461818c513c4668a3cbb700f50be0187969bfdb0da005f9\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'07960c760d1de16139cf6c34c26e814e650b31c0721702f904e13c3a666b274c\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'58600a8d7dfefae37ed55742a24a095d28e25b5a45526b072eed2bacc9ec2d31\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'c14364370eb317f902f1c01c0d294fd3d2c70177dfee55717e70da167ed0ac58\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '4124853d9bac7c908dfbb1e8f5d242cd3d1ae7c2683a7dcde2cf7dbfaf904ae8', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'b0a15e2d69ad982d5f28bf392ad4498bab661d2b49e93241b2e4a02767165b6f', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'bd32bc8e0b26bfcdd87b4fcf9f400b779c6bc4fdba9c7e7e975d680d75f364a3', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'ceaa5b84236dc13760cbfb863832d2a395ea05e5a4d9bf8d16876fcb4e573dfb', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '3e5b95e474645c58038a5f5232504fbd155c931f509435c76160fa82f46cf179', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '2521ea52f0474c00103fee253202f27200899511baf1c243b40b84771bb949b5', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'6efdc1d8040c76ffa4f9acdc94e6f717413f711d391e9bf9edf1ec0a3e3a5e63\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', 'b128f93ce52b85baa11824430ae2df83e9c8939b49d51f51759615490f8ba15b', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'ed93e014e73d8e9c324fdc621ab557db8147edbace5e417aa8d1c6274b1bfe8e', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '09a1e1d3a7b70baec8998852e19a65a33a9290080ff5011e0214fff4a7feaaff', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:built}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', 'bc7d554665261e2313536226c58c4bbf98be5b2f7f410584d04c103cc708d88e', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '3310201c7caaf2b9d34f486baee731de729604aefbc3039d283dd71e16df145a', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', 'e09d43cc454af153dacc13bf507794e30555841967888921cab3c2b5cffcc069', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '568cb0e52f24dd0228df53b46d9d1e9a928ad52303dd97123ce9720756a38697', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '085902e8d889b823eb52a429cb917aff771bf969d9da8ce2186f8e2d8b59ebeb', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '3ae6bce8280e2a36afd31dc85c1b4b2594c74b2a04d5144299009a20f9355096', '94deb1e041658e0ce88efd548b5a40ecec45aa8460f11bc08d04012634dfdd25', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":11,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 23, 'statement_completed', 'prepare_metadata_4', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":11,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 53, 'statement_completed', 'prepare_metadata_19', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":26,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'de3799940e77d5c50461818c513c4668a3cbb700f50be0187969bfdb0da005f9', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '07960c760d1de16139cf6c34c26e814e650b31c0721702f904e13c3a666b274c', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '58600a8d7dfefae37ed55742a24a095d28e25b5a45526b072eed2bacc9ec2d31', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'c14364370eb317f902f1c01c0d294fd3d2c70177dfee55717e70da167ed0ac58', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 73, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":11,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":36,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '6efdc1d8040c76ffa4f9acdc94e6f717413f711d391e9bf9edf1ec0a3e3a5e63', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 75, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":12,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":37,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":31,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 79, 'statement_completed', 'assert_qualifying_input_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":24,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":39,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 83, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":17,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":41,\"writtenRows\":2}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_23cdcb5378ef06bd` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_23cdcb5378ef06bd` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_23cdcb5378ef06bd`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_23cdcb5378ef06bd`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5886, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 1, 'run_started', NULL, NULL, '{\"command\":\"deployment rollback\",\"contextLogicalIds\":[],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt deployment rollback {{d:v2}}\",\"executedLogicalIds\":[\"model:large_orders\",\"model:order_report\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[],\"startTime\":null,\"startupTimings\":null,\"toolVersion\":\"{{v}}\",\"totalStatements\":0}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:rollback.1}}'", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 2, 'statement_started', 'replace_stable_binding_tbl__large_orders', 'stabilization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.2}}\",\"replayOffsetProgress\":null,\"statementSequence\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 3, 'statement_completed', 'replace_stable_binding_tbl__large_orders', 'stabilization', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":1,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 4, 'statement_started', 'replace_stable_binding_tbl__order_report', 'stabilization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.3}}\",\"replayOffsetProgress\":null,\"statementSequence\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 5, 'statement_completed', 'replace_stable_binding_tbl__order_report', 'stabilization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":2,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 6, 'statement_started', 'migrate_metadata_0001', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.4}}\",\"replayOffsetProgress\":null,\"statementSequence\":3}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 7, 'statement_completed', 'migrate_metadata_0001', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":3,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 8, 'statement_started', 'migrate_metadata_0002', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.5}}\",\"replayOffsetProgress\":null,\"statementSequence\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 9, 'statement_completed', 'migrate_metadata_0002', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":4,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 10, 'statement_started', 'migrate_metadata_0003', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.6}}\",\"replayOffsetProgress\":null,\"statementSequence\":5}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 11, 'statement_completed', 'migrate_metadata_0003', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":5,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 12, 'statement_started', 'migrate_metadata_0004', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.7}}\",\"replayOffsetProgress\":null,\"statementSequence\":6}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 13, 'statement_completed', 'migrate_metadata_0004', 'finalization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":6,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 14, 'statement_started', 'migrate_metadata_0005', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.8}}\",\"replayOffsetProgress\":null,\"statementSequence\":7}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 15, 'statement_completed', 'migrate_metadata_0005', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":7,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 16, 'statement_started', 'migrate_metadata_0006', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.9}}\",\"replayOffsetProgress\":null,\"statementSequence\":8}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 17, 'statement_completed', 'migrate_metadata_0006', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":8,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 18, 'statement_started', 'migrate_metadata_0007', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.10}}\",\"replayOffsetProgress\":null,\"statementSequence\":9}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 19, 'statement_completed', 'migrate_metadata_0007', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":9,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 20, 'statement_started', 'migrate_metadata_0008', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.11}}\",\"replayOffsetProgress\":null,\"statementSequence\":10}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 21, 'statement_completed', 'migrate_metadata_0008', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":10,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 22, 'statement_started', 'migrate_metadata_0009', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.12}}\",\"replayOffsetProgress\":null,\"statementSequence\":11}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 23, 'statement_completed', 'migrate_metadata_0009', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":11,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 24, 'statement_started', 'migrate_metadata_0010', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.13}}\",\"replayOffsetProgress\":null,\"statementSequence\":12}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 25, 'statement_completed', 'migrate_metadata_0010', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":12,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 26, 'statement_started', 'migrate_metadata_0011', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.14}}\",\"replayOffsetProgress\":null,\"statementSequence\":13}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 27, 'statement_completed', 'migrate_metadata_0011', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":13,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 28, 'statement_started', 'migrate_metadata_0012', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.15}}\",\"replayOffsetProgress\":null,\"statementSequence\":14}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 29, 'statement_completed', 'migrate_metadata_0012', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":14,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 30, 'statement_started', 'migrate_metadata_0013', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.16}}\",\"replayOffsetProgress\":null,\"statementSequence\":15}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 31, 'statement_completed', 'migrate_metadata_0013', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 32, 'statement_started', 'migrate_metadata_0014', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.17}}\",\"replayOffsetProgress\":null,\"statementSequence\":16}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 33, 'statement_completed', 'migrate_metadata_0014', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":16,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 34, 'statement_started', 'migrate_metadata_0015', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.18}}\",\"replayOffsetProgress\":null,\"statementSequence\":17}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 35, 'statement_completed', 'migrate_metadata_0015', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":17,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 36, 'statement_started', 'migrate_metadata_0016', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.19}}\",\"replayOffsetProgress\":null,\"statementSequence\":18}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 37, 'statement_completed', 'migrate_metadata_0016', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":18,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 38, 'statement_started', 'migrate_metadata_0017', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.20}}\",\"replayOffsetProgress\":null,\"statementSequence\":19}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 39, 'statement_completed', 'migrate_metadata_0017', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":19,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 40, 'statement_started', 'migrate_metadata_0018', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.21}}\",\"replayOffsetProgress\":null,\"statementSequence\":20}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 41, 'statement_completed', 'migrate_metadata_0018', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 42, 'statement_started', 'migrate_metadata_0019', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.22}}\",\"replayOffsetProgress\":null,\"statementSequence\":21}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 43, 'statement_completed', 'migrate_metadata_0019', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":21,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 44, 'statement_started', 'migrate_metadata_0020', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.23}}\",\"replayOffsetProgress\":null,\"statementSequence\":22}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 45, 'statement_completed', 'migrate_metadata_0020', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":22,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 46, 'statement_started', 'migrate_metadata_0021', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.24}}\",\"replayOffsetProgress\":null,\"statementSequence\":23}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 47, 'statement_completed', 'migrate_metadata_0021', 'finalization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":23,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 48, 'statement_started', 'migrate_metadata_0022', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.25}}\",\"replayOffsetProgress\":null,\"statementSequence\":24}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 49, 'statement_completed', 'migrate_metadata_0022', 'finalization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":24,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 50, 'statement_started', 'persist_publish_event_0001', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollback.26}}\",\"replayOffsetProgress\":null,\"statementSequence\":25}')", - "INSERT INTO sqltide_playground._sqltide_virtual_publications (publication_id, deployment_id, operation, previous_deployment_id, logical_database_name, logical_view_name, physical_database_name, physical_relation_name, published_at) VALUES\n('01794650475448328477_c757e8fcaf6aaf51906d812d38953389f5c802609cef749454ad6dee710cd322', '{{d:v2}}', 'rollback', '{{d:built}}', 'sqltide_playground', 'tbl__large_orders', 'sqltide_playground', 'tbl__large_orders__{{d:v2}}', '{{t:rollback:0:s3}}'),\n('01794650475448328477_c757e8fcaf6aaf51906d812d38953389f5c802609cef749454ad6dee710cd322', '{{d:v2}}', 'rollback', '{{d:built}}', 'sqltide_playground', 'tbl__order_report', 'sqltide_playground', 'tbl__order_report__{{d:v2}}', '{{t:rollback:0:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 51, 'statement_completed', 'persist_publish_event_0001', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":25,\"writtenRows\":2}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_f6c06cbacf9e59f7` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:rollback.1}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_f6c06cbacf9e59f7` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_f6c06cbacf9e59f7`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_f6c06cbacf9e59f7`", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollback.0}}', 52, 'run_completed', NULL, NULL, '{\"errorMessage\":null,\"exitCode\":0,\"operationEvidence\":null,\"outcome\":\"succeeded\"}')", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:rollback.0}}', 'sqltide-playground', 'sqltide_playground', 'deployment rollback', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:v2}}', NULL, 2, '{{t:rollback:1:s3}}', '{{t:rollback:2:s3}}', 413, NULL, '{\"publishedViews\":2}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 29, 'statement_completed', 'migrate_metadata_0013', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":14,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 35, 'statement_completed', 'migrate_metadata_0016', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":17,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 37, 'statement_completed', 'migrate_metadata_0017', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":18,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 39, 'statement_completed', 'migrate_metadata_0018', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":19,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 41, 'statement_completed', 'migrate_metadata_0019', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_publications (publication_id, deployment_id, operation, previous_deployment_id, logical_database_name, logical_view_name, physical_database_name, physical_relation_name, published_at) VALUES\n('01794650478567162450_f9e08b84080246e982300b412fa40af03825f3e94965c135a31477d245467b96', '{{d:v1}}', 'rollback', '{{d:built}}', 'sqltide_playground', 'tbl__order_report', 'sqltide_playground', 'tbl__order_report__{{d:v1}}', '{{t:extra:0:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 49, 'statement_completed', 'persist_publish_event_0001', 'finalization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":24,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_f89e429e6e0fd611` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.1}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_f89e429e6e0fd611` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_f89e429e6e0fd611`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_f89e429e6e0fd611`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.0}}', 'sqltide-playground', 'sqltide_playground', 'deployment rollback', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:v1}}', NULL, 1, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 424, NULL, '{\"publishedViews\":1}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[],\"startTime\":null,\"startupTimings\":{\"compileMs\":12,\"observabilityMs\":65,\"planningMs\":61,\"totalMs\":138},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'6e32a563fd78f3a42558d846bb5f5d8a25245f4507d7cc8bbb5067c2a7f4daab\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'a04f9a7608bbdb1b98cc567d7ff516151ce4ebf794d64098f3be062203009c36', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '6b4112cd4633d58cb6f1c6b50ac9cdc1f46101a62eb8eccbe518daeec667dced', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '8051ea3b529782b05272255f7f0f7ccd54a8c1dced63372ff3c7eddcc8396987', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '7f647674ba16298d3ec41294bf1ff795fe2869b8925dba7c5bae313e6cf6868f', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'b7ecb829ff37d4fe945d84143d96e744659eb34e862dd589a1acb54d6088c3a0', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '0531a807bfffcdae17cbd54138177678514ce395ab0cd858307af9b8edb11547', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'609975bd2c1ab7d42da8b4e82f53e4938bf808c9d2438d9691f89ff40510d969\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'a6e4239b790a906e2d46aa052aa7e784a94bc529786d7f88e9fd138bc7ec529e\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'833022ac97f20b38b9ac652d48b606363f5a6f53d1353a4258f92fde9603f82c\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'610c81f17241d32824baa8b9374d8c184c895e44d1176f3649371bdb01c5917f\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '5462fbaeb55af3bad9df676fd7f692a9fbf54222ed9db37f25fa9b164308ccec', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '0c99e71b844e36028915a91207d0acc45a895bb5e45b06b77fd14e5166c01f15', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 32, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '26c808ee84fcd0eea25f869aa0a688f4f70dbedd0553cfbe1b1668f684c9360c', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 33, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '5ad1ca08109f1ded094e85dcb95eb5be467c406da9a93d17fa6f44d87ac2ca9b', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 34, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'f6e4e2c6de4513bd95976b94657da131ff60f0428918b5e432e27b14a277c776', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '8ab1666f2021a43277325fe6cbef2a54655adaac3a4ca755a5a7bc8d95487776', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'6e32a563fd78f3a42558d846bb5f5d8a25245f4507d7cc8bbb5067c2a7f4daab\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '98ee18cd52abafb713f9bc4656f2d3a45ff8382c0341365e11af821c22feb8f7', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'eaa7e797c1818f05ee333c08abdd4c73bada8d51fb09399bbcced140d1723a8c', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'afb3757fc0f653dc1eb11f3ebde1cb7ea39a1ebddd48a3819dc8456fed0d7929', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '731b2947613d42a7a3de96cd481c1edd85cdb4d422224d89b89aebaca565d16d', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '613372e67356136251579abf4ba585d9e2bc0382b743de13b828ee3906b8fc62', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'a4efa1431737fba098be47b6cda330e8a872bb88d21b2877492292cb69682e20', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'e9ef01affc1275815d08025c4bf0cd756a2d4d07eb9c9f0fb93305a9b325ead3', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '5ee7589c0ad82877cfd3ab3674e25100a31bd0be38247e3bffdfed774e06de02', '8cc602e379c0e511935f18869eb5d07b7ea49a0079237df5b5051e42d82fb170', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 11, 'statement_completed', 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":13,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":5,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 37, 'statement_completed', 'prepare_metadata_11', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":18,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '609975bd2c1ab7d42da8b4e82f53e4938bf808c9d2438d9691f89ff40510d969', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'a6e4239b790a906e2d46aa052aa7e784a94bc529786d7f88e9fd138bc7ec529e', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '833022ac97f20b38b9ac652d48b606363f5a6f53d1353a4258f92fde9603f82c', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '610c81f17241d32824baa8b9374d8c184c895e44d1176f3649371bdb01c5917f', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 61, 'statement_completed', 'persist_candidate_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":30,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 63, 'statement_completed', 'realize_tbl__order_report__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":14,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":31,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 65, 'statement_completed', 'realize_tbl__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":32,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '6e32a563fd78f3a42558d846bb5f5d8a25245f4507d7cc8bbb5067c2a7f4daab', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":18,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 89, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":44,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_abed3c8fed55f98b` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_abed3c8fed55f98b` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_abed3c8fed55f98b`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_abed3c8fed55f98b`", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":62,\"planningMs\":53,\"totalMs\":124},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'7a942744367c143c7a0ab04951d4f79ac673d433d5af71089fc5e245d3ca2612\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '84613375eb4cab58a48a713fb9d0418afd3523f99f42704761d96cf834f3e90d', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '020091d56d11340b4b0664fe6a3777c371b2efbce9ffc54ed0ab9f5197ecd369', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '112b6f6e7342fecf15e2e26ca243625b16df19d0d54277333a21f23f85096999', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '59ee30aa91b684d74b6f8efc4e131a8ba26719776736d7cd3ae7e22bf682562e', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '9f1881fc0b7c22d048b5f9c64bcf25c0f3ef51387c58af19910e5b9de0d00429', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '6cee86473be5cde274e8ade4d2b633bd92dcddaad6ebb69731e3e09e929dc224', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'7a66cc1c75873dd6c5e6c7be14da26556b8526a50fa453cf6c679d0397af3395\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'0cf8a5798c9cbac83c7aecf4fc8c10f611fef3de30ba0311479b438d60e9b557\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'e52ec83d112b2e9e7db005eef9b2387ee5b79b205eb455afaea28708991a42f9\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'346b132f476c8d120a8e96e05e7e084da1bb8f5110dabf1ec1fa397d5e567dc4\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', 'cc12a10d2afda48c007530841de03d8be459e5c4505c93b2b471c409ffe124fc', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '7724a9fb90a24262ffa9ea67ec45c23657711d6b59bc900b0eeacb87d078a0ec', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '165111c5a1d0d34c901188d3080b9ac464aa1a533439f7bb666dc0b6b407df7b', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '7ae6add5fdfce6a1671462b53fe8366da0b0bccef47cacbf0a71691b2ef1610e', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '372c1e9eb400a5023241a7e5923c7a4b28a75ab717768e4eaefe35864cf43a34', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '916cf38289446c602a4d26d53f30fd972c5450756b7f5cfc0c114047fe38f277', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'7a942744367c143c7a0ab04951d4f79ac673d433d5af71089fc5e245d3ca2612\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '0452186e9ad54a25976015130a9f1bac896720180beb2646dd2f46c7fbabbce9', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'a4160784bbd08115636727416bd06c321d4f014fc17516d7cfde4f1a5b4e8621', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'cf52ff6fbb29b688fdc9817dd3b72493e8d6ae7104320af2dc6923901d710ba0', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '9d26c75132c54e3803866abd07ee4e2622efe9beac6be2f13bc19217e8d09089', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '2938c2a257eec7e2c19fe2914ecb1d2e7536c621ada0a6166951729a5d4f7e7c', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'bebba5b148461356cdec76f91092e3af636546f568bb202f53837913d3d9b62e', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '39595ffd23727178b8f6254eae6d143d12125a7a8d25ed43c0ae78135bb0e04d', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '37400a8b9b791d6808daf40c48866cc06ee0030f7b393498d960ad47c97fc461', 'cc7ae2b5e9d67dc8c180801da686b526c0e51091adfc28627c58dadf48e9c181', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":12,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '7a66cc1c75873dd6c5e6c7be14da26556b8526a50fa453cf6c679d0397af3395', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '0cf8a5798c9cbac83c7aecf4fc8c10f611fef3de30ba0311479b438d60e9b557', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'e52ec83d112b2e9e7db005eef9b2387ee5b79b205eb455afaea28708991a42f9', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '346b132f476c8d120a8e96e05e7e084da1bb8f5110dabf1ec1fa397d5e567dc4', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '7a942744367c143c7a0ab04951d4f79ac673d433d5af71089fc5e245d3ca2612', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 75, 'statement_completed', 'capture_boundary_time', 'boundary', '{\"displayName\":null,\"elapsedMs\":14,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":37,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 81, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":32,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 83, 'statement_completed', 'read_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":41,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 85, 'statement_completed', 'assert_readiness_tbl__order_report', 'audit', '{\"displayName\":null,\"elapsedMs\":13,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":42,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 87, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":17,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":43,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_f07d527d99c0e124` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_f07d527d99c0e124` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_f07d527d99c0e124`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_f07d527d99c0e124`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5896, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":54,\"planningMs\":55,\"totalMs\":117},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'66eb2f90e9d58d598f7ad970d0f0a63561452f230ac6c27d6d35497c2e4a5249\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'e900835001dab3f331b0668769ccc30ccb73ea581db10009c9a20fdf5cadb8c4', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'b53370f1c15a7e853b3bd7565f9d4917136786e369c4d7620aef9afca6705a47', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'de580afb40617cc306be96e96ad0670c3b50622527f4cb1530c53ec82fadab45', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '849298afcf37bd53824cb1c4d49842c028fb1959a08c0a6ebce0dfb4d833beb4', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '1b7c0d47ec0af5d21eea9e2045569c5a3eabd93ab9ff7ec5d42d1a15a5ec6c4c', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '64344bd090896f166839f4e20a6201eaba153f3b63ac96189bc1ab7680087f6f', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'31a23a86ffe73d725bef1c98ad183a79a28181820d476d302cb664889d5b56ac\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'bcd1c4b7e44d4ed683d4827f5a5eaaca0c5147726fb4a08915c04df617cd9032\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'415513d8f707a3e64ad8b8514e207183c5e4644e1275e683323f9160839321e4\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'fb039c680cf163fc5b8d67899fc1725243f03ba5a0b98353375eb052cfd81afa\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '49cac9e60e877f12c3ef4a1c1ca3fb61aec8de6209a108ca2d35eafc22dae6ff', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'f1f540f5ba0e62ef89d37f51b011f9665712e6332405313cd7f274c406381699', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'c2462f0fc6e29d7469fad4dfac38e07588794da6f691a2e967352cecd03c7545', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '209321dca248b397f87e8cb547197ab66122f149f69a43a00bfc68c9d0e78813', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', 'ab9161a0b1e9a94616793e7d89f222c3b8379f1ff18aacc891d9b00c87492c14', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'a58a7f5dde4a16c673a75439ef1ccfe0d23c07b887c2ce400b203db3485e970a', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'66eb2f90e9d58d598f7ad970d0f0a63561452f230ac6c27d6d35497c2e4a5249\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', 'eeb074fec92a1ccaca25e633b69c4943b42e5cfc0ee523bfc25f2f10f8a65447', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'efa9067920759bc71e8ce6de1106847af93361ab273fcf081dc0d182905f9b18', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '1d2bdc1c75928f4a9d322b31a3003bd555c7f0f5933593bcfd0ed5b669170b2f', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', '92374dd60593a06f3b62f262b632c3a58a6e46886de42eafb80f4cf256d17064', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '31d72e5bab4603674540dfa309e66ed50906a9f790b7b1116cbced430d089482', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '58720d9b63fcf48972fc246be44c163cf3348bae77c2c64e7e0fa9c392a28950', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'ef4bf1f5ec7c6dba3f2950de69f15241a00b9eaba4a5b89b7a718aa1daaa1203', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'af8f8f675c815415f3a9059af8386d8ca8ce15fb7dcac067cee02e7fa4c3bfb4', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '7087fe707dc84fa1d86bac2e96ff37e84c84c85f525246141b57200459c0a6a1', 'c39dedb48b28ab1bf7b4f188b5dfbb0c929af3e7e7dd4cc5537e127d095fc94d', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 5, 'statement_completed', 'assert_candidate_unpublished', 'preflight', '{\"displayName\":null,\"elapsedMs\":13,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":2,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 7, 'statement_completed', 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":13,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":3,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '31a23a86ffe73d725bef1c98ad183a79a28181820d476d302cb664889d5b56ac', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'bcd1c4b7e44d4ed683d4827f5a5eaaca0c5147726fb4a08915c04df617cd9032', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '415513d8f707a3e64ad8b8514e207183c5e4644e1275e683323f9160839321e4', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'fb039c680cf163fc5b8d67899fc1725243f03ba5a0b98353375eb052cfd81afa', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 65, 'statement_completed', 'realize_mv__order_report__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":32,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 69, 'statement_completed', 'realize_mv__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":34,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '66eb2f90e9d58d598f7ad970d0f0a63561452f230ac6c27d6d35497c2e4a5249', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 83, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":29,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":41,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 91, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":12,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":45,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_33b34a3d99472c0f` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_33b34a3d99472c0f` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_33b34a3d99472c0f`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_33b34a3d99472c0f`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5889, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"order_report\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":59,\"planningMs\":49,\"totalMs\":117},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'d8c70e308e6b6b3ef6c6efc89fe20e44eec63202ea6e17e11a2caf74821169b6\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'ed12ecf819a39ae6fab33aa26033dbd5194b490219f634c5dba5a4ed692f716e', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '5aec1fcf821b8d2d95c1bb26242ae5d9b04bdf0aff10bf0fa8402fd0082580a1', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '27e20890acd9f3e0c6128a461fffa62e91c9c842bbd5f1618ffe4b8031b05719', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '22d6b58a2128d256c213238a8d15bee40c6650de560e37566781a603db0d601d', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '6d22de47e28c5a2da7111c690c4eda48efab0fa68a16c66a5c95c1c0d58735c8', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', 'a983f4a653fb1cfb18a90947242cb73b84f499e74528043bb92945619f203b4d', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'13e8dcd532743fe570bf51b8f9d298d47e57037348298aa614259281535bb7c2\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'68fa38701d647d0446a3d59050dd4f95303f1ef22b143ee4f548fdbcabd48d17\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'fb043a300e8d627ae2e454658f2e52bda87e8c95138c6931741a91c68ffe9e8d\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'aa1294b4bc18336f3ce98849e3ff196f355c41a9f099f736dae5c0cff1c2ed27\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '447ea3fc2c0e51ce27ef6c450f2ad6ecf60968fbdfa75d3b82815bb0c87cd6b2', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'c128004b822498ac328bcdc53ec1ed83c59f924d27820359dcd509a58c022e11', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '9a01a7290fc842495256cb0b8effb75b21816e20f26386aaaffc6326fa9405f4', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '09df95f26bf53fae290918886ae37649aaee2ee3239b92be6e96d9d5a0db0032', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '63abaf6bf52112a99985c1aafad1c18925e8d889f4c36dfcc756623b4c75f14a', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '8109d0e42bff18193432ecf5b1f8828cf5fe80d47849a43dab4ed41640f12026', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'d8c70e308e6b6b3ef6c6efc89fe20e44eec63202ea6e17e11a2caf74821169b6\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '53c85e0ec526d6bc28a1efccada3b4c68242522b2b67b80187b6517cd7ac7348', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '98b24b581396a6f07bd0bc0649a442c75bad4555ca09bcb34493af415eaa57b6', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '8b6dcf0910413d0683ca7e76b369696c2929a8c6ce8cbfb5d2bd596da166aeed', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '77640d98e4b83f75f7666bd0e1d31bd2fd47c7a79476ee28796d0fae59050db2', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '0e9fd5ca23b6608b4b9ff4981bc4b3e19105b853925c04e5bf52f770391223f7', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '21851492a2a56f4c209a77617a443653f04f70a23c13d673d9848064bcafc989', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'b8da89e2ffaa917624f0d069c3606315af0206b10020d08096ed74927130ad43', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '88daa8c0dae4277011908e0a6728b885df2ce765e35192a248356034248071bf', 'dcbd0d27bcf155ef6bcb161e1adf9bb48d5af85f2a5cb8521ac61301dfca8bd6', 1)", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '13e8dcd532743fe570bf51b8f9d298d47e57037348298aa614259281535bb7c2', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '68fa38701d647d0446a3d59050dd4f95303f1ef22b143ee4f548fdbcabd48d17', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'fb043a300e8d627ae2e454658f2e52bda87e8c95138c6931741a91c68ffe9e8d', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'aa1294b4bc18336f3ce98849e3ff196f355c41a9f099f736dae5c0cff1c2ed27', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'd8c70e308e6b6b3ef6c6efc89fe20e44eec63202ea6e17e11a2caf74821169b6', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 87, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":43,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_057f1a073812f696` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_057f1a073812f696` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_057f1a073812f696`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_057f1a073812f696`", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"order_report\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":54,\"planningMs\":56,\"totalMs\":118},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'a8b718241e05bf6b8d379bd374b19beb5da9623fb237fa607d6dcf63e30e3ac8\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'cce29e07b2ca535163831495c4e4a7c0d5964c6337b1496312e6dc614f474281', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '0f44584da67e8e92c95f06570c5143a0a6940a864694cac5d58570c3fdf694b0', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'b9ed9c90dd7954804e70b8e8dfe7f472514f8a736441f75d005f139c29b2c9e3', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '8a1ebf6d3ea22a564a05693c268a713b7db59abe88c5927321cd65c73bd4174b', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '29e2fb04f96b411d4535bc6e35d5e8f1cbf427b1e87a566dadf74dd502bd3296', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '6ef73a383a6dc5dc99ae975532208aac176b706094b1ecbcd5e4f48070abb695', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'925a99a87e9199513515f339a1aae316027bf97ce31c294a0519b26a6603c2d8\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'a94f4c251048346142e12e89cb38a9f06c672d0509723d067b81f6435e0bbd46\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'07c0c73c6f9af36b1ed11c590d8f43f7f37c14b66b53a63720bc65d8fb895555\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'4a9bc8b2aa61cf847959061e9619176972c1cc3d8772ad6c39da90b19c6f33c1\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', 'b25d29d2bf6d537abb8eabcb891001bb5efc4d4f1eb7e744e86ca64fe2e9a9e8', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '6303f62af23038f4c052e16c00e4eb1b7c4dcff839926f3d9ec281a6a1131ab5', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '0ad3967c2f883141a4b538765a47e088e99d5504ab237df7ec609dc712b0c06a', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '307e1a98b140a27e3c8e425a7ab21fc6a72357aabc0c5545ec22b97f34c57118', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '0b26200eef525340fe23d97a00d9a2b83724d044038061ff0786ff9e9986e3d3', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '708173eb1d6f9c3c07edda14a42d7915508d85f17ff3231ec60b23847d376e58', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'a8b718241e05bf6b8d379bd374b19beb5da9623fb237fa607d6dcf63e30e3ac8\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', 'ce0619b8b3111515858d5a6aef6472cc4a0c499ac864a98df8c727ce56cc10a1', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '4b6e67db215b09a0877e3aec01f94208111f35cf61fa261bd3771faea60efaf0', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '1b83abeb519040f9f4f35f7e4319a3f1793b636228ce2ceaf8a87769500e39dc', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', '8fc2843965c0eb23f6e4964f83d06e0c70ec5feeb2372f1f59967eaedf0db911', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '6adf91661034573bc9cdef69157b4e71dde11afea764378e85c7c5ff3645c7d2', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', 'e94bb08b5ade2e99e718e174349396f5e65c345c978e4ab92a39b3eaf6393abb', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '8f617d52171163688eb4668410ef2aa5d34c001c6efc4fa62f99a97f4ac9e5ad', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '8f2eebf5989d42613933fe03240dcd1ebf2e93a71ca627644636a84cac0c166b', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '6d9586f9106e76516c2099a13fd22f6f18cd5508213767fb9535fa02e638d0bc', '27cdc93615ccc5e1eb32afdeee763a0f7d8fa243602258d78593397c455b61e4', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":19,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 7, 'statement_completed', 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":12,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":3,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 9, 'statement_completed', 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":13,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":4,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 55, 'statement_completed', 'prepare_metadata_20', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":27,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '925a99a87e9199513515f339a1aae316027bf97ce31c294a0519b26a6603c2d8', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'a94f4c251048346142e12e89cb38a9f06c672d0509723d067b81f6435e0bbd46', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '07c0c73c6f9af36b1ed11c590d8f43f7f37c14b66b53a63720bc65d8fb895555', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '4a9bc8b2aa61cf847959061e9619176972c1cc3d8772ad6c39da90b19c6f33c1', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'a8b718241e05bf6b8d379bd374b19beb5da9623fb237fa607d6dcf63e30e3ac8', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 83, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":25,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":41,\"writtenRows\":2}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_5b4cc439b5ee8d68` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_5b4cc439b5ee8d68` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_5b4cc439b5ee8d68`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_5b4cc439b5ee8d68`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5894, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"order_report\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":58,\"planningMs\":52,\"totalMs\":118},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'3acfeffb82be738c4a27d43ae071bdaa76a921a83c66d0a3ace58610b67ca102\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '4faaa9e56230eb2a1bb937aaef5b647277fb7307cc8466c4673edca558c433bb', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '163f51da1759920eae3864c1d15ddd63ab0bdb2655c56a281565a5b783d64cf8', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'ac004180cd4d7b07ae8695d9e399834d154debcc568d4ba1707140050499cfb3', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '7fb092d5cf25618036d8af3e11fc63a2bc4e680c5fa023fe2404cb87ecee7691', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'b43d01880f3a5f3aaf913f3a4ec227cdd45b02aaacabab6b562a5acf4c15d2bd', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', 'cc0708db5a61c51a25bf613235dfb9add0335eb20bf06e4ea3bbd19918d5a631', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'c7ede767e3c574cbd7667cd684002b8fa7401ae53050dba2f8fe00a64207cdeb\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'78a5f1b41fd86368f5cd61ea25e7c8892e9f1bad85bf1640a3f2cb776ded9160\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'dbbecce958a86bff5858c8f0997a21236c69f53e247fb13b6dc844b0ec2e48e7\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'658e8e4a2e9b7fda1e512d94944102b52983eee5f755a099458ab76552d34cb4\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '8d2fe03f59c700857ea5ab84ca952043e0409adb1b06136e5882f5e1ef2dc3f9', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '07b2101ca36f1835cb2bf4ae95289c7232aaecb0204dd4141a6dd319562d74d9', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'ac89577b2adc8c2c455536e0942aea6018cac61e446118b3e2347cd10d42f951', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '796312d2f645e61a27db412ff1e5f7e0290db74cbcd2e0b76195583d9e0aff7f', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '6f105fb9dc6518b551f78d976c8b129e769a1aa3e0def22efabd77f675c14cec', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'b7d7fbda06ceb6d57ddfc2c6be72db0c17882a27ef63a55159326eed9275ed44', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'3acfeffb82be738c4a27d43ae071bdaa76a921a83c66d0a3ace58610b67ca102\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '1ad4e6b575630b56d33da33c1ba63bb76d514e143f4fb174ab3a72ea2bb547fa', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '188d38f71917d30fbe5974ee5cb92fbf9630c373fd09f4a7a6154bf5f0e16679', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '426c06be870e27a099107daf32cf816da6b4d5842ea8833cedea883a925cab8e', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'b21450ad47d3b4adeca20dab74343be157431fce5a729ee7786e5fd7fb80356c', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '2f3ea4d4ed607ca22c655bf50e71184e7c2c995db63de58118b726b683b0d372', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '9d8f7dcd938b03d7011cc318cc67b284e000a2d0f95fd104aeaf71dab679d29d', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '0827c56fe01914a064ae78df01db2fbb63f8fa9489e277adc25f80af8b96b2a8', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '7081877b1c987682a1435e38a761da601b31d8bc2a79767773695fd3ce0a06bc', 'c2c1573f05e967449164b367164bdefa137086bc75aa988a0caad08d49afcffc', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 13, 'statement_completed', 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":12,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":6,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'c7ede767e3c574cbd7667cd684002b8fa7401ae53050dba2f8fe00a64207cdeb', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '78a5f1b41fd86368f5cd61ea25e7c8892e9f1bad85bf1640a3f2cb776ded9160', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'dbbecce958a86bff5858c8f0997a21236c69f53e247fb13b6dc844b0ec2e48e7', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '658e8e4a2e9b7fda1e512d94944102b52983eee5f755a099458ab76552d34cb4', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 69, 'statement_completed', 'realize_mv__large_orders__{{d:extra}}', 'realization', '{\"displayName\":null,\"elapsedMs\":8,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":34,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '3acfeffb82be738c4a27d43ae071bdaa76a921a83c66d0a3ace58610b67ca102', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_655f73d5919f6d15` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_655f73d5919f6d15` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_655f73d5919f6d15`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_655f73d5919f6d15`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5800, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"order_report\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":74,\"planningMs\":59,\"totalMs\":141},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'64ec5e78724367d90c7777166ef70b4577c53bc30d4d3a944cc5131b280b4d54\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'a1791155787e183219aa660a0b8ad394ef4f4414f31cf6dcaff7c99da362115d', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'e65ae4cfe3a5d1f7f0307188e87975016d41e6e92cae9830e3223ffd6d260c33', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'c9a321eae1d42af062a2708c47d7d37ff0ca070995d4b09176c5b84918c1d28a', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '266405d1799cc1c004a85f3dd6da92ba39df35f3b0ee6c410fa2db617fc7c9e1', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '8f6573861f460998e8e6db386388e1ad5d41b04d79630615acfd39be5bee560f', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '25a2bc51f29efa9d377223f95f524f801b9c0cc6f07026ef8b74d00537c0f41d', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'ecd7e611485ef8b9771b4af2d9bc638bf98366d4aab845a581facd0b3396c46a\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'e89e4499fbd9fcff8a99ed0142f0a5748f70064ff9bba15ebedbcc0fa3b691ce\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'b2f3a0803bfe92d0faa40923eabf103df300583f97e17906829746bc088a3d23\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'5a4b2c5a1144311effb53d8c2067cf7c7e6d90002ca41859388a45293e49f048\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '3b72c4294d98814ca23cd94e90ffb3c5cab776f23de04d1dfba955c25db98197', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '17c48cde56e1d7b0b24ecb22b7d8563ce6acb9ac595c6e89599064aff2c7423b', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '7f52a60b769511924d0701f09d4eba1c02b6cdc6f060cf297500cf93812e101c', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'd8a14ae80fbc68714e2c6f205c6c54dd95efa05ac360075f81a3825ecf63c105', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', 'aafc376821d28a857172768a19cda25c121038273bc9cc5b2e1e413f4eb0aca8', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '38f0016452beb53fb1f61dd992c517fc403bbe0f28ef424178b026d682e9a044', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'64ec5e78724367d90c7777166ef70b4577c53bc30d4d3a944cc5131b280b4d54\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', 'faef351562db516e4d85e78df9353dc989ea09602a3eee068ceb238b076d30ce', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '2b7a92fde775a5ad6001a02fd20e7346e53bc49be5d3b244f020a8e834d89686', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'ad222ae695b93b9737aee8eaa2d4a5408d1123d892e30976a482b4f20ab50a80', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', 'e8fac15b4e6b53b6e4647204d8ee6a7172ccc8414be6ec7e11a06375e632b167', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '9ef301dcd3a404c063bf32b5df3f049ea460a25d9f52569d2bf7863267aad326', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', 'bd1c5888a50414af426d4c4cf46548d7e1027683829fbef1de61af8b7320fd8c', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'fbf26e4f5f5b7be21ac9f79365c5850ed225dc2521dd588f98490a192b5eb3d9', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '2c734789f07116ed61397e10b145a0594e00ab5f4c1d699c78c9983efd563c44', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'bf4c99044ff00db7766169495944859b860a28a001c20fe93f9b919e98426f27', '94478a86c0acd498c926984903f07d998f37874973724b91258ed6762d74dd45', 1)", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'ecd7e611485ef8b9771b4af2d9bc638bf98366d4aab845a581facd0b3396c46a', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'e89e4499fbd9fcff8a99ed0142f0a5748f70064ff9bba15ebedbcc0fa3b691ce', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'b2f3a0803bfe92d0faa40923eabf103df300583f97e17906829746bc088a3d23', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '5a4b2c5a1144311effb53d8c2067cf7c7e6d90002ca41859388a45293e49f048', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '64ec5e78724367d90c7777166ef70b4577c53bc30d4d3a944cc5131b280b4d54', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 83, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":19,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":41,\"writtenRows\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 91, 'statement_completed', 'record_population_completed', 'finalization', '{\"displayName\":null,\"elapsedMs\":14,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":45,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_5c93b454f0b75e24` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_5c93b454f0b75e24` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_5c93b454f0b75e24`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_5c93b454f0b75e24`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5779, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select large_orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":0,\"selectors\":[\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":8,\"observabilityMs\":62,\"planningMs\":43,\"totalMs\":113},\"toolVersion\":\"{{v}}\",\"totalStatements\":31}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'7a8ca689dd3be9a722750d6833a6e0dbc7b25e25671e5f689e9808437ae7d918\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '641779a04cd3a054d143bfb379f8c38f0d57041a3ce2bc1418603add880a8532', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '587fe95fc3c48981e27b752803b4eae8aa09dac877a336d5d96c94ea68e0f19a', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 3, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 4, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 5, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 6, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 7, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 26, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'804408b6b1286576d993c4e7543680a9a155ed944402f3dbf05783a85e077d90\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, NULL, NULL, \\'mv__large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'5614d3a3e3bd165ab1a3be6af5df65c43464637cc16a362b4dbfa5ddfad2a48f\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, NULL, NULL, \\'tbl__large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'fb7346175cbfb029028c4af30c145aaf74950a203639b3f8cfa117a16525560a\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, NULL, NULL, \\'tbl__order_report\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '6804076f3af50b11303ecdf5054840223dafaa11eec002f4f0ebb57b23da67e9', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 27, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 28, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '7dac0a7f4271b7af7e45142e076bcb99e0e06bbf00e8ff51910686eb77edeade', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 29, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'7a8ca689dd3be9a722750d6833a6e0dbc7b25e25671e5f689e9808437ae7d918\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', 'effe7d21fc83aab96d6d671684a7ec0cd6c8e5ca65d3f60cd14bc00e6db69098', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 30, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'c1a23aa243f622e2bdd745de45c1d34d05fecbc49e8ff9c5c7eaf1c3784b2330', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1),\n('{{u:extra.1}}', 31, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'e828653ca4cc5fc013ce45ef6f2bc42be01d994f8fa6ac1d688758c889b4fd02', 'f1f5990c31cdd6c8f3914e4414074a747e7510cb5e41da9391a761d8021dc008', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 19, 'statement_completed', 'prepare_metadata_6', 'preparation', '{\"displayName\":null,\"elapsedMs\":6,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":9,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 23, 'statement_completed', 'prepare_metadata_8', 'preparation', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":11,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '804408b6b1286576d993c4e7543680a9a155ed944402f3dbf05783a85e077d90', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, NULL, NULL, 'mv__large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '5614d3a3e3bd165ab1a3be6af5df65c43464637cc16a362b4dbfa5ddfad2a48f', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, NULL, NULL, 'tbl__large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'fb7346175cbfb029028c4af30c145aaf74950a203639b3f8cfa117a16525560a', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, NULL, NULL, 'tbl__order_report', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 57, 'statement_completed', 'record_population_started', 'boundary', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":28,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', '7a8ca689dd3be9a722750d6833a6e0dbc7b25e25671e5f689e9808437ae7d918', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 61, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":7,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":30,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_cc7c1e7b87efc4dc` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_cc7c1e7b87efc4dc` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_cc7c1e7b87efc4dc`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_cc7c1e7b87efc4dc`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 0, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5565, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders large_orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":13,\"observabilityMs\":81,\"planningMs\":76,\"totalMs\":170},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'ba279a61179aae3139f56556caef2a20bbf4dfd14946feb4c4f6299ef3409b3d\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '75f0505e3b319fdb40247d6a63e020e3a3725bd9e3c91e5d34cd4909f4f39a97', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'b61ad3b335b9134599f2f56b22d4a4144b4c821b1afb7fa4359df54e6c14d7b9', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'dde7581a158048bdc64fb88457654eff42fbc9e6949339d7c9865cea0079f6ce', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '138f4231e32ad4ebd7109103ebb76f0da2ff3ec23f72b1bdd48a9a25ce3ff9ee', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'c5101e602bf6de435df30d7bdfe31c71f9e2ead472c07ffdd25fed3539d7f3a9', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', 'f066e5c2577979fee96629872e9dc933f3642bc12f5fb8d060649d9705d6fc55', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'5e4ea73907348f209824981522a53823c9103c4a3b3b4c51c71c36ab315d81a8\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'e06da178a65c827a87e14f2d65adc04b647c224d6d4aeee135b40c9dbe201038\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'a4feb5eed6f0c4d13e9b7da4ec8dfa1a2219af62b2b7ddd076a3bfca0342b890\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'0bc45b2b105a782b233519897f042d8d7d62faf85d15b34da0c21b085ff357cb\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '6a23c8a5c79cd8b240319f30ae46f862f4c30b7ccba5f91f86d43245b261e448', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '6237aa76e9789ba5b23477d3f778589110cc54b30977cea743ffb0ecf9cb1875', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'a2d94de7e32d8f290c78799a1dc2864bb0f12f10e55543189cdf7db2b8a3e593', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '8274368675cb019d9ac8cd5d1960a5aea78749d4d87bb0674210c0e017e1b50a', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '70768e8d73a99bf2c3672e87ddb55f2e918cd40dd6d59db7cc3f7597721a3d72', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'fc0564f9feadd595f924291fd0645ec534289b3f1dec5e8f112324c2729971c0', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'ba279a61179aae3139f56556caef2a20bbf4dfd14946feb4c4f6299ef3409b3d\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '3a55b0472927f75cd604596ba4905f485edfd80d3531c32c3534d28f4890259f', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'e6d681043695df7528542022255eacbf0b8f94b9127ac10462e679c3bf028b32', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '41c554d2e1b3a5f0e1d1a77c662ddc74dcb0d9802a5a517f173f35d7a9e891dd', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '46ffec92f4464d680eca4d20da3d0b962468f23bf7b88aa5de793c58085b289e', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '0c008ce2d8c500ea2bb65092a669209e1b117b38bea4d95db29b436f071ca5e2', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '3a349672120c9b29b2cdf9f48911c6b68f9fe209ed2201d2e85c027f064aa2c1', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '1c0c184486716cb1e1f3d36f21f3358e79606cf08ff5aa45915e65dbeba6d871', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'e494a3f7a6b03be031da027983e7c813115d600fa04cd161bb17676c5fb040b9', '3557356d2ac689c7ffd17d37d3783455472b36d1904935a23e27e6743ba3e22c', 1)", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '5e4ea73907348f209824981522a53823c9103c4a3b3b4c51c71c36ab315d81a8', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'e06da178a65c827a87e14f2d65adc04b647c224d6d4aeee135b40c9dbe201038', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'a4feb5eed6f0c4d13e9b7da4ec8dfa1a2219af62b2b7ddd076a3bfca0342b890', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '0bc45b2b105a782b233519897f042d8d7d62faf85d15b34da0c21b085ff357cb', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'ba279a61179aae3139f56556caef2a20bbf4dfd14946feb4c4f6299ef3409b3d', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":20,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 81, 'statement_completed', 'replay_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":24,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":40,\"writtenRows\":4}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_cafd5a7f19cfd4b5` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_cafd5a7f19cfd4b5` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_cafd5a7f19cfd4b5`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_cafd5a7f19cfd4b5`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5853, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"large_orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":66,\"planningMs\":61,\"totalMs\":136},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'a9f29b9f80c5483a37313e239ffff092f787d773e76677a6cb25f65aa9765e8d\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '103faea863db9217538f8fe3730b4f273e3a4e38c29e0b1392b1a666839da6df', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'a2e3f4ae809be9c182dd42e33e084ebd9493774a0e5101fc46c716ebb043b3e9', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'b2ade4068116ce3151239013547ed91167e317bb9232800f0e3f5483c5a55692', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', 'a7dc058d673ca1054f7d86889aa5395cf617d118b154b00df263ef12365b198f', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'f566e0963934a4e96bdfa776d458cb7458b7a90990927d6ced90aaf7dd868e03', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '893cc718af533af19ee8e793aba2777deb90d61263f49cfc3d82fe4caf51119d', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'fa4cef859db252e6f457109e21bea3e8381556ba497b270b5e24355f16fe98ef\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'99b6ace118a16087a486cbaec2a03660a265027b4d50ac7c9e9384b4620bc461\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'7516950a895ce4a4ae4a3cb16899e9803be76258ebd3a47f7e14c9340064d6a5\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'d68cbfc0d84f981d77903349058901e021c5e9a4b3b5f4de63c812ca8ac31490\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '0f27ca75b8a0b7222880921253e8860541347fceae57e5babccb0ad0cc00dae9', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '5ebf26ead7e842620b19c6d4d6b237a35c420cd584ad00e2a92e4738f6b4a1bf', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '5388a48e2daa18772db4bc2d228993877a5ca01c13720a7ccf3dcf9a661dde7d', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '6c92764c03904748f023cb9552ca75902c704c3957d8e46cd351c53b3150b967', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '0e7ea7ad6542abb8983fcf8cc363ea4d2adda629ded59d2b94aac758a574176b', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '11bc87b2f56cc9b180187036b39f6d2bedd790318672091117c994d718b6e3c7', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'a9f29b9f80c5483a37313e239ffff092f787d773e76677a6cb25f65aa9765e8d\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', 'dec38082f9a52c6a7da4e485d3bcd9a39d169186419ce31134deb019a7ac5b53', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'a046531c878d5884e7abf5901a477fdd33d06419aa2aba5262ea41d25f0dae9b', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'afd462e0499d9cdcb6418102ff19ce33b8387d2e0881411c8eabe27ac99bcef4', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', '57f3d76fbe0dfa307ffa5762a89b3dc690139df697a710eb713177d391ebca06', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '2c91ea78631dcbdeb887d05af28ef156432599729278c1ac6e4194473aa46e66', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', 'df7d2a819b1d24366aef3b2a3adda8787c75b0258f253d0d7e7be749c6a82990', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'ae16ea52748492738adc48979b453bfb21b29ef7fd01ea0449a6bc4369127a13', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'cae664dac94d33f720b24495f697a4c5e2422b946e9f88a30e83eaceb9abde89', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'dc99f3936d82b943264376bd4d83e6dfb18e1a40fd91d3b2480e2ee251c8a8d6', 'a50469dbd07e56bcc295a0c40ebb3f998e5c1dfd1d4be7128c251777f11201c4', 1)", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'fa4cef859db252e6f457109e21bea3e8381556ba497b270b5e24355f16fe98ef', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '99b6ace118a16087a486cbaec2a03660a265027b4d50ac7c9e9384b4620bc461', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '7516950a895ce4a4ae4a3cb16899e9803be76258ebd3a47f7e14c9340064d6a5', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'd68cbfc0d84f981d77903349058901e021c5e9a4b3b5f4de63c812ca8ac31490', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 71, 'statement_completed', 'wait_for_virtual_live_stabilization', 'stabilization', '{\"displayName\":null,\"elapsedMs\":5008,\"errorMessage\":null,\"intent\":\"wait\",\"statementSequence\":35,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'a9f29b9f80c5483a37313e239ffff092f787d773e76677a6cb25f65aa9765e8d', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_3eafbad2efb0ed8e` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_3eafbad2efb0ed8e` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_3eafbad2efb0ed8e`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_3eafbad2efb0ed8e`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5858, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report large_orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"order_report\",\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":10,\"observabilityMs\":56,\"planningMs\":51,\"totalMs\":117},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'cd58d7113e0e38cdfb2599472e7c50f8ec82fda6e3a1fe5cf715687abe451a2b\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'e7fab902a6fd5d5134ddc9639a0d7cd7994e3c0985a63f3868ee3851c4d64bab', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '7e6506d80e1fdb93e926c85388ed4b823c4d02fa5213290772d02c4e2b8a068e', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '27b2355f5c8f28c989930bb9fd6e67f80a6fe7b90d82addd540f891a34b7bd43', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '241e91668c1a3c2297ea4999816eac87d8f078e5ac65eb26d87f59f2578442f3', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '39bb7b71443ad3153da85278b0c7e82e81e837dda0a118074eef9eb123904314', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', 'd7c312417901b686f83dec7fef4a50e659a58576550331bd6215e6c6b7f3d8d8', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'8311233192976ce2c7a93c4ddf19dfbd84aba52c5968fa7a23c4f1086c8148f8\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'78102a432b9b5e1929b6491d4777d712f1766688a08a6c7669221f663ccd1e36\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'1d7829ac0a73053dd8b1e23b5077d099959a7d49138cb92ebf3855ef4d5d698f\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'afbd3b2717113114af609c19712d67ea1d25583e9f4e8a0ccc72aaa22bc11ba7\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '5e26552982130ba38a7d5787f5a9da255597db5f09edeecefb4d499df90d46a2', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '135816101d4a484cbad836ba9752369eda5f05acc921cadc137feb82d2700ed7', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', 'dab64233997193f5d3ebfcc1b2e7da267761ae8ac06913cdc04cbf71a6cefb5c', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'e5c011820ec1edefcf227bac55f615b37f39ce1363f238332e4cf46fb2173a08', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', 'dee258ad603573a039df37cb53097a925ccc0e3c3cfba4c5a16552e0d6bf169d', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '7061a616a257936e2fa974c0319e3d660d758ea3124fc81b6c8dfc71c04118c1', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'cd58d7113e0e38cdfb2599472e7c50f8ec82fda6e3a1fe5cf715687abe451a2b\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '86d28b550d1420616bf6dda4659ba0a0cb392897a469abed0fd25fe49f47bdb3', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'b50a5ef38c2897a293d2e089adc0830fc63ad6383ef436454d026e33f503bc28', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '74368da6e31da8f6754df49ee28311e34a230d5eee31341863f9a13fb763ca35', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'c740de24f39c20ef0fa3aa7579e21bc9c7360a34c5a52c02fee3f441bbcc49e3', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', 'c5a87af7607a83c56083bbffce0d2f71012cfc675f234cd45c1dc3ae3477c307', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'fa1e27d2137ee8063f3a618ee881c7614128931d440423d3c1f74aa32fcdd4f1', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'e530485271fdb272c9a39acfb8c0a08ecd5161e4adf1cfefeea5ca258bec3412', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '2c42b8724c399726c1ee6c4149ddcaef8daf6866dd25839cfffcff166e519255', 'fdd0fff53a86b5b32879033d5621889aa44dbd5776f924b6bd7d898cecaacbeb', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 27, 'statement_completed', 'prepare_metadata_6', 'preparation', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":13,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '8311233192976ce2c7a93c4ddf19dfbd84aba52c5968fa7a23c4f1086c8148f8', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '78102a432b9b5e1929b6491d4777d712f1766688a08a6c7669221f663ccd1e36', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '1d7829ac0a73053dd8b1e23b5077d099959a7d49138cb92ebf3855ef4d5d698f', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'afbd3b2717113114af609c19712d67ea1d25583e9f4e8a0ccc72aaa22bc11ba7', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'cd58d7113e0e38cdfb2599472e7c50f8ec82fda6e3a1fe5cf715687abe451a2b', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 77, 'statement_completed', 'capture_watermark_tbl__order_report', 'replay', '{\"displayName\":null,\"elapsedMs\":21,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":38,\"writtenRows\":1}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_a0d143dcd35daede` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_a0d143dcd35daede` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_a0d143dcd35daede`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_a0d143dcd35daede`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5709, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"order_report\",\"large_orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":13,\"observabilityMs\":89,\"planningMs\":55,\"totalMs\":157},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'a4be7780882965007c791386b05902fa127a79ab179c4a1fa45640eb9bb5c8eb\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'bfe611ace71b91924e5d576dd9ed3c1b8f237943fdcb5793cf52872e024507a7', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'cdc40fc249083e6311539100ee66959f683feefd84b4bf1b68bf3c782d69fb5a', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '47db66c6b0fdf0c495463d134c2a050ca70c393dba96a5e3233bb2b08efcac8f', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '502bc670ea0021f70cff482123618b72b3f37b6f758a142666524d7c9aeb74a1', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '398b71237c37938ae238a3a63c739bc8d8db28873a995e266dd6e781d3da6a91', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '49e04c7d810f89cbcc9f4c702a73be168b705184ebaf7e80d4e3374fb24f4b99', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'b4f7bce6546e47b3582690ef99c6db2c556d7ebd2d3a19c3142573c50b4f968c\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'f393129fde35eb06e95bc27168fe9e94085adafe15d66e9d015013ffdd1e6408\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'228b466581af92868d5850448ae037f626ad1118e5e617b859f4d5b1d751bd73\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'fb7cf28b043870bfc80ab739f133f30d65d6f90a4676391e511a0af62daf4286\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '5801f275936a5af481eefe4ab5feb323db16e1266951b4798f0178a1ff4473ba', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '5e4c1f20e8b9aacfee8ab1449ab396bfb8c70193e3e681192ed08a2133779400', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '8567753becac70f5417e8d36aa552218b7f4fc073d94553e924af5250fa57ba4', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '4969e451d01882f6e127c6e4368dec26f730b6f988c785cd0e70eabe0028c0d8', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '8ac3a26d2a7b4ff00728e9efc5d1105bd196303c39793c3e10b99fbeef165195', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'f97be6c34ced9ef98dc0f9296b2a0ef9f829ca56e82c0aa7837edb6c3b2c0493', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'a4be7780882965007c791386b05902fa127a79ab179c4a1fa45640eb9bb5c8eb\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '432b7aa75ac068be685312a1eed8cf8175a2b879f4baa5c3c06dbe402f214c1c', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'fdd7091f9775ae5768f2d9f14eed740cc1a0c6d8787c4701b9fdfbcdd1ff1acb', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '2ed4d79498d87e1d00b3fffa8583f95d5355f756fd644e67336cd71ceac74bf7', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', 'bc827a2f73f40a4b6caf238f5aae9c77127e1d796c3adb608ae2e18c7e410140', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '57a5065fed9081512ca380c68b5fc4d7a8c274c2106d17167f4d2298cf83ceeb', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '6768fbbced385d148a48f43e8ab4e122b9c0a0c519d2ee20affc23a5df0655c2', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'e5ad850018c48af28ebf1fd113f07ade95db25e175b6709d3608b2991b08e13c', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '96dc28a92104c06f428c912b6ff11ea2377e99cdd146ebaab663eb277e2f0ca1', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'bf907f0b9f3d84d13ddf10494758a08af2096e0854c8e402e535ec1a85c9f511', 'a750fe615e040547bcdec70e58c40ba2918b91fa3c82d79531e2c8723f2e1672', 1)", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'b4f7bce6546e47b3582690ef99c6db2c556d7ebd2d3a19c3142573c50b4f968c', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'f393129fde35eb06e95bc27168fe9e94085adafe15d66e9d015013ffdd1e6408', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '228b466581af92868d5850448ae037f626ad1118e5e617b859f4d5b1d751bd73', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', 'fb7cf28b043870bfc80ab739f133f30d65d6f90a4676391e511a0af62daf4286', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'a4be7780882965007c791386b05902fa127a79ab179c4a1fa45640eb9bb5c8eb', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 89, 'statement_completed', 'read_boundary_time', 'audit', '{\"displayName\":null,\"elapsedMs\":10,\"errorMessage\":null,\"intent\":\"query\",\"statementSequence\":44,\"writtenRows\":null}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_fa2a53d7ef62ad98` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_fa2a53d7ef62ad98` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_fa2a53d7ef62ad98`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_fa2a53d7ef62ad98`", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report large_orders --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"order_report\",\"large_orders\"],\"startTime\":null,\"startupTimings\":{\"compileMs\":9,\"observabilityMs\":60,\"planningMs\":52,\"totalMs\":121},\"toolVersion\":\"{{v}}\",\"totalStatements\":44}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'ffcb93181a322fa2b29082c243d0a6d038fddf9be93d8d1ce90de120f1986511\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '8799f0a9e39d8d9c48f6784d1458141a24e946e725deaa897319935aa605c3d3', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', 'a2328bb750935f507e91e63f4cd253ab755254f93a45326fb87ac6abc47bd718', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'b467744e1cb1c7dde8ebe984cfde9d28536522b7812bdceeeafa26deb4b9af23', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', 'edb3c6020f9f5b8f6f20730b7ae987f6ce833f6038a990a0a15839a3fe9def9b', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', '6de13b76e70bf30c40cdd498a4b62f9a452f39db3f40a714d2c987020bedc411', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', 'a1fef4b7c3ffee759afc6d011a279030c851f8ac7f861b13f326441c794032ad', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'7c5c3244379a579e00b4031619c518fee65076b394cfc332a45a50d7e6a17c60\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'da734b09e1b6f407cface0583b485761c14e683a21019b2c32fa9f70c64dc539\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'a904059a49cb2b08adf8da8f3bb8996c32ae7d17107acc014c944611d94670e9\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'69584a2d202a1007344189bd6471117be28625834291dacb8174a02e02fb1810\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '7f53f180cca7b422ab0b46fcfcfc8b3ab2e7bd6e07ef46081fe9695f57cfb90f', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'c3c4b6a05ea4bf06604f8df56ec10c31dc9ddff9d4002910a2464cfd8b7e8418', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '9a8b361de2574a955efba521c676a37cfcf8dbb4a1c7598e3034e605a66dddf8', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '7bd74950d22bc5f542b199b4c43b5f4687753239891a900e1c1e4ee15db0cdc5', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', '3fcb3bbba947a6351fc6c02ab6e0eaed0ea932342108bb6c40fda8c1d560432f', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', '37ef74f8552dba252d96aa358809d92fee4c94ae7a43d48617be6faca2644186', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'ffcb93181a322fa2b29082c243d0a6d038fddf9be93d8d1ce90de120f1986511\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '7045d4ff899dfe3a88df3481dc1b34839875cffe4bc9e46f5fcbdffc70e5ebec', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', 'caba929a81bce8e1b65ac4606bbc47bddcbf7186de957385b5c6677e5f6bc8d4', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', '8d3cc04c910bd93c8e2058bcfab52279c9a410f474cf56c5bc0c8aa65e0d5ef1', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 40, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', 'ebd857546e02b96cc37cede24db052d4e6169026a40bf8c303904b21974e2eef', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 41, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', '9e891ac7250eb29ba853c2c87b455617caeeae4ee8eb3b9ea8268e431801bcc1', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 42, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', 'c92c6d3526c02e5dab2e6084a69bcfcaf1987df3c455e757d7b21dd7936455d9', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 43, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'faf1e97d042af5293f42ec22fb27763d34937100976b5e57afbee55abfc42b47', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1),\n('{{u:extra.1}}', 44, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', '366f4ef9ed5f596438143255e715a95c6bd8e4dc6f98b9e733841430f248bd76', 'dc33475f186dfb8663a62bda8f3640199269f4fb46969e211e3ffa895819cf6e', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 45, 'statement_completed', 'prepare_metadata_15', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":22,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', '7c5c3244379a579e00b4031619c518fee65076b394cfc332a45a50d7e6a17c60', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'da734b09e1b6f407cface0583b485761c14e683a21019b2c32fa9f70c64dc539', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', 'a904059a49cb2b08adf8da8f3bb8996c32ae7d17107acc014c944611d94670e9', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '69584a2d202a1007344189bd6471117be28625834291dacb8174a02e02fb1810', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'ffcb93181a322fa2b29082c243d0a6d038fddf9be93d8d1ce90de120f1986511', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_c67c93ccbbce31a1` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_c67c93ccbbce31a1` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_c67c93ccbbce31a1`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_c67c93ccbbce31a1`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 5765, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 1, 'run_started', NULL, NULL, '{\"command\":\"build\",\"contextLogicalIds\":[\"source:orders\"],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt build --select pipeline:pl__orders order_report large_orders --start-time {{s:T0}}Z --deployment-id {{d:extra}}\",\"executedLogicalIds\":[\"model:order_report\",\"model:large_orders\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[\"pipeline:pl__orders\",\"order_report\",\"large_orders\"],\"startTime\":\"{{s:T0}}Z\",\"startupTimings\":{\"compileMs\":13,\"observabilityMs\":61,\"planningMs\":48,\"totalMs\":122},\"toolVersion\":\"{{v}}\",\"totalStatements\":45}')", - "INSERT INTO sqltide_playground._sqltide_run_statements (invocation_id, statement_sequence, step_id, phase, intent, sql, sql_sha256, workflow_sha256, workflow_revision) VALUES\n('{{u:extra.1}}', 1, 'assert_candidate_metadata', 'preflight', 'assertion', 'SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\') OR any(replay_lineage_mode) != \\'offsets\\' OR any(workflow_fingerprint) != \\'d7eed0f17ee9143cd6e3bbcf161cfbac86584e176be361826cf4e3fa48c5c023\\' OR any(tool_version) != \\'{{v}}\\'), \\'Candidate deployment conflicts with the confirmed workflow\\') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', 'cc53ab9582a335ceeaa092efd6739cb60ce40681449d9bd0d1e13c074e642ab3', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 2, 'assert_candidate_unpublished', 'preflight', 'assertion', 'SELECT throwIf(count() > 0, \\'Candidate deployment is already published\\') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = \\'{{d:extra}}\\';', '866578bd833160759c440767f05bed6a51719ba9c93c148d6c1e5412dd4321d7', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 3, 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '9b2be7516b11f587d193b2437f671d8b9b127cb50e5fa7f2bab0cfa2fd3ab1b4', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 4, 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__order_report__{{d:extra}}\\';', '95b3b3a0b4963cb7bb97157b1a2c64b8b0867f8382320d24f9c4f519e9dc41da', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 5, 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__large_orders__{{d:extra}}\\';', 'aa9d67032ca8f88c9b6dfabe66a31739bb1125481b10252727848e872c3dcd54', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 6, 'assert_candidate_relation_mv__large_orders__{{d:extra}}', 'preflight', 'assertion', 'SELECT throwIf(count() != 0, \\'Candidate relation appeared after virtual confirmation\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'mv__large_orders__{{d:extra}}\\';', '8520c6b192334c846551be42fc22c5ee8dad489a1b25c691e971d2106c5e5245', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 7, 'prepare_target_database', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 8, 'prepare_metadata_1', 'preparation', 'mutation', 'CREATE DATABASE IF NOT EXISTS sqltide_playground;', '61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 9, 'prepare_metadata_2', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (version);', '76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 10, 'prepare_metadata_3', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);', 'e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 11, 'prepare_metadata_4', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, \\'UTC\\'),\n created_at DateTime64(3, \\'UTC\\'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);', 'a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 12, 'prepare_metadata_5', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, \\'\\'));', 'c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 13, 'prepare_metadata_6', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT \\'promote\\',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);', '986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 14, 'prepare_metadata_7', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);', '70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 15, 'prepare_metadata_8', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, \\'UTC\\'),\n completed_at DateTime64(3, \\'UTC\\'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);', '5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 16, 'prepare_metadata_9', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, \\'UTC\\')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, \\'UTC\\'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);', 'fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 17, 'prepare_metadata_10', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);', '27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 18, 'prepare_metadata_11', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);', '61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 19, 'prepare_metadata_12', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, \\'UTC\\'),\n position_result_id String,\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);', 'abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 20, 'prepare_metadata_13', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, \\'UTC\\'),\n completed_at Nullable(DateTime64(3, \\'UTC\\')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);', 'c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 21, 'prepare_metadata_14', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);', 'c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 22, 'prepare_metadata_15', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, \\'UTC\\') DEFAULT now64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);', '49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 23, 'prepare_metadata_16', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, \\'UTC\\'),\n expires_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);', 'af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 24, 'prepare_metadata_17', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;', '10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 25, 'prepare_metadata_18', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);', 'bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 26, 'prepare_metadata_19', 'preparation', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, \\'UTC\\')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);', 'b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 27, 'prepare_metadata_20', 'preparation', 'mutation', 'DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;', '82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 28, 'prepare_metadata_21', 'preparation', 'mutation', 'ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT \\'promote\\' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;', 'da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 29, 'prepare_metadata_22', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, \\'UTC\\') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);', '5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 30, 'persist_candidate_metadata_1', 'preparation', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n(\\'{{d:extra}}\\', \\'c7ba863a8bfe0505dd64d2144f397c02391e2f25e949a331a977a33e9a45b34a\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__large_orders\\', NULL, \\'mv__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM tbl__order_report\\\\\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'58d1061a79b880c9f16d70783bb32aaa2261ce25e5b544a681acb68cb70ab43b\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'materialized_view\\', \\'mv__order_report\\', NULL, \\'mv__order_report__{{d:extra}}\\', NULL, \\'order_report\\', false, \\'{\"database_template\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM __sqltide_target_database__.playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"query\": \"SELECT\\\\\\\\n order_id::UInt64 AS order_id,\\\\\\\\n status::String AS status,\\\\\\\\n total_cents::Int64 AS total_cents,\\\\\\\\n _replay_partition::Int32 AS _replay_partition,\\\\\\\\n _replay_offset::Int64 AS _replay_offset\\\\\\\\nFROM playground_orders\\\\\\\\nWHERE status = \\\\\\'completed\\\\\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}\\', \\'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\\\\\'completed\\\\\\'\\', \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'0363e5853a5532e1f28733e0cb79fa3681b866a47ae3f2cb91d30570fda0140d\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__large_orders\\', NULL, \\'tbl__large_orders__{{d:extra}}\\', NULL, \\'large_orders\\', false, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\'),\n(\\'{{d:extra}}\\', \\'4616308ac23d487c07a9fca20c737ffbea94514e9f95de908dd3ebe65c687348\\', \\'deployment\\', \\'{{d:extra}}\\', NULL, \\'table\\', \\'tbl__order_report\\', NULL, \\'tbl__order_report__{{d:extra}}\\', NULL, \\'order_report\\', true, \\'{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}\\', NULL, \\'{{dt:extra:s3}}\\');', '5d9b6bcb55137e408a016afaddd7846b7f91d7bb21a614944d178417862e6469', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 31, 'realize_tbl__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__{{d:extra}} (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', '9d9c3fbc014fade4f30ba88d62347930ab01f0d271de3808f15614cfabc418b3', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 32, 'realize_mv__order_report__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__{{d:extra}}\nTO sqltide_playground.tbl__order_report__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = \\'completed\\';', '261ddac37dd36c5e75f7e95a87b165e6808bd4a60b4dcd33bd6160a5b5b00ee5', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 33, 'realize_tbl__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__{{d:extra}} (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);', 'b09b2489628dcfcf8ebe81362ef947a1bcf926545a47077e4cc4e928776e48b6', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 34, 'realize_mv__large_orders__{{d:extra}}', 'realization', 'mutation', 'CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__{{d:extra}}\nTO sqltide_playground.tbl__large_orders__{{d:extra}} AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:extra}}\nWHERE total_cents >= 1000;', 'f19fed2312b65266ed52a884565ec4b28f42918b0c60efb2fef388c288b5564d', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 35, 'wait_for_virtual_live_stabilization', 'stabilization', 'wait', 'SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;', '9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 36, 'record_population_started', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'started\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'started\\');', 'd22a261e6e958211ee2e53cd372ff6c7205993a2b2bdf9a1a549353bcbff14cf', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 37, 'capture_boundary_time', 'boundary', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT \\'{{d:extra}}\\', \\'d7eed0f17ee9143cd6e3bbcf161cfbac86584e176be361826cf4e3fa48c5c023\\', \\'offsets\\', now64(3, \\'UTC\\'), toDateTime64(\\'{{dt:extra:s3}}\\', 3, \\'UTC\\'), \\'{{v}}\\'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\');', '7fa515f8acdd194e8b8978ccf12aeb1708bb675b650ffa5026168d073940c53b', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 38, 'capture_watermark_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT \\'{{d:extra}}\\', \\'sqltide_playground\\', \\'table\\', \\'tbl__order_report\\', \\'sqltide_playground\\', \\'table\\', \\'playground_orders\\', \\'offsets\\', \\'integer\\', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, \\'UTC\\')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\');', '6b70acf76d0dcd2f9d3094dff3a21b3a1ff2659294153ac9bdae416bb333de43', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 39, 'assert_qualifying_input_tbl__order_report', 'replay', 'assertion', 'SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, \\'Replay root tbl__order_report has rows but no qualifying offsets cutoff\\') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = \\'{{d:extra}}\\' AND watermark.root_object_name = \\'tbl__order_report\\' AND watermark.boundary_kind = \\'offsets\\' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);', 'c33ea4816c4c88748ddd4686b39cf26fe209bd62f03cf1000c7b585c774e4254', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 40, 'seed_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}} (order_id, status, total_cents, _replay_partition, _replay_offset)\nWITH active_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n)\nSELECT active.order_id, active.status, active.total_cents, active._replay_partition, active._replay_offset\nFROM sqltide_playground.tbl__order_report__{{d:v2}} AS active\nINNER JOIN active_start_offsets\nON active._replay_partition = active_start_offsets._replay_partition\nWHERE active._replay_offset < active_start_offsets.start_offset;', 'edca771005b8f6646bfed0cabecd9925d6d8fe6af02461260e54c187e6e1a00e', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 41, 'replay_tbl__order_report', 'replay', 'mutation', 'INSERT INTO sqltide_playground.tbl__order_report__{{d:extra}}\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = \\'{{d:extra}}\\' AND root_object_name = \\'tbl__order_report\\' AND boundary_kind = \\'offsets\\'\nGROUP BY _replay_partition\n),\nactive_start_offsets AS (\nSELECT _replay_partition AS _replay_partition, max(_replay_offset) AS start_offset FROM sqltide_playground.playground_orders WHERE _replay_timestamp <= toDateTime64(\\'{{s:s3}}\\', 3, \\'UTC\\') GROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nLEFT JOIN active_start_offsets\nON anchor._replay_partition = active_start_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n AND (active_start_offsets.start_offset IS NULL OR anchor._replay_offset >= active_start_offsets.start_offset)\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = \\'completed\\';', '12e1ee89d8a39569f80e0c75ba8d8ab5c1cfc59e3b974a01eb540de42d0e93d8', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 42, 'read_readiness_tbl__order_report', 'audit', 'query', 'SELECT count() AS staged_row_count, \\'tbl__order_report__{{d:extra}}\\' AS staged_relation_name FROM sqltide_playground.tbl__order_report__{{d:extra}};', 'd35ed9ebd0d6fb6a4f088cb33d6a80910a298a0307ea4e8b7731c870fb8649fe', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 43, 'assert_readiness_tbl__order_report', 'audit', 'assertion', 'SELECT throwIf(count() != 1, \\'Virtual candidate target is not ready\\') FROM system.tables WHERE database = \\'sqltide_playground\\' AND name = \\'tbl__order_report__{{d:extra}}\\';', '5765bb352c0b5ec651b6d5f5de840722173565d0ba0919e43281b67c8ab0d78e', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 44, 'read_boundary_time', 'audit', 'query', 'SELECT toString(any(boundary_time), \\'UTC\\') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = \\'{{d:extra}}\\';', '5c35260650b08c69f22147b8ff1940c203e8ef83015b0ca3dc562262c5d8a458', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1),\n('{{u:extra.1}}', 45, 'record_population_completed', 'finalization', 'mutation', 'INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT \\'{{d:extra}}\\', \\'completed\\', now64(3, \\'UTC\\')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = \\'{{d:extra}}\\' AND stage = \\'completed\\');', 'abdce12cba193a67ae4a11dff05e83e22efae2575171aa824c62c54a1df918b7', '308293c602e0bbacb6ee633c46624ab9b44a9bc9c87f3f5630414f6adc2522b8', 1)", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 3, 'statement_completed', 'assert_candidate_metadata', 'preflight', '{\"displayName\":null,\"elapsedMs\":28,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":1,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 7, 'statement_completed', 'assert_candidate_relation_tbl__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":29,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":3,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 9, 'statement_completed', 'assert_candidate_relation_mv__order_report__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":22,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":4,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 11, 'statement_completed', 'assert_candidate_relation_tbl__large_orders__{{d:extra}}', 'preflight', '{\"displayName\":null,\"elapsedMs\":20,\"errorMessage\":null,\"intent\":\"assertion\",\"statementSequence\":5,\"writtenRows\":null}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 17, 'statement_completed', 'prepare_metadata_1', 'preparation', '{\"displayName\":null,\"elapsedMs\":5,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":8,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 23, 'statement_completed', 'prepare_metadata_4', 'preparation', '{\"displayName\":null,\"elapsedMs\":17,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":11,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.1}}', 43, 'statement_completed', 'prepare_metadata_14', 'preparation', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":21,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('{{d:extra}}', 'c7ba863a8bfe0505dd64d2144f397c02391e2f25e949a331a977a33e9a45b34a', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '{{dt:extra:s3}}'),\n('{{d:extra}}', '58d1061a79b880c9f16d70783bb32aaa2261ce25e5b544a681acb68cb70ab43b', 'deployment', '{{d:extra}}', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__{{d:extra}}', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '{{dt:extra:s3}}'),\n('{{d:extra}}', '0363e5853a5532e1f28733e0cb79fa3681b866a47ae3f2cb91d30570fda0140d', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__{{d:extra}}', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}'),\n('{{d:extra}}', '4616308ac23d487c07a9fca20c737ffbea94514e9f95de908dd3ebe65c687348', 'deployment', '{{d:extra}}', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__{{d:extra}}', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '{{dt:extra:s3}}')", - "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '{{d:extra}}', 'd7eed0f17ee9143cd6e3bbcf161cfbac86584e176be361826cf4e3fa48c5c023', 'offsets', now64(3, 'UTC'), toDateTime64('{{dt:extra:s3}}', 3, 'UTC'), '{{v}}'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '{{d:extra}}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_08145dfc38aedd15` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.2}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_08145dfc38aedd15` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_08145dfc38aedd15`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_08145dfc38aedd15`", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:extra.1}}', 'sqltide-playground', 'sqltide_playground', 'build', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:extra}}', NULL, 2, '{{t:extra:1:s3}}', '{{t:extra:2:s3}}', 6113, NULL, '{}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 1, 'run_started', NULL, NULL, '{\"command\":\"deployment rollback\",\"contextLogicalIds\":[],\"database\":\"sqltide_playground\",\"displayCommand\":\"sqt deployment rollback {{d:built}}\",\"executedLogicalIds\":[\"model:large_orders\",\"model:order_report\"],\"mode\":\"virtual_environment\",\"operationEvidence\":null,\"projectIdentity\":\"sqltide-playground\",\"selectedNodeCount\":2,\"selectors\":[],\"startTime\":null,\"startupTimings\":null,\"toolVersion\":\"{{v}}\",\"totalStatements\":0}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:rollforward.1}}'", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 2, 'statement_started', 'replace_stable_binding_tbl__large_orders', 'stabilization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.2}}\",\"replayOffsetProgress\":null,\"statementSequence\":1}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 3, 'statement_completed', 'replace_stable_binding_tbl__large_orders', 'stabilization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":1,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 4, 'statement_started', 'replace_stable_binding_tbl__order_report', 'stabilization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.3}}\",\"replayOffsetProgress\":null,\"statementSequence\":2}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 5, 'statement_completed', 'replace_stable_binding_tbl__order_report', 'stabilization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":2,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 6, 'statement_started', 'migrate_metadata_0001', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.4}}\",\"replayOffsetProgress\":null,\"statementSequence\":3}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 7, 'statement_completed', 'migrate_metadata_0001', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":3,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 8, 'statement_started', 'migrate_metadata_0002', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.5}}\",\"replayOffsetProgress\":null,\"statementSequence\":4}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 9, 'statement_completed', 'migrate_metadata_0002', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":4,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 10, 'statement_started', 'migrate_metadata_0003', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.6}}\",\"replayOffsetProgress\":null,\"statementSequence\":5}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 11, 'statement_completed', 'migrate_metadata_0003', 'finalization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":5,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 12, 'statement_started', 'migrate_metadata_0004', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.7}}\",\"replayOffsetProgress\":null,\"statementSequence\":6}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 13, 'statement_completed', 'migrate_metadata_0004', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":6,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 14, 'statement_started', 'migrate_metadata_0005', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.8}}\",\"replayOffsetProgress\":null,\"statementSequence\":7}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 15, 'statement_completed', 'migrate_metadata_0005', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":7,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 16, 'statement_started', 'migrate_metadata_0006', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.9}}\",\"replayOffsetProgress\":null,\"statementSequence\":8}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 17, 'statement_completed', 'migrate_metadata_0006', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":8,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 18, 'statement_started', 'migrate_metadata_0007', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.10}}\",\"replayOffsetProgress\":null,\"statementSequence\":9}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 19, 'statement_completed', 'migrate_metadata_0007', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":9,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 20, 'statement_started', 'migrate_metadata_0008', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.11}}\",\"replayOffsetProgress\":null,\"statementSequence\":10}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 21, 'statement_completed', 'migrate_metadata_0008', 'finalization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":10,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 22, 'statement_started', 'migrate_metadata_0009', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.12}}\",\"replayOffsetProgress\":null,\"statementSequence\":11}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 23, 'statement_completed', 'migrate_metadata_0009', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":11,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 24, 'statement_started', 'migrate_metadata_0010', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.13}}\",\"replayOffsetProgress\":null,\"statementSequence\":12}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 25, 'statement_completed', 'migrate_metadata_0010', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":12,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 26, 'statement_started', 'migrate_metadata_0011', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.14}}\",\"replayOffsetProgress\":null,\"statementSequence\":13}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 27, 'statement_completed', 'migrate_metadata_0011', 'finalization', '{\"displayName\":null,\"elapsedMs\":2,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":13,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 28, 'statement_started', 'migrate_metadata_0012', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.15}}\",\"replayOffsetProgress\":null,\"statementSequence\":14}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 29, 'statement_completed', 'migrate_metadata_0012', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":14,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 30, 'statement_started', 'migrate_metadata_0013', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.16}}\",\"replayOffsetProgress\":null,\"statementSequence\":15}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 31, 'statement_completed', 'migrate_metadata_0013', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 32, 'statement_started', 'migrate_metadata_0014', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.17}}\",\"replayOffsetProgress\":null,\"statementSequence\":16}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 33, 'statement_completed', 'migrate_metadata_0014', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":16,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 34, 'statement_started', 'migrate_metadata_0015', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.18}}\",\"replayOffsetProgress\":null,\"statementSequence\":17}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 35, 'statement_completed', 'migrate_metadata_0015', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":17,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 36, 'statement_started', 'migrate_metadata_0016', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.19}}\",\"replayOffsetProgress\":null,\"statementSequence\":18}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 37, 'statement_completed', 'migrate_metadata_0016', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":18,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 38, 'statement_started', 'migrate_metadata_0017', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.20}}\",\"replayOffsetProgress\":null,\"statementSequence\":19}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 39, 'statement_completed', 'migrate_metadata_0017', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":19,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 40, 'statement_started', 'migrate_metadata_0018', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.21}}\",\"replayOffsetProgress\":null,\"statementSequence\":20}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 41, 'statement_completed', 'migrate_metadata_0018', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 42, 'statement_started', 'migrate_metadata_0019', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.22}}\",\"replayOffsetProgress\":null,\"statementSequence\":21}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 43, 'statement_completed', 'migrate_metadata_0019', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":21,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 44, 'statement_started', 'migrate_metadata_0020', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.23}}\",\"replayOffsetProgress\":null,\"statementSequence\":22}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 45, 'statement_completed', 'migrate_metadata_0020', 'finalization', '{\"displayName\":null,\"elapsedMs\":1,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":22,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 46, 'statement_started', 'migrate_metadata_0021', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.24}}\",\"replayOffsetProgress\":null,\"statementSequence\":23}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 47, 'statement_completed', 'migrate_metadata_0021', 'finalization', '{\"displayName\":null,\"elapsedMs\":4,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":23,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 48, 'statement_started', 'migrate_metadata_0022', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.25}}\",\"replayOffsetProgress\":null,\"statementSequence\":24}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 49, 'statement_completed', 'migrate_metadata_0022', 'finalization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":24,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 50, 'statement_started', 'persist_publish_event_0001', 'finalization', '{\"displayName\":null,\"intent\":\"mutation\",\"queryId\":\"{{u:rollforward.26}}\",\"replayOffsetProgress\":null,\"statementSequence\":25}')", - "INSERT INTO sqltide_playground._sqltide_virtual_publications (publication_id, deployment_id, operation, previous_deployment_id, logical_database_name, logical_view_name, physical_database_name, physical_relation_name, published_at) VALUES\n('01794650616369228842_16da511232e501c7092d3a5253b32f17b24521ad0741692d61fc481784a1d6b3', '{{d:built}}', 'rollback', '{{d:v2}}', 'sqltide_playground', 'tbl__large_orders', 'sqltide_playground', 'tbl__large_orders__{{d:built}}', '{{t:rollforward:0:s3}}'),\n('01794650616369228842_16da511232e501c7092d3a5253b32f17b24521ad0741692d61fc481784a1d6b3', '{{d:built}}', 'rollback', '{{d:v2}}', 'sqltide_playground', 'tbl__order_report', 'sqltide_playground', 'tbl__order_report__{{d:built}}', '{{t:rollforward:0:s3}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 51, 'statement_completed', 'persist_publish_event_0001', 'finalization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":25,\"writtenRows\":2}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_2064b18bb9526c5f` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:rollforward.1}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_2064b18bb9526c5f` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_2064b18bb9526c5f`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_2064b18bb9526c5f`", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:rollforward.0}}', 52, 'run_completed', NULL, NULL, '{\"errorMessage\":null,\"exitCode\":0,\"operationEvidence\":null,\"outcome\":\"succeeded\"}')", - "INSERT INTO sqltide_playground._sqltide_invocations (invocation_id, project_identity, target_identity, command, mode, outcome, exit_code, materialized_outcome, deployment_id, workflow_id, selected_node_count, started_at, completed_at, duration_ms, error_message, summary_json, tool_version) VALUES\n('{{u:rollforward.0}}', 'sqltide-playground', 'sqltide_playground', 'deployment rollback', 'virtual_environment', 'succeeded', 0, 'applied', '{{d:built}}', NULL, 2, '{{t:rollforward:1:s3}}', '{{t:rollforward:2:s3}}', 384, NULL, '{\"publishedViews\":2}', '{{v}}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 31, 'statement_completed', 'migrate_metadata_0014', 'finalization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":15,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_run_events (invocation_id, sequence, event_kind, step_id, phase, payload_json) VALUES\n('{{u:extra.0}}', 41, 'statement_completed', 'migrate_metadata_0019', 'finalization', '{\"displayName\":null,\"elapsedMs\":3,\"errorMessage\":null,\"intent\":\"mutation\",\"statementSequence\":20,\"writtenRows\":0}')", - "INSERT INTO sqltide_playground._sqltide_virtual_publications (publication_id, deployment_id, operation, previous_deployment_id, logical_database_name, logical_view_name, physical_database_name, physical_relation_name, published_at) VALUES\n('01794650619797940099_ed3b03aaf7ab2d8abc25c2c936e341e2e77414f6b6f36e52b619f1d6650bbd41', '{{d:v1}}', 'rollback', '{{d:v2}}', 'sqltide_playground', 'tbl__order_report', 'sqltide_playground', 'tbl__order_report__{{d:v1}}', '{{t:extra:0:s3}}')", - "CREATE TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_05bd14f5ca50f51d` (guard UInt8) ENGINE = TinyLog COMMENT 'sqltide-target-lock-v2:{{u:extra.1}}'", - "RENAME TABLE `sqltide_playground`.`_sqltide_target_mutation_lock` TO `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare`, `sqltide_playground`.`_sqltide_target_mutation_lock_release_05bd14f5ca50f51d` TO `sqltide_playground`.`_sqltide_target_mutation_lock`, `sqltide_playground`.`_sqltide_target_mutation_lock__exchange_spare` TO `sqltide_playground`.`_sqltide_target_mutation_lock_release_05bd14f5ca50f51d`", - "DROP TABLE `sqltide_playground`.`_sqltide_target_mutation_lock_release_05bd14f5ca50f51d`" - ] -} diff --git a/ui/src/lib/demo/recordings.json b/ui/src/lib/demo/recordings.json index a18ed7db..6512e054 100644 --- a/ui/src/lib/demo/recordings.json +++ b/ui/src/lib/demo/recordings.json @@ -1,5 +1,5 @@ { - "recordedWith": "0.69.1", + "recordedWith": "0.70.1", "pages": [ "/", "/warehouse-health", @@ -19,13 +19,13 @@ "/sources/orders", "/pipelines/pl__orders", "/catalog/large_orders", - "/deployments/20261114T095302Z_f4e644", + "/deployments/20261114T181057Z_b71388", "/catalog/order_report", - "/deployments/20261114T095312Z_afe637", - "/deployments/20261114T095255Z_fdf238", - "/runs/a24e12c1-d58c-4258-8c90-4972fc82483b", - "/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2", - "/runs/5237ea51-4760-4b67-992c-ac10d738a9aa", + "/deployments/20261114T181104Z_15eadd", + "/deployments/20261114T181051Z_390cdb", + "/runs/4aff15f5-3811-405d-bfe7-6420fae4de24", + "/runs/f42a7e72-c28f-44f2-b758-5cca14087543", + "/runs/502a606c-fc80-43ca-93f8-18b088c3bca4", "/lineage?pipeline=pl__orders", "/plan?select=pipeline:pl__orders", "/plan?select=large_orders", @@ -105,14 +105,14 @@ "toolVersion": "0.70.1", "compile": { "state": "ok", - "versionKey": "42edde50c5c2", - "compiledAt": "2026-11-14T09:53:08+00:00", + "versionKey": "5441cad345ae", + "compiledAt": "2026-11-14T18:11:09+00:00", "timings": { - "discoveryMs": 0, - "compileInputsMs": 7, + "discoveryMs": 1, + "compileInputsMs": 4, "assemblyMs": 2, "graphMs": 0, - "realizationMs": 0, + "realizationMs": 1, "rulesMs": 0 }, "error": null @@ -122,7 +122,7 @@ "state": "connected", "database": "sqltide_playground", "error": null, - "lastAttemptAt": "2026-11-14T10:05:12+00:00", + "lastAttemptAt": "2026-11-14T18:12:40+00:00", "nextAttemptAt": null } } @@ -130,7 +130,7 @@ "/api/definitions": { "status": 200, "body": { - "versionKey": "42edde50c5c2", + "versionKey": "5441cad345ae", "project": { "name": "sqltide_playground", "adapter": "clickhouse", @@ -163,7 +163,7 @@ "connection": { "environment": false, "host": "127.0.0.1", - "port": 40831, + "port": 40115, "username": "playground" }, "auditScheduler": { @@ -357,16 +357,16 @@ "/api/state": { "status": 200, "body": { - "capturedAt": "2026-11-14 10:05:13.556", + "capturedAt": "2026-11-14 18:12:40.900", "warehouseHealth": { "availability": "available", "status": "healthy", "adapter": "clickhouse", "database": "sqltide_playground", "version": "25.8.33.6", - "uptimeSeconds": 740, - "measuredAt": "2026-11-14 10:05:13.556", - "collectionDurationMs": 28, + "uptimeSeconds": 112, + "measuredAt": "2026-11-14 18:12:40.900", + "collectionDurationMs": 19, "stale": false, "warnings": [], "capacityWarningFraction": 0.15, @@ -377,19 +377,19 @@ "path": "/var/lib/clickhouse/", "type": "Local", "totalBytes": 68692918272, - "freeBytes": 22384812032, - "unreservedBytes": 22384812032, + "freeBytes": 21872549888, + "unreservedBytes": 21872549888, "keepFreeBytes": 0, "status": "healthy" } ], "inodes": { "total": 17862832, - "free": 17561467, + "free": 17560779, "status": "healthy" }, "memory": { - "residentBytes": 1063534592, + "residentBytes": 789245952, "hostTotalBytes": 4122034176, "cgroupUsedBytes": null, "cgroupLimitBytes": null, @@ -414,19 +414,19 @@ { "name": "_sqltide_run_statements", "rows": 128, - "bytesOnDisk": 31624, + "bytesOnDisk": 31689, "activeParts": 3 }, { "name": "_sqltide_run_events", "rows": 262, - "bytesOnDisk": 12071, + "bytesOnDisk": 12013, "activeParts": 2 }, { "name": "_sqltide_virtual_object_state", "rows": 10, - "bytesOnDisk": 7449, + "bytesOnDisk": 7447, "activeParts": 3 }, { @@ -438,7 +438,7 @@ { "name": "_sqltide_invocations", "rows": 3, - "bytesOnDisk": 5100, + "bytesOnDisk": 5109, "activeParts": 3 }, { @@ -450,13 +450,13 @@ { "name": "_sqltide_virtual_publications", "rows": 3, - "bytesOnDisk": 2678, + "bytesOnDisk": 2676, "activeParts": 2 }, { "name": "_sqltide_virtual_deployments", "rows": 3, - "bytesOnDisk": 2651, + "bytesOnDisk": 2652, "activeParts": 3 }, { @@ -466,7 +466,7 @@ "activeParts": 1 }, { - "name": "tbl__order_report__20261114T095255Z_fdf238", + "name": "tbl__order_report__20261114T181051Z_390cdb", "rows": 3, "bytesOnDisk": 725, "activeParts": 1 @@ -488,11 +488,11 @@ "source": "query_views_log", "sourceAvailable": true, "approximate": false, - "lastTriggeredAt": "2026-11-14 10:03:41.495385", - "lastWriteAt": "2026-11-14 10:03:41.495385", - "rowsWritten": 15, + "lastTriggeredAt": "2026-11-14 18:11:03.175612", + "lastWriteAt": "2026-11-14 18:11:03.175612", + "rowsWritten": 3, "windowSeconds": 120, - "detail": "15 rows were written in the last 120s." + "detail": "3 rows were written in the last 120s." }, "drift": false, "driftReasons": [], @@ -500,7 +500,7 @@ "comparison": "live_vs_current_compiled", "status": "drift", "message": "Live warehouse differs from the current compiled definition.", - "liveDdl": "CREATE VIEW sqltide_playground.tbl__large_orders (`order_id` UInt64, `total_cents` Int64, `_replay_partition` Int32, `_replay_offset` Int64) AS SELECT * FROM sqltide_playground.tbl__large_orders__20261114T095302Z_f4e644", + "liveDdl": "CREATE VIEW sqltide_playground.tbl__large_orders (`order_id` UInt64, `total_cents` Int64, `_replay_partition` Int32, `_replay_offset` Int64) AS SELECT * FROM sqltide_playground.tbl__large_orders__20261114T181057Z_b71388", "schema": { "status": "in_sync", "changes": [] @@ -575,11 +575,11 @@ "source": "part_log", "sourceAvailable": true, "approximate": false, - "lastTriggeredAt": "2026-11-14 10:03:41.492867", - "lastWriteAt": "2026-11-14 10:03:41.492867", - "rowsWritten": 15, + "lastTriggeredAt": "2026-11-14 18:11:03.172509", + "lastWriteAt": "2026-11-14 18:11:03.172509", + "rowsWritten": 3, "windowSeconds": 120, - "detail": "15 rows were written in the last 120s." + "detail": "3 rows were written in the last 120s." }, "drift": false, "driftReasons": [], @@ -587,7 +587,7 @@ "comparison": "live_vs_current_compiled", "status": "drift", "message": "Live warehouse differs from the current compiled definition.", - "liveDdl": "CREATE VIEW sqltide_playground.tbl__order_report (`order_id` UInt64, `status` String, `total_cents` Int64, `_replay_partition` Int32, `_replay_offset` Int64) AS SELECT * FROM sqltide_playground.tbl__order_report__20261114T095302Z_f4e644", + "liveDdl": "CREATE VIEW sqltide_playground.tbl__order_report (`order_id` UInt64, `status` String, `total_cents` Int64, `_replay_partition` Int32, `_replay_offset` Int64) AS SELECT * FROM sqltide_playground.tbl__order_report__20261114T181057Z_b71388", "schema": { "status": "in_sync", "changes": [] @@ -672,19 +672,19 @@ "database": "sqltide_playground", "deployments": [ { - "deploymentId": "20261114T095312Z_afe637", + "deploymentId": "20261114T181104Z_15eadd", "state": "staged", - "createdAt": "2026-11-14 09:53:12", + "createdAt": "2026-11-14 18:11:04.109000", "publishedAt": null, "persistedStatus": "staged", "rootNames": [ "tbl__order_report" ], "physicalRelationNames": [ - "mv__large_orders__20261114T095312Z_afe637", - "mv__order_report__20261114T095312Z_afe637", - "tbl__large_orders__20261114T095312Z_afe637", - "tbl__order_report__20261114T095312Z_afe637" + "mv__large_orders__20261114T181104Z_15eadd", + "mv__order_report__20261114T181104Z_15eadd", + "tbl__large_orders__20261114T181104Z_15eadd", + "tbl__order_report__20261114T181104Z_15eadd" ], "activeBindingNames": [], "missingRelationNames": [], @@ -694,19 +694,19 @@ "bytes": 1286 }, { - "deploymentId": "20261114T095302Z_f4e644", + "deploymentId": "20261114T181057Z_b71388", "state": "active", - "createdAt": "2026-11-14 09:53:02.324000", - "publishedAt": "2026-11-14 09:53:08.398000", + "createdAt": "2026-11-14 18:10:57.589000", + "publishedAt": "2026-11-14 18:11:03.683000", "persistedStatus": "published", "rootNames": [ "tbl__order_report" ], "physicalRelationNames": [ - "mv__large_orders__20261114T095302Z_f4e644", - "mv__order_report__20261114T095302Z_f4e644", - "tbl__large_orders__20261114T095302Z_f4e644", - "tbl__order_report__20261114T095302Z_f4e644" + "mv__large_orders__20261114T181057Z_b71388", + "mv__order_report__20261114T181057Z_b71388", + "tbl__large_orders__20261114T181057Z_b71388", + "tbl__order_report__20261114T181057Z_b71388" ], "activeBindingNames": [ "tbl__large_orders", @@ -719,17 +719,17 @@ "bytes": 1326 }, { - "deploymentId": "20261114T095255Z_fdf238", + "deploymentId": "20261114T181051Z_390cdb", "state": "superseded", - "createdAt": "2026-11-14 09:52:55.433000", - "publishedAt": "2026-11-14 09:53:01.846000", + "createdAt": "2026-11-14 18:10:51.130000", + "publishedAt": "2026-11-14 18:10:57.135000", "persistedStatus": "published", "rootNames": [ "tbl__order_report" ], "physicalRelationNames": [ - "mv__order_report__20261114T095255Z_fdf238", - "tbl__order_report__20261114T095255Z_fdf238" + "mv__order_report__20261114T181051Z_390cdb", + "tbl__order_report__20261114T181051Z_390cdb" ], "activeBindingNames": [], "missingRelationNames": [], @@ -770,8 +770,8 @@ "replayWindow": { "mode": "full" }, - "plannedAt": "2026-11-14 10:04:05.845", - "command": "sqt build --deployment-id 20261114T100406Z_7109e2", + "plannedAt": "2026-11-14 18:11:32.183", + "command": "sqt build --deployment-id 20261114T181132Z_45ac75", "mode": "virtual", "executionOrder": [ "virtual" @@ -780,7 +780,7 @@ { "mode": "virtual", "effect": "staged", - "deploymentId": "20261114T100406Z_7109e2", + "deploymentId": "20261114T181132Z_45ac75", "modelNames": [ "order_report", "large_orders" @@ -789,68 +789,68 @@ "orders" ], "relationNames": [ - "tbl__order_report__20261114T100406Z_7109e2", - "mv__order_report__20261114T100406Z_7109e2", - "tbl__large_orders__20261114T100406Z_7109e2", - "mv__large_orders__20261114T100406Z_7109e2" + "tbl__order_report__20261114T181132Z_45ac75", + "mv__order_report__20261114T181132Z_45ac75", + "tbl__large_orders__20261114T181132Z_45ac75", + "mv__large_orders__20261114T181132Z_45ac75" ], "actions": [ { "phase": "plan", "action": "plan_shadow_table", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100406Z_7109e2" + "physicalName": "tbl__order_report__20261114T181132Z_45ac75" }, { "phase": "plan", "action": "plan_shadow_materialized_view", "logicalName": "order_report", - "physicalName": "mv__order_report__20261114T100406Z_7109e2" + "physicalName": "mv__order_report__20261114T181132Z_45ac75" }, { "phase": "plan", "action": "plan_shadow_table", "logicalName": "large_orders", - "physicalName": "tbl__large_orders__20261114T100406Z_7109e2" + "physicalName": "tbl__large_orders__20261114T181132Z_45ac75" }, { "phase": "plan", "action": "plan_shadow_materialized_view", "logicalName": "large_orders", - "physicalName": "mv__large_orders__20261114T100406Z_7109e2" + "physicalName": "mv__large_orders__20261114T181132Z_45ac75" }, { "phase": "backfill", "action": "backfill_subtree", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100406Z_7109e2" + "physicalName": "tbl__order_report__20261114T181132Z_45ac75" }, { "phase": "audit", "action": "audit_subtree", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100406Z_7109e2" + "physicalName": "tbl__order_report__20261114T181132Z_45ac75" }, { "phase": "publish", "action": "publish_subtree", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100406Z_7109e2" + "physicalName": "tbl__order_report__20261114T181132Z_45ac75" } ], "startTime": null } ], - "deploymentId": "20261114T100406Z_7109e2", + "deploymentId": "20261114T181132Z_45ac75", "upperBoundary": { "mode": "captured_at_execution", "continuesLive": true }, "timings": { - "connectionWaitMs": 51, - "planningMs": 314, + "connectionWaitMs": 61, + "planningMs": 131, "replayCountsMs": 0, - "totalMs": 366 + "totalMs": 193 } } }, @@ -858,31 +858,31 @@ "status": 200, "body": [ { - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "projectIdentity": "sqltide-playground", "command": "build", - "displayCommand": "sqt build --deployment-id 20261114T095312Z_afe637", + "displayCommand": "build", "mode": "virtual_environment", "status": "succeeded", "outcome": "succeeded", "exitCode": 0, - "startedAt": "2026-11-14 09:53:13.225", - "completedAt": "2026-11-14 09:53:18.880", - "lastSignalAt": "2026-11-14 09:53:18.880", + "startedAt": "2026-11-14 18:11:04.013", + "completedAt": "2026-11-14 18:11:09.621", + "lastSignalAt": "2026-11-14 18:11:09.621", "lastSignalAgeSeconds": 0, - "durationMs": 5654, + "durationMs": 5607, "selectedNodeCount": 2, "errorMessage": null, "summary": {}, "auditSummary": null, - "toolVersion": "0.69.1", + "toolVersion": "0.70.1", "lastActivity": null, "completedOperationCount": null, "totalStatements": null, "currentStep": null }, { - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "projectIdentity": "sqltide-playground", "command": "build", "displayCommand": "build", @@ -890,23 +890,23 @@ "status": "succeeded", "outcome": "succeeded", "exitCode": 0, - "startedAt": "2026-11-14 09:53:02.216", - "completedAt": "2026-11-14 09:53:07.975", - "lastSignalAt": "2026-11-14 09:53:07.975", + "startedAt": "2026-11-14 18:10:57.496", + "completedAt": "2026-11-14 18:11:03.238", + "lastSignalAt": "2026-11-14 18:11:03.238", "lastSignalAgeSeconds": 0, - "durationMs": 5759, + "durationMs": 5741, "selectedNodeCount": 2, "errorMessage": null, "summary": {}, "auditSummary": null, - "toolVersion": "0.69.1", + "toolVersion": "0.70.1", "lastActivity": null, "completedOperationCount": null, "totalStatements": null, "currentStep": null }, { - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "projectIdentity": "sqltide-playground", "command": "build", "displayCommand": "build", @@ -914,16 +914,16 @@ "status": "succeeded", "outcome": "succeeded", "exitCode": 0, - "startedAt": "2026-11-14 09:52:55.135", - "completedAt": "2026-11-14 09:53:01.389", - "lastSignalAt": "2026-11-14 09:53:01.389", + "startedAt": "2026-11-14 18:10:51.000", + "completedAt": "2026-11-14 18:10:56.688", + "lastSignalAt": "2026-11-14 18:10:56.688", "lastSignalAgeSeconds": 0, - "durationMs": 6253, + "durationMs": 5688, "selectedNodeCount": 1, "errorMessage": null, "summary": {}, "auditSummary": null, - "toolVersion": "0.69.1", + "toolVersion": "0.70.1", "lastActivity": null, "completedOperationCount": null, "totalStatements": null, @@ -931,7 +931,7 @@ } ] }, - "/api/plan?deployment=20261114T100406Z_7109e2": { + "/api/plan?deployment=20261114T181132Z_45ac75": { "status": 200, "body": { "database": "sqltide_playground", @@ -947,8 +947,8 @@ "replayWindow": { "mode": "full" }, - "plannedAt": "2026-11-14 10:04:06.466", - "command": "sqt build --deployment-id 20261114T100406Z_7109e2", + "plannedAt": "2026-11-14 18:11:32.389", + "command": "sqt build --deployment-id 20261114T181132Z_45ac75", "mode": "virtual", "executionOrder": [ "virtual" @@ -957,7 +957,7 @@ { "mode": "virtual", "effect": "staged", - "deploymentId": "20261114T100406Z_7109e2", + "deploymentId": "20261114T181132Z_45ac75", "modelNames": [ "order_report", "large_orders" @@ -966,68 +966,68 @@ "orders" ], "relationNames": [ - "tbl__order_report__20261114T100406Z_7109e2", - "mv__order_report__20261114T100406Z_7109e2", - "tbl__large_orders__20261114T100406Z_7109e2", - "mv__large_orders__20261114T100406Z_7109e2" + "tbl__order_report__20261114T181132Z_45ac75", + "mv__order_report__20261114T181132Z_45ac75", + "tbl__large_orders__20261114T181132Z_45ac75", + "mv__large_orders__20261114T181132Z_45ac75" ], "actions": [ { "phase": "plan", "action": "plan_shadow_table", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100406Z_7109e2" + "physicalName": "tbl__order_report__20261114T181132Z_45ac75" }, { "phase": "plan", "action": "plan_shadow_materialized_view", "logicalName": "order_report", - "physicalName": "mv__order_report__20261114T100406Z_7109e2" + "physicalName": "mv__order_report__20261114T181132Z_45ac75" }, { "phase": "plan", "action": "plan_shadow_table", "logicalName": "large_orders", - "physicalName": "tbl__large_orders__20261114T100406Z_7109e2" + "physicalName": "tbl__large_orders__20261114T181132Z_45ac75" }, { "phase": "plan", "action": "plan_shadow_materialized_view", "logicalName": "large_orders", - "physicalName": "mv__large_orders__20261114T100406Z_7109e2" + "physicalName": "mv__large_orders__20261114T181132Z_45ac75" }, { "phase": "backfill", "action": "backfill_subtree", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100406Z_7109e2" + "physicalName": "tbl__order_report__20261114T181132Z_45ac75" }, { "phase": "audit", "action": "audit_subtree", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100406Z_7109e2" + "physicalName": "tbl__order_report__20261114T181132Z_45ac75" }, { "phase": "publish", "action": "publish_subtree", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100406Z_7109e2" + "physicalName": "tbl__order_report__20261114T181132Z_45ac75" } ], "startTime": null } ], - "deploymentId": "20261114T100406Z_7109e2", + "deploymentId": "20261114T181132Z_45ac75", "upperBoundary": { "mode": "captured_at_execution", "continuesLive": true }, "timings": { - "connectionWaitMs": 224, - "planningMs": 158, + "connectionWaitMs": 38, + "planningMs": 120, "replayCountsMs": 0, - "totalMs": 383 + "totalMs": 159 } } }, @@ -1036,7 +1036,7 @@ "body": { "enabled": false, "state": "disabled", - "warehouseNow": "2026-11-14 10:04:12.948", + "warehouseNow": "2026-11-14 18:11:38.182", "dueCount": 0, "audits": [], "health": { @@ -1045,7 +1045,7 @@ "latestError": null, "backoffSeconds": 0, "nextTickSeconds": 10, - "lastSuccessfulTick": "2026-11-14 10:04:11.120", + "lastSuccessfulTick": "2026-11-14 18:11:30.288", "runningAuditCount": 0 } } @@ -1061,7 +1061,7 @@ "latestError": null, "backoffSeconds": 0, "nextTickSeconds": 10, - "lastSuccessfulTick": "2026-11-14 10:04:11.120", + "lastSuccessfulTick": "2026-11-14 18:11:40.288", "lastEvaluatedCount": null, "leaseHeld": null } @@ -1071,10 +1071,10 @@ "status": 200, "body": { "running": false, - "invocationId": "0867311e-993c-4e25-b73b-00b150c51484", - "currentInvocationId": "0867311e-993c-4e25-b73b-00b150c51484", - "command": "sqt build --select pipeline:pl__orders order_report large_orders --start-time 2026-01-01T10:01:00Z --deployment-id 20261114T100326Z_b086ac", - "exitCode": 0, + "invocationId": null, + "currentInvocationId": null, + "command": "", + "exitCode": null, "events": [], "stderr": "", "forceAvailable": false, @@ -1096,23 +1096,23 @@ "roles": [] } }, - "/api/deployments/20261114T095302Z_f4e644": { + "/api/deployments/20261114T181057Z_b71388": { "status": 200, "body": { "database": "sqltide_playground", - "deploymentId": "20261114T095302Z_f4e644", + "deploymentId": "20261114T181057Z_b71388", "state": "active", - "createdAt": "2026-11-14 09:53:02.324000", - "publishedAt": "2026-11-14 09:53:08.398000", + "createdAt": "2026-11-14 18:10:57.589000", + "publishedAt": "2026-11-14 18:11:03.683000", "persistedStatus": "published", "rootNames": [ "tbl__order_report" ], "physicalRelationNames": [ - "mv__large_orders__20261114T095302Z_f4e644", - "mv__order_report__20261114T095302Z_f4e644", - "tbl__large_orders__20261114T095302Z_f4e644", - "tbl__order_report__20261114T095302Z_f4e644" + "mv__large_orders__20261114T181057Z_b71388", + "mv__order_report__20261114T181057Z_b71388", + "tbl__large_orders__20261114T181057Z_b71388", + "tbl__order_report__20261114T181057Z_b71388" ], "activeBindingNames": [ "tbl__large_orders", @@ -1126,22 +1126,22 @@ "models": [ { "logicalName": "tbl__large_orders", - "stagedRelation": "tbl__large_orders__20261114T095302Z_f4e644", + "stagedRelation": "tbl__large_orders__20261114T181057Z_b71388", "stagedRows": 3, "stagedBytes": 601, - "liveRelation": "tbl__large_orders__20261114T095302Z_f4e644", - "liveDeploymentId": "20261114T095302Z_f4e644", + "liveRelation": "tbl__large_orders__20261114T181057Z_b71388", + "liveDeploymentId": "20261114T181057Z_b71388", "liveRows": 3, "isActive": true, "isNew": false }, { "logicalName": "tbl__order_report", - "stagedRelation": "tbl__order_report__20261114T095302Z_f4e644", + "stagedRelation": "tbl__order_report__20261114T181057Z_b71388", "stagedRows": 3, "stagedBytes": 725, - "liveRelation": "tbl__order_report__20261114T095302Z_f4e644", - "liveDeploymentId": "20261114T095302Z_f4e644", + "liveRelation": "tbl__order_report__20261114T181057Z_b71388", + "liveDeploymentId": "20261114T181057Z_b71388", "liveRows": 3, "isActive": true, "isNew": false @@ -1155,18 +1155,18 @@ } } }, - "/api/deployments/20261114T095302Z_f4e644/diff": { + "/api/deployments/20261114T181057Z_b71388/diff": { "status": 200, "body": { "database": "sqltide_playground", "fromEndpoint": "active", - "toEndpoint": "20261114T095302Z_f4e644", + "toEndpoint": "20261114T181057Z_b71388", "relations": [ { "logicalName": "tbl__large_orders", "status": "unchanged", - "fromPhysicalName": "tbl__large_orders__20261114T095302Z_f4e644", - "toPhysicalName": "tbl__large_orders__20261114T095302Z_f4e644", + "fromPhysicalName": "tbl__large_orders__20261114T181057Z_b71388", + "toPhysicalName": "tbl__large_orders__20261114T181057Z_b71388", "fromRowCount": 3, "toRowCount": 3, "addedColumns": [], @@ -1175,8 +1175,8 @@ { "logicalName": "tbl__order_report", "status": "unchanged", - "fromPhysicalName": "tbl__order_report__20261114T095302Z_f4e644", - "toPhysicalName": "tbl__order_report__20261114T095302Z_f4e644", + "fromPhysicalName": "tbl__order_report__20261114T181057Z_b71388", + "toPhysicalName": "tbl__order_report__20261114T181057Z_b71388", "fromRowCount": 3, "toRowCount": 3, "addedColumns": [], @@ -1185,23 +1185,23 @@ ] } }, - "/api/deployments/20261114T095312Z_afe637": { + "/api/deployments/20261114T181104Z_15eadd": { "status": 200, "body": { "database": "sqltide_playground", - "deploymentId": "20261114T095312Z_afe637", + "deploymentId": "20261114T181104Z_15eadd", "state": "staged", - "createdAt": "2026-11-14 09:53:12", + "createdAt": "2026-11-14 18:11:04.109000", "publishedAt": null, "persistedStatus": "staged", "rootNames": [ "tbl__order_report" ], "physicalRelationNames": [ - "mv__large_orders__20261114T095312Z_afe637", - "mv__order_report__20261114T095312Z_afe637", - "tbl__large_orders__20261114T095312Z_afe637", - "tbl__order_report__20261114T095312Z_afe637" + "mv__large_orders__20261114T181104Z_15eadd", + "mv__order_report__20261114T181104Z_15eadd", + "tbl__large_orders__20261114T181104Z_15eadd", + "tbl__order_report__20261114T181104Z_15eadd" ], "activeBindingNames": [], "missingRelationNames": [], @@ -1212,22 +1212,22 @@ "models": [ { "logicalName": "tbl__large_orders", - "stagedRelation": "tbl__large_orders__20261114T095312Z_afe637", + "stagedRelation": "tbl__large_orders__20261114T181104Z_15eadd", "stagedRows": 2, "stagedBytes": 585, - "liveRelation": "tbl__large_orders__20261114T095302Z_f4e644", - "liveDeploymentId": "20261114T095302Z_f4e644", + "liveRelation": "tbl__large_orders__20261114T181057Z_b71388", + "liveDeploymentId": "20261114T181057Z_b71388", "liveRows": 3, "isActive": false, "isNew": false }, { "logicalName": "tbl__order_report", - "stagedRelation": "tbl__order_report__20261114T095312Z_afe637", + "stagedRelation": "tbl__order_report__20261114T181104Z_15eadd", "stagedRows": 2, "stagedBytes": 701, - "liveRelation": "tbl__order_report__20261114T095302Z_f4e644", - "liveDeploymentId": "20261114T095302Z_f4e644", + "liveRelation": "tbl__order_report__20261114T181057Z_b71388", + "liveDeploymentId": "20261114T181057Z_b71388", "liveRows": 3, "isActive": false, "isNew": false @@ -1240,14 +1240,14 @@ { "database": "sqltide_playground", "logicalName": "tbl__large_orders", - "fromPhysicalName": "tbl__large_orders__20261114T095302Z_f4e644", - "toPhysicalName": "tbl__large_orders__20261114T095312Z_afe637" + "fromPhysicalName": "tbl__large_orders__20261114T181057Z_b71388", + "toPhysicalName": "tbl__large_orders__20261114T181104Z_15eadd" }, { "database": "sqltide_playground", "logicalName": "tbl__order_report", - "fromPhysicalName": "tbl__order_report__20261114T095302Z_f4e644", - "toPhysicalName": "tbl__order_report__20261114T095312Z_afe637" + "fromPhysicalName": "tbl__order_report__20261114T181057Z_b71388", + "toPhysicalName": "tbl__order_report__20261114T181104Z_15eadd" } ], "removals": [], @@ -1255,26 +1255,26 @@ }, "wouldOrphan": { "relationNames": [ - "tbl__large_orders__20261114T095302Z_f4e644", - "tbl__order_report__20261114T095302Z_f4e644" + "tbl__large_orders__20261114T181057Z_b71388", + "tbl__order_report__20261114T181057Z_b71388" ], "relationCount": 2, "bytes": 1326 } } }, - "/api/deployments/20261114T095312Z_afe637/diff": { + "/api/deployments/20261114T181104Z_15eadd/diff": { "status": 200, "body": { "database": "sqltide_playground", "fromEndpoint": "active", - "toEndpoint": "20261114T095312Z_afe637", + "toEndpoint": "20261114T181104Z_15eadd", "relations": [ { "logicalName": "tbl__large_orders", "status": "changed", - "fromPhysicalName": "tbl__large_orders__20261114T095302Z_f4e644", - "toPhysicalName": "tbl__large_orders__20261114T095312Z_afe637", + "fromPhysicalName": "tbl__large_orders__20261114T181057Z_b71388", + "toPhysicalName": "tbl__large_orders__20261114T181104Z_15eadd", "fromRowCount": 3, "toRowCount": 2, "addedColumns": [], @@ -1283,8 +1283,8 @@ { "logicalName": "tbl__order_report", "status": "changed", - "fromPhysicalName": "tbl__order_report__20261114T095302Z_f4e644", - "toPhysicalName": "tbl__order_report__20261114T095312Z_afe637", + "fromPhysicalName": "tbl__order_report__20261114T181057Z_b71388", + "toPhysicalName": "tbl__order_report__20261114T181104Z_15eadd", "fromRowCount": 3, "toRowCount": 2, "addedColumns": [], @@ -1293,21 +1293,21 @@ ] } }, - "/api/deployments/20261114T095255Z_fdf238": { + "/api/deployments/20261114T181051Z_390cdb": { "status": 200, "body": { "database": "sqltide_playground", - "deploymentId": "20261114T095255Z_fdf238", + "deploymentId": "20261114T181051Z_390cdb", "state": "superseded", - "createdAt": "2026-11-14 09:52:55.433000", - "publishedAt": "2026-11-14 09:53:01.846000", + "createdAt": "2026-11-14 18:10:51.130000", + "publishedAt": "2026-11-14 18:10:57.135000", "persistedStatus": "published", "rootNames": [ "tbl__order_report" ], "physicalRelationNames": [ - "mv__order_report__20261114T095255Z_fdf238", - "tbl__order_report__20261114T095255Z_fdf238" + "mv__order_report__20261114T181051Z_390cdb", + "tbl__order_report__20261114T181051Z_390cdb" ], "activeBindingNames": [], "missingRelationNames": [], @@ -1318,11 +1318,11 @@ "models": [ { "logicalName": "tbl__order_report", - "stagedRelation": "tbl__order_report__20261114T095255Z_fdf238", + "stagedRelation": "tbl__order_report__20261114T181051Z_390cdb", "stagedRows": 3, "stagedBytes": 725, - "liveRelation": "tbl__order_report__20261114T095302Z_f4e644", - "liveDeploymentId": "20261114T095302Z_f4e644", + "liveRelation": "tbl__order_report__20261114T181057Z_b71388", + "liveDeploymentId": "20261114T181057Z_b71388", "liveRows": 3, "isActive": false, "isNew": false @@ -1336,17 +1336,17 @@ } } }, - "/api/deployments/20261114T095255Z_fdf238/diff": { + "/api/deployments/20261114T181051Z_390cdb/diff": { "status": 200, "body": { "database": "sqltide_playground", "fromEndpoint": "active", - "toEndpoint": "20261114T095255Z_fdf238", + "toEndpoint": "20261114T181051Z_390cdb", "relations": [ { "logicalName": "tbl__large_orders", "status": "removed", - "fromPhysicalName": "tbl__large_orders__20261114T095302Z_f4e644", + "fromPhysicalName": "tbl__large_orders__20261114T181057Z_b71388", "toPhysicalName": null, "fromRowCount": 3, "toRowCount": null, @@ -1361,8 +1361,8 @@ { "logicalName": "tbl__order_report", "status": "unchanged", - "fromPhysicalName": "tbl__order_report__20261114T095302Z_f4e644", - "toPhysicalName": "tbl__order_report__20261114T095255Z_fdf238", + "fromPhysicalName": "tbl__order_report__20261114T181057Z_b71388", + "toPhysicalName": "tbl__order_report__20261114T181051Z_390cdb", "fromRowCount": 3, "toRowCount": 3, "addedColumns": [], @@ -1371,14 +1371,14 @@ ] } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/events?after=0": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/events?after=0": { "status": 200, "body": { "found": true, "events": [ { "sequence": 1, - "emittedAt": "2026-11-14 10:03:41.711", + "emittedAt": "2026-11-14 18:11:04.165", "event": "run_started", "stepId": null, "phase": null, @@ -1387,7 +1387,7 @@ "source:orders" ], "database": "sqltide_playground", - "displayCommand": "sqt build --deployment-id 20261114T095312Z_afe637", + "displayCommand": "build", "executedLogicalIds": [ "model:order_report", "model:large_orders" @@ -1399,29 +1399,29 @@ "selectors": [], "startTime": null, "startupTimings": { - "compileMs": 8, - "observabilityMs": 66, - "planningMs": 44, - "totalMs": 118 + "compileMs": 10, + "observabilityMs": 50, + "planningMs": 53, + "totalMs": 113 }, - "toolVersion": "0.69.1", + "toolVersion": "0.70.1", "totalStatements": 44 }, { "sequence": 2, - "emittedAt": "2026-11-14 10:03:41.719", + "emittedAt": "2026-11-14 18:11:04.210", "event": "statement_started", "stepId": "assert_candidate_metadata", "phase": "preflight", "displayName": null, "intent": "assertion", - "queryId": "61718edd-5d84-4cee-84dc-9d035d614aa6", + "queryId": "3885fc21-bfcd-4243-9542-3a4901ff7d14", "replayOffsetProgress": null, "statementSequence": 1 }, { "sequence": 3, - "emittedAt": "2026-11-14 10:03:41.724", + "emittedAt": "2026-11-14 18:11:04.218", "event": "statement_completed", "stepId": "assert_candidate_metadata", "phase": "preflight", @@ -1434,24 +1434,24 @@ }, { "sequence": 4, - "emittedAt": "2026-11-14 10:03:41.727", + "emittedAt": "2026-11-14 18:11:04.221", "event": "statement_started", "stepId": "assert_candidate_unpublished", "phase": "preflight", "displayName": null, "intent": "assertion", - "queryId": "0666f7d0-5226-4ff2-9d5a-e36dd44fbc23", + "queryId": "668770ee-365b-47bf-b855-fcb041c9e7a7", "replayOffsetProgress": null, "statementSequence": 2 }, { "sequence": 5, - "emittedAt": "2026-11-14 10:03:41.734", + "emittedAt": "2026-11-14 18:11:04.228", "event": "statement_completed", "stepId": "assert_candidate_unpublished", "phase": "preflight", "displayName": null, - "elapsedMs": 3, + "elapsedMs": 4, "errorMessage": null, "intent": "assertion", "statementSequence": 2, @@ -1459,21 +1459,21 @@ }, { "sequence": 6, - "emittedAt": "2026-11-14 10:03:41.739", + "emittedAt": "2026-11-14 18:11:04.232", "event": "statement_started", - "stepId": "assert_candidate_relation_tbl__order_report__20261114T095312Z_afe637", + "stepId": "assert_candidate_relation_tbl__order_report__20261114T181104Z_15eadd", "phase": "preflight", "displayName": null, "intent": "assertion", - "queryId": "f2f06f6a-40d1-41bd-b763-3d9974bfce60", + "queryId": "69af7aa6-9b45-4db5-b309-a6b653254d02", "replayOffsetProgress": null, "statementSequence": 3 }, { "sequence": 7, - "emittedAt": "2026-11-14 10:03:41.742", + "emittedAt": "2026-11-14 18:11:04.238", "event": "statement_completed", - "stepId": "assert_candidate_relation_tbl__order_report__20261114T095312Z_afe637", + "stepId": "assert_candidate_relation_tbl__order_report__20261114T181104Z_15eadd", "phase": "preflight", "displayName": null, "elapsedMs": 3, @@ -1484,21 +1484,21 @@ }, { "sequence": 8, - "emittedAt": "2026-11-14 10:03:41.745", + "emittedAt": "2026-11-14 18:11:04.241", "event": "statement_started", - "stepId": "assert_candidate_relation_mv__order_report__20261114T095312Z_afe637", + "stepId": "assert_candidate_relation_mv__order_report__20261114T181104Z_15eadd", "phase": "preflight", "displayName": null, "intent": "assertion", - "queryId": "7be2336e-9b5e-4801-b3bb-12be39ccab08", + "queryId": "3eb698ce-2342-4ea6-a64d-9e1e6c14a5dd", "replayOffsetProgress": null, "statementSequence": 4 }, { "sequence": 9, - "emittedAt": "2026-11-14 10:03:41.747", + "emittedAt": "2026-11-14 18:11:04.247", "event": "statement_completed", - "stepId": "assert_candidate_relation_mv__order_report__20261114T095312Z_afe637", + "stepId": "assert_candidate_relation_mv__order_report__20261114T181104Z_15eadd", "phase": "preflight", "displayName": null, "elapsedMs": 3, @@ -1509,21 +1509,21 @@ }, { "sequence": 10, - "emittedAt": "2026-11-14 10:03:41.750", + "emittedAt": "2026-11-14 18:11:04.250", "event": "statement_started", - "stepId": "assert_candidate_relation_tbl__large_orders__20261114T095312Z_afe637", + "stepId": "assert_candidate_relation_tbl__large_orders__20261114T181104Z_15eadd", "phase": "preflight", "displayName": null, "intent": "assertion", - "queryId": "9b031fe4-363c-4312-b650-d31b9fe67f27", + "queryId": "8448ced3-c081-4cdf-94bd-4528e922217c", "replayOffsetProgress": null, "statementSequence": 5 }, { "sequence": 11, - "emittedAt": "2026-11-14 10:03:41.762", + "emittedAt": "2026-11-14 18:11:04.256", "event": "statement_completed", - "stepId": "assert_candidate_relation_tbl__large_orders__20261114T095312Z_afe637", + "stepId": "assert_candidate_relation_tbl__large_orders__20261114T181104Z_15eadd", "phase": "preflight", "displayName": null, "elapsedMs": 3, @@ -1534,21 +1534,21 @@ }, { "sequence": 12, - "emittedAt": "2026-11-14 10:03:41.766", + "emittedAt": "2026-11-14 18:11:04.259", "event": "statement_started", - "stepId": "assert_candidate_relation_mv__large_orders__20261114T095312Z_afe637", + "stepId": "assert_candidate_relation_mv__large_orders__20261114T181104Z_15eadd", "phase": "preflight", "displayName": null, "intent": "assertion", - "queryId": "e8a5d617-e95c-46af-aa87-200236890482", + "queryId": "69f34310-f6ca-4ce4-a805-d4a4204cefdc", "replayOffsetProgress": null, "statementSequence": 6 }, { "sequence": 13, - "emittedAt": "2026-11-14 10:03:41.769", + "emittedAt": "2026-11-14 18:11:04.264", "event": "statement_completed", - "stepId": "assert_candidate_relation_mv__large_orders__20261114T095312Z_afe637", + "stepId": "assert_candidate_relation_mv__large_orders__20261114T181104Z_15eadd", "phase": "preflight", "displayName": null, "elapsedMs": 3, @@ -1559,19 +1559,19 @@ }, { "sequence": 14, - "emittedAt": "2026-11-14 10:03:41.772", + "emittedAt": "2026-11-14 18:11:04.267", "event": "statement_started", "stepId": "prepare_target_database", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "fce5c36b-67d2-443e-9cf1-1e7bfb9b916e", + "queryId": "184906d7-ba6e-431a-a8aa-aff318bf9b97", "replayOffsetProgress": null, "statementSequence": 7 }, { "sequence": 15, - "emittedAt": "2026-11-14 10:03:41.779", + "emittedAt": "2026-11-14 18:11:04.271", "event": "statement_completed", "stepId": "prepare_target_database", "phase": "preparation", @@ -1584,24 +1584,24 @@ }, { "sequence": 16, - "emittedAt": "2026-11-14 10:03:41.782", + "emittedAt": "2026-11-14 18:11:04.274", "event": "statement_started", "stepId": "prepare_metadata_1", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "c640c878-683d-48f1-bfc2-3e3c144e470f", + "queryId": "8bdf2b25-3308-446f-841e-aa6bdc3c0fdb", "replayOffsetProgress": null, "statementSequence": 8 }, { "sequence": 17, - "emittedAt": "2026-11-14 10:03:41.786", + "emittedAt": "2026-11-14 18:11:04.277", "event": "statement_completed", "stepId": "prepare_metadata_1", "phase": "preparation", "displayName": null, - "elapsedMs": 1, + "elapsedMs": 0, "errorMessage": null, "intent": "mutation", "statementSequence": 8, @@ -1609,19 +1609,19 @@ }, { "sequence": 18, - "emittedAt": "2026-11-14 10:03:41.790", + "emittedAt": "2026-11-14 18:11:04.280", "event": "statement_started", "stepId": "prepare_metadata_2", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "4040e53b-5a6a-4395-81d0-c230f562cb45", + "queryId": "c8341b64-0780-48b0-a87a-d82992cc7eaf", "replayOffsetProgress": null, "statementSequence": 9 }, { "sequence": 19, - "emittedAt": "2026-11-14 10:03:41.794", + "emittedAt": "2026-11-14 18:11:04.284", "event": "statement_completed", "stepId": "prepare_metadata_2", "phase": "preparation", @@ -1634,19 +1634,19 @@ }, { "sequence": 20, - "emittedAt": "2026-11-14 10:03:41.796", + "emittedAt": "2026-11-14 18:11:04.287", "event": "statement_started", "stepId": "prepare_metadata_3", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "fddbf3ec-b9d8-4b93-8f14-b288b63d8965", + "queryId": "3b294f8c-f760-4da6-87f1-db2d985e2c5e", "replayOffsetProgress": null, "statementSequence": 10 }, { "sequence": 21, - "emittedAt": "2026-11-14 10:03:41.801", + "emittedAt": "2026-11-14 18:11:04.292", "event": "statement_completed", "stepId": "prepare_metadata_3", "phase": "preparation", @@ -1659,19 +1659,19 @@ }, { "sequence": 22, - "emittedAt": "2026-11-14 10:03:41.803", + "emittedAt": "2026-11-14 18:11:04.294", "event": "statement_started", "stepId": "prepare_metadata_4", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "bbcb3eb9-62f3-4e33-aa56-347327e245a7", + "queryId": "5e4b90c7-8668-4902-9c98-a45b901a1dba", "replayOffsetProgress": null, "statementSequence": 11 }, { "sequence": 23, - "emittedAt": "2026-11-14 10:03:41.807", + "emittedAt": "2026-11-14 18:11:04.298", "event": "statement_completed", "stepId": "prepare_metadata_4", "phase": "preparation", @@ -1684,19 +1684,19 @@ }, { "sequence": 24, - "emittedAt": "2026-11-14 10:03:41.810", + "emittedAt": "2026-11-14 18:11:04.300", "event": "statement_started", "stepId": "prepare_metadata_5", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "ad4eb1ed-719c-4dcb-9f08-64fa7c7e65d7", + "queryId": "798e1ded-af70-4b03-91dc-eb0fb2c61ddf", "replayOffsetProgress": null, "statementSequence": 12 }, { "sequence": 25, - "emittedAt": "2026-11-14 10:03:41.813", + "emittedAt": "2026-11-14 18:11:04.305", "event": "statement_completed", "stepId": "prepare_metadata_5", "phase": "preparation", @@ -1709,19 +1709,19 @@ }, { "sequence": 26, - "emittedAt": "2026-11-14 10:03:41.816", + "emittedAt": "2026-11-14 18:11:04.307", "event": "statement_started", "stepId": "prepare_metadata_6", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "7d15408c-ecc2-4ae4-9a51-a753da620d5c", + "queryId": "f65949b6-c33c-44b5-ba43-0a8cc98ca1c4", "replayOffsetProgress": null, "statementSequence": 13 }, { "sequence": 27, - "emittedAt": "2026-11-14 10:03:41.820", + "emittedAt": "2026-11-14 18:11:04.311", "event": "statement_completed", "stepId": "prepare_metadata_6", "phase": "preparation", @@ -1734,19 +1734,19 @@ }, { "sequence": 28, - "emittedAt": "2026-11-14 10:03:41.824", + "emittedAt": "2026-11-14 18:11:04.314", "event": "statement_started", "stepId": "prepare_metadata_7", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "39823c5d-866a-4298-acb9-087fe9ef68d3", + "queryId": "4282d3d4-beab-4b05-abb0-b6492b83fe52", "replayOffsetProgress": null, "statementSequence": 14 }, { "sequence": 29, - "emittedAt": "2026-11-14 10:03:41.829", + "emittedAt": "2026-11-14 18:11:04.318", "event": "statement_completed", "stepId": "prepare_metadata_7", "phase": "preparation", @@ -1759,19 +1759,19 @@ }, { "sequence": 30, - "emittedAt": "2026-11-14 10:03:41.835", + "emittedAt": "2026-11-14 18:11:04.320", "event": "statement_started", "stepId": "prepare_metadata_8", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "c522c823-2fbd-43bc-a3a9-65b2e7414e31", + "queryId": "644fcdcb-06e6-4df4-84b9-e82aa7f1aeb9", "replayOffsetProgress": null, "statementSequence": 15 }, { "sequence": 31, - "emittedAt": "2026-11-14 10:03:41.840", + "emittedAt": "2026-11-14 18:11:04.324", "event": "statement_completed", "stepId": "prepare_metadata_8", "phase": "preparation", @@ -1784,19 +1784,19 @@ }, { "sequence": 32, - "emittedAt": "2026-11-14 10:03:41.843", + "emittedAt": "2026-11-14 18:11:04.327", "event": "statement_started", "stepId": "prepare_metadata_9", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "c41a4111-9940-4742-9ddb-2fa582eb2371", + "queryId": "8ce47618-5243-4b08-b6ce-990a65d76b4d", "replayOffsetProgress": null, "statementSequence": 16 }, { "sequence": 33, - "emittedAt": "2026-11-14 10:03:41.847", + "emittedAt": "2026-11-14 18:11:04.331", "event": "statement_completed", "stepId": "prepare_metadata_9", "phase": "preparation", @@ -1809,24 +1809,24 @@ }, { "sequence": 34, - "emittedAt": "2026-11-14 10:03:41.850", + "emittedAt": "2026-11-14 18:11:04.334", "event": "statement_started", "stepId": "prepare_metadata_10", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "dc4ce977-2a1b-47a3-8f4e-bac437fc855b", + "queryId": "99dc8d90-0ce7-42de-80f7-094e56f4df65", "replayOffsetProgress": null, "statementSequence": 17 }, { "sequence": 35, - "emittedAt": "2026-11-14 10:03:41.854", + "emittedAt": "2026-11-14 18:11:04.338", "event": "statement_completed", "stepId": "prepare_metadata_10", "phase": "preparation", "displayName": null, - "elapsedMs": 2, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 17, @@ -1834,19 +1834,19 @@ }, { "sequence": 36, - "emittedAt": "2026-11-14 10:03:41.856", + "emittedAt": "2026-11-14 18:11:04.340", "event": "statement_started", "stepId": "prepare_metadata_11", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "894e805e-8250-4837-b720-94fa8f1bd3b0", + "queryId": "a7ec49bb-6c41-4bc3-88f6-13247b3e57c3", "replayOffsetProgress": null, "statementSequence": 18 }, { "sequence": 37, - "emittedAt": "2026-11-14 10:03:41.860", + "emittedAt": "2026-11-14 18:11:04.344", "event": "statement_completed", "stepId": "prepare_metadata_11", "phase": "preparation", @@ -1859,19 +1859,19 @@ }, { "sequence": 38, - "emittedAt": "2026-11-14 10:03:41.863", + "emittedAt": "2026-11-14 18:11:04.347", "event": "statement_started", "stepId": "prepare_metadata_12", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "bb14c432-1d1a-4d1a-b359-e7cb03429ff7", + "queryId": "4aa79992-8b42-42e0-bc01-787c4f67cbbe", "replayOffsetProgress": null, "statementSequence": 19 }, { "sequence": 39, - "emittedAt": "2026-11-14 10:03:41.867", + "emittedAt": "2026-11-14 18:11:04.351", "event": "statement_completed", "stepId": "prepare_metadata_12", "phase": "preparation", @@ -1884,19 +1884,19 @@ }, { "sequence": 40, - "emittedAt": "2026-11-14 10:03:41.874", + "emittedAt": "2026-11-14 18:11:04.354", "event": "statement_started", "stepId": "prepare_metadata_13", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "2853bb3d-f0c6-45f3-b4f2-cd21484d6cf2", + "queryId": "2b13ad4a-e773-4085-b62b-3f999768b124", "replayOffsetProgress": null, "statementSequence": 20 }, { "sequence": 41, - "emittedAt": "2026-11-14 10:03:41.878", + "emittedAt": "2026-11-14 18:11:04.357", "event": "statement_completed", "stepId": "prepare_metadata_13", "phase": "preparation", @@ -1909,19 +1909,19 @@ }, { "sequence": 42, - "emittedAt": "2026-11-14 10:03:41.880", + "emittedAt": "2026-11-14 18:11:04.360", "event": "statement_started", "stepId": "prepare_metadata_14", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "c73cdbcb-a5e5-4f19-aa5c-dd7c0ec2ec1b", + "queryId": "ae4b0866-0228-442d-9d3f-9b82798a0aa8", "replayOffsetProgress": null, "statementSequence": 21 }, { "sequence": 43, - "emittedAt": "2026-11-14 10:03:41.884", + "emittedAt": "2026-11-14 18:11:04.364", "event": "statement_completed", "stepId": "prepare_metadata_14", "phase": "preparation", @@ -1934,19 +1934,19 @@ }, { "sequence": 44, - "emittedAt": "2026-11-14 10:03:41.887", + "emittedAt": "2026-11-14 18:11:04.366", "event": "statement_started", "stepId": "prepare_metadata_15", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "06f5883a-b748-45be-8be6-1f8393b17774", + "queryId": "ce04b625-dd0a-4143-a626-6215ff626e42", "replayOffsetProgress": null, "statementSequence": 22 }, { "sequence": 45, - "emittedAt": "2026-11-14 10:03:41.891", + "emittedAt": "2026-11-14 18:11:04.370", "event": "statement_completed", "stepId": "prepare_metadata_15", "phase": "preparation", @@ -1959,19 +1959,19 @@ }, { "sequence": 46, - "emittedAt": "2026-11-14 10:03:41.894", + "emittedAt": "2026-11-14 18:11:04.373", "event": "statement_started", "stepId": "prepare_metadata_16", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "70b396fa-0ba0-41cf-8dc0-e39f2916d814", + "queryId": "52682234-bc43-4e0a-aaa6-020fa82387fa", "replayOffsetProgress": null, "statementSequence": 23 }, { "sequence": 47, - "emittedAt": "2026-11-14 10:03:41.898", + "emittedAt": "2026-11-14 18:11:04.377", "event": "statement_completed", "stepId": "prepare_metadata_16", "phase": "preparation", @@ -1984,19 +1984,19 @@ }, { "sequence": 48, - "emittedAt": "2026-11-14 10:03:41.900", + "emittedAt": "2026-11-14 18:11:04.379", "event": "statement_started", "stepId": "prepare_metadata_17", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "0b5103db-0cb2-4480-8be1-f02fec38b419", + "queryId": "9613fb9f-3ea3-4d49-9fe6-67049a490504", "replayOffsetProgress": null, "statementSequence": 24 }, { "sequence": 49, - "emittedAt": "2026-11-14 10:03:41.904", + "emittedAt": "2026-11-14 18:11:04.383", "event": "statement_completed", "stepId": "prepare_metadata_17", "phase": "preparation", @@ -2009,19 +2009,19 @@ }, { "sequence": 50, - "emittedAt": "2026-11-14 10:03:41.907", + "emittedAt": "2026-11-14 18:11:04.385", "event": "statement_started", "stepId": "prepare_metadata_18", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "e73f7afd-4fb2-4249-87f7-3fd48504c699", + "queryId": "07941172-f6f2-42c7-b8f2-2a300cd95a9b", "replayOffsetProgress": null, "statementSequence": 25 }, { "sequence": 51, - "emittedAt": "2026-11-14 10:03:41.912", + "emittedAt": "2026-11-14 18:11:04.389", "event": "statement_completed", "stepId": "prepare_metadata_18", "phase": "preparation", @@ -2034,19 +2034,19 @@ }, { "sequence": 52, - "emittedAt": "2026-11-14 10:03:41.917", + "emittedAt": "2026-11-14 18:11:04.392", "event": "statement_started", "stepId": "prepare_metadata_19", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "e61fbd6c-4e39-4f5b-9521-998fd2e25003", + "queryId": "2af4ea9d-e603-4c52-8dd9-9b54cbc016b8", "replayOffsetProgress": null, "statementSequence": 26 }, { "sequence": 53, - "emittedAt": "2026-11-14 10:03:41.921", + "emittedAt": "2026-11-14 18:11:04.395", "event": "statement_completed", "stepId": "prepare_metadata_19", "phase": "preparation", @@ -2059,24 +2059,24 @@ }, { "sequence": 54, - "emittedAt": "2026-11-14 10:03:41.924", + "emittedAt": "2026-11-14 18:11:04.398", "event": "statement_started", "stepId": "prepare_metadata_20", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "cafd2038-f51a-4441-8e4a-8484ea7f799d", + "queryId": "d1b53e44-be6f-437b-8792-8c0168cba601", "replayOffsetProgress": null, "statementSequence": 27 }, { "sequence": 55, - "emittedAt": "2026-11-14 10:03:41.930", + "emittedAt": "2026-11-14 18:11:04.401", "event": "statement_completed", "stepId": "prepare_metadata_20", "phase": "preparation", "displayName": null, - "elapsedMs": 1, + "elapsedMs": 0, "errorMessage": null, "intent": "mutation", "statementSequence": 27, @@ -2084,19 +2084,19 @@ }, { "sequence": 56, - "emittedAt": "2026-11-14 10:03:41.945", + "emittedAt": "2026-11-14 18:11:04.404", "event": "statement_started", "stepId": "prepare_metadata_21", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "b44c8914-04fb-4948-9c76-34d46df9a695", + "queryId": "5747cca5-72d9-4dfc-bdf5-99d9849db17b", "replayOffsetProgress": null, "statementSequence": 28 }, { "sequence": 57, - "emittedAt": "2026-11-14 10:03:41.974", + "emittedAt": "2026-11-14 18:11:04.411", "event": "statement_completed", "stepId": "prepare_metadata_21", "phase": "preparation", @@ -2109,24 +2109,24 @@ }, { "sequence": 58, - "emittedAt": "2026-11-14 10:03:41.980", + "emittedAt": "2026-11-14 18:11:04.414", "event": "statement_started", "stepId": "prepare_metadata_22", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "c70e68bf-f342-44ca-824f-703655eb8696", + "queryId": "3099ee14-8349-467a-a098-8b2786b625ff", "replayOffsetProgress": null, "statementSequence": 29 }, { "sequence": 59, - "emittedAt": "2026-11-14 10:03:41.994", + "emittedAt": "2026-11-14 18:11:04.420", "event": "statement_completed", "stepId": "prepare_metadata_22", "phase": "preparation", "displayName": null, - "elapsedMs": 5, + "elapsedMs": 3, "errorMessage": null, "intent": "mutation", "statementSequence": 29, @@ -2134,24 +2134,24 @@ }, { "sequence": 60, - "emittedAt": "2026-11-14 10:03:42.008", + "emittedAt": "2026-11-14 18:11:04.422", "event": "statement_started", "stepId": "persist_candidate_metadata_1", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "1524e6a8-8c85-43c4-aa5d-671a75ad5a6d", + "queryId": "1f118fa7-6112-440f-b09b-c4b047679e25", "replayOffsetProgress": null, "statementSequence": 30 }, { "sequence": 61, - "emittedAt": "2026-11-14 10:03:42.026", + "emittedAt": "2026-11-14 18:11:04.428", "event": "statement_completed", "stepId": "persist_candidate_metadata_1", "phase": "preparation", "displayName": null, - "elapsedMs": 3, + "elapsedMs": 2, "errorMessage": null, "intent": "mutation", "statementSequence": 30, @@ -2159,21 +2159,21 @@ }, { "sequence": 62, - "emittedAt": "2026-11-14 10:03:42.031", + "emittedAt": "2026-11-14 18:11:04.430", "event": "statement_started", - "stepId": "realize_tbl__order_report__20261114T095312Z_afe637", + "stepId": "realize_tbl__order_report__20261114T181104Z_15eadd", "phase": "realization", "displayName": null, "intent": "mutation", - "queryId": "3c335f65-b6e9-4492-a2dc-a6a09cbf7867", + "queryId": "47975b11-ab9b-4be9-8064-fe8acc3455c6", "replayOffsetProgress": null, "statementSequence": 31 }, { "sequence": 63, - "emittedAt": "2026-11-14 10:03:42.050", + "emittedAt": "2026-11-14 18:11:04.437", "event": "statement_completed", - "stepId": "realize_tbl__order_report__20261114T095312Z_afe637", + "stepId": "realize_tbl__order_report__20261114T181104Z_15eadd", "phase": "realization", "displayName": null, "elapsedMs": 3, @@ -2184,21 +2184,21 @@ }, { "sequence": 64, - "emittedAt": "2026-11-14 10:03:42.053", + "emittedAt": "2026-11-14 18:11:04.440", "event": "statement_started", - "stepId": "realize_tbl__large_orders__20261114T095312Z_afe637", + "stepId": "realize_tbl__large_orders__20261114T181104Z_15eadd", "phase": "realization", "displayName": null, "intent": "mutation", - "queryId": "3111c988-feff-44ae-b519-2db6798a1e44", + "queryId": "fa6c83b6-9cf5-4009-9d8a-40e73534374c", "replayOffsetProgress": null, "statementSequence": 32 }, { "sequence": 65, - "emittedAt": "2026-11-14 10:03:42.067", + "emittedAt": "2026-11-14 18:11:04.448", "event": "statement_completed", - "stepId": "realize_tbl__large_orders__20261114T095312Z_afe637", + "stepId": "realize_tbl__large_orders__20261114T181104Z_15eadd", "phase": "realization", "displayName": null, "elapsedMs": 5, @@ -2209,24 +2209,24 @@ }, { "sequence": 66, - "emittedAt": "2026-11-14 10:03:42.071", + "emittedAt": "2026-11-14 18:11:04.452", "event": "statement_started", - "stepId": "realize_mv__large_orders__20261114T095312Z_afe637", + "stepId": "realize_mv__large_orders__20261114T181104Z_15eadd", "phase": "realization", "displayName": null, "intent": "mutation", - "queryId": "6d7f6a07-1083-43f0-ab14-f45a838d673a", + "queryId": "168e297c-f98a-4db9-80d8-733e0b920d37", "replayOffsetProgress": null, "statementSequence": 33 }, { "sequence": 67, - "emittedAt": "2026-11-14 10:03:42.082", + "emittedAt": "2026-11-14 18:11:04.459", "event": "statement_completed", - "stepId": "realize_mv__large_orders__20261114T095312Z_afe637", + "stepId": "realize_mv__large_orders__20261114T181104Z_15eadd", "phase": "realization", "displayName": null, - "elapsedMs": 3, + "elapsedMs": 4, "errorMessage": null, "intent": "mutation", "statementSequence": 33, @@ -2234,21 +2234,21 @@ }, { "sequence": 68, - "emittedAt": "2026-11-14 10:03:42.085", + "emittedAt": "2026-11-14 18:11:04.462", "event": "statement_started", - "stepId": "realize_mv__order_report__20261114T095312Z_afe637", + "stepId": "realize_mv__order_report__20261114T181104Z_15eadd", "phase": "realization", "displayName": null, "intent": "mutation", - "queryId": "10bf018a-453f-4f3e-956d-e5a72bab7f6e", + "queryId": "4b6f41c3-be4c-425c-b5ce-20f989ba095d", "replayOffsetProgress": null, "statementSequence": 34 }, { "sequence": 69, - "emittedAt": "2026-11-14 10:03:42.092", + "emittedAt": "2026-11-14 18:11:04.468", "event": "statement_completed", - "stepId": "realize_mv__order_report__20261114T095312Z_afe637", + "stepId": "realize_mv__order_report__20261114T181104Z_15eadd", "phase": "realization", "displayName": null, "elapsedMs": 3, @@ -2259,19 +2259,19 @@ }, { "sequence": 70, - "emittedAt": "2026-11-14 10:03:42.095", + "emittedAt": "2026-11-14 18:11:04.473", "event": "statement_started", "stepId": "wait_for_virtual_live_stabilization", "phase": "stabilization", "displayName": null, "intent": "wait", - "queryId": "3712a179-521b-4714-97be-bfe29d27e648", + "queryId": "580400fe-091e-40d5-be93-c2bb666f9e3c", "replayOffsetProgress": null, "statementSequence": 35 }, { "sequence": 71, - "emittedAt": "2026-11-14 10:03:42.101", + "emittedAt": "2026-11-14 18:11:09.481", "event": "statement_completed", "stepId": "wait_for_virtual_live_stabilization", "phase": "stabilization", @@ -2284,24 +2284,24 @@ }, { "sequence": 72, - "emittedAt": "2026-11-14 10:03:42.103", + "emittedAt": "2026-11-14 18:11:09.485", "event": "statement_started", "stepId": "record_population_started", "phase": "boundary", "displayName": null, "intent": "mutation", - "queryId": "0a3e1dc1-aa54-4215-8b7c-06e2740a632a", + "queryId": "103cd33d-7370-4c32-8075-130e6ec402a1", "replayOffsetProgress": null, "statementSequence": 36 }, { "sequence": 73, - "emittedAt": "2026-11-14 10:03:42.121", + "emittedAt": "2026-11-14 18:11:09.495", "event": "statement_completed", "stepId": "record_population_started", "phase": "boundary", "displayName": null, - "elapsedMs": 4, + "elapsedMs": 5, "errorMessage": null, "intent": "mutation", "statementSequence": 36, @@ -2309,24 +2309,24 @@ }, { "sequence": 74, - "emittedAt": "2026-11-14 10:03:42.124", + "emittedAt": "2026-11-14 18:11:09.498", "event": "statement_started", "stepId": "capture_boundary_time", "phase": "boundary", "displayName": null, "intent": "mutation", - "queryId": "91ffea7b-5c1a-480f-b28a-ebae0bc55071", + "queryId": "8cec5f09-6a49-4702-a521-e9526afe687e", "replayOffsetProgress": null, "statementSequence": 37 }, { "sequence": 75, - "emittedAt": "2026-11-14 10:03:42.133", + "emittedAt": "2026-11-14 18:11:09.507", "event": "statement_completed", "stepId": "capture_boundary_time", "phase": "boundary", "displayName": null, - "elapsedMs": 6, + "elapsedMs": 5, "errorMessage": null, "intent": "mutation", "statementSequence": 37, @@ -2334,24 +2334,24 @@ }, { "sequence": 76, - "emittedAt": "2026-11-14 10:03:42.136", + "emittedAt": "2026-11-14 18:11:09.511", "event": "statement_started", "stepId": "capture_watermark_tbl__order_report", "phase": "replay", "displayName": null, "intent": "mutation", - "queryId": "42ed2a30-d7f6-4e43-a370-1539a218166f", + "queryId": "c0d9440b-85d6-4348-99a9-1da37d105a2b", "replayOffsetProgress": null, "statementSequence": 38 }, { "sequence": 77, - "emittedAt": "2026-11-14 10:03:42.162", + "emittedAt": "2026-11-14 18:11:09.528", "event": "statement_completed", "stepId": "capture_watermark_tbl__order_report", "phase": "replay", "displayName": null, - "elapsedMs": 9, + "elapsedMs": 13, "errorMessage": null, "intent": "mutation", "statementSequence": 38, @@ -2359,19 +2359,19 @@ }, { "sequence": 78, - "emittedAt": "2026-11-14 10:03:42.165", + "emittedAt": "2026-11-14 18:11:09.531", "event": "statement_started", "stepId": "assert_qualifying_input_tbl__order_report", "phase": "replay", "displayName": null, "intent": "assertion", - "queryId": "0893873e-b2d4-441d-9acd-cb36161b9ddf", + "queryId": "1a4db672-1b17-4b19-b820-bf4a6c13e273", "replayOffsetProgress": null, "statementSequence": 39 }, { "sequence": 79, - "emittedAt": "2026-11-14 10:03:42.168", + "emittedAt": "2026-11-14 18:11:09.545", "event": "statement_completed", "stepId": "assert_qualifying_input_tbl__order_report", "phase": "replay", @@ -2384,19 +2384,19 @@ }, { "sequence": 80, - "emittedAt": "2026-11-14 10:03:42.175", + "emittedAt": "2026-11-14 18:11:09.548", "event": "statement_started", "stepId": "replay_tbl__order_report", "phase": "replay", "displayName": null, "intent": "mutation", - "queryId": "8a961784-0335-4dad-92cb-07cb58f0f164", + "queryId": "3e6a5353-65cd-4416-acfd-e97c6c3c73d6", "replayOffsetProgress": null, "statementSequence": 40 }, { "sequence": 81, - "emittedAt": "2026-11-14 10:03:42.203", + "emittedAt": "2026-11-14 18:11:09.564", "event": "statement_completed", "stepId": "replay_tbl__order_report", "phase": "replay", @@ -2409,19 +2409,19 @@ }, { "sequence": 82, - "emittedAt": "2026-11-14 10:03:42.207", + "emittedAt": "2026-11-14 18:11:09.568", "event": "statement_started", "stepId": "read_readiness_tbl__order_report", "phase": "audit", "displayName": null, "intent": "query", - "queryId": "6fb15ed7-f422-4929-8b9b-9dd15ca71b9c", + "queryId": "3bcc56bc-6246-47f5-8bed-08ce5a69e58f", "replayOffsetProgress": null, "statementSequence": 41 }, { "sequence": 83, - "emittedAt": "2026-11-14 10:03:42.212", + "emittedAt": "2026-11-14 18:11:09.573", "event": "statement_completed", "stepId": "read_readiness_tbl__order_report", "phase": "audit", @@ -2434,24 +2434,24 @@ }, { "sequence": 84, - "emittedAt": "2026-11-14 10:03:42.217", + "emittedAt": "2026-11-14 18:11:09.576", "event": "statement_started", "stepId": "assert_readiness_tbl__order_report", "phase": "audit", "displayName": null, "intent": "assertion", - "queryId": "011fa931-3a7b-4e3b-b8ae-1766396ab823", + "queryId": "72daed55-a46d-41f9-856a-ce6fba994f76", "replayOffsetProgress": null, "statementSequence": 42 }, { "sequence": 85, - "emittedAt": "2026-11-14 10:03:42.223", + "emittedAt": "2026-11-14 18:11:09.584", "event": "statement_completed", "stepId": "assert_readiness_tbl__order_report", "phase": "audit", "displayName": null, - "elapsedMs": 3, + "elapsedMs": 4, "errorMessage": null, "intent": "assertion", "statementSequence": 42, @@ -2459,19 +2459,19 @@ }, { "sequence": 86, - "emittedAt": "2026-11-14 10:03:42.226", + "emittedAt": "2026-11-14 18:11:09.586", "event": "statement_started", "stepId": "read_boundary_time", "phase": "audit", "displayName": null, "intent": "query", - "queryId": "21cd8541-d22b-4213-9995-9961c1c946da", + "queryId": "f26e64e5-9f32-46d2-b5e5-a40a63cd24a6", "replayOffsetProgress": null, "statementSequence": 43 }, { "sequence": 87, - "emittedAt": "2026-11-14 10:03:42.229", + "emittedAt": "2026-11-14 18:11:09.594", "event": "statement_completed", "stepId": "read_boundary_time", "phase": "audit", @@ -2484,19 +2484,19 @@ }, { "sequence": 88, - "emittedAt": "2026-11-14 10:03:42.232", + "emittedAt": "2026-11-14 18:11:09.597", "event": "statement_started", "stepId": "record_population_completed", "phase": "finalization", "displayName": null, "intent": "mutation", - "queryId": "8fd6ec00-8194-4d79-b827-856a8dec703a", + "queryId": "ef571690-c30f-408e-a0dc-111b21627082", "replayOffsetProgress": null, "statementSequence": 44 }, { "sequence": 89, - "emittedAt": "2026-11-14 10:03:42.249", + "emittedAt": "2026-11-14 18:11:09.608", "event": "statement_completed", "stepId": "record_population_completed", "phase": "finalization", @@ -2509,7 +2509,7 @@ }, { "sequence": 90, - "emittedAt": "2026-11-14 10:03:42.292", + "emittedAt": "2026-11-14 18:11:09.664", "event": "run_completed", "stepId": null, "phase": null, @@ -2521,635 +2521,635 @@ ], "hasMore": false, "status": "succeeded", - "lastSignalAt": "2026-11-14 10:03:42.292", + "lastSignalAt": "2026-11-14 18:11:09.664", "lastSignalAgeSeconds": 0, "statementProgress": null } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/44": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/44": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 44, "stepId": "record_population_completed", "phase": "finalization", "intent": "mutation", - "sql": "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '20261114T095312Z_afe637', 'completed', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '20261114T095312Z_afe637' AND stage = 'completed');", - "sqlSha256": "ba9968390671584fb30fd0a57bdc0dd30762de364562ef706bb456555a9596ba", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '20261114T181104Z_15eadd', 'completed', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '20261114T181104Z_15eadd' AND stage = 'completed');", + "sqlSha256": "6106c6fd47d7113adf904fe9f4b4ab51d86f81aacdd869c20d8a0a98f4f72117", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/43": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/43": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 43, "stepId": "read_boundary_time", "phase": "audit", "intent": "query", - "sql": "SELECT toString(any(boundary_time), 'UTC') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T095312Z_afe637';", - "sqlSha256": "b06afd1f665301962fb83ede6f0c13b9847b6953195fd8a8c2bf5cad390dbc27", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "SELECT toString(any(boundary_time), 'UTC') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T181104Z_15eadd';", + "sqlSha256": "a61fb32ee2d4e6c956a2f7983c3e0e6dfc3ece8971a585b5e8a7b0c3635d96a5", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/42": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/42": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 42, "stepId": "assert_readiness_tbl__order_report", "phase": "audit", "intent": "assertion", - "sql": "SELECT throwIf(count() != 1, 'Virtual candidate target is not ready') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'tbl__order_report__20261114T095312Z_afe637';", - "sqlSha256": "93b17644ce9639247ac129d80d830f67dbfa554a9027723b53febdeb629a4892", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "SELECT throwIf(count() != 1, 'Virtual candidate target is not ready') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'tbl__order_report__20261114T181104Z_15eadd';", + "sqlSha256": "6cbbbc147a4a932902e98c092b966221df3e6a9ff607f095ab3a0d0201dbfc23", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/41": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/41": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 41, "stepId": "read_readiness_tbl__order_report", "phase": "audit", "intent": "query", - "sql": "SELECT count() AS staged_row_count, 'tbl__order_report__20261114T095312Z_afe637' AS staged_relation_name FROM sqltide_playground.tbl__order_report__20261114T095312Z_afe637;", - "sqlSha256": "b0e53b0e47c4ad5a9b423fb4cf12095da4e6876fe3bb416aa114f1158eaab098", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "SELECT count() AS staged_row_count, 'tbl__order_report__20261114T181104Z_15eadd' AS staged_relation_name FROM sqltide_playground.tbl__order_report__20261114T181104Z_15eadd;", + "sqlSha256": "ab42b8be8ffe6c489f224425045acf5e2c376377ac354f07e0eac6bb1ca4d59e", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/40": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/40": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 40, "stepId": "replay_tbl__order_report", "phase": "replay", "intent": "mutation", - "sql": "INSERT INTO sqltide_playground.tbl__order_report__20261114T095312Z_afe637\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = '20261114T095312Z_afe637' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = 'completed';", - "sqlSha256": "c23dcdc4f5c8512bb5154e2dc12c56bb171ef72aaed866d6e3174e0e4a55cdf7", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "INSERT INTO sqltide_playground.tbl__order_report__20261114T181104Z_15eadd\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = '20261114T181104Z_15eadd' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source\nWHERE status = 'completed';", + "sqlSha256": "80a5b5d00c97960e7c2da22020179764acbf53fb61c44c2a4ed3abf556ca4c95", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/39": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/39": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 39, "stepId": "assert_qualifying_input_tbl__order_report", "phase": "replay", "intent": "assertion", - "sql": "SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, 'Replay root tbl__order_report has rows but no qualifying offsets cutoff') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = '20261114T095312Z_afe637' AND watermark.root_object_name = 'tbl__order_report' AND watermark.boundary_kind = 'offsets' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);", - "sqlSha256": "f8c0f0b9d47dd54f98edcf32b101e884cb3d10664ca42548097b74fb557b7ca0", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, 'Replay root tbl__order_report has rows but no qualifying offsets cutoff') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = '20261114T181104Z_15eadd' AND watermark.root_object_name = 'tbl__order_report' AND watermark.boundary_kind = 'offsets' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);", + "sqlSha256": "ad4016be5d2eb578d81f722ac413b0a8a9ce83d3a4daa6ace98e067615a906b3", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/38": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/38": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 38, "stepId": "capture_watermark_tbl__order_report", "phase": "replay", "intent": "mutation", - "sql": "INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT '20261114T095312Z_afe637', 'sqltide_playground', 'table', 'tbl__order_report', 'sqltide_playground', 'table', 'playground_orders', 'offsets', 'integer', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, 'UTC')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T095312Z_afe637')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = '20261114T095312Z_afe637' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets');", - "sqlSha256": "63f4c9990e03065a3eb75b59157b0a3e9c1b242da96b2fe1506f8281c70276e5", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT '20261114T181104Z_15eadd', 'sqltide_playground', 'table', 'tbl__order_report', 'sqltide_playground', 'table', 'playground_orders', 'offsets', 'integer', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, 'UTC')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T181104Z_15eadd')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = '20261114T181104Z_15eadd' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets');", + "sqlSha256": "92afa2b19b3a586915decc02e6149973fa5e30bcadc5e4edd44278df6b115f15", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/37": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/37": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 37, "stepId": "capture_boundary_time", "phase": "boundary", "intent": "mutation", - "sql": "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '20261114T095312Z_afe637', 'c6624385daba8990cce582b04061c75498c0ba8e93ee89c040c70a043fdf0631', 'offsets', now64(3, 'UTC'), toDateTime64('2026-11-14 09:53:12.000', 3, 'UTC'), '0.69.1'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T095312Z_afe637');", - "sqlSha256": "47b8a2886cc9db729f72c3637e2ce3f33c4ddf0d2543e112e3c723455523a1ef", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '20261114T181104Z_15eadd', '64e39382ef5fc3e4684bcd1abdf46e1f001c24784970c2123f386a245a40a226', 'offsets', now64(3, 'UTC'), toDateTime64('2026-11-14 18:11:04.109', 3, 'UTC'), '0.70.1'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T181104Z_15eadd');", + "sqlSha256": "fdab1e3351946ce293b4a9cdf9f2014f27f72b0e11d980ba6f248067f2d686e9", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/36": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/36": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 36, "stepId": "record_population_started", "phase": "boundary", "intent": "mutation", - "sql": "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '20261114T095312Z_afe637', 'started', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '20261114T095312Z_afe637' AND stage = 'started');", - "sqlSha256": "8e9313a40d19f308ab9c2e2c937944a44ca6de6888c6cd3f51a8849702d7079d", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '20261114T181104Z_15eadd', 'started', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '20261114T181104Z_15eadd' AND stage = 'started');", + "sqlSha256": "86cb27c28f9bc955bb15bc0c93a6c11bc1a43dccb514f3896ea93712b1fe787a", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/35": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/35": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 35, "stepId": "wait_for_virtual_live_stabilization", "phase": "stabilization", "intent": "wait", "sql": "SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;", "sqlSha256": "9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/34": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/34": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 34, - "stepId": "realize_mv__order_report__20261114T095312Z_afe637", + "stepId": "realize_mv__order_report__20261114T181104Z_15eadd", "phase": "realization", "intent": "mutation", - "sql": "CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__20261114T095312Z_afe637\nTO sqltide_playground.tbl__order_report__20261114T095312Z_afe637 AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = 'completed';", - "sqlSha256": "0d28f4ae4053051c62cdb158f0b37a3e7dd3bebdd21fd24dd2cdc40fa4c68a0d", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__20261114T181104Z_15eadd\nTO sqltide_playground.tbl__order_report__20261114T181104Z_15eadd AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders\nWHERE status = 'completed';", + "sqlSha256": "d4fc0e7755a2ce08de60bdd8e27270fe6a64709bcf4d8a21f5aced90151f8a23", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/33": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/33": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 33, - "stepId": "realize_mv__large_orders__20261114T095312Z_afe637", + "stepId": "realize_mv__large_orders__20261114T181104Z_15eadd", "phase": "realization", "intent": "mutation", - "sql": "CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__20261114T095312Z_afe637\nTO sqltide_playground.tbl__large_orders__20261114T095312Z_afe637 AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__20261114T095312Z_afe637\nWHERE total_cents >= 1000;", - "sqlSha256": "8823ceec27564d911ad977b23e850af5c096c4ab66b5f6cdf888f41b6b9754ef", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__20261114T181104Z_15eadd\nTO sqltide_playground.tbl__large_orders__20261114T181104Z_15eadd AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__20261114T181104Z_15eadd\nWHERE total_cents >= 1000;", + "sqlSha256": "06d9b3a2ff849d36afdea90db928b0d49ef5c9e216b13da73647dd1361223d6d", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/32": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/32": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 32, - "stepId": "realize_tbl__large_orders__20261114T095312Z_afe637", + "stepId": "realize_tbl__large_orders__20261114T181104Z_15eadd", "phase": "realization", "intent": "mutation", - "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__20261114T095312Z_afe637 (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);", - "sqlSha256": "8d7a3cfa6559c65c66ec6a0fcb845bc9808daaa16987a064012ee14c9fee232d", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__20261114T181104Z_15eadd (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);", + "sqlSha256": "0b8eb64b50a6e52716f66bc193cdc71db438fa33788a9bf4da394da3d2f277be", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/31": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/31": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 31, - "stepId": "realize_tbl__order_report__20261114T095312Z_afe637", + "stepId": "realize_tbl__order_report__20261114T181104Z_15eadd", "phase": "realization", "intent": "mutation", - "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__20261114T095312Z_afe637 (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);", - "sqlSha256": "7ffb23c9ac868aa7451d9f9f16fa700c1ac655673ca7f6fe705ef69bb715b3ed", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__20261114T181104Z_15eadd (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);", + "sqlSha256": "a21f0cb89f6d4157c4abd0cb01dbfa5981c039c63469cdfb3ff8a81c2294b133", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/30": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/30": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 30, "stepId": "persist_candidate_metadata_1", "phase": "preparation", "intent": "mutation", - "sql": "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('20261114T095312Z_afe637', 'ac31c2b38b4e1e0ba24331c9f80422bb2b0eb9508146b1ac3e42a57f6491a00c', 'deployment', '20261114T095312Z_afe637', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__20261114T095312Z_afe637', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '2026-11-14 09:53:12.000'),\n('20261114T095312Z_afe637', '8a2a26c9e8cbb272606ee82e997284335344863ad887818f2f2e6effa6207b07', 'deployment', '20261114T095312Z_afe637', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__20261114T095312Z_afe637', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '2026-11-14 09:53:12.000'),\n('20261114T095312Z_afe637', 'e84b3e7ead329a72f2a375baa0c5791b94226ed44a19d7842fd93e766158c5f7', 'deployment', '20261114T095312Z_afe637', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__20261114T095312Z_afe637', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '2026-11-14 09:53:12.000'),\n('20261114T095312Z_afe637', '95d7514da75ace017700bcdc193ffaea2d22580557c9058060832ca44de6eb6a', 'deployment', '20261114T095312Z_afe637', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__20261114T095312Z_afe637', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '2026-11-14 09:53:12.000');", - "sqlSha256": "5d72aa0908164ef3a83bc6194de656c06107bf9a535dd8163f2c66b08fb43abd", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('20261114T181104Z_15eadd', '223ee0f9e427832db734fb79e8f1c0c4a35cc0e9cc77b9381fcbedb0f5ef8307', 'deployment', '20261114T181104Z_15eadd', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__20261114T181104Z_15eadd', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '2026-11-14 18:11:04.109'),\n('20261114T181104Z_15eadd', '3b548cafe03f2ae40cc96af7bd0b08435efc7f73baab9897020de7e8698e48fb', 'deployment', '20261114T181104Z_15eadd', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__20261114T181104Z_15eadd', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\\\\nWHERE status = \\'completed\\'\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\\\\nWHERE status = \\'completed\\'\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders\nWHERE status = \\'completed\\'', '2026-11-14 18:11:04.109'),\n('20261114T181104Z_15eadd', '829c60631cf7b5a84bedd79c367e672de406a6946f03c1d272d33aa2df768b8e', 'deployment', '20261114T181104Z_15eadd', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__20261114T181104Z_15eadd', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '2026-11-14 18:11:04.109'),\n('20261114T181104Z_15eadd', 'd3f8ad9a493bd44d383e90a7c18f6a9b2d01dfa716228d4ddac43864088b55cc', 'deployment', '20261114T181104Z_15eadd', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__20261114T181104Z_15eadd', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '2026-11-14 18:11:04.109');", + "sqlSha256": "ae609d8cecfc83ecb5a27459e29c60868b0169bb3a59d0cfbb44c97cc314ef0d", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/29": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/29": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 29, "stepId": "prepare_metadata_22", "phase": "preparation", "intent": "mutation", "sql": "INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, 'UTC') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);", "sqlSha256": "5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/28": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/28": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 28, "stepId": "prepare_metadata_21", "phase": "preparation", "intent": "mutation", "sql": "ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT 'promote' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;", "sqlSha256": "da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/27": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/27": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 27, "stepId": "prepare_metadata_20", "phase": "preparation", "intent": "mutation", "sql": "DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;", "sqlSha256": "82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/26": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/26": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 26, "stepId": "prepare_metadata_19", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);", "sqlSha256": "b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/25": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/25": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 25, "stepId": "prepare_metadata_18", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, 'UTC')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);", "sqlSha256": "bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/24": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/24": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 24, "stepId": "prepare_metadata_17", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;", "sqlSha256": "10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/23": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/23": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 23, "stepId": "prepare_metadata_16", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, 'UTC'),\n expires_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);", "sqlSha256": "af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/22": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/22": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 22, "stepId": "prepare_metadata_15", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);", "sqlSha256": "49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/21": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/21": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 21, "stepId": "prepare_metadata_14", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);", "sqlSha256": "c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/20": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/20": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 20, "stepId": "prepare_metadata_13", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, 'UTC'),\n completed_at Nullable(DateTime64(3, 'UTC')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);", "sqlSha256": "c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/19": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/19": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 19, "stepId": "prepare_metadata_12", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, 'UTC'),\n position_result_id String,\n recorded_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);", "sqlSha256": "abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/18": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/18": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 18, "stepId": "prepare_metadata_11", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);", "sqlSha256": "61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/17": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/17": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 17, "stepId": "prepare_metadata_10", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);", "sqlSha256": "27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/16": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/16": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 16, "stepId": "prepare_metadata_9", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, 'UTC')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, 'UTC'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);", "sqlSha256": "fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/15": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/15": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 15, "stepId": "prepare_metadata_8", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, 'UTC'),\n completed_at DateTime64(3, 'UTC'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);", "sqlSha256": "5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/14": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/14": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 14, "stepId": "prepare_metadata_7", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);", "sqlSha256": "70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/13": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/13": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 13, "stepId": "prepare_metadata_6", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT 'promote',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);", "sqlSha256": "986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/12": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/12": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 12, "stepId": "prepare_metadata_5", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, ''));", "sqlSha256": "c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/11": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/11": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 11, "stepId": "prepare_metadata_4", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, 'UTC'),\n created_at DateTime64(3, 'UTC'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);", "sqlSha256": "a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/10": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/10": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 10, "stepId": "prepare_metadata_3", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);", "sqlSha256": "e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/9": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/9": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 9, "stepId": "prepare_metadata_2", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (version);", "sqlSha256": "76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/8": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/8": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 8, "stepId": "prepare_metadata_1", "phase": "preparation", "intent": "mutation", "sql": "CREATE DATABASE IF NOT EXISTS sqltide_playground;", "sqlSha256": "61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/7": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/7": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 7, "stepId": "prepare_target_database", "phase": "preparation", "intent": "mutation", "sql": "CREATE DATABASE IF NOT EXISTS sqltide_playground;", "sqlSha256": "61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/6": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/6": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 6, - "stepId": "assert_candidate_relation_mv__large_orders__20261114T095312Z_afe637", + "stepId": "assert_candidate_relation_mv__large_orders__20261114T181104Z_15eadd", "phase": "preflight", "intent": "assertion", - "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'mv__large_orders__20261114T095312Z_afe637';", - "sqlSha256": "277ad3c0d7b4b11667101e738becc9071b774cb758a2aa3c26647963980829a9", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'mv__large_orders__20261114T181104Z_15eadd';", + "sqlSha256": "24e0b5deaf41df999c3733d61cccf14731a9b9e56a9f9890a9def2048ccb3bfb", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/5": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/5": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 5, - "stepId": "assert_candidate_relation_tbl__large_orders__20261114T095312Z_afe637", + "stepId": "assert_candidate_relation_tbl__large_orders__20261114T181104Z_15eadd", "phase": "preflight", "intent": "assertion", - "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'tbl__large_orders__20261114T095312Z_afe637';", - "sqlSha256": "acea05fa4e67e51839fab90b92df461b2b04f32d6b5f46f8cd4b81193c522ebc", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'tbl__large_orders__20261114T181104Z_15eadd';", + "sqlSha256": "9de47fe87b2cc8e4943e5a419aab77b554c8580f9ad6bdb3aa858f5da8620e83", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/4": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/4": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 4, - "stepId": "assert_candidate_relation_mv__order_report__20261114T095312Z_afe637", + "stepId": "assert_candidate_relation_mv__order_report__20261114T181104Z_15eadd", "phase": "preflight", "intent": "assertion", - "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'mv__order_report__20261114T095312Z_afe637';", - "sqlSha256": "7d12253a41ee666530b6ba1444df4d5c6ecaeefcb6e1c39eba5d35c9b2af452d", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'mv__order_report__20261114T181104Z_15eadd';", + "sqlSha256": "074345c214a247a9280c7d6458252ea4b81506043795d5388c5bf0603b57f657", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/3": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/3": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 3, - "stepId": "assert_candidate_relation_tbl__order_report__20261114T095312Z_afe637", + "stepId": "assert_candidate_relation_tbl__order_report__20261114T181104Z_15eadd", "phase": "preflight", "intent": "assertion", - "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'tbl__order_report__20261114T095312Z_afe637';", - "sqlSha256": "d1a04697edd2ea0d31452e5afca738e6915befb50a768d86593fc21db7d0a6dd", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'tbl__order_report__20261114T181104Z_15eadd';", + "sqlSha256": "0963063d39b56811b01a0304e78ea64741e92a1c62cd606c859f67bf92e92e6e", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/2": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/2": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 2, "stepId": "assert_candidate_unpublished", "phase": "preflight", "intent": "assertion", - "sql": "SELECT throwIf(count() > 0, 'Candidate deployment is already published') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = '20261114T095312Z_afe637';", - "sqlSha256": "f5f250388032ad279cf4dff662c4510188bbe59948cec9645d69b85bfc8d454d", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "SELECT throwIf(count() > 0, 'Candidate deployment is already published') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = '20261114T181104Z_15eadd';", + "sqlSha256": "4083fcd6182df5a26b65065575afc78a98bc51c1a69b4d0d248f6363aaf2be0a", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/a24e12c1-d58c-4258-8c90-4972fc82483b/statements/1": { + "/api/runs/4aff15f5-3811-405d-bfe7-6420fae4de24/statements/1": { "status": 200, "body": { "found": true, - "invocationId": "a24e12c1-d58c-4258-8c90-4972fc82483b", + "invocationId": "4aff15f5-3811-405d-bfe7-6420fae4de24", "statementSequence": 1, "stepId": "assert_candidate_metadata", "phase": "preflight", "intent": "assertion", - "sql": "SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64('2026-11-14 09:53:12.000', 3, 'UTC') OR any(replay_lineage_mode) != 'offsets' OR any(workflow_fingerprint) != 'c6624385daba8990cce582b04061c75498c0ba8e93ee89c040c70a043fdf0631' OR any(tool_version) != '0.69.1'), 'Candidate deployment conflicts with the confirmed workflow') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T095312Z_afe637';", - "sqlSha256": "a62d4c0a8ceccc2ea064373d8080b6355accf5e7bab2e53e058917b483a73cd9", - "workflowSha256": "ecde7cd956fdef9ae7b6e6019e52ba35a04dd216bfd7711739e568113f406e24" + "sql": "SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64('2026-11-14 18:11:04.109', 3, 'UTC') OR any(replay_lineage_mode) != 'offsets' OR any(workflow_fingerprint) != '64e39382ef5fc3e4684bcd1abdf46e1f001c24784970c2123f386a245a40a226' OR any(tool_version) != '0.70.1'), 'Candidate deployment conflicts with the confirmed workflow') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T181104Z_15eadd';", + "sqlSha256": "9c3c38d259bd937d5814cf311091645e7ef22b5a52b2455beba48817ed1843ff", + "workflowSha256": "6a0f805fbd80b515785082197e3c13726eca54edcd8752d5ff77edb1c8e616ef" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/events?after=0": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/events?after=0": { "status": 200, "body": { "found": true, "events": [ { "sequence": 1, - "emittedAt": "2026-11-14 10:03:41.133", + "emittedAt": "2026-11-14 18:10:57.646", "event": "run_started", "stepId": null, "phase": null, @@ -3170,34 +3170,34 @@ "selectors": [], "startTime": null, "startupTimings": { - "compileMs": 9, - "observabilityMs": 71, - "planningMs": 42, - "totalMs": 122 + "compileMs": 10, + "observabilityMs": 51, + "planningMs": 51, + "totalMs": 112 }, - "toolVersion": "0.69.1", + "toolVersion": "0.70.1", "totalStatements": 44 }, { "sequence": 2, - "emittedAt": "2026-11-14 10:03:41.145", + "emittedAt": "2026-11-14 18:10:57.695", "event": "statement_started", "stepId": "assert_candidate_metadata", "phase": "preflight", "displayName": null, "intent": "assertion", - "queryId": "98d9dd46-0b1d-4f31-bfde-3207a7a64412", + "queryId": "209236cf-16f4-4770-9695-cad4e47ff367", "replayOffsetProgress": null, "statementSequence": 1 }, { "sequence": 3, - "emittedAt": "2026-11-14 10:03:41.147", + "emittedAt": "2026-11-14 18:10:57.703", "event": "statement_completed", "stepId": "assert_candidate_metadata", "phase": "preflight", "displayName": null, - "elapsedMs": 4, + "elapsedMs": 5, "errorMessage": null, "intent": "assertion", "statementSequence": 1, @@ -3205,19 +3205,19 @@ }, { "sequence": 4, - "emittedAt": "2026-11-14 10:03:41.150", + "emittedAt": "2026-11-14 18:10:57.707", "event": "statement_started", "stepId": "assert_candidate_unpublished", "phase": "preflight", "displayName": null, "intent": "assertion", - "queryId": "b140ad94-ee8f-40c8-86bb-cbed476a9389", + "queryId": "617e77a9-316a-4f7f-9d6f-250910803c9d", "replayOffsetProgress": null, "statementSequence": 2 }, { "sequence": 5, - "emittedAt": "2026-11-14 10:03:41.153", + "emittedAt": "2026-11-14 18:10:57.714", "event": "statement_completed", "stepId": "assert_candidate_unpublished", "phase": "preflight", @@ -3230,21 +3230,21 @@ }, { "sequence": 6, - "emittedAt": "2026-11-14 10:03:41.156", + "emittedAt": "2026-11-14 18:10:57.718", "event": "statement_started", - "stepId": "assert_candidate_relation_tbl__order_report__20261114T095302Z_f4e644", + "stepId": "assert_candidate_relation_tbl__order_report__20261114T181057Z_b71388", "phase": "preflight", "displayName": null, "intent": "assertion", - "queryId": "68a848e5-298f-4c58-9fc6-f63beab6c123", + "queryId": "4058bc64-9154-41d3-92b8-6533b3214e31", "replayOffsetProgress": null, "statementSequence": 3 }, { "sequence": 7, - "emittedAt": "2026-11-14 10:03:41.159", + "emittedAt": "2026-11-14 18:10:57.724", "event": "statement_completed", - "stepId": "assert_candidate_relation_tbl__order_report__20261114T095302Z_f4e644", + "stepId": "assert_candidate_relation_tbl__order_report__20261114T181057Z_b71388", "phase": "preflight", "displayName": null, "elapsedMs": 3, @@ -3255,21 +3255,21 @@ }, { "sequence": 8, - "emittedAt": "2026-11-14 10:03:41.162", + "emittedAt": "2026-11-14 18:10:57.727", "event": "statement_started", - "stepId": "assert_candidate_relation_mv__order_report__20261114T095302Z_f4e644", + "stepId": "assert_candidate_relation_mv__order_report__20261114T181057Z_b71388", "phase": "preflight", "displayName": null, "intent": "assertion", - "queryId": "5a97d76d-b126-4a8c-a334-471170666a96", + "queryId": "ed5825b3-0c84-4232-a65c-9656551e9499", "replayOffsetProgress": null, "statementSequence": 4 }, { "sequence": 9, - "emittedAt": "2026-11-14 10:03:41.166", + "emittedAt": "2026-11-14 18:10:57.733", "event": "statement_completed", - "stepId": "assert_candidate_relation_mv__order_report__20261114T095302Z_f4e644", + "stepId": "assert_candidate_relation_mv__order_report__20261114T181057Z_b71388", "phase": "preflight", "displayName": null, "elapsedMs": 3, @@ -3280,21 +3280,21 @@ }, { "sequence": 10, - "emittedAt": "2026-11-14 10:03:41.171", + "emittedAt": "2026-11-14 18:10:57.736", "event": "statement_started", - "stepId": "assert_candidate_relation_tbl__large_orders__20261114T095302Z_f4e644", + "stepId": "assert_candidate_relation_tbl__large_orders__20261114T181057Z_b71388", "phase": "preflight", "displayName": null, "intent": "assertion", - "queryId": "c0586f3b-7422-476e-9ae2-e92d29aaaf1b", + "queryId": "e95ecd03-3e38-4db0-8d69-a652a4fb3eb7", "replayOffsetProgress": null, "statementSequence": 5 }, { "sequence": 11, - "emittedAt": "2026-11-14 10:03:41.173", + "emittedAt": "2026-11-14 18:10:57.743", "event": "statement_completed", - "stepId": "assert_candidate_relation_tbl__large_orders__20261114T095302Z_f4e644", + "stepId": "assert_candidate_relation_tbl__large_orders__20261114T181057Z_b71388", "phase": "preflight", "displayName": null, "elapsedMs": 3, @@ -3305,21 +3305,21 @@ }, { "sequence": 12, - "emittedAt": "2026-11-14 10:03:41.176", + "emittedAt": "2026-11-14 18:10:57.746", "event": "statement_started", - "stepId": "assert_candidate_relation_mv__large_orders__20261114T095302Z_f4e644", + "stepId": "assert_candidate_relation_mv__large_orders__20261114T181057Z_b71388", "phase": "preflight", "displayName": null, "intent": "assertion", - "queryId": "8fb87cc3-a5e6-483c-9148-df783bc04464", + "queryId": "e0eb71a1-ead0-4650-9e00-7cc448b743b2", "replayOffsetProgress": null, "statementSequence": 6 }, { "sequence": 13, - "emittedAt": "2026-11-14 10:03:41.178", + "emittedAt": "2026-11-14 18:10:57.752", "event": "statement_completed", - "stepId": "assert_candidate_relation_mv__large_orders__20261114T095302Z_f4e644", + "stepId": "assert_candidate_relation_mv__large_orders__20261114T181057Z_b71388", "phase": "preflight", "displayName": null, "elapsedMs": 3, @@ -3330,24 +3330,24 @@ }, { "sequence": 14, - "emittedAt": "2026-11-14 10:03:41.181", + "emittedAt": "2026-11-14 18:10:57.756", "event": "statement_started", "stepId": "prepare_target_database", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "427edce1-3aea-4e1b-933f-82287341c989", + "queryId": "2a5b16cb-47b2-4b35-83da-a3cb1bc3977d", "replayOffsetProgress": null, "statementSequence": 7 }, { "sequence": 15, - "emittedAt": "2026-11-14 10:03:41.187", + "emittedAt": "2026-11-14 18:10:57.761", "event": "statement_completed", "stepId": "prepare_target_database", "phase": "preparation", "displayName": null, - "elapsedMs": 2, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 7, @@ -3355,19 +3355,19 @@ }, { "sequence": 16, - "emittedAt": "2026-11-14 10:03:41.192", + "emittedAt": "2026-11-14 18:10:57.765", "event": "statement_started", "stepId": "prepare_metadata_1", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "45d98f46-7365-49bc-b9bb-4fac85eb5568", + "queryId": "23218f3e-f77e-4309-a395-2201b8534cc0", "replayOffsetProgress": null, "statementSequence": 8 }, { "sequence": 17, - "emittedAt": "2026-11-14 10:03:41.198", + "emittedAt": "2026-11-14 18:10:57.769", "event": "statement_completed", "stepId": "prepare_metadata_1", "phase": "preparation", @@ -3380,19 +3380,19 @@ }, { "sequence": 18, - "emittedAt": "2026-11-14 10:03:41.201", + "emittedAt": "2026-11-14 18:10:57.772", "event": "statement_started", "stepId": "prepare_metadata_2", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "95eab580-cf89-4da3-9381-463ab199a59a", + "queryId": "b3417058-2269-4f2a-8934-244292b6f732", "replayOffsetProgress": null, "statementSequence": 9 }, { "sequence": 19, - "emittedAt": "2026-11-14 10:03:41.206", + "emittedAt": "2026-11-14 18:10:57.777", "event": "statement_completed", "stepId": "prepare_metadata_2", "phase": "preparation", @@ -3405,19 +3405,19 @@ }, { "sequence": 20, - "emittedAt": "2026-11-14 10:03:41.209", + "emittedAt": "2026-11-14 18:10:57.780", "event": "statement_started", "stepId": "prepare_metadata_3", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "1a9d04dd-5367-4bb4-97f5-8737de2fcfa3", + "queryId": "16fd6d0f-15d6-4ae6-987f-112570c6f355", "replayOffsetProgress": null, "statementSequence": 10 }, { "sequence": 21, - "emittedAt": "2026-11-14 10:03:41.215", + "emittedAt": "2026-11-14 18:10:57.784", "event": "statement_completed", "stepId": "prepare_metadata_3", "phase": "preparation", @@ -3430,19 +3430,19 @@ }, { "sequence": 22, - "emittedAt": "2026-11-14 10:03:41.218", + "emittedAt": "2026-11-14 18:10:57.788", "event": "statement_started", "stepId": "prepare_metadata_4", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "92b4d1ea-3721-40e6-8e6e-4e0ad597499e", + "queryId": "3b85238e-7f33-48f7-8fc9-9e71ab515dcc", "replayOffsetProgress": null, "statementSequence": 11 }, { "sequence": 23, - "emittedAt": "2026-11-14 10:03:41.223", + "emittedAt": "2026-11-14 18:10:57.793", "event": "statement_completed", "stepId": "prepare_metadata_4", "phase": "preparation", @@ -3455,19 +3455,19 @@ }, { "sequence": 24, - "emittedAt": "2026-11-14 10:03:41.226", + "emittedAt": "2026-11-14 18:10:57.796", "event": "statement_started", "stepId": "prepare_metadata_5", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "843c7e4a-67c5-4fd0-a5fa-258b5ba391b0", + "queryId": "b451f6c3-c678-4da4-91c4-3dd3491a816d", "replayOffsetProgress": null, "statementSequence": 12 }, { "sequence": 25, - "emittedAt": "2026-11-14 10:03:41.231", + "emittedAt": "2026-11-14 18:10:57.800", "event": "statement_completed", "stepId": "prepare_metadata_5", "phase": "preparation", @@ -3480,19 +3480,19 @@ }, { "sequence": 26, - "emittedAt": "2026-11-14 10:03:41.234", + "emittedAt": "2026-11-14 18:10:57.803", "event": "statement_started", "stepId": "prepare_metadata_6", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "68b2292d-5815-4d38-8e6f-ab2829829ccf", + "queryId": "bcb358f2-0fda-406b-a971-5472bcb36714", "replayOffsetProgress": null, "statementSequence": 13 }, { "sequence": 27, - "emittedAt": "2026-11-14 10:03:41.238", + "emittedAt": "2026-11-14 18:10:57.808", "event": "statement_completed", "stepId": "prepare_metadata_6", "phase": "preparation", @@ -3505,24 +3505,24 @@ }, { "sequence": 28, - "emittedAt": "2026-11-14 10:03:41.242", + "emittedAt": "2026-11-14 18:10:57.811", "event": "statement_started", "stepId": "prepare_metadata_7", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "93949122-25cb-49ef-b3aa-8bf578e8248f", + "queryId": "9244e229-89a9-4688-a6f4-0add75ca2f32", "replayOffsetProgress": null, "statementSequence": 14 }, { "sequence": 29, - "emittedAt": "2026-11-14 10:03:41.246", + "emittedAt": "2026-11-14 18:10:57.817", "event": "statement_completed", "stepId": "prepare_metadata_7", "phase": "preparation", "displayName": null, - "elapsedMs": 1, + "elapsedMs": 2, "errorMessage": null, "intent": "mutation", "statementSequence": 14, @@ -3530,24 +3530,24 @@ }, { "sequence": 30, - "emittedAt": "2026-11-14 10:03:41.249", + "emittedAt": "2026-11-14 18:10:57.821", "event": "statement_started", "stepId": "prepare_metadata_8", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "f8f3564b-940d-424b-80cf-eaebc469ff94", + "queryId": "fa30ecc6-1e2c-4e15-9da6-d1c9c9b07c56", "replayOffsetProgress": null, "statementSequence": 15 }, { "sequence": 31, - "emittedAt": "2026-11-14 10:03:41.253", + "emittedAt": "2026-11-14 18:10:57.828", "event": "statement_completed", "stepId": "prepare_metadata_8", "phase": "preparation", "displayName": null, - "elapsedMs": 1, + "elapsedMs": 2, "errorMessage": null, "intent": "mutation", "statementSequence": 15, @@ -3555,19 +3555,19 @@ }, { "sequence": 32, - "emittedAt": "2026-11-14 10:03:41.256", + "emittedAt": "2026-11-14 18:10:57.831", "event": "statement_started", "stepId": "prepare_metadata_9", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "740b08d1-1ef1-47ed-aae7-78aece94afe7", + "queryId": "a9a08fc4-8c2d-49af-8733-34d4a242f971", "replayOffsetProgress": null, "statementSequence": 16 }, { "sequence": 33, - "emittedAt": "2026-11-14 10:03:41.260", + "emittedAt": "2026-11-14 18:10:57.837", "event": "statement_completed", "stepId": "prepare_metadata_9", "phase": "preparation", @@ -3580,24 +3580,24 @@ }, { "sequence": 34, - "emittedAt": "2026-11-14 10:03:41.263", + "emittedAt": "2026-11-14 18:10:57.840", "event": "statement_started", "stepId": "prepare_metadata_10", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "b50507f0-dac3-4be7-9868-2e0ba167705c", + "queryId": "879dd0f0-cec1-4a50-ac22-7cb308d2ce61", "replayOffsetProgress": null, "statementSequence": 17 }, { "sequence": 35, - "emittedAt": "2026-11-14 10:03:41.270", + "emittedAt": "2026-11-14 18:10:57.846", "event": "statement_completed", "stepId": "prepare_metadata_10", "phase": "preparation", "displayName": null, - "elapsedMs": 2, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 17, @@ -3605,19 +3605,19 @@ }, { "sequence": 36, - "emittedAt": "2026-11-14 10:03:41.273", + "emittedAt": "2026-11-14 18:10:57.850", "event": "statement_started", "stepId": "prepare_metadata_11", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "742bf2f9-e21c-4455-be79-725d9927f6c8", + "queryId": "518bec11-9838-4dfe-a370-282988890465", "replayOffsetProgress": null, "statementSequence": 18 }, { "sequence": 37, - "emittedAt": "2026-11-14 10:03:41.277", + "emittedAt": "2026-11-14 18:10:57.856", "event": "statement_completed", "stepId": "prepare_metadata_11", "phase": "preparation", @@ -3630,24 +3630,24 @@ }, { "sequence": 38, - "emittedAt": "2026-11-14 10:03:41.279", + "emittedAt": "2026-11-14 18:10:57.859", "event": "statement_started", "stepId": "prepare_metadata_12", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "e9a3ecee-3088-4dea-a5f2-5e2e7de854e4", + "queryId": "6e0fcb5f-840f-4348-869d-6176f7761344", "replayOffsetProgress": null, "statementSequence": 19 }, { "sequence": 39, - "emittedAt": "2026-11-14 10:03:41.284", + "emittedAt": "2026-11-14 18:10:57.865", "event": "statement_completed", "stepId": "prepare_metadata_12", "phase": "preparation", "displayName": null, - "elapsedMs": 1, + "elapsedMs": 2, "errorMessage": null, "intent": "mutation", "statementSequence": 19, @@ -3655,24 +3655,24 @@ }, { "sequence": 40, - "emittedAt": "2026-11-14 10:03:41.287", + "emittedAt": "2026-11-14 18:10:57.869", "event": "statement_started", "stepId": "prepare_metadata_13", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "eb410df2-3495-431f-8ca1-980115144092", + "queryId": "29bb0952-830b-4ebd-ae85-6421714f70a1", "replayOffsetProgress": null, "statementSequence": 20 }, { "sequence": 41, - "emittedAt": "2026-11-14 10:03:41.293", + "emittedAt": "2026-11-14 18:10:57.874", "event": "statement_completed", "stepId": "prepare_metadata_13", "phase": "preparation", "displayName": null, - "elapsedMs": 5, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 20, @@ -3680,19 +3680,19 @@ }, { "sequence": 42, - "emittedAt": "2026-11-14 10:03:41.296", + "emittedAt": "2026-11-14 18:10:57.878", "event": "statement_started", "stepId": "prepare_metadata_14", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "9fafd827-d345-4187-a538-78eb9e1e334b", + "queryId": "69ad5589-51c5-48f5-8a04-9118bc7a0eeb", "replayOffsetProgress": null, "statementSequence": 21 }, { "sequence": 43, - "emittedAt": "2026-11-14 10:03:41.300", + "emittedAt": "2026-11-14 18:10:57.886", "event": "statement_completed", "stepId": "prepare_metadata_14", "phase": "preparation", @@ -3705,19 +3705,19 @@ }, { "sequence": 44, - "emittedAt": "2026-11-14 10:03:41.303", + "emittedAt": "2026-11-14 18:10:57.890", "event": "statement_started", "stepId": "prepare_metadata_15", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "ff9a119d-258b-471d-b6b8-6a8837ce76e3", + "queryId": "ccd9b73f-0d2b-46e8-ba81-5859582c0fd9", "replayOffsetProgress": null, "statementSequence": 22 }, { "sequence": 45, - "emittedAt": "2026-11-14 10:03:41.310", + "emittedAt": "2026-11-14 18:10:57.898", "event": "statement_completed", "stepId": "prepare_metadata_15", "phase": "preparation", @@ -3730,24 +3730,24 @@ }, { "sequence": 46, - "emittedAt": "2026-11-14 10:03:41.312", + "emittedAt": "2026-11-14 18:10:57.903", "event": "statement_started", "stepId": "prepare_metadata_16", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "12d07656-c945-4ecc-94b1-536b5155cd18", + "queryId": "3df6b32e-8cfc-4796-98b5-c3bea5e05f2f", "replayOffsetProgress": null, "statementSequence": 23 }, { "sequence": 47, - "emittedAt": "2026-11-14 10:03:41.316", + "emittedAt": "2026-11-14 18:10:57.909", "event": "statement_completed", "stepId": "prepare_metadata_16", "phase": "preparation", "displayName": null, - "elapsedMs": 3, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 23, @@ -3755,19 +3755,19 @@ }, { "sequence": 48, - "emittedAt": "2026-11-14 10:03:41.319", + "emittedAt": "2026-11-14 18:10:57.913", "event": "statement_started", "stepId": "prepare_metadata_17", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "c15e6a3a-b9b5-4f99-8e85-ffff74b64946", + "queryId": "14c500a8-630d-484d-b993-503796f7c5ff", "replayOffsetProgress": null, "statementSequence": 24 }, { "sequence": 49, - "emittedAt": "2026-11-14 10:03:41.323", + "emittedAt": "2026-11-14 18:10:57.920", "event": "statement_completed", "stepId": "prepare_metadata_17", "phase": "preparation", @@ -3780,19 +3780,19 @@ }, { "sequence": 50, - "emittedAt": "2026-11-14 10:03:41.328", + "emittedAt": "2026-11-14 18:10:57.924", "event": "statement_started", "stepId": "prepare_metadata_18", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "5bb6c099-4b66-4970-98d1-6d6fbe341c65", + "queryId": "a0fde775-0157-4cd4-8076-d27c511acfe7", "replayOffsetProgress": null, "statementSequence": 25 }, { "sequence": 51, - "emittedAt": "2026-11-14 10:03:41.333", + "emittedAt": "2026-11-14 18:10:57.932", "event": "statement_completed", "stepId": "prepare_metadata_18", "phase": "preparation", @@ -3805,24 +3805,24 @@ }, { "sequence": 52, - "emittedAt": "2026-11-14 10:03:41.336", + "emittedAt": "2026-11-14 18:10:57.938", "event": "statement_started", "stepId": "prepare_metadata_19", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "e314b0dd-7dc6-4747-8dd9-65d794a1ec0b", + "queryId": "94d1a8bf-f597-4c9a-8379-c722a746e23e", "replayOffsetProgress": null, "statementSequence": 26 }, { "sequence": 53, - "emittedAt": "2026-11-14 10:03:41.341", + "emittedAt": "2026-11-14 18:10:57.944", "event": "statement_completed", "stepId": "prepare_metadata_19", "phase": "preparation", "displayName": null, - "elapsedMs": 4, + "elapsedMs": 2, "errorMessage": null, "intent": "mutation", "statementSequence": 26, @@ -3830,24 +3830,24 @@ }, { "sequence": 54, - "emittedAt": "2026-11-14 10:03:41.343", + "emittedAt": "2026-11-14 18:10:57.949", "event": "statement_started", "stepId": "prepare_metadata_20", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "524211a2-bfe3-4f45-bd55-b0527a016a51", + "queryId": "da183f52-f408-4ea4-908a-8fabc777d762", "replayOffsetProgress": null, "statementSequence": 27 }, { "sequence": 55, - "emittedAt": "2026-11-14 10:03:41.348", + "emittedAt": "2026-11-14 18:10:57.956", "event": "statement_completed", "stepId": "prepare_metadata_20", "phase": "preparation", "displayName": null, - "elapsedMs": 1, + "elapsedMs": 2, "errorMessage": null, "intent": "mutation", "statementSequence": 27, @@ -3855,24 +3855,24 @@ }, { "sequence": 56, - "emittedAt": "2026-11-14 10:03:41.351", + "emittedAt": "2026-11-14 18:10:57.960", "event": "statement_started", "stepId": "prepare_metadata_21", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "44f024bc-8ac9-4108-b410-3b5be802d679", + "queryId": "ae8b2193-be49-4ec6-8033-c2d94c804b57", "replayOffsetProgress": null, "statementSequence": 28 }, { "sequence": 57, - "emittedAt": "2026-11-14 10:03:41.358", + "emittedAt": "2026-11-14 18:10:57.972", "event": "statement_completed", "stepId": "prepare_metadata_21", "phase": "preparation", "displayName": null, - "elapsedMs": 4, + "elapsedMs": 6, "errorMessage": null, "intent": "mutation", "statementSequence": 28, @@ -3880,24 +3880,24 @@ }, { "sequence": 58, - "emittedAt": "2026-11-14 10:03:41.361", + "emittedAt": "2026-11-14 18:10:57.976", "event": "statement_started", "stepId": "prepare_metadata_22", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "c21c765c-b001-49a0-8287-c758560887cd", + "queryId": "a34e4765-e0e1-4667-a1c0-0a2b7d9e2c32", "replayOffsetProgress": null, "statementSequence": 29 }, { "sequence": 59, - "emittedAt": "2026-11-14 10:03:41.370", + "emittedAt": "2026-11-14 18:10:57.985", "event": "statement_completed", "stepId": "prepare_metadata_22", "phase": "preparation", "displayName": null, - "elapsedMs": 3, + "elapsedMs": 5, "errorMessage": null, "intent": "mutation", "statementSequence": 29, @@ -3905,19 +3905,19 @@ }, { "sequence": 60, - "emittedAt": "2026-11-14 10:03:41.375", + "emittedAt": "2026-11-14 18:10:57.989", "event": "statement_started", "stepId": "persist_candidate_metadata_1", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "4e3c8781-2bf1-46c0-9e13-65820fe98d60", + "queryId": "12f338bb-d882-444c-9cd4-4e1f86c9ec95", "replayOffsetProgress": null, "statementSequence": 30 }, { "sequence": 61, - "emittedAt": "2026-11-14 10:03:41.383", + "emittedAt": "2026-11-14 18:10:57.997", "event": "statement_completed", "stepId": "persist_candidate_metadata_1", "phase": "preparation", @@ -3930,24 +3930,24 @@ }, { "sequence": 62, - "emittedAt": "2026-11-14 10:03:41.386", + "emittedAt": "2026-11-14 18:10:58.000", "event": "statement_started", - "stepId": "realize_tbl__order_report__20261114T095302Z_f4e644", + "stepId": "realize_tbl__order_report__20261114T181057Z_b71388", "phase": "realization", "displayName": null, "intent": "mutation", - "queryId": "1079a764-b5d9-4f88-9f01-3f858055f5a3", + "queryId": "c0888f53-37aa-4d1c-bd13-87af157436be", "replayOffsetProgress": null, "statementSequence": 31 }, { "sequence": 63, - "emittedAt": "2026-11-14 10:03:41.394", + "emittedAt": "2026-11-14 18:10:58.008", "event": "statement_completed", - "stepId": "realize_tbl__order_report__20261114T095302Z_f4e644", + "stepId": "realize_tbl__order_report__20261114T181057Z_b71388", "phase": "realization", "displayName": null, - "elapsedMs": 3, + "elapsedMs": 4, "errorMessage": null, "intent": "mutation", "statementSequence": 31, @@ -3955,21 +3955,21 @@ }, { "sequence": 64, - "emittedAt": "2026-11-14 10:03:41.397", + "emittedAt": "2026-11-14 18:10:58.012", "event": "statement_started", - "stepId": "realize_tbl__large_orders__20261114T095302Z_f4e644", + "stepId": "realize_tbl__large_orders__20261114T181057Z_b71388", "phase": "realization", "displayName": null, "intent": "mutation", - "queryId": "363fce14-197f-4222-9c1c-953e876501ce", + "queryId": "b7284920-29d9-48ba-b916-46944b60cad2", "replayOffsetProgress": null, "statementSequence": 32 }, { "sequence": 65, - "emittedAt": "2026-11-14 10:03:41.405", + "emittedAt": "2026-11-14 18:10:58.020", "event": "statement_completed", - "stepId": "realize_tbl__large_orders__20261114T095302Z_f4e644", + "stepId": "realize_tbl__large_orders__20261114T181057Z_b71388", "phase": "realization", "displayName": null, "elapsedMs": 4, @@ -3980,24 +3980,24 @@ }, { "sequence": 66, - "emittedAt": "2026-11-14 10:03:41.407", + "emittedAt": "2026-11-14 18:10:58.024", "event": "statement_started", - "stepId": "realize_mv__large_orders__20261114T095302Z_f4e644", + "stepId": "realize_mv__large_orders__20261114T181057Z_b71388", "phase": "realization", "displayName": null, "intent": "mutation", - "queryId": "87411cbf-d28a-4070-87bf-4d6bf6744d88", + "queryId": "35414b72-5018-419b-9955-739a7066d0c2", "replayOffsetProgress": null, "statementSequence": 33 }, { "sequence": 67, - "emittedAt": "2026-11-14 10:03:41.415", + "emittedAt": "2026-11-14 18:10:58.034", "event": "statement_completed", - "stepId": "realize_mv__large_orders__20261114T095302Z_f4e644", + "stepId": "realize_mv__large_orders__20261114T181057Z_b71388", "phase": "realization", "displayName": null, - "elapsedMs": 4, + "elapsedMs": 5, "errorMessage": null, "intent": "mutation", "statementSequence": 33, @@ -4005,21 +4005,21 @@ }, { "sequence": 68, - "emittedAt": "2026-11-14 10:03:41.418", + "emittedAt": "2026-11-14 18:10:58.037", "event": "statement_started", - "stepId": "realize_mv__order_report__20261114T095302Z_f4e644", + "stepId": "realize_mv__order_report__20261114T181057Z_b71388", "phase": "realization", "displayName": null, "intent": "mutation", - "queryId": "6032b74a-f1b1-43c8-ae0b-fcc91fc4a8be", + "queryId": "e0a171d0-c75f-4474-90da-4706ca46c956", "replayOffsetProgress": null, "statementSequence": 34 }, { "sequence": 69, - "emittedAt": "2026-11-14 10:03:41.426", + "emittedAt": "2026-11-14 18:10:58.044", "event": "statement_completed", - "stepId": "realize_mv__order_report__20261114T095302Z_f4e644", + "stepId": "realize_mv__order_report__20261114T181057Z_b71388", "phase": "realization", "displayName": null, "elapsedMs": 3, @@ -4030,24 +4030,24 @@ }, { "sequence": 70, - "emittedAt": "2026-11-14 10:03:41.431", + "emittedAt": "2026-11-14 18:10:58.048", "event": "statement_started", "stepId": "wait_for_virtual_live_stabilization", "phase": "stabilization", "displayName": null, "intent": "wait", - "queryId": "9a7dcf0b-a381-4840-a3e7-44828278fc3c", + "queryId": "b0a2de67-cb42-44cf-8530-f175a120ab43", "replayOffsetProgress": null, "statementSequence": 35 }, { "sequence": 71, - "emittedAt": "2026-11-14 10:03:41.434", + "emittedAt": "2026-11-14 18:11:03.057", "event": "statement_completed", "stepId": "wait_for_virtual_live_stabilization", "phase": "stabilization", "displayName": null, - "elapsedMs": 5005, + "elapsedMs": 5006, "errorMessage": null, "intent": "wait", "statementSequence": 35, @@ -4055,19 +4055,19 @@ }, { "sequence": 72, - "emittedAt": "2026-11-14 10:03:41.436", + "emittedAt": "2026-11-14 18:11:03.062", "event": "statement_started", "stepId": "record_population_started", "phase": "boundary", "displayName": null, "intent": "mutation", - "queryId": "4d92ff43-d35e-4568-b471-7c65445662e4", + "queryId": "a9cd3357-c17a-426d-853f-45e973ca146e", "replayOffsetProgress": null, "statementSequence": 36 }, { "sequence": 73, - "emittedAt": "2026-11-14 10:03:41.446", + "emittedAt": "2026-11-14 18:11:03.071", "event": "statement_completed", "stepId": "record_population_started", "phase": "boundary", @@ -4080,24 +4080,24 @@ }, { "sequence": 74, - "emittedAt": "2026-11-14 10:03:41.448", + "emittedAt": "2026-11-14 18:11:03.074", "event": "statement_started", "stepId": "capture_boundary_time", "phase": "boundary", "displayName": null, "intent": "mutation", - "queryId": "14474ec3-7785-4888-9c47-67a1be5dc6a0", + "queryId": "c98de1af-8ff0-4c8c-b7f8-957b901214d7", "replayOffsetProgress": null, "statementSequence": 37 }, { "sequence": 75, - "emittedAt": "2026-11-14 10:03:41.459", + "emittedAt": "2026-11-14 18:11:03.084", "event": "statement_completed", "stepId": "capture_boundary_time", "phase": "boundary", "displayName": null, - "elapsedMs": 5, + "elapsedMs": 6, "errorMessage": null, "intent": "mutation", "statementSequence": 37, @@ -4105,19 +4105,19 @@ }, { "sequence": 76, - "emittedAt": "2026-11-14 10:03:41.461", + "emittedAt": "2026-11-14 18:11:03.088", "event": "statement_started", "stepId": "capture_watermark_tbl__order_report", "phase": "replay", "displayName": null, "intent": "mutation", - "queryId": "92841115-b3b8-4a97-8789-16965deb12da", + "queryId": "9992833f-ec44-4e07-8b50-cdda55f082f1", "replayOffsetProgress": null, "statementSequence": 38 }, { "sequence": 77, - "emittedAt": "2026-11-14 10:03:41.474", + "emittedAt": "2026-11-14 18:11:03.102", "event": "statement_completed", "stepId": "capture_watermark_tbl__order_report", "phase": "replay", @@ -4130,24 +4130,24 @@ }, { "sequence": 78, - "emittedAt": "2026-11-14 10:03:41.476", + "emittedAt": "2026-11-14 18:11:03.105", "event": "statement_started", "stepId": "assert_qualifying_input_tbl__order_report", "phase": "replay", "displayName": null, "intent": "assertion", - "queryId": "66bfb07f-94d8-4fdb-8a85-82f35a6d78bb", + "queryId": "35936b62-7ad7-4f38-998d-d7e8fe084cca", "replayOffsetProgress": null, "statementSequence": 39 }, { "sequence": 79, - "emittedAt": "2026-11-14 10:03:41.478", + "emittedAt": "2026-11-14 18:11:03.123", "event": "statement_completed", "stepId": "assert_qualifying_input_tbl__order_report", "phase": "replay", "displayName": null, - "elapsedMs": 11, + "elapsedMs": 14, "errorMessage": null, "intent": "assertion", "statementSequence": 39, @@ -4155,19 +4155,19 @@ }, { "sequence": 80, - "emittedAt": "2026-11-14 10:03:41.482", + "emittedAt": "2026-11-14 18:11:03.127", "event": "statement_started", "stepId": "replay_tbl__order_report", "phase": "replay", "displayName": null, "intent": "mutation", - "queryId": "61ca8243-67d2-4930-89f8-425a609c8a73", + "queryId": "f71d4b5a-68c0-486f-889f-29606bb83f3e", "replayOffsetProgress": null, "statementSequence": 40 }, { "sequence": 81, - "emittedAt": "2026-11-14 10:03:41.497", + "emittedAt": "2026-11-14 18:11:03.178", "event": "statement_completed", "stepId": "replay_tbl__order_report", "phase": "replay", @@ -4180,24 +4180,24 @@ }, { "sequence": 82, - "emittedAt": "2026-11-14 10:03:41.500", + "emittedAt": "2026-11-14 18:11:03.182", "event": "statement_started", "stepId": "read_readiness_tbl__order_report", "phase": "audit", "displayName": null, "intent": "query", - "queryId": "7c67cb85-247b-4dd8-aeb8-87027ac8d627", + "queryId": "e567d8cc-f3b8-4340-8bd8-974e89f7cfc6", "replayOffsetProgress": null, "statementSequence": 41 }, { "sequence": 83, - "emittedAt": "2026-11-14 10:03:41.502", + "emittedAt": "2026-11-14 18:11:03.190", "event": "statement_completed", "stepId": "read_readiness_tbl__order_report", "phase": "audit", "displayName": null, - "elapsedMs": 4, + "elapsedMs": 3, "errorMessage": null, "intent": "query", "statementSequence": 41, @@ -4205,19 +4205,19 @@ }, { "sequence": 84, - "emittedAt": "2026-11-14 10:03:41.505", + "emittedAt": "2026-11-14 18:11:03.193", "event": "statement_started", "stepId": "assert_readiness_tbl__order_report", "phase": "audit", "displayName": null, "intent": "assertion", - "queryId": "e9f162da-ad07-409e-853f-faa1ccd5a856", + "queryId": "102d3cbf-66ca-40b9-944a-a9f991579b52", "replayOffsetProgress": null, "statementSequence": 42 }, { "sequence": 85, - "emittedAt": "2026-11-14 10:03:41.510", + "emittedAt": "2026-11-14 18:11:03.202", "event": "statement_completed", "stepId": "assert_readiness_tbl__order_report", "phase": "audit", @@ -4230,19 +4230,19 @@ }, { "sequence": 86, - "emittedAt": "2026-11-14 10:03:41.513", + "emittedAt": "2026-11-14 18:11:03.205", "event": "statement_started", "stepId": "read_boundary_time", "phase": "audit", "displayName": null, "intent": "query", - "queryId": "266202ae-6ffa-4284-a23e-72d3b6f76130", + "queryId": "a835193f-3eee-4c57-949a-f00b00b7dd55", "replayOffsetProgress": null, "statementSequence": 43 }, { "sequence": 87, - "emittedAt": "2026-11-14 10:03:41.515", + "emittedAt": "2026-11-14 18:11:03.213", "event": "statement_completed", "stepId": "read_boundary_time", "phase": "audit", @@ -4255,24 +4255,24 @@ }, { "sequence": 88, - "emittedAt": "2026-11-14 10:03:41.518", + "emittedAt": "2026-11-14 18:11:03.216", "event": "statement_started", "stepId": "record_population_completed", "phase": "finalization", "displayName": null, "intent": "mutation", - "queryId": "905e77d4-18ee-4c9f-a74a-5ea80138b2d3", + "queryId": "b5775723-d7f5-4f30-a5c5-86cc221f7384", "replayOffsetProgress": null, "statementSequence": 44 }, { "sequence": 89, - "emittedAt": "2026-11-14 10:03:41.526", + "emittedAt": "2026-11-14 18:11:03.224", "event": "statement_completed", "stepId": "record_population_completed", "phase": "finalization", "displayName": null, - "elapsedMs": 6, + "elapsedMs": 4, "errorMessage": null, "intent": "mutation", "statementSequence": 44, @@ -4280,7 +4280,7 @@ }, { "sequence": 90, - "emittedAt": "2026-11-14 10:03:41.576", + "emittedAt": "2026-11-14 18:11:03.290", "event": "run_completed", "stepId": null, "phase": null, @@ -4292,635 +4292,635 @@ ], "hasMore": false, "status": "succeeded", - "lastSignalAt": "2026-11-14 10:03:41.576", + "lastSignalAt": "2026-11-14 18:11:03.290", "lastSignalAgeSeconds": 0, "statementProgress": null } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/44": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/44": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 44, "stepId": "record_population_completed", "phase": "finalization", "intent": "mutation", - "sql": "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '20261114T095302Z_f4e644', 'completed', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '20261114T095302Z_f4e644' AND stage = 'completed');", - "sqlSha256": "12bac6fc85d57cf313ca71bc85f217712280e086fa03d49d57176ab01d26ec87", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '20261114T181057Z_b71388', 'completed', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '20261114T181057Z_b71388' AND stage = 'completed');", + "sqlSha256": "367e49f66542cc5b7765c6cf7204af5251158414dfd32a002a07bc7555dde2fb", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/43": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/43": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 43, "stepId": "read_boundary_time", "phase": "audit", "intent": "query", - "sql": "SELECT toString(any(boundary_time), 'UTC') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T095302Z_f4e644';", - "sqlSha256": "c6815552de9ad2d6e874d0fb72827351b43e5a46cd333c9ecad8967e2f650435", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "SELECT toString(any(boundary_time), 'UTC') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T181057Z_b71388';", + "sqlSha256": "e6c5a68453b89860bfcb194e29d30798d7953017ceba16f1092a69cfb66464b7", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/42": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/42": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 42, "stepId": "assert_readiness_tbl__order_report", "phase": "audit", "intent": "assertion", - "sql": "SELECT throwIf(count() != 1, 'Virtual candidate target is not ready') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'tbl__order_report__20261114T095302Z_f4e644';", - "sqlSha256": "32158ed54de74b0e0c4e57ff0015f49a3029dfeca0ac864d06b8098f3c8e946d", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "SELECT throwIf(count() != 1, 'Virtual candidate target is not ready') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'tbl__order_report__20261114T181057Z_b71388';", + "sqlSha256": "460af1dd4833a00b2068e728b51d2c5bf3c8cccf302e7c0151cbc8594290ae57", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/41": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/41": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 41, "stepId": "read_readiness_tbl__order_report", "phase": "audit", "intent": "query", - "sql": "SELECT count() AS staged_row_count, 'tbl__order_report__20261114T095302Z_f4e644' AS staged_relation_name FROM sqltide_playground.tbl__order_report__20261114T095302Z_f4e644;", - "sqlSha256": "85836d31e413b7b006ffd4001a2f1efa215f1c8a570d7bad9ce6662118e30417", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "SELECT count() AS staged_row_count, 'tbl__order_report__20261114T181057Z_b71388' AS staged_relation_name FROM sqltide_playground.tbl__order_report__20261114T181057Z_b71388;", + "sqlSha256": "9a42a96d273cc6604250d4caa88ac54e49935f68c82d64d99935a5976bc360e3", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/40": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/40": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 40, "stepId": "replay_tbl__order_report", "phase": "replay", "intent": "mutation", - "sql": "INSERT INTO sqltide_playground.tbl__order_report__20261114T095302Z_f4e644\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = '20261114T095302Z_f4e644' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source;", - "sqlSha256": "1e03efc70e366caff3550e70d7945457da57e5980865659f7d91530542e0822c", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "INSERT INTO sqltide_playground.tbl__order_report__20261114T181057Z_b71388\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = '20261114T181057Z_b71388' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source;", + "sqlSha256": "3e9d823b2ad3eecb902a73d3a7480a6773d8e45207741ff865f14afeab107cbf", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/39": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/39": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 39, "stepId": "assert_qualifying_input_tbl__order_report", "phase": "replay", "intent": "assertion", - "sql": "SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, 'Replay root tbl__order_report has rows but no qualifying offsets cutoff') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = '20261114T095302Z_f4e644' AND watermark.root_object_name = 'tbl__order_report' AND watermark.boundary_kind = 'offsets' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);", - "sqlSha256": "f51f678539b425e7f7eb5d03dedd1b20c129c17d09eb2451749813d255dc39fa", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, 'Replay root tbl__order_report has rows but no qualifying offsets cutoff') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = '20261114T181057Z_b71388' AND watermark.root_object_name = 'tbl__order_report' AND watermark.boundary_kind = 'offsets' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);", + "sqlSha256": "1ceba75429418761f157fdc289821a8134bc7a71dcf071417454ba224125e79c", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/38": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/38": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 38, "stepId": "capture_watermark_tbl__order_report", "phase": "replay", "intent": "mutation", - "sql": "INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT '20261114T095302Z_f4e644', 'sqltide_playground', 'table', 'tbl__order_report', 'sqltide_playground', 'table', 'playground_orders', 'offsets', 'integer', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, 'UTC')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T095302Z_f4e644')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = '20261114T095302Z_f4e644' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets');", - "sqlSha256": "86dd25a3e63e4aacd98af5ba3d5911eb09731b52a7083a7d44f456cf770dd107", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT '20261114T181057Z_b71388', 'sqltide_playground', 'table', 'tbl__order_report', 'sqltide_playground', 'table', 'playground_orders', 'offsets', 'integer', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, 'UTC')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T181057Z_b71388')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = '20261114T181057Z_b71388' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets');", + "sqlSha256": "533ccb98e24fb77d581de6e9cb4e3a7596d01673e4e27ab23f0975f66a5ebe03", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/37": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/37": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 37, "stepId": "capture_boundary_time", "phase": "boundary", "intent": "mutation", - "sql": "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '20261114T095302Z_f4e644', 'b4becea27492ec90498f3182d630a2e50a3161cc159ffc95cb4be5761d7a54c4', 'offsets', now64(3, 'UTC'), toDateTime64('2026-11-14 09:53:02.324', 3, 'UTC'), '0.69.1'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T095302Z_f4e644');", - "sqlSha256": "89bdf36344a6fa6fb152d83c34916cc264a829330763551c5c7aa7f243b4ee49", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '20261114T181057Z_b71388', '4b72d67857d66f6b9943ccb8419fdedaa9d558d271b1c38118174ac271d2348e', 'offsets', now64(3, 'UTC'), toDateTime64('2026-11-14 18:10:57.589', 3, 'UTC'), '0.70.1'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T181057Z_b71388');", + "sqlSha256": "81844b4b38a1d6b931e5e190e7e24f5365b02b809dca516b27605e453da0bd4e", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/36": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/36": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 36, "stepId": "record_population_started", "phase": "boundary", "intent": "mutation", - "sql": "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '20261114T095302Z_f4e644', 'started', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '20261114T095302Z_f4e644' AND stage = 'started');", - "sqlSha256": "545643a42260554b943d36da17c12c9928b8813a973bb05c9bfe824523f1e73e", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '20261114T181057Z_b71388', 'started', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '20261114T181057Z_b71388' AND stage = 'started');", + "sqlSha256": "5d53c403216763f95fac529dd86e84d103b536bf2a991c5799f21ef23f0a017a", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/35": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/35": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 35, "stepId": "wait_for_virtual_live_stabilization", "phase": "stabilization", "intent": "wait", "sql": "SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;", "sqlSha256": "9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/34": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/34": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 34, - "stepId": "realize_mv__order_report__20261114T095302Z_f4e644", + "stepId": "realize_mv__order_report__20261114T181057Z_b71388", "phase": "realization", "intent": "mutation", - "sql": "CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__20261114T095302Z_f4e644\nTO sqltide_playground.tbl__order_report__20261114T095302Z_f4e644 AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders;", - "sqlSha256": "9f81ab3d50a9195ce59f885a1718d898ccf4e520a8fd042bb9a00ae5a18da611", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__20261114T181057Z_b71388\nTO sqltide_playground.tbl__order_report__20261114T181057Z_b71388 AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders;", + "sqlSha256": "1af57458148779d0f9537ddb65bbf475177fea722be91d63fb475af8f748937b", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/33": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/33": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 33, - "stepId": "realize_mv__large_orders__20261114T095302Z_f4e644", + "stepId": "realize_mv__large_orders__20261114T181057Z_b71388", "phase": "realization", "intent": "mutation", - "sql": "CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__20261114T095302Z_f4e644\nTO sqltide_playground.tbl__large_orders__20261114T095302Z_f4e644 AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__20261114T095302Z_f4e644\nWHERE total_cents >= 1000;", - "sqlSha256": "c83be8b5a216ec5ac21b5e642d3e28c2968a0665f483aa131d1e13e95f598b5b", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__large_orders__20261114T181057Z_b71388\nTO sqltide_playground.tbl__large_orders__20261114T181057Z_b71388 AS\nSELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.tbl__order_report__20261114T181057Z_b71388\nWHERE total_cents >= 1000;", + "sqlSha256": "754ba0723c0ec98a3875670432104992aafc14f847570b1bcf626ab302789b49", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/32": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/32": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 32, - "stepId": "realize_tbl__large_orders__20261114T095302Z_f4e644", + "stepId": "realize_tbl__large_orders__20261114T181057Z_b71388", "phase": "realization", "intent": "mutation", - "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__20261114T095302Z_f4e644 (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);", - "sqlSha256": "66f6edaf5f0ddc9101f11221c893e388a0ae64a08e0aa3a8fcca2f9d4855300d", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__large_orders__20261114T181057Z_b71388 (\n order_id UInt64,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);", + "sqlSha256": "48a79b81955791d4b82d21978ba5057cb34d52c22828274614096953358c2ca2", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/31": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/31": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 31, - "stepId": "realize_tbl__order_report__20261114T095302Z_f4e644", + "stepId": "realize_tbl__order_report__20261114T181057Z_b71388", "phase": "realization", "intent": "mutation", - "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__20261114T095302Z_f4e644 (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);", - "sqlSha256": "84a4db1551a476cb7a4af12257efccfc90b1956756beb0bc2113c55664bf9e0a", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__20261114T181057Z_b71388 (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);", + "sqlSha256": "1ce7774d375a4a611a435aa36f7e20bcd34d024aa07fb57518f9ce88290ce15e", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/30": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/30": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 30, "stepId": "persist_candidate_metadata_1", "phase": "preparation", "intent": "mutation", - "sql": "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('20261114T095302Z_f4e644', '4f56769517a512d19361f4702fea8446bdc410b17d12752ec180f5701540f623', 'deployment', '20261114T095302Z_f4e644', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__20261114T095302Z_f4e644', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '2026-11-14 09:53:02.324'),\n('20261114T095302Z_f4e644', '98f2f81d6ed139c9aa1f2b6917ccd80f373b664d2cfe8470233cb5a6bebd5304', 'deployment', '20261114T095302Z_f4e644', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__20261114T095302Z_f4e644', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders', '2026-11-14 09:53:02.324'),\n('20261114T095302Z_f4e644', '9bd79632dd1e2c2e4b3001fad7122e08194d206200bf96e6daae2cc78692f499', 'deployment', '20261114T095302Z_f4e644', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__20261114T095302Z_f4e644', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '2026-11-14 09:53:02.324'),\n('20261114T095302Z_f4e644', '340ec1c2d52bbb540fa9dc1c18cbc525930b7afbdf0a71b93ee1aaee0e11abef', 'deployment', '20261114T095302Z_f4e644', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__20261114T095302Z_f4e644', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '2026-11-14 09:53:02.324');", - "sqlSha256": "d4ed77429240fd7eb89f26354ce3eaaddb6c1f83355f36fcfbd55a19f671ee1f", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('20261114T181057Z_b71388', 'b4ac75fa56dd8f587eb1f67ae1adf28a4b3b22a08a3ed973b1938cae83d7ea3c', 'deployment', '20261114T181057Z_b71388', NULL, 'materialized_view', 'mv__large_orders', NULL, 'mv__large_orders__20261114T181057Z_b71388', NULL, 'large_orders', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.tbl__order_report\\\\nWHERE total_cents >= 1000\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM tbl__order_report\\\\nWHERE total_cents >= 1000\", \"source_table_name\": \"tbl__order_report\", \"target_table_name\": \"tbl__large_orders\"}', 'SELECT\n order_id::UInt64 AS order_id,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM tbl__order_report\nWHERE total_cents >= 1000', '2026-11-14 18:10:57.589'),\n('20261114T181057Z_b71388', '6170778f1e99909c6f8c6fa36bc9a63ac7582226f1f07a2e7ce74460c9be24cb', 'deployment', '20261114T181057Z_b71388', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__20261114T181057Z_b71388', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders', '2026-11-14 18:10:57.589'),\n('20261114T181057Z_b71388', 'ccbb2670e6fc46540ffe786f328e63db835c9df158eb61b359ca1761cbe2683e', 'deployment', '20261114T181057Z_b71388', NULL, 'table', 'tbl__large_orders', NULL, 'tbl__large_orders__20261114T181057Z_b71388', NULL, 'large_orders', false, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '2026-11-14 18:10:57.589'),\n('20261114T181057Z_b71388', 'de323e5ff4328f69be79d68009aca9006ce3f4b1294852a5f946ff672851f9ac', 'deployment', '20261114T181057Z_b71388', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__20261114T181057Z_b71388', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '2026-11-14 18:10:57.589');", + "sqlSha256": "c0570dec9dd1f9cd1324249d7ef3c9966c385bcc7188b632f275f8fdd244fbe0", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/29": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/29": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 29, "stepId": "prepare_metadata_22", "phase": "preparation", "intent": "mutation", "sql": "INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, 'UTC') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);", "sqlSha256": "5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/28": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/28": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 28, "stepId": "prepare_metadata_21", "phase": "preparation", "intent": "mutation", "sql": "ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT 'promote' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;", "sqlSha256": "da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/27": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/27": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 27, "stepId": "prepare_metadata_20", "phase": "preparation", "intent": "mutation", "sql": "DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;", "sqlSha256": "82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/26": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/26": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 26, "stepId": "prepare_metadata_19", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);", "sqlSha256": "b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/25": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/25": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 25, "stepId": "prepare_metadata_18", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, 'UTC')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);", "sqlSha256": "bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/24": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/24": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 24, "stepId": "prepare_metadata_17", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;", "sqlSha256": "10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/23": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/23": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 23, "stepId": "prepare_metadata_16", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, 'UTC'),\n expires_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);", "sqlSha256": "af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/22": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/22": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 22, "stepId": "prepare_metadata_15", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);", "sqlSha256": "49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/21": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/21": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 21, "stepId": "prepare_metadata_14", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);", "sqlSha256": "c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/20": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/20": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 20, "stepId": "prepare_metadata_13", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, 'UTC'),\n completed_at Nullable(DateTime64(3, 'UTC')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);", "sqlSha256": "c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/19": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/19": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 19, "stepId": "prepare_metadata_12", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, 'UTC'),\n position_result_id String,\n recorded_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);", "sqlSha256": "abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/18": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/18": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 18, "stepId": "prepare_metadata_11", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);", "sqlSha256": "61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/17": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/17": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 17, "stepId": "prepare_metadata_10", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);", "sqlSha256": "27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/16": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/16": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 16, "stepId": "prepare_metadata_9", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, 'UTC')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, 'UTC'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);", "sqlSha256": "fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/15": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/15": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 15, "stepId": "prepare_metadata_8", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, 'UTC'),\n completed_at DateTime64(3, 'UTC'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);", "sqlSha256": "5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/14": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/14": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 14, "stepId": "prepare_metadata_7", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);", "sqlSha256": "70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/13": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/13": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 13, "stepId": "prepare_metadata_6", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT 'promote',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);", "sqlSha256": "986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/12": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/12": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 12, "stepId": "prepare_metadata_5", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, ''));", "sqlSha256": "c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/11": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/11": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 11, "stepId": "prepare_metadata_4", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, 'UTC'),\n created_at DateTime64(3, 'UTC'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);", "sqlSha256": "a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/10": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/10": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 10, "stepId": "prepare_metadata_3", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);", "sqlSha256": "e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/9": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/9": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 9, "stepId": "prepare_metadata_2", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (version);", "sqlSha256": "76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/8": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/8": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 8, "stepId": "prepare_metadata_1", "phase": "preparation", "intent": "mutation", "sql": "CREATE DATABASE IF NOT EXISTS sqltide_playground;", "sqlSha256": "61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/7": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/7": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 7, "stepId": "prepare_target_database", "phase": "preparation", "intent": "mutation", "sql": "CREATE DATABASE IF NOT EXISTS sqltide_playground;", "sqlSha256": "61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/6": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/6": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 6, - "stepId": "assert_candidate_relation_mv__large_orders__20261114T095302Z_f4e644", + "stepId": "assert_candidate_relation_mv__large_orders__20261114T181057Z_b71388", "phase": "preflight", "intent": "assertion", - "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'mv__large_orders__20261114T095302Z_f4e644';", - "sqlSha256": "893cfcba93bd53d01faf65320fbd7135df0da0b85b723d51bcfd7c6fc470fa11", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'mv__large_orders__20261114T181057Z_b71388';", + "sqlSha256": "59fe611578e3eb9d69471f0ecab37b9f63706d5030c4511231bce844789511c6", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/5": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/5": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 5, - "stepId": "assert_candidate_relation_tbl__large_orders__20261114T095302Z_f4e644", + "stepId": "assert_candidate_relation_tbl__large_orders__20261114T181057Z_b71388", "phase": "preflight", "intent": "assertion", - "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'tbl__large_orders__20261114T095302Z_f4e644';", - "sqlSha256": "2c3e4d7955f581d4aeb523b43a613b297b2a37e55960c17ae1a03cf80894b6db", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'tbl__large_orders__20261114T181057Z_b71388';", + "sqlSha256": "4f578f99f18f526814db62f9cbfa6f1a97b2ad0159cd538cd68ff35f9115858c", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/4": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/4": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 4, - "stepId": "assert_candidate_relation_mv__order_report__20261114T095302Z_f4e644", + "stepId": "assert_candidate_relation_mv__order_report__20261114T181057Z_b71388", "phase": "preflight", "intent": "assertion", - "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'mv__order_report__20261114T095302Z_f4e644';", - "sqlSha256": "eaf6fe6133703674482d1541a90fba265390a947cf1aa13522994f96184446a1", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'mv__order_report__20261114T181057Z_b71388';", + "sqlSha256": "268ca3322bbf6bcf3f408fefa869582800a59044fee052d61140e1c22f4ae9a4", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/3": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/3": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 3, - "stepId": "assert_candidate_relation_tbl__order_report__20261114T095302Z_f4e644", + "stepId": "assert_candidate_relation_tbl__order_report__20261114T181057Z_b71388", "phase": "preflight", "intent": "assertion", - "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'tbl__order_report__20261114T095302Z_f4e644';", - "sqlSha256": "369ae1e78b781bb38652732bca0991488660cc4654a132124a7d0c2c3ee78236", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'tbl__order_report__20261114T181057Z_b71388';", + "sqlSha256": "baad24c8475e6258edf249f41183305a52293d6154673b695c9b982b1a76e13f", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/2": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/2": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 2, "stepId": "assert_candidate_unpublished", "phase": "preflight", "intent": "assertion", - "sql": "SELECT throwIf(count() > 0, 'Candidate deployment is already published') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = '20261114T095302Z_f4e644';", - "sqlSha256": "b5f39f082cf498099648b6f449554a25df4a1d111081b8695782a30dbeebb4fc", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "SELECT throwIf(count() > 0, 'Candidate deployment is already published') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = '20261114T181057Z_b71388';", + "sqlSha256": "dbbbe6d6763fb214abfbe756ece6f5744582edbbda5ec375cf6a393fa7059806", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/6a0f0442-269b-403d-bc30-9ad50d0971e2/statements/1": { + "/api/runs/f42a7e72-c28f-44f2-b758-5cca14087543/statements/1": { "status": 200, "body": { "found": true, - "invocationId": "6a0f0442-269b-403d-bc30-9ad50d0971e2", + "invocationId": "f42a7e72-c28f-44f2-b758-5cca14087543", "statementSequence": 1, "stepId": "assert_candidate_metadata", "phase": "preflight", "intent": "assertion", - "sql": "SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64('2026-11-14 09:53:02.324', 3, 'UTC') OR any(replay_lineage_mode) != 'offsets' OR any(workflow_fingerprint) != 'b4becea27492ec90498f3182d630a2e50a3161cc159ffc95cb4be5761d7a54c4' OR any(tool_version) != '0.69.1'), 'Candidate deployment conflicts with the confirmed workflow') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T095302Z_f4e644';", - "sqlSha256": "9f071d63972f1e7fcd9acca8c731beb13a13a4626f22b62da3ce43440ccd074c", - "workflowSha256": "1da862989ade66d1bd8dd530f5f31c00c2b81db51c6c9e9f7a85c23ba6826d7c" + "sql": "SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64('2026-11-14 18:10:57.589', 3, 'UTC') OR any(replay_lineage_mode) != 'offsets' OR any(workflow_fingerprint) != '4b72d67857d66f6b9943ccb8419fdedaa9d558d271b1c38118174ac271d2348e' OR any(tool_version) != '0.70.1'), 'Candidate deployment conflicts with the confirmed workflow') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T181057Z_b71388';", + "sqlSha256": "58e1bc843e8e81d6965cc7017b30a7b0b0a659c090cae94cc4f8070660b562e1", + "workflowSha256": "41faf29a846c6ce1dd1de9104ac58dc2c354bfb303a1e4c37e304d5c232cc71f" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/events?after=0": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/events?after=0": { "status": 200, "body": { "found": true, "events": [ { "sequence": 1, - "emittedAt": "2026-11-14 10:03:40.557", + "emittedAt": "2026-11-14 18:10:51.179", "event": "run_started", "stepId": null, "phase": null, @@ -4940,34 +4940,34 @@ "selectors": [], "startTime": null, "startupTimings": { - "compileMs": 96, - "observabilityMs": 153, - "planningMs": 83, - "totalMs": 332 + "compileMs": 8, + "observabilityMs": 97, + "planningMs": 38, + "totalMs": 143 }, - "toolVersion": "0.69.1", + "toolVersion": "0.70.1", "totalStatements": 40 }, { "sequence": 2, - "emittedAt": "2026-11-14 10:03:40.566", + "emittedAt": "2026-11-14 18:10:51.229", "event": "statement_started", "stepId": "assert_candidate_metadata", "phase": "preflight", "displayName": null, "intent": "assertion", - "queryId": "3855ee9c-e969-4897-8cdf-c945f853ce8b", + "queryId": "fe1f63fd-8e9b-44dd-bc44-a7f30454aee2", "replayOffsetProgress": null, "statementSequence": 1 }, { "sequence": 3, - "emittedAt": "2026-11-14 10:03:40.569", + "emittedAt": "2026-11-14 18:10:51.238", "event": "statement_completed", "stepId": "assert_candidate_metadata", "phase": "preflight", "displayName": null, - "elapsedMs": 8, + "elapsedMs": 4, "errorMessage": null, "intent": "assertion", "statementSequence": 1, @@ -4975,24 +4975,24 @@ }, { "sequence": 4, - "emittedAt": "2026-11-14 10:03:40.571", + "emittedAt": "2026-11-14 18:10:51.242", "event": "statement_started", "stepId": "assert_candidate_unpublished", "phase": "preflight", "displayName": null, "intent": "assertion", - "queryId": "76c130d1-45c8-4774-8b02-000af2ed86cd", + "queryId": "6d9992db-d001-43e0-a1b1-6f1c371d3335", "replayOffsetProgress": null, "statementSequence": 2 }, { "sequence": 5, - "emittedAt": "2026-11-14 10:03:40.574", + "emittedAt": "2026-11-14 18:10:51.249", "event": "statement_completed", "stepId": "assert_candidate_unpublished", "phase": "preflight", "displayName": null, - "elapsedMs": 5, + "elapsedMs": 3, "errorMessage": null, "intent": "assertion", "statementSequence": 2, @@ -5000,24 +5000,24 @@ }, { "sequence": 6, - "emittedAt": "2026-11-14 10:03:40.577", + "emittedAt": "2026-11-14 18:10:51.253", "event": "statement_started", - "stepId": "assert_candidate_relation_tbl__order_report__20261114T095255Z_fdf238", + "stepId": "assert_candidate_relation_tbl__order_report__20261114T181051Z_390cdb", "phase": "preflight", "displayName": null, "intent": "assertion", - "queryId": "df06aca7-7b68-4494-a9c6-a261f7a70bdd", + "queryId": "0f14e83d-2f45-4ead-8fcc-a3e0d5801e6c", "replayOffsetProgress": null, "statementSequence": 3 }, { "sequence": 7, - "emittedAt": "2026-11-14 10:03:40.581", + "emittedAt": "2026-11-14 18:10:51.261", "event": "statement_completed", - "stepId": "assert_candidate_relation_tbl__order_report__20261114T095255Z_fdf238", + "stepId": "assert_candidate_relation_tbl__order_report__20261114T181051Z_390cdb", "phase": "preflight", "displayName": null, - "elapsedMs": 9, + "elapsedMs": 5, "errorMessage": null, "intent": "assertion", "statementSequence": 3, @@ -5025,24 +5025,24 @@ }, { "sequence": 8, - "emittedAt": "2026-11-14 10:03:40.584", + "emittedAt": "2026-11-14 18:10:51.264", "event": "statement_started", - "stepId": "assert_candidate_relation_mv__order_report__20261114T095255Z_fdf238", + "stepId": "assert_candidate_relation_mv__order_report__20261114T181051Z_390cdb", "phase": "preflight", "displayName": null, "intent": "assertion", - "queryId": "3295ec8c-6645-4109-b7fa-2fb51ee30f0d", + "queryId": "3ab02d94-04bd-4d6e-8554-80a1e4f78300", "replayOffsetProgress": null, "statementSequence": 4 }, { "sequence": 9, - "emittedAt": "2026-11-14 10:03:40.586", + "emittedAt": "2026-11-14 18:10:51.270", "event": "statement_completed", - "stepId": "assert_candidate_relation_mv__order_report__20261114T095255Z_fdf238", + "stepId": "assert_candidate_relation_mv__order_report__20261114T181051Z_390cdb", "phase": "preflight", "displayName": null, - "elapsedMs": 6, + "elapsedMs": 3, "errorMessage": null, "intent": "assertion", "statementSequence": 4, @@ -5050,24 +5050,24 @@ }, { "sequence": 10, - "emittedAt": "2026-11-14 10:03:40.589", + "emittedAt": "2026-11-14 18:10:51.273", "event": "statement_started", "stepId": "prepare_target_database", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "c714f291-833d-4d6f-ae27-698c2c07599a", + "queryId": "9808b147-0247-4609-9cfc-5d152b43f753", "replayOffsetProgress": null, "statementSequence": 5 }, { "sequence": 11, - "emittedAt": "2026-11-14 10:03:40.594", + "emittedAt": "2026-11-14 18:10:51.276", "event": "statement_completed", "stepId": "prepare_target_database", "phase": "preparation", "displayName": null, - "elapsedMs": 3, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 5, @@ -5075,24 +5075,24 @@ }, { "sequence": 12, - "emittedAt": "2026-11-14 10:03:40.597", + "emittedAt": "2026-11-14 18:10:51.279", "event": "statement_started", "stepId": "prepare_metadata_1", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "9b8c5136-08b1-4e0d-a734-495a29f1ef1d", + "queryId": "a2d1153d-994f-4de4-8d67-6bbbcd846ae0", "replayOffsetProgress": null, "statementSequence": 6 }, { "sequence": 13, - "emittedAt": "2026-11-14 10:03:40.601", + "emittedAt": "2026-11-14 18:10:51.283", "event": "statement_completed", "stepId": "prepare_metadata_1", "phase": "preparation", "displayName": null, - "elapsedMs": 3, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 6, @@ -5100,24 +5100,24 @@ }, { "sequence": 14, - "emittedAt": "2026-11-14 10:03:40.605", + "emittedAt": "2026-11-14 18:10:51.286", "event": "statement_started", "stepId": "prepare_metadata_2", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "cfff07cd-a8e8-461f-ba94-dcefbf9f3590", + "queryId": "91abdf67-2c34-40d1-b590-4c70e28c5378", "replayOffsetProgress": null, "statementSequence": 7 }, { "sequence": 15, - "emittedAt": "2026-11-14 10:03:40.612", + "emittedAt": "2026-11-14 18:10:51.291", "event": "statement_completed", "stepId": "prepare_metadata_2", "phase": "preparation", "displayName": null, - "elapsedMs": 2, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 7, @@ -5125,19 +5125,19 @@ }, { "sequence": 16, - "emittedAt": "2026-11-14 10:03:40.615", + "emittedAt": "2026-11-14 18:10:51.294", "event": "statement_started", "stepId": "prepare_metadata_3", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "c36da961-44bd-4357-b897-eee654c5df73", + "queryId": "de6bf872-9b85-43d6-a18b-59a3243a24d7", "replayOffsetProgress": null, "statementSequence": 8 }, { "sequence": 17, - "emittedAt": "2026-11-14 10:03:40.621", + "emittedAt": "2026-11-14 18:10:51.301", "event": "statement_completed", "stepId": "prepare_metadata_3", "phase": "preparation", @@ -5150,24 +5150,24 @@ }, { "sequence": 18, - "emittedAt": "2026-11-14 10:03:40.623", + "emittedAt": "2026-11-14 18:10:51.304", "event": "statement_started", "stepId": "prepare_metadata_4", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "2f920456-c27c-4310-ab9d-c339bf664875", + "queryId": "1f25e67b-3b60-412e-8e60-17e36153190d", "replayOffsetProgress": null, "statementSequence": 9 }, { "sequence": 19, - "emittedAt": "2026-11-14 10:03:40.628", + "emittedAt": "2026-11-14 18:10:51.309", "event": "statement_completed", "stepId": "prepare_metadata_4", "phase": "preparation", "displayName": null, - "elapsedMs": 2, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 9, @@ -5175,24 +5175,24 @@ }, { "sequence": 20, - "emittedAt": "2026-11-14 10:03:40.631", + "emittedAt": "2026-11-14 18:10:51.312", "event": "statement_started", "stepId": "prepare_metadata_5", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "35677d54-0066-40f6-8393-53cb31153941", + "queryId": "7f458940-76de-44c7-b349-caf6163dc762", "replayOffsetProgress": null, "statementSequence": 10 }, { "sequence": 21, - "emittedAt": "2026-11-14 10:03:40.635", + "emittedAt": "2026-11-14 18:10:51.317", "event": "statement_completed", "stepId": "prepare_metadata_5", "phase": "preparation", "displayName": null, - "elapsedMs": 2, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 10, @@ -5200,24 +5200,24 @@ }, { "sequence": 22, - "emittedAt": "2026-11-14 10:03:40.641", + "emittedAt": "2026-11-14 18:10:51.321", "event": "statement_started", "stepId": "prepare_metadata_6", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "f0ecb1eb-97db-4ebe-833d-89014c15c12b", + "queryId": "e6a65fe1-6b30-4ef9-9bfe-80af2d2a1ef2", "replayOffsetProgress": null, "statementSequence": 11 }, { "sequence": 23, - "emittedAt": "2026-11-14 10:03:40.646", + "emittedAt": "2026-11-14 18:10:51.326", "event": "statement_completed", "stepId": "prepare_metadata_6", "phase": "preparation", "displayName": null, - "elapsedMs": 3, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 11, @@ -5225,24 +5225,24 @@ }, { "sequence": 24, - "emittedAt": "2026-11-14 10:03:40.649", + "emittedAt": "2026-11-14 18:10:51.329", "event": "statement_started", "stepId": "prepare_metadata_7", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "792d12d9-09cc-4f06-9fc8-14bbed9dc96b", + "queryId": "3dcce789-aa24-4964-bf3a-396303dc66d3", "replayOffsetProgress": null, "statementSequence": 12 }, { "sequence": 25, - "emittedAt": "2026-11-14 10:03:40.655", + "emittedAt": "2026-11-14 18:10:51.333", "event": "statement_completed", "stepId": "prepare_metadata_7", "phase": "preparation", "displayName": null, - "elapsedMs": 3, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 12, @@ -5250,24 +5250,24 @@ }, { "sequence": 26, - "emittedAt": "2026-11-14 10:03:40.657", + "emittedAt": "2026-11-14 18:10:51.336", "event": "statement_started", "stepId": "prepare_metadata_8", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "e1fe5f62-7fac-4b6b-84bb-38a45df07885", + "queryId": "d7fbd9b2-02ca-485e-8709-d14e758c878a", "replayOffsetProgress": null, "statementSequence": 13 }, { "sequence": 27, - "emittedAt": "2026-11-14 10:03:40.662", + "emittedAt": "2026-11-14 18:10:51.341", "event": "statement_completed", "stepId": "prepare_metadata_8", "phase": "preparation", "displayName": null, - "elapsedMs": 4, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 13, @@ -5275,24 +5275,24 @@ }, { "sequence": 28, - "emittedAt": "2026-11-14 10:03:40.664", + "emittedAt": "2026-11-14 18:10:51.343", "event": "statement_started", "stepId": "prepare_metadata_9", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "1b13c103-780e-4486-9fa4-42051e81a4e2", + "queryId": "aa0a1db1-bf58-41e2-b113-d8e1681900a4", "replayOffsetProgress": null, "statementSequence": 14 }, { "sequence": 29, - "emittedAt": "2026-11-14 10:03:40.669", + "emittedAt": "2026-11-14 18:10:51.348", "event": "statement_completed", "stepId": "prepare_metadata_9", "phase": "preparation", "displayName": null, - "elapsedMs": 19, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 14, @@ -5300,24 +5300,24 @@ }, { "sequence": 30, - "emittedAt": "2026-11-14 10:03:40.671", + "emittedAt": "2026-11-14 18:10:51.350", "event": "statement_started", "stepId": "prepare_metadata_10", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "213e323a-45b6-40ef-9110-914c2d6fed42", + "queryId": "db7bd200-085b-4314-bf8a-b28c98de1bc4", "replayOffsetProgress": null, "statementSequence": 15 }, { "sequence": 31, - "emittedAt": "2026-11-14 10:03:40.676", + "emittedAt": "2026-11-14 18:10:51.354", "event": "statement_completed", "stepId": "prepare_metadata_10", "phase": "preparation", "displayName": null, - "elapsedMs": 9, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 15, @@ -5325,24 +5325,24 @@ }, { "sequence": 32, - "emittedAt": "2026-11-14 10:03:40.681", + "emittedAt": "2026-11-14 18:10:51.357", "event": "statement_started", "stepId": "prepare_metadata_11", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "d7986f28-80c1-4b1a-a256-caeb15e519b4", + "queryId": "96f46c96-e91a-4763-99d3-2fbad4307074", "replayOffsetProgress": null, "statementSequence": 16 }, { "sequence": 33, - "emittedAt": "2026-11-14 10:03:40.685", + "emittedAt": "2026-11-14 18:10:51.361", "event": "statement_completed", "stepId": "prepare_metadata_11", "phase": "preparation", "displayName": null, - "elapsedMs": 2, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 16, @@ -5350,24 +5350,24 @@ }, { "sequence": 34, - "emittedAt": "2026-11-14 10:03:40.688", + "emittedAt": "2026-11-14 18:10:51.364", "event": "statement_started", "stepId": "prepare_metadata_12", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "e5c9b8d8-1965-4157-9087-298cdfced806", + "queryId": "7833616a-3da6-4694-ab64-baf41377b72f", "replayOffsetProgress": null, "statementSequence": 17 }, { "sequence": 35, - "emittedAt": "2026-11-14 10:03:40.692", + "emittedAt": "2026-11-14 18:10:51.368", "event": "statement_completed", "stepId": "prepare_metadata_12", "phase": "preparation", "displayName": null, - "elapsedMs": 2, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 17, @@ -5375,24 +5375,24 @@ }, { "sequence": 36, - "emittedAt": "2026-11-14 10:03:40.695", + "emittedAt": "2026-11-14 18:10:51.370", "event": "statement_started", "stepId": "prepare_metadata_13", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "5c3fe9ea-24bc-40db-852c-4fd2cc480744", + "queryId": "e61116e9-a162-4f3f-9f77-a131bf335271", "replayOffsetProgress": null, "statementSequence": 18 }, { "sequence": 37, - "emittedAt": "2026-11-14 10:03:40.701", + "emittedAt": "2026-11-14 18:10:51.374", "event": "statement_completed", "stepId": "prepare_metadata_13", "phase": "preparation", "displayName": null, - "elapsedMs": 2, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 18, @@ -5400,24 +5400,24 @@ }, { "sequence": 38, - "emittedAt": "2026-11-14 10:03:40.703", + "emittedAt": "2026-11-14 18:10:51.377", "event": "statement_started", "stepId": "prepare_metadata_14", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "9b5dc2ea-d71a-497c-8d50-081ab2c0b98c", + "queryId": "06252083-7b2c-45ae-b139-9639f1310f15", "replayOffsetProgress": null, "statementSequence": 19 }, { "sequence": 39, - "emittedAt": "2026-11-14 10:03:40.708", + "emittedAt": "2026-11-14 18:10:51.381", "event": "statement_completed", "stepId": "prepare_metadata_14", "phase": "preparation", "displayName": null, - "elapsedMs": 2, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 19, @@ -5425,24 +5425,24 @@ }, { "sequence": 40, - "emittedAt": "2026-11-14 10:03:40.711", + "emittedAt": "2026-11-14 18:10:51.384", "event": "statement_started", "stepId": "prepare_metadata_15", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "2b8f9a5a-31da-4517-986e-051acada6eaa", + "queryId": "b399491c-c18c-49fb-8329-c02c9e55081e", "replayOffsetProgress": null, "statementSequence": 20 }, { "sequence": 41, - "emittedAt": "2026-11-14 10:03:40.715", + "emittedAt": "2026-11-14 18:10:51.388", "event": "statement_completed", "stepId": "prepare_metadata_15", "phase": "preparation", "displayName": null, - "elapsedMs": 2, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 20, @@ -5450,24 +5450,24 @@ }, { "sequence": 42, - "emittedAt": "2026-11-14 10:03:40.717", + "emittedAt": "2026-11-14 18:10:51.391", "event": "statement_started", "stepId": "prepare_metadata_16", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "b674d6f8-784c-4dd4-91d9-278f4a1db464", + "queryId": "39ffe1cf-8996-4e20-a28d-47e08f8b0c16", "replayOffsetProgress": null, "statementSequence": 21 }, { "sequence": 43, - "emittedAt": "2026-11-14 10:03:40.722", + "emittedAt": "2026-11-14 18:10:51.395", "event": "statement_completed", "stepId": "prepare_metadata_16", "phase": "preparation", "displayName": null, - "elapsedMs": 3, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 21, @@ -5475,24 +5475,24 @@ }, { "sequence": 44, - "emittedAt": "2026-11-14 10:03:40.725", + "emittedAt": "2026-11-14 18:10:51.398", "event": "statement_started", "stepId": "prepare_metadata_17", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "17653cb9-46a1-4fad-a301-af28383a6fae", + "queryId": "1b9d19aa-ce68-4021-8883-3e03293e2e2f", "replayOffsetProgress": null, "statementSequence": 22 }, { "sequence": 45, - "emittedAt": "2026-11-14 10:03:40.729", + "emittedAt": "2026-11-14 18:10:51.402", "event": "statement_completed", "stepId": "prepare_metadata_17", "phase": "preparation", "displayName": null, - "elapsedMs": 2, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 22, @@ -5500,24 +5500,24 @@ }, { "sequence": 46, - "emittedAt": "2026-11-14 10:03:40.731", + "emittedAt": "2026-11-14 18:10:51.405", "event": "statement_started", "stepId": "prepare_metadata_18", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "b4020ab9-483b-4799-9136-c3f1281fbf4f", + "queryId": "2597141e-4c0d-4552-ad35-d6ab5a31a0c9", "replayOffsetProgress": null, "statementSequence": 23 }, { "sequence": 47, - "emittedAt": "2026-11-14 10:03:40.737", + "emittedAt": "2026-11-14 18:10:51.410", "event": "statement_completed", "stepId": "prepare_metadata_18", "phase": "preparation", "displayName": null, - "elapsedMs": 3, + "elapsedMs": 2, "errorMessage": null, "intent": "mutation", "statementSequence": 23, @@ -5525,24 +5525,24 @@ }, { "sequence": 48, - "emittedAt": "2026-11-14 10:03:40.739", + "emittedAt": "2026-11-14 18:10:51.414", "event": "statement_started", "stepId": "prepare_metadata_19", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "a4829c8f-33b2-48b9-b425-9f1d84ec4d56", + "queryId": "2b80b102-0c1b-4403-8465-f94e84344cb2", "replayOffsetProgress": null, "statementSequence": 24 }, { "sequence": 49, - "emittedAt": "2026-11-14 10:03:40.744", + "emittedAt": "2026-11-14 18:10:51.419", "event": "statement_completed", "stepId": "prepare_metadata_19", "phase": "preparation", "displayName": null, - "elapsedMs": 2, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 24, @@ -5550,24 +5550,24 @@ }, { "sequence": 50, - "emittedAt": "2026-11-14 10:03:40.747", + "emittedAt": "2026-11-14 18:10:51.422", "event": "statement_started", "stepId": "prepare_metadata_20", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "a3a1d28d-56b7-4daf-8d90-c9f9ae37eadd", + "queryId": "151415fd-dced-49c1-b32b-a5fc75ca3b58", "replayOffsetProgress": null, "statementSequence": 25 }, { "sequence": 51, - "emittedAt": "2026-11-14 10:03:40.751", + "emittedAt": "2026-11-14 18:10:51.426", "event": "statement_completed", "stepId": "prepare_metadata_20", "phase": "preparation", "displayName": null, - "elapsedMs": 2, + "elapsedMs": 1, "errorMessage": null, "intent": "mutation", "statementSequence": 25, @@ -5575,24 +5575,24 @@ }, { "sequence": 52, - "emittedAt": "2026-11-14 10:03:40.756", + "emittedAt": "2026-11-14 18:10:51.430", "event": "statement_started", "stepId": "prepare_metadata_21", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "04d5005d-fcdc-471b-8809-7173759dea86", + "queryId": "96a28d8f-0d05-4ed2-8c4e-d48c23c40924", "replayOffsetProgress": null, "statementSequence": 26 }, { "sequence": 53, - "emittedAt": "2026-11-14 10:03:40.764", + "emittedAt": "2026-11-14 18:10:51.439", "event": "statement_completed", "stepId": "prepare_metadata_21", "phase": "preparation", "displayName": null, - "elapsedMs": 6, + "elapsedMs": 4, "errorMessage": null, "intent": "mutation", "statementSequence": 26, @@ -5600,24 +5600,24 @@ }, { "sequence": 54, - "emittedAt": "2026-11-14 10:03:40.767", + "emittedAt": "2026-11-14 18:10:51.442", "event": "statement_started", "stepId": "prepare_metadata_22", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "69fb1cd9-5bec-4791-97cf-f8c2421898b2", + "queryId": "4bfa38c0-6679-4663-837d-b10cefc9bd85", "replayOffsetProgress": null, "statementSequence": 27 }, { "sequence": 55, - "emittedAt": "2026-11-14 10:03:40.776", + "emittedAt": "2026-11-14 18:10:51.450", "event": "statement_completed", "stepId": "prepare_metadata_22", "phase": "preparation", "displayName": null, - "elapsedMs": 5, + "elapsedMs": 4, "errorMessage": null, "intent": "mutation", "statementSequence": 27, @@ -5625,24 +5625,24 @@ }, { "sequence": 56, - "emittedAt": "2026-11-14 10:03:40.778", + "emittedAt": "2026-11-14 18:10:51.453", "event": "statement_started", "stepId": "persist_candidate_metadata_1", "phase": "preparation", "displayName": null, "intent": "mutation", - "queryId": "f642da25-8cca-47db-901a-cbc51afee1ee", + "queryId": "4e555a78-fea2-48c7-9f9b-0c0be07dc6f0", "replayOffsetProgress": null, "statementSequence": 28 }, { "sequence": 57, - "emittedAt": "2026-11-14 10:03:40.786", + "emittedAt": "2026-11-14 18:10:51.460", "event": "statement_completed", "stepId": "persist_candidate_metadata_1", "phase": "preparation", "displayName": null, - "elapsedMs": 6, + "elapsedMs": 4, "errorMessage": null, "intent": "mutation", "statementSequence": 28, @@ -5650,24 +5650,24 @@ }, { "sequence": 58, - "emittedAt": "2026-11-14 10:03:40.789", + "emittedAt": "2026-11-14 18:10:51.463", "event": "statement_started", - "stepId": "realize_tbl__order_report__20261114T095255Z_fdf238", + "stepId": "realize_tbl__order_report__20261114T181051Z_390cdb", "phase": "realization", "displayName": null, "intent": "mutation", - "queryId": "b7c036db-096b-474d-88d7-46e1f8e9f00d", + "queryId": "0d029fe8-176d-43ef-959f-c5019615cc82", "replayOffsetProgress": null, "statementSequence": 29 }, { "sequence": 59, - "emittedAt": "2026-11-14 10:03:40.797", + "emittedAt": "2026-11-14 18:10:51.471", "event": "statement_completed", - "stepId": "realize_tbl__order_report__20261114T095255Z_fdf238", + "stepId": "realize_tbl__order_report__20261114T181051Z_390cdb", "phase": "realization", "displayName": null, - "elapsedMs": 5, + "elapsedMs": 4, "errorMessage": null, "intent": "mutation", "statementSequence": 29, @@ -5675,24 +5675,24 @@ }, { "sequence": 60, - "emittedAt": "2026-11-14 10:03:40.799", + "emittedAt": "2026-11-14 18:10:51.473", "event": "statement_started", - "stepId": "realize_mv__order_report__20261114T095255Z_fdf238", + "stepId": "realize_mv__order_report__20261114T181051Z_390cdb", "phase": "realization", "displayName": null, "intent": "mutation", - "queryId": "b974d7dd-4083-453e-823b-bc67598fcc4f", + "queryId": "c1b1e16e-9752-4b7b-a70d-0e075a0dcb23", "replayOffsetProgress": null, "statementSequence": 30 }, { "sequence": 61, - "emittedAt": "2026-11-14 10:03:40.807", + "emittedAt": "2026-11-14 18:10:51.480", "event": "statement_completed", - "stepId": "realize_mv__order_report__20261114T095255Z_fdf238", + "stepId": "realize_mv__order_report__20261114T181051Z_390cdb", "phase": "realization", "displayName": null, - "elapsedMs": 5, + "elapsedMs": 3, "errorMessage": null, "intent": "mutation", "statementSequence": 30, @@ -5700,24 +5700,24 @@ }, { "sequence": 62, - "emittedAt": "2026-11-14 10:03:40.810", + "emittedAt": "2026-11-14 18:10:51.484", "event": "statement_started", "stepId": "wait_for_virtual_live_stabilization", "phase": "stabilization", "displayName": null, "intent": "wait", - "queryId": "8b96b690-e71f-4493-9ab2-54de6fbe750c", + "queryId": "b0c387db-3069-4a38-8a19-4e9442e0187c", "replayOffsetProgress": null, "statementSequence": 31 }, { "sequence": 63, - "emittedAt": "2026-11-14 10:03:40.812", + "emittedAt": "2026-11-14 18:10:56.491", "event": "statement_completed", "stepId": "wait_for_virtual_live_stabilization", "phase": "stabilization", "displayName": null, - "elapsedMs": 5007, + "elapsedMs": 5004, "errorMessage": null, "intent": "wait", "statementSequence": 31, @@ -5725,24 +5725,24 @@ }, { "sequence": 64, - "emittedAt": "2026-11-14 10:03:40.815", + "emittedAt": "2026-11-14 18:10:56.495", "event": "statement_started", "stepId": "record_population_started", "phase": "boundary", "displayName": null, "intent": "mutation", - "queryId": "c219e9d7-cff1-4719-b012-5ecd7dc5642b", + "queryId": "d9b59bf8-1d4c-42ca-9333-55bcb310fc36", "replayOffsetProgress": null, "statementSequence": 32 }, { "sequence": 65, - "emittedAt": "2026-11-14 10:03:40.823", + "emittedAt": "2026-11-14 18:10:56.505", "event": "statement_completed", "stepId": "record_population_started", "phase": "boundary", "displayName": null, - "elapsedMs": 4, + "elapsedMs": 6, "errorMessage": null, "intent": "mutation", "statementSequence": 32, @@ -5750,19 +5750,19 @@ }, { "sequence": 66, - "emittedAt": "2026-11-14 10:03:40.825", + "emittedAt": "2026-11-14 18:10:56.510", "event": "statement_started", "stepId": "capture_boundary_time", "phase": "boundary", "displayName": null, "intent": "mutation", - "queryId": "7554e506-c1dd-4719-a3dc-88c3774d0d26", + "queryId": "613bf00c-b288-4eef-89c8-e4a8ca6901ba", "replayOffsetProgress": null, "statementSequence": 33 }, { "sequence": 67, - "emittedAt": "2026-11-14 10:03:40.834", + "emittedAt": "2026-11-14 18:10:56.520", "event": "statement_completed", "stepId": "capture_boundary_time", "phase": "boundary", @@ -5775,19 +5775,19 @@ }, { "sequence": 68, - "emittedAt": "2026-11-14 10:03:40.836", + "emittedAt": "2026-11-14 18:10:56.523", "event": "statement_started", "stepId": "capture_watermark_tbl__order_report", "phase": "replay", "displayName": null, "intent": "mutation", - "queryId": "b1a60909-c2a4-4e4c-9e9e-0fffa680741a", + "queryId": "0390cd6f-c05b-47b9-ae25-a35d2e49d2f5", "replayOffsetProgress": null, "statementSequence": 34 }, { "sequence": 69, - "emittedAt": "2026-11-14 10:03:40.849", + "emittedAt": "2026-11-14 18:10:56.539", "event": "statement_completed", "stepId": "capture_watermark_tbl__order_report", "phase": "replay", @@ -5800,24 +5800,24 @@ }, { "sequence": 70, - "emittedAt": "2026-11-14 10:03:40.852", + "emittedAt": "2026-11-14 18:10:56.545", "event": "statement_started", "stepId": "assert_qualifying_input_tbl__order_report", "phase": "replay", "displayName": null, "intent": "assertion", - "queryId": "f1fe5199-033e-4e28-afc5-2a31e3c83c7b", + "queryId": "87471947-9d25-44c3-b1d0-8aaf2efcd5fa", "replayOffsetProgress": null, "statementSequence": 35 }, { "sequence": 71, - "emittedAt": "2026-11-14 10:03:40.854", + "emittedAt": "2026-11-14 18:10:56.569", "event": "statement_completed", "stepId": "assert_qualifying_input_tbl__order_report", "phase": "replay", "displayName": null, - "elapsedMs": 30, + "elapsedMs": 18, "errorMessage": null, "intent": "assertion", "statementSequence": 35, @@ -5825,24 +5825,24 @@ }, { "sequence": 72, - "emittedAt": "2026-11-14 10:03:40.859", + "emittedAt": "2026-11-14 18:10:56.581", "event": "statement_started", "stepId": "replay_tbl__order_report", "phase": "replay", "displayName": null, "intent": "mutation", - "queryId": "60c6d4ed-2585-4843-bded-4ce0b24d22bf", + "queryId": "ab03e8a8-7443-4124-b7d4-6268f5c218e3", "replayOffsetProgress": null, "statementSequence": 36 }, { "sequence": 73, - "emittedAt": "2026-11-14 10:03:40.871", + "emittedAt": "2026-11-14 18:10:56.621", "event": "statement_completed", "stepId": "replay_tbl__order_report", "phase": "replay", "displayName": null, - "elapsedMs": 17, + "elapsedMs": 30, "errorMessage": null, "intent": "mutation", "statementSequence": 36, @@ -5850,24 +5850,24 @@ }, { "sequence": 74, - "emittedAt": "2026-11-14 10:03:40.874", + "emittedAt": "2026-11-14 18:10:56.626", "event": "statement_started", "stepId": "read_readiness_tbl__order_report", "phase": "audit", "displayName": null, "intent": "query", - "queryId": "30de7c5a-3c3e-4c12-a4d9-64066731f23c", + "queryId": "cd024ef5-9dc6-45ab-8f5a-8c39fdc93fab", "replayOffsetProgress": null, "statementSequence": 37 }, { "sequence": 75, - "emittedAt": "2026-11-14 10:03:40.876", + "emittedAt": "2026-11-14 18:10:56.633", "event": "statement_completed", "stepId": "read_readiness_tbl__order_report", "phase": "audit", "displayName": null, - "elapsedMs": 5, + "elapsedMs": 2, "errorMessage": null, "intent": "query", "statementSequence": 37, @@ -5875,19 +5875,19 @@ }, { "sequence": 76, - "emittedAt": "2026-11-14 10:03:40.879", + "emittedAt": "2026-11-14 18:10:56.637", "event": "statement_started", "stepId": "assert_readiness_tbl__order_report", "phase": "audit", "displayName": null, "intent": "assertion", - "queryId": "5e3ea8e3-dec4-4e0b-8f83-606aa2685b76", + "queryId": "cb7b6f5d-60da-402f-92d7-a1e300bece8e", "replayOffsetProgress": null, "statementSequence": 38 }, { "sequence": 77, - "emittedAt": "2026-11-14 10:03:40.882", + "emittedAt": "2026-11-14 18:10:56.646", "event": "statement_completed", "stepId": "assert_readiness_tbl__order_report", "phase": "audit", @@ -5900,19 +5900,19 @@ }, { "sequence": 78, - "emittedAt": "2026-11-14 10:03:40.885", + "emittedAt": "2026-11-14 18:10:56.650", "event": "statement_started", "stepId": "read_boundary_time", "phase": "audit", "displayName": null, "intent": "query", - "queryId": "a6ca1b0d-5ec2-47e5-bd9e-0600f3465520", + "queryId": "80aeaedb-cf41-4173-a278-7d649239a9fd", "replayOffsetProgress": null, "statementSequence": 39 }, { "sequence": 79, - "emittedAt": "2026-11-14 10:03:40.887", + "emittedAt": "2026-11-14 18:10:56.661", "event": "statement_completed", "stepId": "read_boundary_time", "phase": "audit", @@ -5925,24 +5925,24 @@ }, { "sequence": 80, - "emittedAt": "2026-11-14 10:03:40.890", + "emittedAt": "2026-11-14 18:10:56.664", "event": "statement_started", "stepId": "record_population_completed", "phase": "finalization", "displayName": null, "intent": "mutation", - "queryId": "3682e19f-3b2e-4a9c-a9c3-0a4c72b0e01b", + "queryId": "522621f1-dabe-4d12-a508-d2657df90f5f", "replayOffsetProgress": null, "statementSequence": 40 }, { "sequence": 81, - "emittedAt": "2026-11-14 10:03:40.898", + "emittedAt": "2026-11-14 18:10:56.674", "event": "statement_completed", "stepId": "record_population_completed", "phase": "finalization", "displayName": null, - "elapsedMs": 8, + "elapsedMs": 6, "errorMessage": null, "intent": "mutation", "statementSequence": 40, @@ -5950,7 +5950,7 @@ }, { "sequence": 82, - "emittedAt": "2026-11-14 10:03:40.960", + "emittedAt": "2026-11-14 18:10:56.731", "event": "run_completed", "stepId": null, "phase": null, @@ -5962,569 +5962,569 @@ ], "hasMore": false, "status": "succeeded", - "lastSignalAt": "2026-11-14 10:03:40.960", + "lastSignalAt": "2026-11-14 18:10:56.731", "lastSignalAgeSeconds": 0, "statementProgress": null } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/40": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/40": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 40, "stepId": "record_population_completed", "phase": "finalization", "intent": "mutation", - "sql": "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '20261114T095255Z_fdf238', 'completed', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '20261114T095255Z_fdf238' AND stage = 'completed');", - "sqlSha256": "d970381f74fcf75ad01289c6f19fdb719e507dd06ee550ff9ffd1a30dbf56f86", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "sql": "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '20261114T181051Z_390cdb', 'completed', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '20261114T181051Z_390cdb' AND stage = 'completed');", + "sqlSha256": "6832b345a6ad2322d880ea174e2ae49aa22bc99ceeb7e7e199714251008c18ea", + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/39": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/39": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 39, "stepId": "read_boundary_time", "phase": "audit", "intent": "query", - "sql": "SELECT toString(any(boundary_time), 'UTC') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T095255Z_fdf238';", - "sqlSha256": "2cd5d30291b8c3e2afe8fd2ec6d279a540e2f02a07fd4723b3bb5de586f88cc2", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "sql": "SELECT toString(any(boundary_time), 'UTC') AS boundary_time FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T181051Z_390cdb';", + "sqlSha256": "ea59ceb54e40142548f925e828048f5bb8613fd0591a597c28c4b9fe437732d9", + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/38": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/38": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 38, "stepId": "assert_readiness_tbl__order_report", "phase": "audit", "intent": "assertion", - "sql": "SELECT throwIf(count() != 1, 'Virtual candidate target is not ready') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'tbl__order_report__20261114T095255Z_fdf238';", - "sqlSha256": "37dba0f357fc7e5fb144afe29207f6090cd6718a555f41919302dfe032cb4cc7", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "sql": "SELECT throwIf(count() != 1, 'Virtual candidate target is not ready') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'tbl__order_report__20261114T181051Z_390cdb';", + "sqlSha256": "eecc95539ce0ed5f77db5dcf4679288d821004eb3f1907335e0607baf242b6a8", + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/37": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/37": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 37, "stepId": "read_readiness_tbl__order_report", "phase": "audit", "intent": "query", - "sql": "SELECT count() AS staged_row_count, 'tbl__order_report__20261114T095255Z_fdf238' AS staged_relation_name FROM sqltide_playground.tbl__order_report__20261114T095255Z_fdf238;", - "sqlSha256": "a1fe666307c9e9216614a9d59ba5ee1f4a0fb8470823ea77dd02d05b522430ef", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "sql": "SELECT count() AS staged_row_count, 'tbl__order_report__20261114T181051Z_390cdb' AS staged_relation_name FROM sqltide_playground.tbl__order_report__20261114T181051Z_390cdb;", + "sqlSha256": "1c4b3cfa4fedc6e3ad804c3a854018915b64021ebbd19b0387c27641da44b6a9", + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/36": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/36": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 36, "stepId": "replay_tbl__order_report", "phase": "replay", "intent": "mutation", - "sql": "INSERT INTO sqltide_playground.tbl__order_report__20261114T095255Z_fdf238\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = '20261114T095255Z_fdf238' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source;", - "sqlSha256": "ee90216f658ae90e414049f41d7213bf3b8a98a4d1f8a165aa0d8b62d8975699", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "sql": "INSERT INTO sqltide_playground.tbl__order_report__20261114T181051Z_390cdb\nWITH cutoff_offsets AS (\nSELECT toInt64(partition_value) AS _replay_partition, max(toInt64(cutoff_value)) AS cutoff_offset, true AS cutoff_inclusive\nFROM sqltide_playground._sqltide_virtual_replay_boundaries\nWHERE deployment_id = '20261114T181051Z_390cdb' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets'\nGROUP BY _replay_partition\n),\nfiltered_replay_source AS (\nSELECT anchor.order_id AS order_id, anchor.status AS status, anchor.total_cents AS total_cents, anchor._replay_partition AS _replay_partition, anchor._replay_offset AS _replay_offset, anchor._replay_timestamp AS _replay_timestamp\nFROM sqltide_playground.playground_orders AS anchor\nINNER JOIN cutoff_offsets\nON anchor._replay_partition = cutoff_offsets._replay_partition\nWHERE ((cutoff_offsets.cutoff_inclusive AND anchor._replay_offset <= cutoff_offsets.cutoff_offset) OR (NOT cutoff_offsets.cutoff_inclusive AND anchor._replay_offset < cutoff_offsets.cutoff_offset))\n)\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM filtered_replay_source;", + "sqlSha256": "3ee68809fd3405849def5ae666b3229c84247ca9cec1ce893502d25d273c737e", + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/35": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/35": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 35, "stepId": "assert_qualifying_input_tbl__order_report", "phase": "replay", "intent": "assertion", - "sql": "SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, 'Replay root tbl__order_report has rows but no qualifying offsets cutoff') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = '20261114T095255Z_fdf238' AND watermark.root_object_name = 'tbl__order_report' AND watermark.boundary_kind = 'offsets' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);", - "sqlSha256": "4753a4345db62e6567e3dcec8c035780c9655bdc62c5c2258654a8acd2c1578a", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "sql": "SELECT throwIf(total_rows > 0 AND qualifying_rows = 0, 'Replay root tbl__order_report has rows but no qualifying offsets cutoff') FROM (SELECT (SELECT count() FROM sqltide_playground.playground_orders) AS total_rows, (SELECT count() FROM sqltide_playground.playground_orders AS source INNER JOIN (SELECT * FROM sqltide_playground._sqltide_virtual_replay_boundaries) AS watermark ON watermark.deployment_id = '20261114T181051Z_390cdb' AND watermark.root_object_name = 'tbl__order_report' AND watermark.boundary_kind = 'offsets' AND watermark.partition_value = toString(source._replay_partition) WHERE source._replay_offset <= toInt64(watermark.cutoff_value)) AS qualifying_rows);", + "sqlSha256": "88d66119f71a43f9159db9397b94bfa2db71bd41321249548d440d3744083a02", + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/34": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/34": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 34, "stepId": "capture_watermark_tbl__order_report", "phase": "replay", "intent": "mutation", - "sql": "INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT '20261114T095255Z_fdf238', 'sqltide_playground', 'table', 'tbl__order_report', 'sqltide_playground', 'table', 'playground_orders', 'offsets', 'integer', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, 'UTC')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T095255Z_fdf238')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = '20261114T095255Z_fdf238' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets');", - "sqlSha256": "ef5dd276a4c7114e599296d4b7fd9cdf30779dfc1ab5495280ab002725ac1253", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "sql": "INSERT INTO sqltide_playground._sqltide_virtual_replay_boundaries (deployment_id, root_database_name, root_object_type, root_object_name, anchor_database_name, anchor_object_type, anchor_object_name, boundary_kind, value_kind, partition_value, lower_value, cutoff_value, cutoff_inclusive, captured_at)\nSELECT '20261114T181051Z_390cdb', 'sqltide_playground', 'table', 'tbl__order_report', 'sqltide_playground', 'table', 'playground_orders', 'offsets', 'integer', toString(_replay_partition), NULL, toString(max(_replay_offset)), true, now64(3, 'UTC')\nFROM sqltide_playground.playground_orders\nWHERE _replay_timestamp <= (SELECT any(boundary_time) FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T181051Z_390cdb')\nGROUP BY _replay_partition\nHAVING NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_replay_boundaries WHERE deployment_id = '20261114T181051Z_390cdb' AND root_object_name = 'tbl__order_report' AND boundary_kind = 'offsets');", + "sqlSha256": "ef6eb4420de8d5acd839a52fcbdb54967b8d2b5b361f9e0f8bfdc6a683d1c3e9", + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/33": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/33": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 33, "stepId": "capture_boundary_time", "phase": "boundary", "intent": "mutation", - "sql": "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '20261114T095255Z_fdf238', '69234f7e598c33672e6c02bd8775f982aad0ab1407dfe00cf001005912da1fd0', 'offsets', now64(3, 'UTC'), toDateTime64('2026-11-14 09:52:55.433', 3, 'UTC'), '0.69.1'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T095255Z_fdf238');", - "sqlSha256": "f5802277c812608b5b1735aee9e19023de27e6f65d1fadc83f15b93e2fdae3fa", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "sql": "INSERT INTO sqltide_playground._sqltide_virtual_deployments (deployment_id, workflow_fingerprint, replay_lineage_mode, boundary_time, created_at, tool_version)\nSELECT '20261114T181051Z_390cdb', 'd2359f6046a2a0df7cf23e31de90bda3c985bc175a321025736efeaad334e6de', 'offsets', now64(3, 'UTC'), toDateTime64('2026-11-14 18:10:51.130', 3, 'UTC'), '0.70.1'\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T181051Z_390cdb');", + "sqlSha256": "b3e8bc41989cc94510f37e01c2e63c80ff2a77fd46b4a46e891ae4ce966c385a", + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/32": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/32": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 32, "stepId": "record_population_started", "phase": "boundary", "intent": "mutation", - "sql": "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '20261114T095255Z_fdf238', 'started', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '20261114T095255Z_fdf238' AND stage = 'started');", - "sqlSha256": "c01933f18e89d1ac5a10d9bac9d1521c0adc05fa68228a9abdae1673097796cd", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "sql": "INSERT INTO sqltide_playground._sqltide_virtual_deployment_progress (deployment_id, stage, recorded_at)\nSELECT '20261114T181051Z_390cdb', 'started', now64(3, 'UTC')\nWHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_virtual_deployment_progress WHERE deployment_id = '20261114T181051Z_390cdb' AND stage = 'started');", + "sqlSha256": "c2e5ac371b346adbe31556400629a39bb9ce1f5ca14f7735a6d88e5d89483025", + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/31": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/31": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 31, "stepId": "wait_for_virtual_live_stabilization", "phase": "stabilization", "intent": "wait", "sql": "SELECT sleepEachRow(1) FROM numbers(5) SETTINGS max_block_size = 1;", "sqlSha256": "9464f06d337985871af3cd96bcbe618c7a0551db8ba33e21f30e78b62bf9ceba", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/30": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/30": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 30, - "stepId": "realize_mv__order_report__20261114T095255Z_fdf238", + "stepId": "realize_mv__order_report__20261114T181051Z_390cdb", "phase": "realization", "intent": "mutation", - "sql": "CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__20261114T095255Z_fdf238\nTO sqltide_playground.tbl__order_report__20261114T095255Z_fdf238 AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders;", - "sqlSha256": "1ba3a097503291cf6a127e565d400a073bb3b9935bc65f9c47e51fddb0fa99d7", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "sql": "CREATE MATERIALIZED VIEW IF NOT EXISTS sqltide_playground.mv__order_report__20261114T181051Z_390cdb\nTO sqltide_playground.tbl__order_report__20261114T181051Z_390cdb AS\nSELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM sqltide_playground.playground_orders;", + "sqlSha256": "f4c8eeed8a1f901f887ae215b04d4b51b4356fce0ec48c99d8072082c6c904fe", + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/29": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/29": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 29, - "stepId": "realize_tbl__order_report__20261114T095255Z_fdf238", + "stepId": "realize_tbl__order_report__20261114T181051Z_390cdb", "phase": "realization", "intent": "mutation", - "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__20261114T095255Z_fdf238 (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);", - "sqlSha256": "0a0d21757c64133509eb8ba0841049fc0619058a5b6b9b5b7559878e01ba269a", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground.tbl__order_report__20261114T181051Z_390cdb (\n order_id UInt64,\n status String,\n total_cents Int64,\n _replay_partition Int32,\n _replay_offset Int64\n) ENGINE = MergeTree()\nORDER BY (order_id);", + "sqlSha256": "a76fbf79abcc42e689fb25aa0d7cbea5369dcc5645671769e71c83ae92278fb4", + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/28": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/28": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 28, "stepId": "persist_candidate_metadata_1", "phase": "preparation", "intent": "mutation", - "sql": "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('20261114T095255Z_fdf238', 'f758aa4cf330fd7d4cef3c31a7d588cbbcb1a9513708f2cb5f04b2ff393f3bb1', 'deployment', '20261114T095255Z_fdf238', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__20261114T095255Z_fdf238', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders', '2026-11-14 09:52:55.433'),\n('20261114T095255Z_fdf238', 'ebc4c6bd262a4dd3f85f684f6325676d65063e7c4d05b769130349ae675cabc3', 'deployment', '20261114T095255Z_fdf238', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__20261114T095255Z_fdf238', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '2026-11-14 09:52:55.433');", - "sqlSha256": "df29cf7566e119d5203211b2bf4629c4e6ac865db65b8f315495fd7149127c49", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "sql": "INSERT INTO sqltide_playground._sqltide_virtual_object_state (state_id, observation_id, state_kind, deployment_id, logical_database_name, logical_object_type, logical_object_name, physical_database_name, physical_relation_name, logical_model_database, logical_model_name, is_selected_root, object_fingerprint, canonical_query, observed_at) VALUES\n('20261114T181051Z_390cdb', '6667702f39716dc01f18824f8e2e8b3f0d07cd638609e8e2b6c5745f3d7e731d', 'deployment', '20261114T181051Z_390cdb', NULL, 'materialized_view', 'mv__order_report', NULL, 'mv__order_report__20261114T181051Z_390cdb', NULL, 'order_report', false, '{\"database_template\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM __sqltide_target_database__.playground_orders\", \"query\": \"SELECT\\\\n order_id::UInt64 AS order_id,\\\\n status::String AS status,\\\\n total_cents::Int64 AS total_cents,\\\\n _replay_partition::Int32 AS _replay_partition,\\\\n _replay_offset::Int64 AS _replay_offset\\\\nFROM playground_orders\", \"source_table_name\": \"playground_orders\", \"target_table_name\": \"tbl__order_report\"}', 'SELECT\n order_id::UInt64 AS order_id,\n status::String AS status,\n total_cents::Int64 AS total_cents,\n _replay_partition::Int32 AS _replay_partition,\n _replay_offset::Int64 AS _replay_offset\nFROM playground_orders', '2026-11-14 18:10:51.130'),\n('20261114T181051Z_390cdb', '08c5aff9508e40786507b06d1d10a668141cf5feb605b07ff20f19556134b0c6', 'deployment', '20261114T181051Z_390cdb', NULL, 'table', 'tbl__order_report', NULL, 'tbl__order_report__20261114T181051Z_390cdb', NULL, 'order_report', true, '{\"columns\": [{\"default\": null, \"name\": \"order_id\", \"type\": \"UInt64\"}, {\"default\": null, \"name\": \"status\", \"type\": \"String\"}, {\"default\": null, \"name\": \"total_cents\", \"type\": \"Int64\"}, {\"default\": null, \"name\": \"_replay_partition\", \"type\": \"Int32\"}, {\"default\": null, \"name\": \"_replay_offset\", \"type\": \"Int64\"}], \"storage\": {\"engine\": \"MergeTree()\", \"order_by\": [\"order_id\"], \"partition_by\": null, \"settings\": null, \"ttl\": null}}', NULL, '2026-11-14 18:10:51.130');", + "sqlSha256": "62d845498be6932ed8d3d8374a8754b8da0c85c88dc779f9b59ea89b29f44c02", + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/27": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/27": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 27, "stepId": "prepare_metadata_22", "phase": "preparation", "intent": "mutation", "sql": "INSERT INTO sqltide_playground._sqltide_schema_versions (version, applied_at) SELECT 9, now64(3, 'UTC') WHERE NOT EXISTS (SELECT 1 FROM sqltide_playground._sqltide_schema_versions WHERE version = 9);", "sqlSha256": "5477152955fab0d713d2c2a854e1418044a50512cc633cd7524d6a7448aa9e60", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/26": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/26": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 26, "stepId": "prepare_metadata_21", "phase": "preparation", "intent": "mutation", "sql": "ALTER TABLE sqltide_playground._sqltide_virtual_publications ADD COLUMN IF NOT EXISTS operation LowCardinality(String) DEFAULT 'promote' AFTER deployment_id, ADD COLUMN IF NOT EXISTS previous_deployment_id Nullable(String) AFTER operation;", "sqlSha256": "da198cad9c5e3e2b2739a102f378f1fb37e219547bc081fed742086c6e29051c", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/25": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/25": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 25, "stepId": "prepare_metadata_20", "phase": "preparation", "intent": "mutation", "sql": "DROP TABLE IF EXISTS sqltide_playground._sqltide_owned_resources SYNC;", "sqlSha256": "82bef49f27134c87a340dd6a5421d9985ace1e2d66e738d3337bfd220858630e", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/24": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/24": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 24, "stepId": "prepare_metadata_19", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployment_progress (\n deployment_id String,\n stage LowCardinality(String),\n recorded_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (deployment_id, stage);", "sqlSha256": "b63e150d14e80fd8619ddb4a23fb6988a991a80c4ccb94740712245dc5ad20a8", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/23": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/23": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 23, "stepId": "prepare_metadata_18", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_manifests (\n manifest_id String,\n invocation_id String,\n project_identity String,\n target_name String,\n target_database String,\n is_production Bool,\n project_revision Nullable(String),\n manifest_fingerprint String,\n manifest_version UInt64,\n pipelines Array(String),\n resources Array(Tuple(\n pipeline_name String,\n logical_type String,\n logical_name String,\n resource_role String,\n resource_database String,\n resource_name String,\n resource_kind String\n )),\n tool_version String,\n published_at DateTime64(6, 'UTC')\n) ENGINE = MergeTree\nORDER BY (project_identity, target_name, target_database, published_at, manifest_id);", "sqlSha256": "bc2bca566e8ba3854b5e26c2e07aec5c92b9a5ec12ea8004d6da838713bb1248", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/22": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/22": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 22, "stepId": "prepare_metadata_17", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_dead_letters (\n model_name String,\n failed_columns Array(String),\n payload String,\n kafka_partition Nullable(Int32),\n kafka_offset Nullable(Int64),\n quarantined_at DateTime64(3)\n) ENGINE = MergeTree\nORDER BY (model_name, quarantined_at)\nTTL toDateTime(quarantined_at) + INTERVAL 30 DAY;", "sqlSha256": "10c99e8cf04c4ae02072d63d6c4254f022f6688b77c426e05c25e64a7261361b", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/21": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/21": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 21, "stepId": "prepare_metadata_16", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_leases (\n lease_name String,\n owner_id String,\n acquired_at DateTime64(3, 'UTC'),\n expires_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (lease_name, acquired_at, owner_id);", "sqlSha256": "af61ecbcbb8bb875c200571291978d8df5fcbe332921b76a4c508d054fbb1ccc", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/20": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/20": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 20, "stepId": "prepare_metadata_15", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_overrides (\n override_id String,\n sensor_name String,\n status LowCardinality(String),\n actor Nullable(String),\n changed_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (sensor_name, changed_at, override_id);", "sqlSha256": "49c8b1b653f6168450f7bd8292cd86d4a87ad434016e52be8888658b9a195e84", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/19": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/19": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 19, "stepId": "prepare_metadata_14", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_steps (\n sensor_name String,\n event_id String,\n step_key String,\n policy LowCardinality(String),\n status LowCardinality(String),\n attempt UInt32,\n result_json Nullable(String),\n error_message Nullable(String),\n recorded_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (sensor_name, event_id, step_key, recorded_at);", "sqlSha256": "c6cf55076efd1c7b93df260e57b0c5d04cd336919c198a61841603e8a38abe8a", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/18": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/18": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 18, "stepId": "prepare_metadata_13", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_ticks (\n tick_id String,\n sensor_name String,\n definition_fingerprint String,\n kind LowCardinality(String),\n event_id Nullable(String),\n event_kind Nullable(String),\n attempt UInt32,\n status LowCardinality(String),\n started_at DateTime64(3, 'UTC'),\n completed_at Nullable(DateTime64(3, 'UTC')),\n error_message Nullable(String),\n skip_reason Nullable(String),\n cursor Nullable(String)\n) ENGINE = MergeTree\nORDER BY (sensor_name, started_at, tick_id);", "sqlSha256": "c92b396cd9181a24fc5aedad661fd5f97a37c79cc6b01bd83fb09109333b2f7f", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/17": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/17": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 17, "stepId": "prepare_metadata_12", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_sensor_checkpoints (\n sensor_name String,\n source LowCardinality(String),\n position_completed_at DateTime64(3, 'UTC'),\n position_result_id String,\n recorded_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (sensor_name, source, position_completed_at, position_result_id);", "sqlSha256": "abfce6673ffc78502a18a6ef18e94a023823800117f62a856c4b5a6554d0f350", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/16": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/16": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 16, "stepId": "prepare_metadata_11", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_statements (\n invocation_id String,\n statement_sequence UInt64,\n step_id String,\n phase LowCardinality(String),\n intent LowCardinality(String),\n sql String,\n sql_sha256 FixedString(64),\n workflow_sha256 FixedString(64),\n workflow_revision UInt64,\n recorded_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC')\n) ENGINE = ReplacingMergeTree(workflow_revision)\nORDER BY (invocation_id, statement_sequence);", "sqlSha256": "61c4d9eb7c2f2e642fc7bf55f01aed482babcecc133721ca9333dab09155aa12", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/15": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/15": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 15, "stepId": "prepare_metadata_10", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_run_events (\n invocation_id String,\n sequence UInt64,\n emitted_at DateTime64(3, 'UTC') DEFAULT now64(3, 'UTC'),\n event_kind LowCardinality(String),\n step_id Nullable(String),\n phase Nullable(String),\n payload_json String\n) ENGINE = MergeTree\nORDER BY (invocation_id, sequence);", "sqlSha256": "27a59e1a1a44d1d4c1abbfd83c679113077f0035660e7a64519d6cc672924c0e", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/14": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/14": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 14, "stepId": "prepare_metadata_9", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_node_results (\n result_id String,\n invocation_id String,\n node_kind LowCardinality(String),\n node_name String,\n binding_key String,\n definition_fingerprint String,\n execution_fingerprint String,\n target_identity String,\n trigger LowCardinality(String),\n scheduled_for Nullable(DateTime64(3, 'UTC')),\n cadence_seconds Nullable(UInt64),\n warmup_seconds UInt64,\n status LowCardinality(String),\n severity Nullable(String),\n failure_count UInt64,\n completed_at DateTime64(3, 'UTC'),\n payload_json String,\n error_message Nullable(String)\n) ENGINE = MergeTree\nORDER BY (node_kind, node_name, completed_at, result_id);", "sqlSha256": "fdf2bc6256c86fec4e933e8476145362129d731bb618f00aaaf694e9af5b398f", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/13": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/13": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 13, "stepId": "prepare_metadata_8", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_invocations (\n invocation_id String,\n project_identity String,\n target_identity String,\n command LowCardinality(String),\n mode Nullable(String),\n outcome LowCardinality(String),\n exit_code Int32,\n materialized_outcome Nullable(String),\n deployment_id Nullable(String),\n workflow_id Nullable(String),\n selected_node_count UInt64,\n started_at DateTime64(3, 'UTC'),\n completed_at DateTime64(3, 'UTC'),\n duration_ms UInt64,\n error_message Nullable(String),\n summary_json String,\n tool_version String\n) ENGINE = MergeTree\nORDER BY (project_identity, target_identity, completed_at, invocation_id);", "sqlSha256": "5d1b063adfa9c5585de79ae8a368ec756aa988b1198b1ea20a0e8ef0c2167768", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/12": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/12": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 12, "stepId": "prepare_metadata_7", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_direct_fingerprints (\n fingerprint_id String,\n logical_model_identity String,\n definition_sql String,\n definition_hash String,\n identity_metadata String,\n workflow_id String,\n tool_version String,\n applied_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree ORDER BY (logical_model_identity, applied_at, fingerprint_id);", "sqlSha256": "70121ae4c7a693eb3bf504b462e27cd5d866f3c8de83a9f509a6b48cde2e4660", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/11": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/11": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 11, "stepId": "prepare_metadata_6", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_publications (\n publication_id String,\n deployment_id String,\n operation LowCardinality(String) DEFAULT 'promote',\n previous_deployment_id Nullable(String),\n logical_database_name String,\n logical_view_name String,\n physical_database_name String,\n physical_relation_name String,\n published_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (publication_id, logical_database_name, logical_view_name);", "sqlSha256": "986a12ca3bad1b0d0a2e9c98678057b5a53ef17b62c5d61c93ff58271a5cffb1", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/10": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/10": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 10, "stepId": "prepare_metadata_5", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_replay_boundaries (\n deployment_id String,\n root_database_name Nullable(String),\n root_object_type String,\n root_object_name String,\n anchor_database_name Nullable(String),\n anchor_object_type String,\n anchor_object_name String,\n boundary_kind LowCardinality(String),\n value_kind LowCardinality(String),\n partition_value Nullable(String),\n lower_value Nullable(String),\n cutoff_value String,\n cutoff_inclusive Bool,\n captured_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (deployment_id, root_object_type, root_object_name, boundary_kind, ifNull(partition_value, ''));", "sqlSha256": "c59f22b0f95aa688aa97f87ea74ba0e52fce10599eb95e00abcfd0434ec5e590", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/9": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/9": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 9, "stepId": "prepare_metadata_4", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_deployments (\n deployment_id String,\n workflow_fingerprint String,\n replay_lineage_mode String,\n boundary_time DateTime64(3, 'UTC'),\n created_at DateTime64(3, 'UTC'),\n tool_version String\n) ENGINE = MergeTree\nORDER BY (deployment_id);", "sqlSha256": "a409c63923f1f774a3e757b4cacd08f76b4f626d23186d3cfb749c02f558a9ca", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/8": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/8": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 8, "stepId": "prepare_metadata_3", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_virtual_object_state (\n state_id String,\n observation_id String,\n state_kind LowCardinality(String),\n deployment_id Nullable(String),\n logical_database_name Nullable(String),\n logical_object_type String,\n logical_object_name String,\n physical_database_name Nullable(String),\n physical_relation_name Nullable(String),\n logical_model_database Nullable(String),\n logical_model_name Nullable(String),\n is_selected_root Bool,\n object_fingerprint String,\n canonical_query Nullable(String),\n observed_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (state_kind, state_id, logical_object_type, logical_object_name);", "sqlSha256": "e318dba09fb1cd583e27278155abf807004f003db0b8a164f3ae1a2c5c2261ea", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/7": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/7": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 7, "stepId": "prepare_metadata_2", "phase": "preparation", "intent": "mutation", "sql": "CREATE TABLE IF NOT EXISTS sqltide_playground._sqltide_schema_versions (\n version UInt64,\n applied_at DateTime64(3, 'UTC')\n) ENGINE = MergeTree\nORDER BY (version);", "sqlSha256": "76d1ef96509849a274ee77bde2b3dc02df058af88aefd9d47442c8d90ff81239", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/6": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/6": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 6, "stepId": "prepare_metadata_1", "phase": "preparation", "intent": "mutation", "sql": "CREATE DATABASE IF NOT EXISTS sqltide_playground;", "sqlSha256": "61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/5": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/5": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 5, "stepId": "prepare_target_database", "phase": "preparation", "intent": "mutation", "sql": "CREATE DATABASE IF NOT EXISTS sqltide_playground;", "sqlSha256": "61d1f0be2e6d49714c598e25bd0882fdb4511e54645dc64fdc2ea8f801ce7948", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/4": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/4": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 4, - "stepId": "assert_candidate_relation_mv__order_report__20261114T095255Z_fdf238", + "stepId": "assert_candidate_relation_mv__order_report__20261114T181051Z_390cdb", "phase": "preflight", "intent": "assertion", - "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'mv__order_report__20261114T095255Z_fdf238';", - "sqlSha256": "c7c6046eb7c13983bb6389e6dafe1f05953698ba4d574ff8d89b3f956543e5a0", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'mv__order_report__20261114T181051Z_390cdb';", + "sqlSha256": "de777685d9ac8f1ccb2db96d240c7c9f250b4261546050c3d3c10c915ed40b3c", + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/3": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/3": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 3, - "stepId": "assert_candidate_relation_tbl__order_report__20261114T095255Z_fdf238", + "stepId": "assert_candidate_relation_tbl__order_report__20261114T181051Z_390cdb", "phase": "preflight", "intent": "assertion", - "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'tbl__order_report__20261114T095255Z_fdf238';", - "sqlSha256": "03601d916d740fb3d099533cb1873bfc11f95b6d0e633bd38ff64b86bc6eff00", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "sql": "SELECT throwIf(count() != 0, 'Candidate relation appeared after virtual confirmation') FROM system.tables WHERE database = 'sqltide_playground' AND name = 'tbl__order_report__20261114T181051Z_390cdb';", + "sqlSha256": "776e4cd6c783dec6578cd34b35c0f481bbe8ab92b7c813bb5468ec4dcceab8ac", + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/2": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/2": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 2, "stepId": "assert_candidate_unpublished", "phase": "preflight", "intent": "assertion", - "sql": "SELECT throwIf(count() > 0, 'Candidate deployment is already published') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = '20261114T095255Z_fdf238';", - "sqlSha256": "d098e43eb92eb4034f10b4e4bc567f94e9aae3d05bb556361a2aa698dbd17716", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "sql": "SELECT throwIf(count() > 0, 'Candidate deployment is already published') FROM sqltide_playground._sqltide_virtual_publications WHERE deployment_id = '20261114T181051Z_390cdb';", + "sqlSha256": "627685f848099849fe8526ed02b3023a1b038261cc01b47322994439dd3047b9", + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, - "/api/runs/5237ea51-4760-4b67-992c-ac10d738a9aa/statements/1": { + "/api/runs/502a606c-fc80-43ca-93f8-18b088c3bca4/statements/1": { "status": 200, "body": { "found": true, - "invocationId": "5237ea51-4760-4b67-992c-ac10d738a9aa", + "invocationId": "502a606c-fc80-43ca-93f8-18b088c3bca4", "statementSequence": 1, "stepId": "assert_candidate_metadata", "phase": "preflight", "intent": "assertion", - "sql": "SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64('2026-11-14 09:52:55.433', 3, 'UTC') OR any(replay_lineage_mode) != 'offsets' OR any(workflow_fingerprint) != '69234f7e598c33672e6c02bd8775f982aad0ab1407dfe00cf001005912da1fd0' OR any(tool_version) != '0.69.1'), 'Candidate deployment conflicts with the confirmed workflow') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T095255Z_fdf238';", - "sqlSha256": "095268f1113da18e3a9d9d2f7f80940e6b960f3a61567b7df6f7bb1aafc9b584", - "workflowSha256": "8f9f9daf43089cf1cc72ea2550c08375cf48c8c5a7e278461b57c6176f02864b" + "sql": "SELECT throwIf(count() > 0 AND (count() != 1 OR any(created_at) != toDateTime64('2026-11-14 18:10:51.130', 3, 'UTC') OR any(replay_lineage_mode) != 'offsets' OR any(workflow_fingerprint) != 'd2359f6046a2a0df7cf23e31de90bda3c985bc175a321025736efeaad334e6de' OR any(tool_version) != '0.70.1'), 'Candidate deployment conflicts with the confirmed workflow') FROM sqltide_playground._sqltide_virtual_deployments WHERE deployment_id = '20261114T181051Z_390cdb';", + "sqlSha256": "6ca16a943e3f06aeafd6f6362f43e21359fcd8a2b2ad86f1a28702bcaa4ed37a", + "workflowSha256": "ee3c29ac9e525c4b1610874c1c7788323eb554dfc0141ce7009543f5906cfc81" } }, "/api/plan?select=pipeline%3Apl__orders": { @@ -6545,8 +6545,8 @@ "replayWindow": { "mode": "full" }, - "plannedAt": "2026-11-14 10:05:15.178", - "command": "sqt build --select pipeline:pl__orders --deployment-id 20261114T100515Z_5d38fe", + "plannedAt": "2026-11-14 18:12:39.738", + "command": "sqt build --select pipeline:pl__orders --deployment-id 20261114T181239Z_53e588", "mode": "virtual", "executionOrder": [ "virtual" @@ -6555,7 +6555,7 @@ { "mode": "virtual", "effect": "staged", - "deploymentId": "20261114T100515Z_5d38fe", + "deploymentId": "20261114T181239Z_53e588", "modelNames": [ "order_report", "large_orders" @@ -6564,72 +6564,72 @@ "orders" ], "relationNames": [ - "tbl__order_report__20261114T100515Z_5d38fe", - "mv__order_report__20261114T100515Z_5d38fe", - "tbl__large_orders__20261114T100515Z_5d38fe", - "mv__large_orders__20261114T100515Z_5d38fe" + "tbl__order_report__20261114T181239Z_53e588", + "mv__order_report__20261114T181239Z_53e588", + "tbl__large_orders__20261114T181239Z_53e588", + "mv__large_orders__20261114T181239Z_53e588" ], "actions": [ { "phase": "plan", "action": "plan_shadow_table", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100515Z_5d38fe" + "physicalName": "tbl__order_report__20261114T181239Z_53e588" }, { "phase": "plan", "action": "plan_shadow_materialized_view", "logicalName": "order_report", - "physicalName": "mv__order_report__20261114T100515Z_5d38fe" + "physicalName": "mv__order_report__20261114T181239Z_53e588" }, { "phase": "plan", "action": "plan_shadow_table", "logicalName": "large_orders", - "physicalName": "tbl__large_orders__20261114T100515Z_5d38fe" + "physicalName": "tbl__large_orders__20261114T181239Z_53e588" }, { "phase": "plan", "action": "plan_shadow_materialized_view", "logicalName": "large_orders", - "physicalName": "mv__large_orders__20261114T100515Z_5d38fe" + "physicalName": "mv__large_orders__20261114T181239Z_53e588" }, { "phase": "backfill", "action": "backfill_subtree", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100515Z_5d38fe" + "physicalName": "tbl__order_report__20261114T181239Z_53e588" }, { "phase": "audit", "action": "audit_subtree", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100515Z_5d38fe" + "physicalName": "tbl__order_report__20261114T181239Z_53e588" }, { "phase": "publish", "action": "publish_subtree", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100515Z_5d38fe" + "physicalName": "tbl__order_report__20261114T181239Z_53e588" } ], "startTime": null } ], - "deploymentId": "20261114T100515Z_5d38fe", + "deploymentId": "20261114T181239Z_53e588", "upperBoundary": { "mode": "captured_at_execution", "continuesLive": true }, "timings": { - "connectionWaitMs": 85, - "planningMs": 142, + "connectionWaitMs": 44, + "planningMs": 127, "replayCountsMs": 0, - "totalMs": 227 + "totalMs": 171 } } }, - "/api/plan?select=pipeline%3Apl__orders&deployment=20261114T100515Z_5d38fe": { + "/api/plan?select=pipeline%3Apl__orders&deployment=20261114T181239Z_53e588": { "status": 200, "body": { "database": "sqltide_playground", @@ -6647,8 +6647,8 @@ "replayWindow": { "mode": "full" }, - "plannedAt": "2026-11-14 10:05:15.407", - "command": "sqt build --select pipeline:pl__orders --deployment-id 20261114T100515Z_5d38fe", + "plannedAt": "2026-11-14 18:12:39.932", + "command": "sqt build --select pipeline:pl__orders --deployment-id 20261114T181239Z_53e588", "mode": "virtual", "executionOrder": [ "virtual" @@ -6657,7 +6657,7 @@ { "mode": "virtual", "effect": "staged", - "deploymentId": "20261114T100515Z_5d38fe", + "deploymentId": "20261114T181239Z_53e588", "modelNames": [ "order_report", "large_orders" @@ -6666,68 +6666,68 @@ "orders" ], "relationNames": [ - "tbl__order_report__20261114T100515Z_5d38fe", - "mv__order_report__20261114T100515Z_5d38fe", - "tbl__large_orders__20261114T100515Z_5d38fe", - "mv__large_orders__20261114T100515Z_5d38fe" + "tbl__order_report__20261114T181239Z_53e588", + "mv__order_report__20261114T181239Z_53e588", + "tbl__large_orders__20261114T181239Z_53e588", + "mv__large_orders__20261114T181239Z_53e588" ], "actions": [ { "phase": "plan", "action": "plan_shadow_table", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100515Z_5d38fe" + "physicalName": "tbl__order_report__20261114T181239Z_53e588" }, { "phase": "plan", "action": "plan_shadow_materialized_view", "logicalName": "order_report", - "physicalName": "mv__order_report__20261114T100515Z_5d38fe" + "physicalName": "mv__order_report__20261114T181239Z_53e588" }, { "phase": "plan", "action": "plan_shadow_table", "logicalName": "large_orders", - "physicalName": "tbl__large_orders__20261114T100515Z_5d38fe" + "physicalName": "tbl__large_orders__20261114T181239Z_53e588" }, { "phase": "plan", "action": "plan_shadow_materialized_view", "logicalName": "large_orders", - "physicalName": "mv__large_orders__20261114T100515Z_5d38fe" + "physicalName": "mv__large_orders__20261114T181239Z_53e588" }, { "phase": "backfill", "action": "backfill_subtree", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100515Z_5d38fe" + "physicalName": "tbl__order_report__20261114T181239Z_53e588" }, { "phase": "audit", "action": "audit_subtree", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100515Z_5d38fe" + "physicalName": "tbl__order_report__20261114T181239Z_53e588" }, { "phase": "publish", "action": "publish_subtree", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100515Z_5d38fe" + "physicalName": "tbl__order_report__20261114T181239Z_53e588" } ], "startTime": null } ], - "deploymentId": "20261114T100515Z_5d38fe", + "deploymentId": "20261114T181239Z_53e588", "upperBoundary": { "mode": "captured_at_execution", "continuesLive": true }, "timings": { - "connectionWaitMs": 53, - "planningMs": 92, + "connectionWaitMs": 48, + "planningMs": 126, "replayCountsMs": 0, - "totalMs": 146 + "totalMs": 175 } } }, @@ -6749,8 +6749,8 @@ "replayWindow": { "mode": "full" }, - "plannedAt": "2026-11-14 10:05:18.244", - "command": "sqt build --select large_orders --deployment-id 20261114T100518Z_959bbe", + "plannedAt": "2026-11-14 18:12:42.863", + "command": "sqt build --select large_orders --deployment-id 20261114T181243Z_585339", "mode": "virtual", "executionOrder": [ "virtual" @@ -6759,7 +6759,7 @@ { "mode": "virtual", "effect": "staged", - "deploymentId": "20261114T100518Z_959bbe", + "deploymentId": "20261114T181243Z_585339", "modelNames": [], "contextModelNames": [], "relationNames": [], @@ -6767,20 +6767,20 @@ "startTime": null } ], - "deploymentId": "20261114T100518Z_959bbe", + "deploymentId": "20261114T181243Z_585339", "upperBoundary": { "mode": "captured_at_execution", "continuesLive": true }, "timings": { - "connectionWaitMs": 57, - "planningMs": 127, + "connectionWaitMs": 30, + "planningMs": 210, "replayCountsMs": 0, - "totalMs": 185 + "totalMs": 241 } } }, - "/api/plan?select=large_orders&deployment=20261114T100518Z_959bbe": { + "/api/plan?select=large_orders&deployment=20261114T181243Z_585339": { "status": 200, "body": { "database": "sqltide_playground", @@ -6798,8 +6798,8 @@ "replayWindow": { "mode": "full" }, - "plannedAt": "2026-11-14 10:05:18.473", - "command": "sqt build --select large_orders --deployment-id 20261114T100518Z_959bbe", + "plannedAt": "2026-11-14 18:12:43.142", + "command": "sqt build --select large_orders --deployment-id 20261114T181243Z_585339", "mode": "virtual", "executionOrder": [ "virtual" @@ -6808,7 +6808,7 @@ { "mode": "virtual", "effect": "staged", - "deploymentId": "20261114T100518Z_959bbe", + "deploymentId": "20261114T181243Z_585339", "modelNames": [], "contextModelNames": [], "relationNames": [], @@ -6816,16 +6816,16 @@ "startTime": null } ], - "deploymentId": "20261114T100518Z_959bbe", + "deploymentId": "20261114T181243Z_585339", "upperBoundary": { "mode": "captured_at_execution", "continuesLive": true }, "timings": { - "connectionWaitMs": 98, - "planningMs": 73, + "connectionWaitMs": 32, + "planningMs": 105, "replayCountsMs": 0, - "totalMs": 172 + "totalMs": 137 } } }, @@ -6847,8 +6847,8 @@ "replayWindow": { "mode": "full" }, - "plannedAt": "2026-11-14 10:05:21.289", - "command": "sqt build --select order_report --deployment-id 20261114T100521Z_50189a", + "plannedAt": "2026-11-14 18:12:45.984", + "command": "sqt build --select order_report --deployment-id 20261114T181246Z_ceee9d", "mode": "virtual", "executionOrder": [ "virtual" @@ -6857,7 +6857,7 @@ { "mode": "virtual", "effect": "staged", - "deploymentId": "20261114T100521Z_50189a", + "deploymentId": "20261114T181246Z_ceee9d", "modelNames": [ "order_report", "large_orders" @@ -6866,72 +6866,72 @@ "orders" ], "relationNames": [ - "tbl__order_report__20261114T100521Z_50189a", - "mv__order_report__20261114T100521Z_50189a", - "tbl__large_orders__20261114T100521Z_50189a", - "mv__large_orders__20261114T100521Z_50189a" + "tbl__order_report__20261114T181246Z_ceee9d", + "mv__order_report__20261114T181246Z_ceee9d", + "tbl__large_orders__20261114T181246Z_ceee9d", + "mv__large_orders__20261114T181246Z_ceee9d" ], "actions": [ { "phase": "plan", "action": "plan_shadow_table", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100521Z_50189a" + "physicalName": "tbl__order_report__20261114T181246Z_ceee9d" }, { "phase": "plan", "action": "plan_shadow_materialized_view", "logicalName": "order_report", - "physicalName": "mv__order_report__20261114T100521Z_50189a" + "physicalName": "mv__order_report__20261114T181246Z_ceee9d" }, { "phase": "plan", "action": "plan_shadow_table", "logicalName": "large_orders", - "physicalName": "tbl__large_orders__20261114T100521Z_50189a" + "physicalName": "tbl__large_orders__20261114T181246Z_ceee9d" }, { "phase": "plan", "action": "plan_shadow_materialized_view", "logicalName": "large_orders", - "physicalName": "mv__large_orders__20261114T100521Z_50189a" + "physicalName": "mv__large_orders__20261114T181246Z_ceee9d" }, { "phase": "backfill", "action": "backfill_subtree", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100521Z_50189a" + "physicalName": "tbl__order_report__20261114T181246Z_ceee9d" }, { "phase": "audit", "action": "audit_subtree", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100521Z_50189a" + "physicalName": "tbl__order_report__20261114T181246Z_ceee9d" }, { "phase": "publish", "action": "publish_subtree", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100521Z_50189a" + "physicalName": "tbl__order_report__20261114T181246Z_ceee9d" } ], "startTime": null } ], - "deploymentId": "20261114T100521Z_50189a", + "deploymentId": "20261114T181246Z_ceee9d", "upperBoundary": { "mode": "captured_at_execution", "continuesLive": true }, "timings": { - "connectionWaitMs": 54, - "planningMs": 139, + "connectionWaitMs": 28, + "planningMs": 117, "replayCountsMs": 0, - "totalMs": 194 + "totalMs": 146 } } }, - "/api/plan?select=order_report&deployment=20261114T100521Z_50189a": { + "/api/plan?select=order_report&deployment=20261114T181246Z_ceee9d": { "status": 200, "body": { "database": "sqltide_playground", @@ -6949,8 +6949,8 @@ "replayWindow": { "mode": "full" }, - "plannedAt": "2026-11-14 10:05:21.477", - "command": "sqt build --select order_report --deployment-id 20261114T100521Z_50189a", + "plannedAt": "2026-11-14 18:12:46.205", + "command": "sqt build --select order_report --deployment-id 20261114T181246Z_ceee9d", "mode": "virtual", "executionOrder": [ "virtual" @@ -6959,7 +6959,7 @@ { "mode": "virtual", "effect": "staged", - "deploymentId": "20261114T100521Z_50189a", + "deploymentId": "20261114T181246Z_ceee9d", "modelNames": [ "order_report", "large_orders" @@ -6968,68 +6968,68 @@ "orders" ], "relationNames": [ - "tbl__order_report__20261114T100521Z_50189a", - "mv__order_report__20261114T100521Z_50189a", - "tbl__large_orders__20261114T100521Z_50189a", - "mv__large_orders__20261114T100521Z_50189a" + "tbl__order_report__20261114T181246Z_ceee9d", + "mv__order_report__20261114T181246Z_ceee9d", + "tbl__large_orders__20261114T181246Z_ceee9d", + "mv__large_orders__20261114T181246Z_ceee9d" ], "actions": [ { "phase": "plan", "action": "plan_shadow_table", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100521Z_50189a" + "physicalName": "tbl__order_report__20261114T181246Z_ceee9d" }, { "phase": "plan", "action": "plan_shadow_materialized_view", "logicalName": "order_report", - "physicalName": "mv__order_report__20261114T100521Z_50189a" + "physicalName": "mv__order_report__20261114T181246Z_ceee9d" }, { "phase": "plan", "action": "plan_shadow_table", "logicalName": "large_orders", - "physicalName": "tbl__large_orders__20261114T100521Z_50189a" + "physicalName": "tbl__large_orders__20261114T181246Z_ceee9d" }, { "phase": "plan", "action": "plan_shadow_materialized_view", "logicalName": "large_orders", - "physicalName": "mv__large_orders__20261114T100521Z_50189a" + "physicalName": "mv__large_orders__20261114T181246Z_ceee9d" }, { "phase": "backfill", "action": "backfill_subtree", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100521Z_50189a" + "physicalName": "tbl__order_report__20261114T181246Z_ceee9d" }, { "phase": "audit", "action": "audit_subtree", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100521Z_50189a" + "physicalName": "tbl__order_report__20261114T181246Z_ceee9d" }, { "phase": "publish", "action": "publish_subtree", "logicalName": "order_report", - "physicalName": "tbl__order_report__20261114T100521Z_50189a" + "physicalName": "tbl__order_report__20261114T181246Z_ceee9d" } ], "startTime": null } ], - "deploymentId": "20261114T100521Z_50189a", + "deploymentId": "20261114T181246Z_ceee9d", "upperBoundary": { "mode": "captured_at_execution", "continuesLive": true }, "timings": { - "connectionWaitMs": 31, - "planningMs": 109, + "connectionWaitMs": 64, + "planningMs": 149, "replayCountsMs": 0, - "totalMs": 141 + "totalMs": 214 } } } diff --git a/ui/src/lib/demo/schemas.ts b/ui/src/lib/demo/schemas.ts deleted file mode 100644 index 6771375c..00000000 --- a/ui/src/lib/demo/schemas.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { z } from 'zod'; - -/** The website build's description of the engine's gzip parts. */ -export const engineManifestSchema = z.object({ - wasmBytes: z.number().int().positive(), - parts: z.array(z.object({ name: z.string().min(1), bytes: z.number().int().nonnegative() })).min(1) -}); diff --git a/ui/src/lib/demo/types.ts b/ui/src/lib/demo/types.ts deleted file mode 100644 index 00935400..00000000 --- a/ui/src/lib/demo/types.ts +++ /dev/null @@ -1,167 +0,0 @@ -/** A deployment an action creates: its slot name, and when after the action started sqt named it. */ -export type PreparedDeployment = { name: string; offset: number }; - -/** What a step, action or plan binds when it runs: the deployments it creates and its times. */ -export type PreparedBinding = { - creates: PreparedDeployment[]; - /** Each time a role wrote: the role, its ordinal in {{t:role:ordinal:format}}, and how long after the role's start it fell. */ - times: [owner: string, ordinal: number, offset: number][]; -}; - -/** One step of the story's history, replayed when the engine starts; statements index PreparedDemo.statements. */ -export type PreparedStep = PreparedBinding & { - role: string; - title: string; - statements: number[]; -}; - -/** What Execute, Promote or Roll back does in one state, as sqt did it (see scripts/prepare-demo.mjs). */ -export type PreparedAction = PreparedBinding & { - role: string; - response: DemoAnswer; - /** Indexes into PreparedDemo.statements, in the order sqt ran them. */ - statements: number[]; - /** The state the action leads to, or null for one the demo has nothing prepared for. */ - next: string | null; -}; - -/** An API answer: a status and a JSON body. */ -export type DemoAnswer = { status: number; body: unknown }; - -export type PreparedState = { - /** - * `sqt dev`'s answer to GET /api/plan, by selection key (see selectionKey) and whether it - * counted replay rows, with the deployment the plan proposes. - */ - plans: Record; - /** By `build `, `promote ` or `rollback `. */ - actions: Record; -}; - -/** src/lib/demo/prepared.json. */ -export type PreparedDemo = { - preparedWith: string; - database: string; - start: string; - setup: PreparedStep[]; - states: Record; - /** Every distinct statement, written once, because most builds share most of their SQL. */ - statements: string[]; -}; - -/** What the slots in prepared text resolve to in this tab. */ -export type SlotValues = { - /** Deployment IDs by slot name, and the time each was created. */ - deployments: Record; - uuids: Record; - /** When each role last started, in epoch milliseconds. */ - roleStarts: Record; - /** The times each role wrote, by ordinal, in epoch milliseconds. */ - times: Record; - /** The sqt version that prepared the demo ({{v}}). */ - version: string; - /** The "From a time" start of the plan or build being filled ({{s:...}}), or null. */ - startTime: number | null; -}; - -/** What the Plan page's Execute posts to /api/build. */ -export type BuildRequest = { - selectors: string[]; - changed?: boolean; - includeMissingUpstream?: boolean; - startTime: string | null; - deploymentId?: string; - confirmations: string[]; -}; - -/** The story's state machine on the engine (see createStoryResource). */ -export type DemoStory = { - /** Drops the story's database and replays its history, so the story starts over. */ - startOver(): Promise; - /** Replays the story's history up to its first state, reporting each statement. */ - replaySetup(onStep: (title: string, done: number, total: number) => void): Promise; - /** sqt's plan for a GET /api/plan query in the current state. */ - plan(params: URLSearchParams): DemoAnswer; - /** Starts the prepared build for a selection and answers at once, as `sqt dev` does. */ - build(request: BuildRequest): Promise; - /** Runs a prepared promotion or rollback, then answers. */ - deploymentAction(kind: 'promote' | 'rollback', deploymentId: string): Promise; - /** The body of GET /api/build/current: the last build, and whether it still runs. */ - buildFeed(): unknown; - /** The current state's name, or null once an action left the prepared states. */ - readonly stateName: string | null; -}; - -export type EngineProgress = - | { phase: 'download'; loaded: number; total: number } - | { phase: 'start' } - | { phase: 'replay'; step: string; done: number; total: number }; - -export type TableSize = { rows: number; bytes: number }; - -/** Whether this browser runs the demo's real engine, and if not, the note that says why. */ -export type EngineSupport = { real: true } | { real: false; reason: string }; - -/** The demo's real ClickHouse: chdb-wasm in a worker, adding orders to the source. */ -export type DemoEngine = { - readonly database: string; - /** Runs one statement; queries run one at a time, in the order they were asked for. */ - run(sql: string, format?: string): Promise; - /** Rows of a query, as objects. */ - rows(sql: string): Promise; - /** Replaces the engine with an empty one, after the queries already asked for. */ - restart(): Promise; - /** Each table's rows and bytes, as ClickHouse reports them. */ - tableSizes(): Promise>; - /** Adds an order to the source table every few seconds, as a stream would. */ - startOrders(): Promise; - stopOrders(): void; - readonly addingOrders: boolean; -}; - -/** The engine with the story replayed on it. */ -export type LiveDemo = { engine: DemoEngine; story: DemoStory }; - -/** Adds an order on a timer until stopped. */ -export type OrderGeneratorResource = { - start(): void; - stop(): void; - readonly running: boolean; -}; - -/** - * Where the demo's answers come from. `real`: the engine in this tab, which may still be loading. - * `failed`: the engine could not start, and the visitor has not yet chosen the recording. - */ -export type DemoMode = - | { kind: 'recorded'; reason: string } - | { kind: 'real'; progress: EngineProgress | null; live: LiveDemo | null } - | { kind: 'failed'; error: string }; - -export type DemoState = { mode: DemoMode }; - -export type DemoController = { - readonly demo: DemoState; - /** Settles once the demo answers from the recording. */ - readonly recordingChosen: Promise; - /** Answers from the recording, with the note that says why (empty when there is none). */ - useRecording(reason: string): void; - /** The real engine starts loading. */ - startEngine(): void; - /** How far the engine got, unless the visitor switched to the recording meanwhile. */ - showProgress(progress: EngineProgress): void; - /** The engine is ready, unless the visitor switched to the recording while it loaded. */ - engineReady(live: LiveDemo): void; - engineFailed(error: string): void; -}; - -/** The real engine as the API sees it. */ -export type DemoEngineLink = { - /** False once the visitor has switched to the recording. */ - active(): boolean; - /** - * Waits for the engine and the story. When the engine cannot start, waits for the visitor to - * choose the recording, then gives null. - */ - whenReady(): Promise; -}; diff --git a/ui/src/lib/presentation/components/plan/replay-window.svelte b/ui/src/lib/presentation/components/plan/replay-window.svelte index 8355907d..8d0d8c36 100644 --- a/ui/src/lib/presentation/components/plan/replay-window.svelte +++ b/ui/src/lib/presentation/components/plan/replay-window.svelte @@ -245,9 +245,8 @@

This playground's orders table doesn't record when each order landed, so there is no retained - window to pick a start time from. Paste a command with --start-time in - Preview a command to replay from a time here, or run - sqt playground --template streaming to try it with ClickHouse on your machine. + window to pick a start time from. Run sqt playground --template streaming to + replay from a time with ClickHouse on your machine.

{:else if !hasRetentionWindow}

diff --git a/ui/src/lib/presentation/components/plan/selection-combobox.svelte b/ui/src/lib/presentation/components/plan/selection-combobox.svelte index d49b89c1..2b12d15d 100644 --- a/ui/src/lib/presentation/components/plan/selection-combobox.svelte +++ b/ui/src/lib/presentation/components/plan/selection-combobox.svelte @@ -251,7 +251,7 @@ No matching options {#if import.meta.env.VITE_SQLTIDE_DEMO === '1' && query.trim() !== ''}

- {query.trim()} isn’t prepared in the demo, which plans the pipeline and models listed here. Run + {query.trim()} isn’t in the demo’s project, which has the pipeline and models listed here. Run sqt playground to plan your own models with ClickHouse on your machine.

{/if} diff --git a/ui/src/lib/warehouse-health/components/warehouse-health-summary.svelte b/ui/src/lib/warehouse-health/components/warehouse-health-summary.svelte index cacae1e9..e440df8e 100644 --- a/ui/src/lib/warehouse-health/components/warehouse-health-summary.svelte +++ b/ui/src/lib/warehouse-health/components/warehouse-health-summary.svelte @@ -14,8 +14,6 @@ }; let { health, referenceTime }: Props = $props(); - /** The UI demo's engine runs in the browser, which has no disk, inodes or server memory to report. */ - const DEMO: boolean = import.meta.env.VITE_SQLTIDE_DEMO === '1'; const primaryDisk = $derived.by(() => { if (!health) return null; return ( @@ -40,8 +38,7 @@
{#if health} - - {#if !DEMO}{/if} + {health.stale ? 'Last usable evidence. ' : ''}{warehouseHealthSummary(health)} @@ -54,8 +51,7 @@
{#if health} -
- {#if !DEMO} +
Available
{formatWarehouseBytes(primaryDisk?.unreservedBytes ?? null)}
@@ -71,7 +67,6 @@
{formatWarehouseBytes(health.memory?.residentBytes ?? null)}
{health.memory === null ? 'context unavailable' : health.memory.basis === 'cgroup' ? 'cgroup context' : 'host context'}
- {/if}
Active now
{health.activity?.activeQueries ?? '—'} queries
diff --git a/ui/src/routes/+layout.svelte b/ui/src/routes/+layout.svelte index cf1e3cb9..31eba1b0 100644 --- a/ui/src/routes/+layout.svelte +++ b/ui/src/routes/+layout.svelte @@ -9,16 +9,12 @@ import AppVersionNotice from '$lib/presentation/components/app-version-notice.svelte'; import CompileErrorScreen from '$lib/presentation/components/compile-error-screen.svelte'; import DemoBanner from '$lib/demo/components/demo-banner.svelte'; - import EnginePanel from '$lib/demo/components/engine-panel.svelte'; - import { getDemo } from '$lib/demo/main/get-demo'; - import type { DemoState } from '$lib/demo/types'; import { getApp } from '$lib/api/main/project/get-app'; import { initializeBootstrap } from '$lib/api/main/project/initialize-bootstrap'; let { children } = $props(); const app = getApp(); const auth = getAuth(); - const demo: DemoState = getDemo().demo; $effect(() => { if (auth.phase === 'unauthenticated' && page.route.id !== '/login') { @@ -64,16 +60,9 @@
{@render children()}
- {#if import.meta.env.VITE_SQLTIDE_DEMO === '1' && demo.mode.kind === 'real' && demo.mode.live !== null} - goto(`${base}/`, { invalidateAll: true })} /> - {/if}
{:else if app.phase === 'loading'} - - {#if import.meta.env.VITE_SQLTIDE_DEMO === '1'} - - {/if}
loading project…
diff --git a/ui/src/routes/warehouse-health/+page.svelte b/ui/src/routes/warehouse-health/+page.svelte index 6a233c47..fa079037 100644 --- a/ui/src/routes/warehouse-health/+page.svelte +++ b/ui/src/routes/warehouse-health/+page.svelte @@ -41,8 +41,7 @@
- - {#if import.meta.env.VITE_SQLTIDE_DEMO !== '1'}{/if} + {health.adapter}{health.version ? ` ${health.version}` : ''} {health.database} @@ -63,12 +62,6 @@ {/if}
- {#if import.meta.env.VITE_SQLTIDE_DEMO === '1'} - -

- This ClickHouse runs in your browser, so it has no disk, inodes or server memory to report. -

- {:else}
Capacity @@ -107,10 +100,7 @@ {/if}
- {/if} -
- {#if import.meta.env.VITE_SQLTIDE_DEMO !== '1'}
Main-path inodes
{health.inodes.free === null ? '—' : formatInteger(health.inodes.free)}free
@@ -130,7 +120,6 @@
memory context unavailable
{/if}
- {/if}
Current activity
diff --git a/ui/tests/lib/demo-readers/_api/catalog.test.ts b/ui/tests/lib/demo-readers/_api/catalog.test.ts deleted file mode 100644 index edb381dd..00000000 --- a/ui/tests/lib/demo-readers/_api/catalog.test.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { describe, expect, it } from 'vitest'; - -import { inspectManagedTableState, loadCatalog } from '../../../../src/lib/demo-readers/_api/catalog'; -import type { Catalog, ManagedTableState } from '../../../../src/lib/demo-readers/_helpers/evidence-types'; -import type { Query } from '../../../../src/lib/demo-readers/types'; - -const tables: object[] = [ - { name: 'mv__orders__20260101T000000Z_a1', engine: 'MaterializedView', create_table_query: 'CREATE MATERIALIZED VIEW shop.mv__orders__20260101T000000Z_a1 TO shop.orders__20260101T000000Z_a1 AS SELECT * FROM shop.raw_orders', as_select: 'SELECT * FROM shop.raw_orders' }, - { name: 'orders', engine: 'View', create_table_query: 'CREATE VIEW shop.orders AS SELECT * FROM shop.orders__20260101T000000Z_a1', as_select: 'SELECT * FROM shop.orders__20260101T000000Z_a1' }, - { name: 'orders__20260101T000000Z_a1', engine: 'MergeTree', create_table_query: 'CREATE TABLE shop.orders__20260101T000000Z_a1 (id UInt64) ENGINE = MergeTree ORDER BY id', as_select: '' } -]; - -const query: Query = async (sql: string): Promise => - (sql.includes('system.columns') - ? [{ table: 'orders__20260101T000000Z_a1', name: 'id', type: 'UInt64', default_expression: '' }] - : sql.includes("engine = 'View'") - ? tables.filter((row) => (row as { engine: string }).engine === 'View') - : sql.includes("engine != 'View'") - ? tables.filter((row) => (row as { engine: string }).engine !== 'View') - : tables) as Row[]; - -describe('catalog API', () => { - it('given system tables when the catalog loads then view bindings, writer targets and sources are derived', async () => { - const catalog: Catalog = await loadCatalog(query, 'shop'); - - expect(catalog.relations.map((relation) => [relation.name, relation.stableBindingName, relation.targetRelationName])).toEqual([ - ['mv__orders__20260101T000000Z_a1', null, 'orders__20260101T000000Z_a1'], - ['orders', 'orders__20260101T000000Z_a1', null], - ['orders__20260101T000000Z_a1', null, null] - ]); - expect(catalog.relations[0].sourceRelationNames).toEqual(['raw_orders']); - expect(catalog.relations[2].columns).toEqual([{ name: 'id', type: 'UInt64', defaultExpression: null }]); - }); - - it('given a stable view and deployment tables when inspected then bindings and model candidates are reported', async () => { - const state: ManagedTableState = await inspectManagedTableState(query, 'shop'); - - expect(state.activeBindings).toEqual([{ database: 'shop', logicalName: 'orders', physicalName: 'orders__20260101T000000Z_a1' }]); - expect(state.physicalCandidates).toEqual([ - { database: 'shop', logicalName: 'orders', physicalName: 'orders__20260101T000000Z_a1', objectType: 'table' } - ]); - }); -}); diff --git a/ui/tests/lib/demo-readers/_api/inventory.test.ts b/ui/tests/lib/demo-readers/_api/inventory.test.ts deleted file mode 100644 index 7d04a98c..00000000 --- a/ui/tests/lib/demo-readers/_api/inventory.test.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { describe, expect, it } from 'vitest'; - -import { loadDeploymentEvidence, loadDeploymentInventory } from '../../../../src/lib/demo-readers/_api/inventory'; -import type { DeploymentEvidence, DeploymentInventory } from '../../../../src/lib/demo-readers/_helpers/evidence-types'; -import type { Query } from '../../../../src/lib/demo-readers/types'; - -const D1: string = '20260101T000000Z_a1'; -const D2: string = '20260102T000000Z_b2'; - -const object = (deploymentId: string): object => ({ - deployment_id: deploymentId, - logical_database_name: null, - logical_object_type: 'table', - logical_object_name: 'orders', - physical_relation_name: `orders__${deploymentId}`, - logical_model_name: 'orders', - is_selected_root: true, - observed_at: '2026-01-01 00:00:00.000' -}); - -const responses: [string, object[]][] = [ - ['name IN (', [{ name: '_sqltide_virtual_deployments' }, { name: '_sqltide_virtual_object_state' }, { name: '_sqltide_virtual_publications' }, { name: '_sqltide_virtual_deployment_progress' }]], - ['FROM system.columns WHERE database', [{ name: 'operation' }]], - ['_sqltide_virtual_deployments', [{ deployment_id: D1, created_at: '2026-01-01 00:00:00.000' }, { deployment_id: D2, created_at: '2026-01-02 00:00:00.500' }]], - ['_sqltide_virtual_object_state', [object(D1), object(D2)]], - ['_sqltide_virtual_publications', [{ publication_id: 'p1', deployment_id: D1, published_at: '2026-01-01 01:00:00.000', logical_database_name: 'shop', logical_view_name: 'orders', physical_relation_name: `orders__${D1}` }]], - ['_sqltide_virtual_deployment_progress', [{ deployment_id: D2, stage: 'started' }]], - ["engine = 'View'", [{ name: 'orders', as_select: `SELECT * FROM shop.orders__${D1}` }]], - ["engine != 'View'", [{ name: `orders__${D1}` }, { name: `orders__${D2}` }]], - ['system.tables', [{ name: 'orders', engine: 'View', create_table_query: '', as_select: `SELECT * FROM shop.orders__${D1}` }, { name: `orders__${D1}`, engine: 'MergeTree', create_table_query: '', as_select: '' }, { name: `orders__${D2}`, engine: 'MergeTree', create_table_query: '', as_select: '' }]] -]; - -const query: Query = async (sql: string): Promise => - (responses.find(([pattern]) => sql.includes(pattern))?.[1] ?? []) as Row[]; - -describe('deployment inventory API', () => { - it('given a started build without completion when the inventory loads then it is incomplete and the published one is published', async () => { - const inventory: DeploymentInventory = await loadDeploymentInventory(query, 'shop'); - - expect(inventory.deployments.map((record) => [record.deploymentId, record.status, record.createdAt])).toEqual([ - [D1, 'published', '2026-01-01 00:00:00'], - [D2, 'incomplete', '2026-01-02 00:00:00.500000'] - ]); - expect(inventory.publishEvents[0].bindings).toEqual([{ database: 'shop', logicalName: 'orders', physicalName: `orders__${D1}` }]); - }); - - it('given warehouse evidence when summarized then states are classified newest deployment first', async () => { - const evidence: DeploymentEvidence = await loadDeploymentEvidence(query, 'shop'); - - expect(evidence.summaries.map((summary) => [summary.deploymentId, summary.state])).toEqual([ - [D2, 'incomplete'], - [D1, 'active'] - ]); - }); -}); diff --git a/ui/tests/lib/demo-readers/_api/measure-warehouse.test.ts b/ui/tests/lib/demo-readers/_api/measure-warehouse.test.ts deleted file mode 100644 index f845c94c..00000000 --- a/ui/tests/lib/demo-readers/_api/measure-warehouse.test.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { describe, expect, it } from 'vitest'; - -import { measureWarehouse } from '../../../../src/lib/demo-readers/_api/measure-warehouse'; -import type { Measurements } from '../../../../src/lib/demo-readers/_helpers/live-state'; -import type { Query, StateDefinitions, StatePayload } from '../../../../src/lib/demo-readers/types'; - -const responses: [string, object[]][] = [ - ["engine = 'View'", [{ name: 'orders', as_select: 'SELECT * FROM shop.orders__20260101T000000Z_a1' }]], - ['coalesce(total_rows', [{ name: 'orders__20260101T000000Z_a1', total_rows: '7', total_bytes: '700' }]], - ['count() AS parts', [{ table: 'orders__20260101T000000Z_a1', parts: '2' }]], - ["database = 'system'", [{ name: 'part_log' }]] -]; - -const query: Query = async (sql: string): Promise => - (responses.find(([pattern]) => sql.includes(pattern))?.[1] ?? []) as Row[]; - -const template: StatePayload = { capturedAt: '', warehouseHealth: null, models: { orders: { relationName: 'orders' } }, sources: {} }; -const definitions: StateDefinitions = { sources: [], pipelines: [], models: [{ name: 'orders', kind: 'table' }] }; - -describe('warehouse measurement API', () => { - it('given a stable view when the warehouse is measured then it reports the bound relation stats', async () => { - const measured: Measurements = await measureWarehouse(query, 'shop', '2026-01-01 10:00:00.000', template, definitions); - - expect(measured.stats.get('orders')).toEqual({ rows: 7, bytes: 700, parts: 2 }); - expect(measured.activity.get('orders')?.state).toBe('idle'); - }); -}); diff --git a/ui/tests/lib/demo-readers/_api/model-activity.test.ts b/ui/tests/lib/demo-readers/_api/model-activity.test.ts deleted file mode 100644 index 5590b99d..00000000 --- a/ui/tests/lib/demo-readers/_api/model-activity.test.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { describe, expect, it } from 'vitest'; - -import { readModelActivity } from '../../../../src/lib/demo-readers/_api/model-activity'; -import type { ModelActivity } from '../../../../src/lib/demo-readers/_helpers/live-state'; -import type { Query } from '../../../../src/lib/demo-readers/types'; - -describe('model activity API', () => { - it('given no system logs when activity is read then recent part changes approximate it through the binding', async () => { - const query: Query = async (sql: string): Promise => - (sql.includes("database = 'system'") ? [] : [{ table: 'orders__20260101T000000Z_a1', last_modified_at: '2026-01-01 10:00:00' }]) as Row[]; - - const activity: Map = await readModelActivity(query, 'shop', ['orders'], '2026-01-01 10:01:00.000', new Map([['orders', 'orders__20260101T000000Z_a1']])); - - expect(activity.get('orders')).toMatchObject({ state: 'moving', source: 'system_parts', approximate: true, lastWriteAt: '2026-01-01 10:00:00' }); - }); - - it('given part_log with new parts when activity is read then written rows are summed', async () => { - const query: Query = async (sql: string): Promise => - (sql.includes("database = 'system'") - ? [{ name: 'part_log' }] - : [{ observed_at: '2026-01-01 10:00:00.1', table: 'orders', rows: '2' }, { observed_at: '2026-01-01 10:00:00.2', table: 'orders', rows: '3' }]) as Row[]; - - const activity: Map = await readModelActivity(query, 'shop', ['orders'], '2026-01-01 10:01:00.000', new Map()); - - expect(activity.get('orders')).toMatchObject({ state: 'moving', source: 'part_log', rowsWritten: 5, detail: '5 rows were written in the last 120s.' }); - }); - - it('given a failing log read when activity is read then every relation is unknown', async () => { - const query: Query = async (): Promise => { - throw new Error('no such table'); - }; - - expect((await readModelActivity(query, 'shop', ['orders'], '2026-01-01 10:01:00.000', new Map())).get('orders')?.state).toBe('unknown'); - }); -}); diff --git a/ui/tests/lib/demo-readers/_api/run-history.test.ts b/ui/tests/lib/demo-readers/_api/run-history.test.ts deleted file mode 100644 index 4177b15a..00000000 --- a/ui/tests/lib/demo-readers/_api/run-history.test.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { describe, expect, it } from 'vitest'; - -import { eventStreams, runStartedStreams, terminalRuns } from '../../../../src/lib/demo-readers/_api/run-history'; -import type { Streams } from '../../../../src/lib/demo-readers/_helpers/run-assembly'; -import type { Query, RunPayload } from '../../../../src/lib/demo-readers/types'; - -const event: object = { - invocation_id: 'run-1', - sequence: '1', - emitted_at: '2026-01-01 10:00:00.000', - event_kind: 'run_started', - step_id: null, - phase: null, - payload_json: '{"command":"build","totalStatements":3}' -}; - -describe('run history API', () => { - it('given an invocation row when terminal runs are read then the run payload is shaped from it', async () => { - const query: Query = async (sql: string): Promise => - (sql.includes('count() AS present') - ? [{ present: '1' }] - : [{ invocation_id: 'run-1', project_identity: 'shop', command: 'build', mode: 'virtual_environment', outcome: 'succeeded', exit_code: 0, started_at: '2026-01-01 10:00:00.000', completed_at: '2026-01-01 10:00:05.000', duration_ms: '5000', selected_node_count: '2', error_message: null, summary_json: '{}', tool_version: '1.0.0' }]) as Row[]; - - const runs: Map = await terminalRuns(query, 'shop', { limit: 100, scheduled: false }); - - expect(runs.get('run-1')).toMatchObject({ status: 'succeeded', durationMs: 5000, selectedNodeCount: 2, auditSummary: null }); - }); - - it('given event rows when streams are read then each event is merged with its payload', async () => { - const query: Query = async (): Promise => [event] as Row[]; - - const streams: Streams = await eventStreams(query, 'shop', { invocationId: 'run-1' }, true); - - expect(streams.get('run-1')).toEqual([ - { sequence: 1, emittedAt: '2026-01-01 10:00:00.000', event: 'run_started', stepId: null, phase: null, command: 'build', totalStatements: 3 } - ]); - }); - - it('given no events table when start events are read then no streams are returned', async () => { - const query: Query = async (): Promise => [event] as Row[]; - - expect((await runStartedStreams(query, 'shop', ['run-1'], false)).size).toBe(0); - }); -}); diff --git a/ui/tests/lib/demo-readers/_api/source-states.test.ts b/ui/tests/lib/demo-readers/_api/source-states.test.ts deleted file mode 100644 index 18a3bc83..00000000 --- a/ui/tests/lib/demo-readers/_api/source-states.test.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { describe, expect, it } from 'vitest'; - -import { sourceStates } from '../../../../src/lib/demo-readers/_api/source-states'; -import type { Measurements } from '../../../../src/lib/demo-readers/_helpers/live-state'; -import type { Query, StateDefinitions, StatePayload } from '../../../../src/lib/demo-readers/types'; - -const template: StatePayload = { - capturedAt: '', - warehouseHealth: null, - models: {}, - sources: { orders: { relationName: 'raw_orders', consumerGroupDrift: null } } -}; -const definitions: StateDefinitions = { - sources: [{ name: 'orders', freshness: { warnAfter: '1m', errorAfter: '1h' } }], - pipelines: [], - models: [] -}; -const measured: Measurements = { - capturedAt: '2026-01-01 10:10:00.000', - stats: new Map([['raw_orders', { rows: 9, bytes: 90, parts: 1 }]]), - extents: new Map([['raw_orders', { oldest: '2026-01-01 09:00:00.000', newest: '2026-01-01 10:00:00.000', rows: 9 }]]), - partitions: new Map([['raw_orders', new Map([[0, [0, 8, '2026-01-01 09:00:00.000', '2026-01-01 10:00:00.000', 9]]])]]), - activity: new Map() -}; - -describe('source states API', () => { - it('given landed events ten minutes old when sources are measured then they are lagging with hourly throughput', async () => { - const query: Query = async (): Promise => [{ relation: 'raw_orders', bucket: '1767261600', rows: '9' }] as Row[]; - - const states: StatePayload['sources'] = await sourceStates(query, 'shop', template, definitions, measured); - - expect(states.orders).toMatchObject({ - rows: 9, - lastArrivalSeconds: 600, - freshness: 'lagging', - kafkaLagMessages: null, - throughput: { windowSeconds: 3600, bucketSeconds: 60 }, - rowsPerSecond: 0.003, - partitions: [{ partition: 0, maxOffset: 8, newestEventAt: '2026-01-01 10:00:00.000', committedOffset: null, endOffset: null, kafkaLagMessages: null }] - }); - }); -}); diff --git a/ui/tests/lib/demo-readers/_api/statement-progress.test.ts b/ui/tests/lib/demo-readers/_api/statement-progress.test.ts deleted file mode 100644 index b0a537fe..00000000 --- a/ui/tests/lib/demo-readers/_api/statement-progress.test.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { describe, expect, it } from 'vitest'; - -import { statementProgress } from '../../../../src/lib/demo-readers/_api/statement-progress'; -import type { JsonObject, Query, RunEvent } from '../../../../src/lib/demo-readers/types'; - -const started: RunEvent = { - sequence: 2, - emittedAt: '2026-01-01 10:00:01.000', - event: 'statement_started', - stepId: 'model:orders', - phase: 'populate', - statementSequence: 4, - queryId: 'q-4' -}; - -describe('statement progress API', () => { - it('given a running statement in system.processes when progress is read then rates are derived', async () => { - const query: Query = async (): Promise => - [{ elapsed: 2, read_rows: '100', read_bytes: '800', total_rows_approx: '400', memory_usage: '1024', settings: { b: '2', a: '1' } }] as Row[]; - - const progress: JsonObject | null = await statementProgress(query, [started], '2026-01-01 10:00:03.000'); - - expect(progress).toMatchObject({ found: true, queryId: 'q-4', statementSequence: 4, readRowsPerSecond: 50, readBytesPerSecond: 400 }); - expect(Object.keys(progress?.settings as object)).toEqual(['a', 'b']); - }); - - it('given a completed statement when progress is read then nothing is running', async () => { - const query: Query = async (): Promise => [] as Row[]; - const completed: RunEvent = { ...started, sequence: 3, event: 'statement_completed' }; - - expect(await statementProgress(query, [started, completed], '2026-01-01 10:00:03.000')).toBeNull(); - }); -}); diff --git a/ui/tests/lib/demo-readers/_api/storage.test.ts b/ui/tests/lib/demo-readers/_api/storage.test.ts deleted file mode 100644 index 14850d77..00000000 --- a/ui/tests/lib/demo-readers/_api/storage.test.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { describe, expect, it } from 'vitest'; - -import { relationStatsQuery, relationStorage } from '../../../../src/lib/demo-readers/_api/storage'; -import type { Storage } from '../../../../src/lib/demo-readers/_helpers/evidence-types'; -import type { Query } from '../../../../src/lib/demo-readers/types'; - -describe('storage API', () => { - it('given 64-bit counts as strings when storage is read then rows and bytes are numbers', async () => { - const seen: string[] = []; - const query: Query = async (sql: string): Promise => { - seen.push(sql); - return [{ name: 'orders', total_rows: '12', total_bytes: '3400' }] as Row[]; - }; - - const storage: Map = await relationStorage(query, 'shop'); - - expect(storage.get('orders')).toEqual({ rows: 12, bytes: 3400 }); - expect(seen).toEqual([relationStatsQuery('shop')]); - }); -}); diff --git a/ui/tests/lib/demo-readers/_api/warehouse-health.test.ts b/ui/tests/lib/demo-readers/_api/warehouse-health.test.ts deleted file mode 100644 index 23c266f9..00000000 --- a/ui/tests/lib/demo-readers/_api/warehouse-health.test.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { describe, expect, it } from 'vitest'; - -import { readWarehouseHealth } from '../../../../src/lib/demo-readers/_api/warehouse-health'; -import type { JsonObject, Query } from '../../../../src/lib/demo-readers/types'; - -const responses: [string, object[]][] = [ - ['version()', [{ version: '26.5.1', uptime_seconds: '42' }]], - ['active_queries', [{ active_queries: '1', active_merges: '0', incomplete_mutations: '0' }]], - ['system.parts', [{ table: 'orders', rows: '5', bytes_on_disk: '900', active_parts: '1' }]] -]; - -const query: Query = async (sql: string): Promise => - (responses.find(([pattern]) => sql.includes(pattern))?.[1] ?? []) as Row[]; - -describe('warehouse health API', () => { - it('given a browser engine when health is read then host diagnostics are unavailable and the rest is measured', async () => { - const health: JsonObject = await readWarehouseHealth(query, 'shop', '2026-01-01 10:00:00.000', { adapter: 'clickhouse' }); - - expect(health).toMatchObject({ - availability: 'partial', - status: 'unknown', - version: '26.5.1', - uptimeSeconds: 42, - measuredAt: '2026-01-01 10:00:00.000', - disks: [], - inodes: { total: null, free: null, status: 'unknown' }, - memory: null, - activity: { activeQueries: 1, activeMerges: 0, incompleteMutations: 0 }, - deadLetters: [], - tables: [{ name: 'orders', rows: 5, bytesOnDisk: 900, activeParts: 1 }] - }); - expect(health.warnings).toEqual([]); - }); -}); diff --git a/ui/tests/lib/demo-readers/_api/warehouse-probes.test.ts b/ui/tests/lib/demo-readers/_api/warehouse-probes.test.ts deleted file mode 100644 index 850ba869..00000000 --- a/ui/tests/lib/demo-readers/_api/warehouse-probes.test.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { describe, expect, it } from 'vitest'; - -import { captureWarehouseTimestamp, tableExists } from '../../../../src/lib/demo-readers/_api/warehouse-probes'; -import type { Query } from '../../../../src/lib/demo-readers/types'; - -describe('warehouse probes', () => { - it('given a present count as a string when a table is probed then it exists', async () => { - const query: Query = async (): Promise => [{ present: '1' }] as Row[]; - - expect(await tableExists(query, 'shop', '_sqltide_invocations')).toBe(true); - }); - - it('given the warehouse clock when captured then its UTC text is returned', async () => { - const query: Query = async (): Promise => [{ warehouse_timestamp: '2026-01-01 10:00:00.123' }] as Row[]; - - expect(await captureWarehouseTimestamp(query)).toBe('2026-01-01 10:00:00.123'); - }); -}); diff --git a/ui/tests/lib/demo/_api/demo-fetch.test.ts b/ui/tests/lib/demo/_api/demo-fetch.test.ts index dda15bfb..e83befde 100644 --- a/ui/tests/lib/demo/_api/demo-fetch.test.ts +++ b/ui/tests/lib/demo/_api/demo-fetch.test.ts @@ -1,8 +1,6 @@ import { afterEach, beforeEach, describe, expect, it, vi, type MockInstance } from 'vitest'; -import { installDemoFetch } from '$lib/demo/_api/demo-fetch'; -import { DEMO_NOT_IN_BROWSER_MESSAGE, DEMO_READ_ONLY_MESSAGE } from '$lib/demo/constants'; -import type { DemoAnswer, DemoEngineLink, DemoStory, LiveDemo } from '$lib/demo/types'; +import { DEMO_READ_ONLY_MESSAGE, installDemoFetch } from '$lib/demo/_api/demo-fetch'; import recordings from '$lib/demo/recordings.json'; describe('UI demo fetch', () => { @@ -49,77 +47,3 @@ describe('UI demo fetch', () => { expect(passThrough).toHaveBeenCalledOnce(); }); }); - -describe('UI demo fetch with the real engine', () => { - let story: { [Name in 'plan' | 'build' | 'deploymentAction']: ReturnType }; - - beforeEach(() => { - const answer: DemoAnswer = { status: 200, body: { from: 'story' } }; - story = { - plan: vi.fn().mockReturnValue(answer), - build: vi.fn().mockResolvedValue(answer), - deploymentAction: vi.fn().mockResolvedValue(answer) - }; - const live: LiveDemo = { engine: { database: 'db', rows: vi.fn() }, story: story as unknown as DemoStory } as unknown as LiveDemo; - vi.stubGlobal('fetch', vi.fn()); - vi.stubGlobal('location', new URL('https://sqltide.io/demo/plan')); - installDemoFetch({ active: () => true, whenReady: async () => live }); - }); - - afterEach(() => vi.unstubAllGlobals()); - - it('given a plan request when fetched then the story answers it with its query', async () => { - const response: Response = await fetch('/api/plan?select=order_report&counts=true'); - - expect(await response.json()).toEqual({ from: 'story' }); - expect(String(story.plan.mock.calls[0][0])).toBe('select=order_report&counts=true'); - }); - - it('given Execute, Promote and Roll back when posted then the story runs each', async () => { - const request: object = { selectors: ['order_report'], startTime: null, confirmations: [] }; - - await fetch('/api/build', { method: 'POST', body: JSON.stringify(request) }); - await fetch('/api/deployments/20261114T082312Z_0a1b2c/promote', { method: 'POST' }); - await fetch('/api/deployments/20261114T082312Z_0a1b2c/rollback', { method: 'POST' }); - - expect(story.build).toHaveBeenCalledWith(request); - expect(story.deploymentAction.mock.calls).toEqual([ - ['promote', '20261114T082312Z_0a1b2c'], - ['rollback', '20261114T082312Z_0a1b2c'] - ]); - }); - - it('given what the engine does not answer, such as auth, when fetched while the engine loads then the recording answers at once', async () => { - vi.stubGlobal('location', new URL('https://sqltide.io/demo/')); - installDemoFetch({ active: () => true, whenReady: () => new Promise(() => undefined) }); - - const response: Response = await fetch('/api/auth/me'); - - expect(await response.json()).toEqual(recordings.responses['/api/auth/me'].body); - }); - - it('given a write the browser demo does not run when posted then it says so and points to the playground', async () => { - const response: Response = await fetch('/api/deployments/cleanup', { method: 'POST' }); - - expect(response.status).toBe(403); - expect(await response.json()).toEqual({ detail: DEMO_NOT_IN_BROWSER_MESSAGE }); - }); -}); - -describe('UI demo fetch when the engine cannot start', () => { - afterEach(() => vi.unstubAllGlobals()); - - it('given the visitor chose the recording when a page asks then the recording answers and writes stay read-only', async () => { - // The engine failed while the page loaded; its requests waited, then the visitor chose the recording. - const link: DemoEngineLink = { active: () => true, whenReady: async () => null }; - vi.stubGlobal('fetch', vi.fn()); - vi.stubGlobal('location', new URL('https://sqltide.io/demo/')); - installDemoFetch(link); - - const status: Response = await fetch('/api/status'); - const promote: Response = await fetch('/api/deployments/any/promote', { method: 'POST' }); - - expect(await status.json()).toEqual(recordings.responses['/api/status'].body); - expect(await promote.json()).toEqual({ detail: DEMO_READ_ONLY_MESSAGE }); - }); -}); diff --git a/ui/tests/lib/demo/_api/download-engine.test.ts b/ui/tests/lib/demo/_api/download-engine.test.ts deleted file mode 100644 index 9b4d5341..00000000 --- a/ui/tests/lib/demo/_api/download-engine.test.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { resolveObjectURL } from 'node:buffer'; -import { gzipSync } from 'node:zlib'; -import { afterEach, describe, expect, it, vi } from 'vitest'; - -import { downloadEngine } from '$lib/demo/_api/download-engine'; -import type { EngineProgress } from '$lib/demo/types'; - -const wasm: Uint8Array = new TextEncoder().encode('not really wasm, but it round-trips through gzip'); - -/** Serves a manifest and the gzipped bytes split in two, the way the website build writes them. */ -function serve(manifest: unknown, packed: Uint8Array): void { - const half: number = Math.ceil(packed.length / 2); - const files: Record = { - '/engine/manifest.json': JSON.stringify(manifest), - '/engine/chdb.wasm.gz.0': packed.slice(0, half), - '/engine/chdb.wasm.gz.1': packed.slice(half) - }; - vi.stubGlobal( - 'fetch', - vi.fn(async (url: string) => (url in files ? new Response(files[url]) : new Response('missing', { status: 404 }))) - ); -} - -function manifestFor(packed: Uint8Array, wasmBytes: number): unknown { - const half: number = Math.ceil(packed.length / 2); - return { - wasmBytes, - parts: [ - { name: 'chdb.wasm.gz.0', bytes: half }, - { name: 'chdb.wasm.gz.1', bytes: packed.length - half } - ] - }; -} - -describe('download engine', () => { - afterEach(() => vi.unstubAllGlobals()); - - it('given two gzip parts when downloaded then the joined wasm is served from a blob URL with progress', async () => { - const packed: Uint8Array = gzipSync(wasm); - serve(manifestFor(packed, wasm.length), packed); - const progress: EngineProgress[] = []; - - const url: string = await downloadEngine('/engine/', (step) => progress.push(step)); - - const blob: ReturnType = resolveObjectURL(url); - expect(blob?.type).toBe('application/wasm'); - expect(new Uint8Array((await blob?.arrayBuffer()) ?? new ArrayBuffer(0))).toEqual(wasm); - expect(progress.at(0)).toEqual({ phase: 'download', loaded: 0, total: packed.length }); - expect(progress.at(-2)).toEqual({ phase: 'download', loaded: packed.length, total: packed.length }); - expect(progress.at(-1)).toEqual({ phase: 'start' }); - URL.revokeObjectURL(url); - }); - - it('given a manifest that expects more bytes when downloaded then it fails as cut short', async () => { - const packed: Uint8Array = gzipSync(wasm); - serve(manifestFor(packed, wasm.length + 1), packed); - - await expect(downloadEngine('/engine/', () => undefined)).rejects.toThrow('engine download was cut short'); - }); - - it('given a malformed manifest when downloaded then it fails before fetching any part', async () => { - serve({ wasmBytes: 1, parts: [] }, gzipSync(wasm)); - - await expect(downloadEngine('/engine/', () => undefined)).rejects.toThrow(); - expect(fetch).toHaveBeenCalledOnce(); - }); -}); diff --git a/ui/tests/lib/demo/_api/engine-answers.test.ts b/ui/tests/lib/demo/_api/engine-answers.test.ts deleted file mode 100644 index e2c64d49..00000000 --- a/ui/tests/lib/demo/_api/engine-answers.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { beforeEach, describe, expect, it, vi } from 'vitest'; - -import { answerFromEngine } from '$lib/demo/_api/engine-answers'; -import type { DemoAnswer, DemoStory, LiveDemo } from '$lib/demo/types'; - -const readers = vi.hoisted(() => ({ - readDeployment: vi.fn(), - readDeploymentDiff: vi.fn(), - readRunStatement: vi.fn() -})); -vi.mock('$lib/demo-readers/main/read-deployment', () => ({ readDeployment: readers.readDeployment })); -vi.mock('$lib/demo-readers/main/read-deployment-diff', () => ({ readDeploymentDiff: readers.readDeploymentDiff })); -vi.mock('$lib/demo-readers/main/read-run-statement', () => ({ readRunStatement: readers.readRunStatement })); - -const ID: string = '20261114T082312Z_0a1b2c'; - -describe('answers from the engine', () => { - let live: LiveDemo; - - beforeEach(() => { - vi.clearAllMocks(); - const story: Partial = { - plan: (params: URLSearchParams): DemoAnswer => ({ status: 200, body: { planned: params.getAll('select') } }), - buildFeed: (): unknown => ({ running: true }) - }; - live = { engine: { database: 'db', rows: vi.fn() }, story } as unknown as LiveDemo; - }); - - const ask: (path: string) => Promise = (path) => - answerFromEngine(live, new URL(path, 'https://sqltide.io'), {}); - - it('given a plan or the build feed when asked then the story answers', async () => { - expect(await ask('/api/plan?select=order_report&select=large_orders')).toEqual({ - status: 200, - body: { planned: ['order_report', 'large_orders'] } - }); - expect(await ask('/api/build/current?after=0')).toEqual({ status: 200, body: { running: true } }); - }); - - it('given a deployment the engine does not hold when asked then it is not found, as in sqt dev', async () => { - readers.readDeployment.mockResolvedValue(null); - - expect(await ask(`/api/deployments/${ID}`)).toEqual({ status: 404, body: { detail: `Deployment '${ID}' was not found` } }); - expect(readers.readDeployment.mock.calls[0].slice(1)).toEqual(['db', ID]); - }); - - it('given a diff against another deployment and a run statement when asked then the reader gets each from the path', async () => { - readers.readDeploymentDiff.mockResolvedValue({ relations: [] }); - readers.readRunStatement.mockResolvedValue({ found: false }); - - await ask(`/api/deployments/${ID}/diff?against=20261114T080000Z_ffffff`); - await ask('/api/runs/0f1e2d3c-0000-4000-8000-000000000000/statements/12'); - - expect(readers.readDeploymentDiff.mock.calls[0].slice(1)).toEqual(['db', ID, '20261114T080000Z_ffffff']); - expect(readers.readRunStatement.mock.calls[0].slice(1)).toEqual(['db', '0f1e2d3c-0000-4000-8000-000000000000', 12]); - }); - - it('given what the project defines, such as its definitions, when asked then the engine leaves it to the recording', async () => { - expect(await ask('/api/definitions')).toBeNull(); - expect(await ask('/api/auth/me')).toBeNull(); - }); -}); diff --git a/ui/tests/lib/demo/_helpers/fill-slots.test.ts b/ui/tests/lib/demo/_helpers/fill-slots.test.ts deleted file mode 100644 index f8fb1100..00000000 --- a/ui/tests/lib/demo/_helpers/fill-slots.test.ts +++ /dev/null @@ -1,87 +0,0 @@ -import { describe, expect, it } from 'vitest'; - -import { deploymentTime, fillSlots, startRole } from '$lib/demo/_helpers/fill-slots'; -import type { SlotValues } from '$lib/demo/types'; - -const emptyValues = (): SlotValues => ({ deployments: {}, uuids: {}, roleStarts: {}, times: {}, version: '1.2.3', startTime: null }); -const START: number = Date.UTC(2026, 10, 14, 8, 23, 10, 359); - -describe('fill slots', () => { - it('given a role that created a deployment when started then its ID names the second sqt named it', () => { - const values: SlotValues = emptyValues(); - - startRole(values, 'build', START, { creates: [{ name: 'built', offset: 1700 }], times: [] }); - - const id: string = fillSlots('{{d:built}}', values); - expect(id).toMatch(/^20261114T082312Z_[0-9a-f]{6}$/); - expect(fillSlots('{{dt:built:s3}} {{dt:built:T0}}', values)).toBe('2026-11-14 08:23:12.000 2026-11-14T08:23:12'); - }); - - it('given deployments created within one second when started then their IDs still sort in the order they were created', () => { - const values: SlotValues = emptyValues(); - - startRole(values, 'publish1', START, { creates: [{ name: 'v1', offset: 100 }], times: [] }); - startRole(values, 'publish2', START + 300, { creates: [{ name: 'v2', offset: 100 }], times: [] }); - - const [v1, v2] = [fillSlots('{{d:v1}}', values), fillSlots('{{d:v2}}', values)]; - expect(v2.slice(0, 16)).toBe('20261114T082311Z'); - expect([v1, v2].sort()).toEqual([v1, v2]); - }); - - it('given a deployment the page already named when the role starts then it keeps that ID and its time', () => { - const values: SlotValues = emptyValues(); - - startRole(values, 'build', START, { creates: [{ name: 'built', offset: 0 }], times: [] }, { - built: '20261114T070000Z_abcdef' - }); - - expect(fillSlots('{{d:built}} at {{dt:built:s0}}', values)).toBe('20261114T070000Z_abcdef at 2026-11-14 07:00:00'); - }); - - it('given times of this role and an earlier one when filled then each falls its offset after its role started', () => { - const values: SlotValues = emptyValues(); - startRole(values, 'publish', START - 60_000, { creates: [], times: [['publish', 0, 5]] }); - - startRole(values, 'build', START, { creates: [], times: [['build', 0, 250], ['build', 1, 1250], ['publish', 1, 900]] }); - - expect(fillSlots('{{t:build:1:s3}}|{{t:build:0:s6}}|{{t:publish:1:s3}}|{{t:publish:0:T0}}', values)).toBe( - '2026-11-14 08:23:11.609|2026-11-14 08:23:10.609000|2026-11-14 08:22:11.259|2026-11-14T08:22:10' - ); - }); - - it('given a role started again when filled then it gets new UUIDs but keeps the same one within a run', () => { - const values: SlotValues = emptyValues(); - startRole(values, 'build', START, { creates: [], times: [] }); - const first: string = fillSlots('{{u:build.0}} {{u:build.0}}', values); - - startRole(values, 'build', START + 1000, { creates: [], times: [] }); - const second: string = fillSlots('{{u:build.0}}', values); - - const [a, b] = first.split(' '); - expect(a).toBe(b); - expect(second).not.toBe(a); - }); - - it('given a start time when filled then {{s}} is that time in the requested format', () => { - const values: SlotValues = { ...emptyValues(), startTime: Date.parse('2026-01-01T10:01:00Z') }; - - expect(fillSlots("WHERE ts >= '{{s:s3}}' --start-time {{s:T0}}Z", values)).toBe( - "WHERE ts >= '2026-01-01 10:01:00.000' --start-time 2026-01-01T10:01:00Z" - ); - }); - - it('given the version slot when filled then it is the sqt version that prepared the demo', () => { - expect(fillSlots("tool_version = '{{v}}'", emptyValues())).toBe("tool_version = '1.2.3'"); - }); - - it('given a slot nothing bound when filled then it fails instead of writing a wrong value', () => { - expect(() => fillSlots('{{d:missing}}', emptyValues())).toThrow('{{d:missing}}'); - expect(() => fillSlots('{{t:build:0:s3}}', emptyValues())).toThrow('{{t:build:0:s3}}'); - expect(() => startRole(emptyValues(), 'promote', START, { creates: [], times: [['build', 0, 1]] })).toThrow('build'); - }); - - it('given IDs sqt writes and others when parsed then only deployment IDs have a time', () => { - expect(deploymentTime('20261114T082312Z_0a1b2c')).toBe(Date.UTC(2026, 10, 14, 8, 23, 12)); - expect(deploymentTime('latest')).toBeNull(); - }); -}); diff --git a/ui/tests/lib/demo/_resources/order-generator.resource.test.ts b/ui/tests/lib/demo/_resources/order-generator.resource.test.ts deleted file mode 100644 index f119cd1e..00000000 --- a/ui/tests/lib/demo/_resources/order-generator.resource.test.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { afterEach, beforeEach, describe, expect, it, vi, type MockInstance } from 'vitest'; - -import { ORDER_EVERY_MS } from '$lib/demo/constants'; -import { createOrderGeneratorResource } from '$lib/demo/_resources/order-generator.resource'; -import type { OrderGeneratorResource } from '$lib/demo/types'; - -describe('order generator resource', () => { - beforeEach(() => vi.useFakeTimers()); - afterEach(() => vi.useRealTimers()); - - it('given a started generator when time passes and it stops then it adds an order each interval until stopped', () => { - const addOrder: MockInstance<() => Promise> & (() => Promise) = vi - .fn<() => Promise>() - .mockResolvedValue(undefined); - const generator: OrderGeneratorResource = createOrderGeneratorResource(addOrder); - - generator.start(); - generator.start(); - vi.advanceTimersByTime(ORDER_EVERY_MS * 2); - const runningWhileStarted: boolean = generator.running; - generator.stop(); - vi.advanceTimersByTime(ORDER_EVERY_MS * 3); - - expect(addOrder).toHaveBeenCalledTimes(2); - expect([runningWhileStarted, generator.running]).toEqual([true, false]); - }); -}); diff --git a/ui/tests/lib/demo/_resources/story.resource.test.ts b/ui/tests/lib/demo/_resources/story.resource.test.ts deleted file mode 100644 index 015f90fe..00000000 --- a/ui/tests/lib/demo/_resources/story.resource.test.ts +++ /dev/null @@ -1,211 +0,0 @@ -import { describe, expect, it } from 'vitest'; - -import { DEMO_OFF_STORY_MESSAGE } from '$lib/demo/constants'; -import { createStoryResource } from '$lib/demo/_resources/story.resource'; -import type { DemoAnswer, DemoStory, PreparedDemo } from '$lib/demo/types'; - -/** - * A two-state story: publishing v1 creates it; Execute on the pipeline stages `built`, and - * promoting `built` leaves the prepared states. - */ -function story(): PreparedDemo { - return { - preparedWith: 'sqt test', - database: 'db', - start: 'nothing-staged', - statements: [ - 'CREATE TABLE db.t__{{d:v1}}', - "INSERT INTO db.runs VALUES ('{{u:build.0}}', '{{d:built}}', '{{t:build:0:s3}}', '{{s:s3}}')", - "INSERT INTO db.runs VALUES ('{{u:build.0}}', 'done', '{{t:build:1:s3}}', '{{v}}')", - "INSERT INTO db.promotions VALUES ('{{u:promote.0}}', '{{d:built}}', '{{d:v1}}')" - ], - setup: [{ role: 'publish1', title: 'Publish', statements: [0], creates: [{ name: 'v1', offset: 0 }], times: [] }], - states: { - 'nothing-staged': { - plans: { - 'pipeline:pl__orders||from|': { - status: 200, - body: { deploymentId: '{{d:planned}}', startTime: '{{s:s3}}' }, - creates: [{ name: 'planned', offset: 0 }], - times: [] - } - }, - actions: { - 'build pipeline:pl__orders||from': { - role: 'build', - response: { status: 200, body: { invocationId: '{{u:build.0}}' } }, - statements: [1, 2], - creates: [{ name: 'built', offset: 0 }], - times: [ - ['build', 0, 10], - ['build', 1, 900] - ], - next: 'staged' - } - } - }, - staged: { - plans: {}, - actions: { - 'promote built': { - role: 'promote', - response: { status: 200, body: { invocationId: '{{u:promote.0}}', deploymentId: '{{d:built}}' } }, - statements: [3], - creates: [], - times: [], - next: null - } - } - } - } - }; -} - -async function started(ran: string[]): Promise { - const created: DemoStory = createStoryResource(story(), async (sql: string) => { - ran.push(sql); - }); - await created.replaySetup(() => undefined); - return created; -} - -const flush = (): Promise => new Promise((resolve) => setTimeout(resolve, 0)); -const PLAN_QUERY: string = 'select=pipeline%3Apl__orders&start=2026-01-01T10%3A01%3A00Z'; - -describe('story', () => { - it('given a plan then Execute when run then the build runs the SQL sqt wrote for that plan, with its values filled', async () => { - const ran: string[] = []; - const demo: DemoStory = await started(ran); - - const plan: DemoAnswer = demo.plan(new URLSearchParams(PLAN_QUERY)); - const { deploymentId } = plan.body as { deploymentId: string }; - const build: DemoAnswer = await demo.build({ - selectors: ['pipeline:pl__orders'], - startTime: '2026-01-01T10:01:00Z', - deploymentId, - confirmations: [] - }); - await flush(); - - const { invocationId } = build.body as { invocationId: string }; - expect(plan.body).toEqual({ deploymentId, startTime: '2026-01-01 10:01:00.000' }); - expect(ran[0]).toMatch(/^CREATE TABLE db\.t__\d{8}T\d{6}Z_[0-9a-f]{6}$/); - expect(ran[1]).toContain(`('${invocationId}', '${deploymentId}', `); - expect(ran[1]).toContain(", '2026-01-01 10:01:00.000')"); - expect(ran[2]).toContain(`('${invocationId}', 'done', `); - expect(ran[2]).toContain(", 'sqt test')"); - expect(demo.stateName).toBe('staged'); - expect(demo.buildFeed()).toMatchObject({ running: false, invocationId, exitCode: 0 }); - }); - - it('given the staged deployment when promoted then the promotion runs and the story leaves its prepared states', async () => { - const ran: string[] = []; - const demo: DemoStory = await started(ran); - await demo.build({ selectors: ['pipeline:pl__orders'], startTime: '2026-01-01T10:01:00Z', confirmations: [] }); - await flush(); - const built: string = ran[1].split("', '")[1]; - - const promoted: DemoAnswer = await demo.deploymentAction('promote', built); - - expect(promoted.status).toBe(200); - expect((promoted.body as { deploymentId: string }).deploymentId).toBe(built); - expect(ran[3]).toContain(`'${built}', '${ran[0].slice('CREATE TABLE db.t__'.length)}')`); - expect(demo.stateName).toBeNull(); - expect(demo.plan(new URLSearchParams(PLAN_QUERY))).toEqual({ status: 409, body: { detail: DEMO_OFF_STORY_MESSAGE } }); - }); - - it('given the story left its prepared states when started over then the engine is reset, not dropped, and the plan answers again', async () => { - const ran: string[] = []; - let resets: number = 0; - const demo: DemoStory = createStoryResource( - story(), - async (sql: string) => { - ran.push(sql); - }, - async () => { - resets += 1; - } - ); - await demo.replaySetup(() => undefined); - await demo.build({ selectors: ['pipeline:pl__orders'], startTime: '2026-01-01T10:01:00Z', confirmations: [] }); - await flush(); - await demo.deploymentAction('promote', ran[1].split("', '")[1]); - ran.length = 0; - - await demo.startOver(); - - expect(resets).toBe(1); - expect(ran.some((sql) => sql.startsWith('DROP'))).toBe(false); - expect(ran[0]).toMatch(/^CREATE TABLE db\.t__/); - expect(demo.stateName).toBe('nothing-staged'); - expect(demo.plan(new URLSearchParams(PLAN_QUERY)).status).toBe(200); - }); - - it('given Execute on the deployment the plan proposed when promoted then that deployment is the one promoted', async () => { - const ran: string[] = []; - const demo: DemoStory = await started(ran); - const { deploymentId } = demo.plan(new URLSearchParams(PLAN_QUERY)).body as { deploymentId: string }; - demo.plan(new URLSearchParams(`${PLAN_QUERY}&deployment=${deploymentId}`)); - await demo.build({ selectors: ['pipeline:pl__orders'], startTime: '2026-01-01T10:01:00Z', deploymentId, confirmations: [] }); - await flush(); - - const promoted: DemoAnswer = await demo.deploymentAction('promote', deploymentId); - - expect(promoted).toMatchObject({ status: 200, body: { deploymentId } }); - }); - - it('given a build still running when a plan is asked for then it says to wait, not to start over', async () => { - let release: () => void = () => undefined; - const demo: DemoStory = createStoryResource(story(), (sql: string) => - sql.startsWith('INSERT') ? new Promise((resolve) => (release = resolve)) : Promise.resolve() - ); - await demo.replaySetup(() => undefined); - await demo.build({ selectors: ['pipeline:pl__orders'], startTime: '2026-01-01T10:01:00Z', confirmations: [] }); - - const answer: DemoAnswer = demo.plan(new URLSearchParams(PLAN_QUERY)); - release(); - - expect(answer.status).toBe(409); - expect((answer.body as { detail: string }).detail).toContain('still running'); - }); - - it('given a selection with a name the demo does not have when planned then it says so and names it', async () => { - const demo: DemoStory = await started([]); - - const answer: DemoAnswer = demo.plan(new URLSearchParams('select=orders_by_day&select=order_report')); - - expect(answer.status).toBe(400); - expect((answer.body as { detail: string }).detail).toMatch(/^The demo has no plan prepared for `orders_by_day`\. .*sqt playground/); - }); - - it('given a deployment with no prepared action here when promoted then it is refused and nothing runs', async () => { - const ran: string[] = []; - const demo: DemoStory = await started(ran); - - const answer: DemoAnswer = await demo.deploymentAction('rollback', '20990101T000000Z_aaaaaa'); - - expect(answer.status).toBe(409); - expect(ran).toHaveLength(1); - expect(demo.stateName).toBe('nothing-staged'); - }); - - it('given a statement the engine refuses when building then the build fails with its error and the story stops', async () => { - let calls: number = 0; - const demo: DemoStory = createStoryResource(story(), async () => { - calls += 1; - if (calls === 3) throw new Error('Code: 60. Unknown table'); - }); - await demo.replaySetup(() => undefined); - const failures: unknown[] = []; - const original: typeof console.error = console.error; - console.error = (...args: unknown[]) => failures.push(args); - - await demo.build({ selectors: ['pipeline:pl__orders'], startTime: '2026-01-01T10:01:00Z', confirmations: [] }); - await flush(); - console.error = original; - - expect(demo.buildFeed()).toMatchObject({ running: false, exitCode: 1, stderr: 'Code: 60. Unknown table' }); - expect(demo.stateName).toBeNull(); - expect(failures).toHaveLength(1); - }); -}); diff --git a/ui/tests/lib/demo/_state/demo.state.svelte.test.ts b/ui/tests/lib/demo/_state/demo.state.svelte.test.ts deleted file mode 100644 index 04d16797..00000000 --- a/ui/tests/lib/demo/_state/demo.state.svelte.test.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { describe, expect, it } from 'vitest'; - -import { createDemoState } from '$lib/demo/_state/demo.state.svelte'; -import type { DemoController, LiveDemo } from '$lib/demo/types'; - -const live: LiveDemo = {} as LiveDemo; - -describe('demo state', () => { - it('given a loading engine when it reports progress and becomes ready then the mode follows it', () => { - const controller: DemoController = createDemoState(); - - controller.startEngine(); - controller.showProgress({ phase: 'start' }); - const loading: unknown = structuredClone($state.snapshot(controller.demo.mode)); - controller.engineReady(live); - - expect(loading).toEqual({ kind: 'real', progress: { phase: 'start' }, live: null }); - expect(controller.demo.mode).toEqual({ kind: 'real', progress: null, live }); - }); - - it('given the visitor chose the recording when the engine reports later then the recording stays', () => { - const controller: DemoController = createDemoState(); - controller.startEngine(); - - controller.useRecording('The real engine couldn’t start here, so this is the recording.'); - controller.showProgress({ phase: 'start' }); - controller.engineReady(live); - - expect(controller.demo.mode).toEqual({ - kind: 'recorded', - reason: 'The real engine couldn’t start here, so this is the recording.' - }); - }); - - it('given a failed engine when the visitor chooses the recording then the requests waiting on it can go on', async () => { - const controller: DemoController = createDemoState(); - controller.startEngine(); - controller.engineFailed('out of memory'); - let settled: boolean = false; - void controller.recordingChosen.then(() => (settled = true)); - await Promise.resolve(); - const before: boolean = settled; - - controller.useRecording('The real engine couldn’t start here, so this is the recording.'); - await controller.recordingChosen; - - expect([before, settled]).toEqual([false, true]); - }); -}); diff --git a/website/README.md b/website/README.md index 17cbe83a..1421904e 100644 --- a/website/README.md +++ b/website/README.md @@ -20,25 +20,12 @@ npx playwright install chromium npm test ``` -`npm run build` also builds the package's UI from `../ui` as the UI demo at `/demo/`. In desktop -Chrome, Edge and Firefox it runs ClickHouse in the page (the `chdb-wasm` dependency, multi-threaded -build). `sqt` itself does not run in the browser: `ui/src/lib/demo/prepared.json` holds what it -decided for each step of the story, worked out ahead by real `sqt` against real ClickHouse. That is -every plan the Plan page offers and the SQL each Execute, Promote and Roll back runs, with -deployment IDs, run IDs and times left as slots the page fills in. The page runs that SQL on the -engine, adds orders to the source, and reads every page that shows the warehouse from the engine's -tables. Other browsers, phones and Save-Data get the recording in `ui/src/lib/demo/recordings.json`, -with a note saying why. The build gzips the engine into two files under `/demo/engine//`, -because Pages serves files of at most 25 MiB, and `public/_headers` makes `/demo/*` cross-origin -isolated, which the engine needs. - -Refresh both files with `node ui/scripts/prepare-demo.mjs`, which runs the playground with Docker -and the installed `sqt`. CI runs it with `--check`, which fails when `prepared.json` no longer -matches what `sqt` does apart from its version. Each release PR writes the new version into -`preparedWith` and the recorded `/api/status`, so the demo shows the release it was built with. -`tests/ui-demo.test.mjs` opens every recorded page and fails on any -unrecorded request, runs every prepared action on the real engine, and checks each fallback. The -tests serve the build with `scripts/serve.mjs`, which applies `public/_headers` as Pages does. +`npm run build` also builds the package's UI from `../ui` as the read-only UI demo at `/demo/`. It +answers every API request from `ui/src/lib/demo/recordings.json`; refresh that file with +`node ui/scripts/record-demo.mjs`, which runs the playground with Docker and the installed `sqt`. +Each release PR writes the new version into the recorded `/api/status`, so the demo shows the +release it was built with. `tests/ui-demo.test.mjs` opens every recorded page and fails on any +unrecorded request. `SQT` can select the installed baseline CLI. `CHROME_PATH` can select an existing Chromium binary. The example check creates the playground without starting it, compiles it before and after the diff --git a/website/package-lock.json b/website/package-lock.json index 3d383a8c..cd888605 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -12,7 +12,6 @@ "@lucide/astro": "^1.48.0", "@pagefind/default-ui": "^1.5.2", "astro": "^7.3.5", - "chdb-wasm": "0.4.0", "sharp": "^0.35.4", "starlight-llms-txt": "^0.12.0" }, @@ -2216,15 +2215,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/chdb-wasm": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/chdb-wasm/-/chdb-wasm-0.4.0.tgz", - "integrity": "sha512-ZLVu3gwx3JZ3IEe5MBZOKJLzLQyraKbx0kgqCs69kWhx19UPAvSkwLNJXFpI7ypZUVd0+PjC7IKHMpptSRVw0g==", - "license": "Apache-2.0", - "engines": { - "node": ">=23" - } - }, "node_modules/chokidar": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz", diff --git a/website/package.json b/website/package.json index 670f6ddd..3f659072 100644 --- a/website/package.json +++ b/website/package.json @@ -20,7 +20,6 @@ "@lucide/astro": "^1.48.0", "@pagefind/default-ui": "^1.5.2", "astro": "^7.3.5", - "chdb-wasm": "0.4.0", "sharp": "^0.35.4", "starlight-llms-txt": "^0.12.0" }, diff --git a/website/playwright.config.mjs b/website/playwright.config.mjs index c298be36..4acbc2eb 100644 --- a/website/playwright.config.mjs +++ b/website/playwright.config.mjs @@ -9,7 +9,7 @@ export default defineConfig({ ...(process.env.CHROME_PATH ? { launchOptions: { executablePath: process.env.CHROME_PATH } } : {}), }, webServer: { - command: 'npm run build:review && npm run check:links && node scripts/serve.mjs dist 4174', + command: 'npm run build:review && npm run check:links && python3 -m http.server 4174 --bind 127.0.0.1 --directory dist', url: 'http://127.0.0.1:4174', }, }); diff --git a/website/public/_headers b/website/public/_headers index c4d92d4d..adb347c7 100644 --- a/website/public/_headers +++ b/website/public/_headers @@ -6,8 +6,3 @@ Cache-Control: no-cache /hero-showcase.js Cache-Control: no-cache -/demo/* - Cross-Origin-Opener-Policy: same-origin - Cross-Origin-Embedder-Policy: require-corp -/demo/engine/* - Cache-Control: public, max-age=31536000, immutable diff --git a/website/scripts/build.mjs b/website/scripts/build.mjs index 0f6e7bf7..0e70c93a 100644 --- a/website/scripts/build.mjs +++ b/website/scripts/build.mjs @@ -1,8 +1,6 @@ import { copyFile, cp, mkdir, readdir, readFile, writeFile } from 'node:fs/promises'; import { existsSync } from 'node:fs'; import { execFileSync } from 'node:child_process'; -import { createHash } from 'node:crypto'; -import { gzipSync } from 'node:zlib'; import { redirects } from '../src/navigation.mjs'; const root = new URL('../', import.meta.url); @@ -16,30 +14,9 @@ for (const [from, to] of Object.entries(redirects)) { await writeFile(file, redirect.replace(' (path.endsWith('.wasm') ? payload.wasmUrl : prefix + path);`, -); -const engineHash = createHash('sha256').update(packed).update(worker).digest('hex').slice(0, 12); -const engineBase = `/demo/engine/${engineVersion}-${engineHash}/`; if (!existsSync(new URL('node_modules/', ui))) { // The UI's lockfile needs the npm it pins, as `make ui-install` uses. const { packageManager } = JSON.parse(await readFile(new URL('package.json', ui), 'utf8')); @@ -48,27 +25,10 @@ if (!existsSync(new URL('node_modules/', ui))) { execFileSync('npm', ['run', 'build'], { cwd: ui, stdio: 'inherit', - env: { ...process.env, SQLTIDE_UI_BASE: '/demo', VITE_SQLTIDE_DEMO: '1', VITE_SQLTIDE_DEMO_ENGINE: engineBase }, + env: { ...process.env, SQLTIDE_UI_BASE: '/demo', VITE_SQLTIDE_DEMO: '1' }, }); const demo = new URL('demo/', output); await cp(new URL('build/', ui), demo, { recursive: true }); -// The engine's module files, and its multi-threaded wasm gzipped in two parts: Pages serves files of -// at most 25 MiB, and the page joins and gunzips them. -const engine = new URL(engineBase.slice(1), output); -await mkdir(engine, { recursive: true }); -for (const file of ['index.js', 'async.js', 'bindings.js', 'platform.js', 'protocol.js', 'status.js', 'chdb.mjs']) { - await copyFile(new URL(`dist/${file}`, chdb), new URL(file, engine)); -} -await writeFile(new URL('worker.js', engine), worker); -await copyFile(new URL('LICENSE', chdb), new URL('LICENSE', engine)); -const half = Math.ceil(packed.length / 2); -const parts = [packed.subarray(0, half), packed.subarray(half)]; -for (const [index, part] of parts.entries()) await writeFile(new URL(`chdb.wasm.gz.${index}`, engine), part); -await writeFile(new URL('manifest.json', engine), JSON.stringify({ - version: engineVersion, - wasmBytes: wasm.length, - parts: parts.map((part, index) => ({ name: `chdb.wasm.gz.${index}`, bytes: part.length })), -})); const { pages } = JSON.parse(await readFile(new URL('src/lib/demo/recordings.json', ui), 'utf8')); for (const path of new Set(pages.map((page) => new URL(page, 'http://demo').pathname))) { if (path === '/') continue; @@ -76,9 +36,6 @@ for (const path of new Set(pages.map((page) => new URL(page, 'http://demo').path await mkdir(directory, { recursive: true }); await copyFile(new URL('index.html', demo), new URL('index.html', directory)); } -// Pages the engine creates, such as a new run, have no copy; Pages answers them with the nearest -// 404.html, which is the app shell too. -await copyFile(new URL('index.html', demo), new URL('404.html', demo)); // Keep unselected alternatives out of production. The selected hero lives in the homepage. const home = await readFile(new URL('index.html', output), 'utf8'); diff --git a/website/scripts/check_production.py b/website/scripts/check_production.py index 49ce4e8b..40cfda97 100644 --- a/website/scripts/check_production.py +++ b/website/scripts/check_production.py @@ -1,6 +1,5 @@ """Check production indexing and ensure unselected hero routes cannot be published.""" -import json from html.parser import HTMLParser from pathlib import Path from xml.etree import ElementTree @@ -55,17 +54,7 @@ def handle_starttag(self, tag, attrs): assert 'data-showcase="virtual"' in home, "Selected virtual hero missing from production" assert 'class="deployment-status status-b">Getting new events' in home, "Static explanation missing" assert home.count("Switching moves one view at a time") == 1 -# The UI demo's engine: Pages serves files of at most 25 MiB, and the engine needs isolation. -(manifest,) = (ROOT / "demo" / "engine").glob("*/manifest.json") -for part in json.loads(manifest.read_text())["parts"]: - assert (manifest.parent / part["name"]).stat().st_size < 25 * 1024 * 1024, part -headers = (ROOT / "_headers").read_text() -assert ( - "/demo/*\n Cross-Origin-Opener-Policy: same-origin\n" - " Cross-Origin-Embedder-Policy: require-corp\n" in headers -), "UI demo isolation headers missing" print( f"Production: {validated} indexable canonical pages; " - "selected virtual hero; sitemap includes homepage/docs; no review concepts; " - "demo engine fits Pages" + "selected virtual hero; sitemap includes homepage/docs; no review concepts" ) diff --git a/website/scripts/serve.mjs b/website/scripts/serve.mjs deleted file mode 100644 index 56d884e1..00000000 --- a/website/scripts/serve.mjs +++ /dev/null @@ -1,75 +0,0 @@ -// Serves the built site for the tests with the headers public/_headers gives each path on Pages, so the -// UI demo runs cross-origin isolated here too. -// -// node scripts/serve.mjs dist 4174 -import { createReadStream, readFileSync, statSync } from 'node:fs'; -import { createServer } from 'node:http'; -import { extname, join, normalize, sep } from 'node:path'; - -const [root, port] = [process.argv[2] ?? 'dist', Number(process.argv[3] ?? 4174)]; -const types = { - '.html': 'text/html; charset=utf-8', - '.css': 'text/css', - '.js': 'text/javascript', - '.mjs': 'text/javascript', - '.json': 'application/json', - '.svg': 'image/svg+xml', - '.png': 'image/png', - '.txt': 'text/plain; charset=utf-8', - '.xml': 'application/xml', - '.woff2': 'font/woff2', -}; - -// Each rule is a path pattern, where `*` matches the rest of a path, and the headers under it. -const rules = []; -for (const line of readFileSync(join(root, '_headers'), 'utf8').split('\n')) { - if (!line.trim() || line.trim().startsWith('#')) continue; - if (!/^\s/.test(line)) { - const pattern = new RegExp(`^${line.trim().replace(/[.+?^${}()|[\]\\]/g, '\\$&').replace(/\*/g, '.*')}$`); - rules.push({ pattern, headers: {} }); - } else { - const [name, ...value] = line.trim().split(':'); - const headers = rules.at(-1).headers; - // Pages joins values that several rules give one header. - headers[name] = headers[name] ? `${headers[name]}, ${value.join(':').trim()}` : value.join(':').trim(); - } -} - -createServer((request, response) => { - const url = new URL(request.url, 'http://site'); - try { - const path = decodeURIComponent(url.pathname); - let file = normalize(join(root, path)); - if (!file.startsWith(normalize(root) + sep)) return response.writeHead(403).end(); - if (statSync(file).isDirectory()) { - if (!path.endsWith('/')) return response.writeHead(301, { Location: `${url.pathname}/${url.search}` }).end(); - file = join(file, 'index.html'); - } - const { size } = statSync(file); - const headers = { 'Content-Type': types[extname(file)] ?? 'application/octet-stream', 'Content-Length': size }; - for (const rule of rules.filter((rule) => rule.pattern.test(path))) { - for (const [name, value] of Object.entries(rule.headers)) { - headers[name] = headers[name] ? `${headers[name]}, ${value}` : value; - } - } - response.writeHead(200, headers); - if (request.method === 'HEAD') return response.end(); - createReadStream(file).pipe(response); - } catch { - // Like Pages, answer with the nearest 404.html above the path, such as the UI demo's app shell. - const parts = url.pathname.split('/').slice(1, -1); - for (let depth = parts.length; depth >= 0; depth -= 1) { - const page = normalize(join(root, ...parts.slice(0, depth), '404.html')); - if (!page.startsWith(normalize(root) + sep)) break; - try { - const body = readFileSync(page); - const headers = { 'Content-Type': types['.html'] }; - for (const rule of rules.filter((rule) => rule.pattern.test(url.pathname))) Object.assign(headers, rule.headers); - return response.writeHead(404, headers).end(body); - } catch { - // no 404.html at this level - } - } - response.writeHead(404, { 'Content-Type': 'text/plain' }).end('Not found'); - } -}).listen(port, '127.0.0.1'); diff --git a/website/src/content/docs/docs/quickstart.mdx b/website/src/content/docs/docs/quickstart.mdx index c202c1b3..ca3e4f84 100644 --- a/website/src/content/docs/docs/quickstart.mdx +++ b/website/src/content/docs/docs/quickstart.mdx @@ -83,8 +83,8 @@ This stops ClickHouse and deletes the playground's data. Without `--volumes` it and take a change through inspect, audit, promote and roll back. - [`sqt playground --template streaming`](/docs/cli/playground/): the same workflow on order events streaming from Redpanda. -- [UI demo](/demo/): the development UI in your browser with nothing to install. In desktop - Chrome, Edge and Firefox it runs a real ClickHouse engine in the page. +- [UI demo](/demo/): the development UI in your browser on recorded example data, read-only and + with nothing to install. - [Project configuration](/docs/concepts/project-configuration/) and [typed SQL models](/docs/concepts/models/) to start your own project. - [Direct builds](/docs/concepts/direct-mode/), the default mode, which rebuild models in place diff --git a/website/src/content/docs/docs/ui/overview.mdx b/website/src/content/docs/docs/ui/overview.mdx index d2c4d0e1..be673f88 100644 --- a/website/src/content/docs/docs/ui/overview.mdx +++ b/website/src/content/docs/docs/ui/overview.mdx @@ -15,10 +15,8 @@ ClickHouse target, and combines authored definitions with live warehouse evidenc the project and target, connection state, and the time of the current warehouse snapshot. SQLTide refreshes live state periodically, and the refresh button requests a new snapshot immediately. -To look around before installing, open the [UI demo](/demo/): this UI in your browser on the -playground's orders example. In desktop Chrome, Edge and Firefox it runs a real ClickHouse engine in -the page: new orders arrive, and promoting the staged change switches the query. The plan, diff and -run history are recorded. Other browsers and phones get a read-only recording. +To look around before installing, open the [UI demo](/demo/): this UI in your browser on recorded +example data. It is read-only, so actions such as promote and build are refused. ## Find the right view diff --git a/website/tests/ui-demo.test.mjs b/website/tests/ui-demo.test.mjs index 0684f408..ffe0b58f 100644 --- a/website/tests/ui-demo.test.mjs +++ b/website/tests/ui-demo.test.mjs @@ -1,16 +1,14 @@ -import { test, expect, devices } from '@playwright/test'; +import { test, expect } from '@playwright/test'; import { readFileSync } from 'node:fs'; const { pages, responses } = JSON.parse( readFileSync(new URL('../../ui/src/lib/demo/recordings.json', import.meta.url), 'utf8'), ); const staged = responses['/api/deployments'].body.deployments.find((deployment) => deployment.state === 'staged').deploymentId; -const chooseRecording = () => sessionStorage.setItem('sqltide-demo-recording', '1'); test('every UI demo page renders from recordings, and writes stay read-only', async ({ page }) => { // One pass over every recorded page and the views each loads on demand. test.setTimeout(120_000); - await page.addInitScript(chooseRecording); const failures = []; page.on('pageerror', (error) => failures.push(`${page.url()}: ${error.message}`)); page.on('console', (message) => { @@ -37,140 +35,7 @@ test('every UI demo page renders from recordings, and writes stay read-only', as expect(failures).toEqual([]); await page.goto('/demo/deployments'); - await expect(page.getByRole('note')).toContainText('You chose the recording.'); await page.locator(`a[href="/demo/deployments/${staged}"]`).first().click(); await page.getByRole('button', { name: 'Promote', exact: true }).click(); await expect(page.getByText('This is a read-only UI demo with example data.')).toBeVisible(); }); - -test('on the real engine Execute, Promote and Roll back run, and every page reads the engine', async ({ page }) => { - test.setTimeout(420_000); - const errors = []; - page.on('pageerror', (error) => errors.push(error.message)); - page.on('console', (message) => message.type() === 'error' && errors.push(message.text())); - await page.goto('/demo/'); - expect(await page.evaluate(() => crossOriginIsolated)).toBe(true); - await expect(page.getByRole('progressbar', { name: 'Engine loading' })).toBeVisible(); - - // On a screen this narrow the panel starts as a rail beside the page. - const panel = page.getByRole('complementary', { name: 'Live engine' }); - await panel.getByRole('button', { name: 'Show live engine' }).click({ timeout: 180_000 }); - const reads = panel.getByTestId('engine-reads'); - await expect(reads).toContainText('rows', { timeout: 60_000 }); - const banner = page.getByRole('note'); - await expect(banner).toContainText('Worked out ahead by sqt'); - await expect(banner).toContainText('isn’t atomic'); - const readsNow = async () => (await reads.textContent()).match(/Reads deployment (\S+):/)[1]; - const published = await readsNow(); - - // The Overview counts the engine's orders, and the count moves as new ones arrive. - // The source's row count on its Overview card, not the engine panel's counts beside the page. - const sourceRows = async () => - Number((await page.locator('div.ml-auto.shrink-0.text-right').getByText(/^\d+ rows$/).first().textContent()).split(' ')[0]); - const before = await sourceRows(); - expect(before).toBeGreaterThanOrEqual(3); - await expect.poll(sourceRows, { timeout: 30_000 }).toBeGreaterThan(before); - // Its warehouse card shows nothing a browser engine cannot measure. - await expect(page.getByTestId('warehouse-health-summary')).not.toContainText('Disk capacity'); - await expect(page.getByTestId('warehouse-health-summary')).not.toContainText('Inodes'); - - // The engine lives in this tab, so from here on the test moves with the app's own links: a - // reload would start the story over. - const sidebar = (name) => page.getByRole('link', { name, exact: true }).first().click(); - - // Warehouse shows the engine's own version, and no disk, inodes or memory. - await sidebar('Warehouse'); - await expect(page.getByTestId('demo-no-capacity')).toBeVisible(); - await expect(page.getByText('clickhouse 25.8')).toHaveCount(0); - - // The playground defines no audits or tests, and Quality says so. - await sidebar('Quality'); - await expect(page.getByTestId('demo-no-audits')).toContainText('sqt playground --template streaming'); - - // A name the demo has no plan for says so; the pipeline plans and executes on the engine. - await sidebar('Plan'); - const picker = page.getByRole('combobox'); - await picker.fill('orders_by_day'); - await expect(page.getByTestId('demo-unprepared-selector')).toContainText('sqt playground'); - await picker.fill('pipeline:pl__orders'); - await page.getByRole('option', { name: /pipeline:pl__orders/ }).click(); - // Its source records no landing times, so picking a start time says why and where to try it. - await expect(page.getByTestId('demo-no-replay-window')).toContainText('sqt playground --template streaming'); - await page.getByRole('button', { name: 'Execute' }).click({ timeout: 60_000 }); - await expect(page).toHaveURL(/\/demo\/runs\//); - await expect(page.getByText('succeeded').first()).toBeVisible({ timeout: 120_000 }); - - // Promote switches the query to the new deployment; Roll back switches it back. - await sidebar('Deployments'); - const newest = async () => - (await page.locator('a[href^="/demo/deployments/2"]').evaluateAll((links) => links.map((link) => link.pathname.split('/').pop()))) - .sort() - .at(-1); - await expect.poll(newest).not.toBe(published); - const built = await newest(); - await page.locator(`a[href="/demo/deployments/${built}"]`).first().click(); - await page.getByRole('button', { name: 'Promote', exact: true }).click(); - // The page opens the run once the engine has run the switch's statements. - await expect(page).toHaveURL(/\/demo\/runs\//, { timeout: 30_000 }); - await expect.poll(readsNow, { timeout: 30_000 }).toBe(built); - await expect(panel.locator('tbody')).not.toContainText('pending', { timeout: 30_000 }); - - await sidebar('Deployments'); - await page.locator(`a[href="/demo/deployments/${published}"]`).first().click(); - await page.getByRole('button', { name: 'Roll back', exact: true }).click(); - await expect(page).toHaveURL(/\/demo\/runs\//, { timeout: 30_000 }); - await expect.poll(readsNow, { timeout: 30_000 }).toBe(published); - - await sidebar('Runs'); - await page.getByRole('button', { name: /^Deployments \d+$/ }).click(); - await expect(page.getByText('deployment rollback').first()).toBeVisible(); - - // Start over brings the engine back to the story's start, so the pipeline plans again. - await panel.getByRole('button', { name: 'Start over' }).click(); - await expect(panel.getByRole('button', { name: 'Start over' })).toBeEnabled({ timeout: 120_000 }); - await expect(panel.getByRole('alert')).toHaveCount(0); - await expect(panel.getByText('A new order arrives every 4 s.')).toBeVisible(); - await sidebar('Plan'); - await page.getByRole('combobox').fill('pipeline:pl__orders'); - await page.getByRole('option', { name: /pipeline:pl__orders/ }).click(); - await expect(page.getByRole('button', { name: 'Execute' })).toBeEnabled({ timeout: 60_000 }); - expect(errors).toEqual([]); -}); - -test('without cross-origin isolation the demo says so and plays the recording', async ({ page }) => { - // Only the page's own headers decide isolation; other requests the page may drop mid-flight. - await page.route('**/demo/**', async (route) => { - if (route.request().resourceType() !== 'document') return route.continue(); - const response = await route.fetch(); - const headers = response.headers(); - delete headers['cross-origin-embedder-policy']; - delete headers['cross-origin-opener-policy']; - await route.fulfill({ response, headers }); - }); - await page.goto('/demo/'); - await expect(page.getByRole('note')).toContainText('isn’t cross-origin isolated'); - await expect(page.getByRole('complementary', { name: 'Live engine' })).toHaveCount(0); -}); - -test('when the engine fails to start the demo says so and offers the recording', async ({ page }) => { - await page.route('**/demo/engine/**/chdb.wasm.gz.1', (route) => route.fulfill({ status: 404, body: 'gone' })); - await page.goto('/demo/'); - const dialog = page.getByRole('alertdialog', { name: 'The real engine couldn’t start' }); - await expect(dialog).toContainText('HTTP 404'); - await dialog.getByRole('button', { name: 'Use the recording' }).click(); - await expect(page.getByRole('note')).toContainText('The real engine couldn’t start here, so this is the recording.'); - await page.locator('a[href="/demo/deployments"]').first().click(); - await page.locator(`a[href="/demo/deployments/${staged}"]`).first().click(); - await page.getByRole('button', { name: 'Promote', exact: true }).click(); - await expect(page.getByText('This is a read-only UI demo with example data.')).toBeVisible(); -}); - -test.describe('on a phone', () => { - const { defaultBrowserType: _, ...pixel } = devices['Pixel 7']; - test.use(pixel); - - test('the demo plays the recording and says why', async ({ page }) => { - await page.goto('/demo/'); - await expect(page.getByRole('note')).toContainText('phones get the recording'); - }); -});