Dataset Viewer
Auto-converted to Parquet Duplicate
sql
large_stringlengths
60
7.13k
dialect
large_stringclasses
3 values
schema
large_stringlengths
507
1.54k
edges
large_stringlengths
220
3.22k
category
large_stringclasses
11 values
source
large_stringclasses
7 values
text
large_stringlengths
631
12.2k
CREATE TABLE mart.t15 AS SELECT amount AS date FROM raw.item
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t15", "column": "date"}, "sources": [{"table": "raw.item", "column": "amount"}], "transform_type": "direct", "sql_fragment": "amount AS date", "confidence": 1.0, "method": "autogt", "static": true}]
direct
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: CREATE TABLE mart.t15 AS SELECT amount AS date FROM raw.item ### Схема: {"raw.item": ["a...
INSERT INTO mart.t37 SELECT a.id AS id, b.amount AS amount FROM raw.loan a FULL OUTER JOIN ods.loan b ON a.id = b.id
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": ["id", "amount"], "ods.customer": null, "ods.item": null...
[{"target": {"table": "mart.t37", "column": "id"}, "sources": [{"table": "raw.loan", "column": "id"}], "transform_type": "direct", "sql_fragment": "a.id AS id", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t37", "column": "amount"}, "sources": [{"table": "ods.loan", "column": "amou...
joins
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t37 SELECT a.id AS id, b.amount AS amount FROM raw.loan a FULL OUTER JO...
INSERT INTO mart.t40 SELECT COALESCE(type, name) AS v FROM raw.region
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t40", "column": "v"}, "sources": [{"table": "raw.region", "column": "type"}, {"table": "raw.region", "column": "name"}], "transform_type": "expression", "sql_fragment": "COALESCE(type, name) AS v", "confidence": 1.0, "method": "autogt", "static": true}]
expression
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t40 SELECT COALESCE(type, name) AS v FROM raw.region ### Схема: {"raw.r...
EXECUTE IMMEDIATE 'INSERT INTO mart.t36 SELECT id, amount FROM ods.loan'
oracle
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": ["id", "amount"], "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null...
[{"target": {"table": "mart.t36", "column": "id"}, "sources": [{"table": "ods.loan", "column": "id"}], "transform_type": "direct", "sql_fragment": "<dynamic>", "confidence": 0.9, "method": "autogt", "static": false}, {"target": {"table": "mart.t36", "column": "amount"}, "sources": [{"table": "ods.loan", "column": "amou...
dynamic
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: oracle ### SQL: EXECUTE IMMEDIATE 'INSERT INTO mart.t36 SELECT id, amount FROM ods.loan' ### Схема: {"ods....
CREATE OR REPLACE FUNCTION load_3086() RETURNS void AS $$ DECLARE r RECORD; BEGIN FOR r IN SELECT id, amount, status FROM stg.customer LOOP IF r.status = 'A' THEN INSERT INTO mart.t6 (id, amount) VALUES (r.id, r.amount); ELSE INSERT INTO mart.t6 (id, amount) VALUES (r.id, 0); END IF; END LOO...
postgres
{"raw.contract": null, "mart.t6": ["id", "amount"], "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null...
[{"target": {"table": "mart.t6", "column": "id"}, "sources": [{"table": "stg.customer", "column": "id"}], "transform_type": "copy", "sql_fragment": "r.id", "confidence": 0.9, "method": "autogt", "static": false}, {"target": {"table": "mart.t6", "column": "amount"}, "sources": [{"table": "stg.customer", "column": "amoun...
procedural
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: CREATE OR REPLACE FUNCTION load_3086() RETURNS void AS $$ DECLARE r RECORD; BEGIN FOR ...
INSERT INTO mart.t35 (id, amount) SELECT id, amount FROM raw.account
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t35", "column": "id"}, "sources": [{"table": "raw.account", "column": "id"}], "transform_type": "direct", "sql_fragment": "id", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t35", "column": "amount"}, "sources": [{"table": "raw.account", "column": "amount...
insert_merge
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t35 (id, amount) SELECT id, amount FROM raw.account ### Схема: {"raw.ac...
INSERT INTO mart.t28 (id, amount) SELECT id, amount FROM stg.payment
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": ["id", "amount"], "mart.t37": null, "ods.customer": null, "ods.item": null...
[{"target": {"table": "mart.t28", "column": "id"}, "sources": [{"table": "stg.payment", "column": "id"}], "transform_type": "direct", "sql_fragment": "id", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t28", "column": "amount"}, "sources": [{"table": "stg.payment", "column": "amount...
insert_merge
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t28 (id, amount) SELECT id, amount FROM stg.payment ### Схема: {"stg.pa...
INSERT INTO mart.t40 SELECT ROW_NUMBER() OVER (PARTITION BY rate ORDER BY status) AS rn, rate FROM stg.account
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t40", "column": "rn"}, "sources": [{"table": "stg.account", "column": "rate"}, {"table": "stg.account", "column": "status"}], "transform_type": "window", "sql_fragment": "ROW_NUMBER() OVER (PARTITION BY rate ORDER BY status) AS rn", "confidence": 1.0, "method": "autogt", "static": true}, {"t...
window
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t40 SELECT ROW_NUMBER() OVER (PARTITION BY rate ORDER BY status) AS rn,...
INSERT INTO mart.t32 SELECT CASE WHEN status > 0 THEN rate ELSE amount END AS v FROM ods.account
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t32", "column": "v"}, "sources": [{"table": "ods.account", "column": "rate"}, {"table": "ods.account", "column": "amount"}, {"table": "ods.account", "column": "status"}], "transform_type": "case_when", "sql_fragment": "CASE WHEN status > 0 THEN rate ELSE amount END AS v", "confidence": 1.0, ...
expression
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t32 SELECT CASE WHEN status > 0 THEN rate ELSE amount END AS v FROM ods...
INSERT INTO mart.t17 SELECT a.id AS id, b.amount AS amount FROM ods.contract a FULL OUTER JOIN stg.payment b ON a.id = b.id
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": ["id"], "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": ["id", "amount"], "mart.t37": null, "ods.customer": null, "ods.item": nu...
[{"target": {"table": "mart.t17", "column": "id"}, "sources": [{"table": "ods.contract", "column": "id"}], "transform_type": "direct", "sql_fragment": "a.id AS id", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t17", "column": "amount"}, "sources": [{"table": "stg.payment", "column"...
joins
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t17 SELECT a.id AS id, b.amount AS amount FROM ods.contract a FULL OUTE...
INSERT INTO mart.t42 WITH c0 AS (SELECT id, amount FROM raw.account), c1 AS (SELECT id, amount FROM c0) SELECT id, amount FROM c1
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t42", "column": "id"}, "sources": [{"table": "raw.account", "column": "id"}], "transform_type": "direct", "sql_fragment": "id", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t42", "column": "amount"}, "sources": [{"table": "raw.account", "column": "amount...
cte
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t42 WITH c0 AS (SELECT id, amount FROM raw.account), c1 AS (SELECT id, ...
MERGE INTO mart.t30 USING (SELECT id, amount FROM raw.loan) AS s ON mart.t30.id = s.id WHEN MATCHED THEN UPDATE SET amount = s.amount WHEN NOT MATCHED THEN INSERT (id, amount) VALUES (s.id, s.amount)
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t30", "column": "id"}, "sources": [{"table": "raw.loan", "column": "id"}], "transform_type": "direct", "sql_fragment": "id", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t30", "column": "amount"}, "sources": [{"table": "raw.loan", "column": "amount"}], "...
insert_merge
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: MERGE INTO mart.t30 USING (SELECT id, amount FROM raw.loan) AS s ON mart.t30.id = s.id W...
INSERT INTO mart.t45 SELECT AVG(amount) AS total, COUNT(*) AS n, status FROM stg.branch GROUP BY status
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t45", "column": "total"}, "sources": [{"table": "stg.branch", "column": "amount"}], "transform_type": "aggregation", "sql_fragment": "AVG(amount) AS total", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t45", "column": "n"}, "sources": [{"table": "stg.bra...
aggregation
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t45 SELECT AVG(amount) AS total, COUNT(*) AS n, status FROM stg.branch ...
WITH RECURSIVE cte AS (SELECT id, code FROM ods.contract WHERE code IS NULL UNION ALL SELECT c.id, c.code FROM ods.contract c JOIN cte ON c.code = cte.id) INSERT INTO mart.t15 SELECT id, code FROM cte
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": ["id", "code"], "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, ...
[{"target": {"table": "mart.t15", "column": "id"}, "sources": [{"table": "ods.contract", "column": "id"}, {"table": "cte", "column": "id"}], "transform_type": "direct", "sql_fragment": "id", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t15", "column": "code"}, "sources": [{"table":...
cte
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: WITH RECURSIVE cte AS (SELECT id, code FROM ods.contract WHERE code IS NULL UNION ALL SE...
INSERT INTO mart.t40 SELECT a.id AS id, b.amount AS amount FROM raw.contract a RIGHT JOIN stg.region b ON a.id = b.id
postgres
{"raw.contract": ["id"], "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t1...
[{"target": {"table": "mart.t40", "column": "id"}, "sources": [{"table": "raw.contract", "column": "id"}], "transform_type": "direct", "sql_fragment": "a.id AS id", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t40", "column": "amount"}, "sources": [{"table": "stg.region", "column":...
joins
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t40 SELECT a.id AS id, b.amount AS amount FROM raw.contract a RIGHT JOI...
INSERT INTO mart.t11 SELECT date AS balance, date AS code, status AS qty FROM raw.order
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t11", "column": "balance"}, "sources": [{"table": "raw.order", "column": "date"}], "transform_type": "direct", "sql_fragment": "date AS balance", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t11", "column": "code"}, "sources": [{"table": "raw.order", "co...
direct
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t11 SELECT date AS balance, date AS code, status AS qty FROM raw.order ...
INSERT INTO mart.t23 SELECT SUM(amount) AS total, COUNT(*) AS n, date FROM raw.branch GROUP BY date
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t23", "column": "total"}, "sources": [{"table": "raw.branch", "column": "amount"}], "transform_type": "aggregation", "sql_fragment": "SUM(amount) AS total", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t23", "column": "n"}, "sources": [{"table": "raw.bra...
aggregation
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t23 SELECT SUM(amount) AS total, COUNT(*) AS n, date FROM raw.branch GR...
INSERT INTO mart.t31 SELECT rate FROM raw.region UNION SELECT rate FROM ods.contract
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": ["rate"], "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart....
[{"target": {"table": "mart.t31", "column": "rate"}, "sources": [{"table": "raw.region", "column": "rate"}, {"table": "ods.contract", "column": "rate"}], "transform_type": "copy", "sql_fragment": "rate UNION", "confidence": 1.0, "method": "autogt", "static": true}]
union
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t31 SELECT rate FROM raw.region UNION SELECT rate FROM ods.contract ###...
INSERT INTO mart.t29 WITH c0 AS (SELECT id, amount FROM raw.item), c1 AS (SELECT id, amount FROM c0), c2 AS (SELECT id, amount FROM c1), c3 AS (SELECT id, amount FROM c2) SELECT id, amount FROM c3
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t29", "column": "id"}, "sources": [{"table": "raw.item", "column": "id"}], "transform_type": "direct", "sql_fragment": "id", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t29", "column": "amount"}, "sources": [{"table": "raw.item", "column": "amount"}], "...
cte
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t29 WITH c0 AS (SELECT id, amount FROM raw.item), c1 AS (SELECT id, amo...
INSERT INTO mart.t25 SELECT LAG(qty) OVER (PARTITION BY balance ORDER BY name) AS prev_val, balance FROM stg.payment
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": ["qty", "balance", "name"], "mart.t37": null, "ods.customer": null, "ods.i...
[{"target": {"table": "mart.t25", "column": "prev_val"}, "sources": [{"table": "stg.payment", "column": "qty"}, {"table": "stg.payment", "column": "balance"}, {"table": "stg.payment", "column": "name"}], "transform_type": "window", "sql_fragment": "LAG(qty) OVER (PARTITION BY balance ORDER BY name) AS prev_val", "confi...
window
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t25 SELECT LAG(qty) OVER (PARTITION BY balance ORDER BY name) AS prev_v...
INSERT INTO mart.t13 SELECT CASE WHEN rate > 0 THEN qty ELSE status END AS v FROM stg.order
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t13", "column": "v"}, "sources": [{"table": "stg.order", "column": "qty"}, {"table": "stg.order", "column": "status"}, {"table": "stg.order", "column": "rate"}], "transform_type": "case_when", "sql_fragment": "CASE WHEN rate > 0 THEN qty ELSE status END AS v", "confidence": 1.0, "method": "a...
expression
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t13 SELECT CASE WHEN rate > 0 THEN qty ELSE status END AS v FROM stg.or...
INSERT INTO mart.t7 SELECT COALESCE(date, id) AS v FROM stg.account
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": ["v"], "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15...
[{"target": {"table": "mart.t7", "column": "v"}, "sources": [{"table": "stg.account", "column": "date"}, {"table": "stg.account", "column": "id"}], "transform_type": "expression", "sql_fragment": "COALESCE(date, id) AS v", "confidence": 1.0, "method": "autogt", "static": true}]
expression
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t7 SELECT COALESCE(date, id) AS v FROM stg.account ### Схема: {"stg.acc...
INSERT INTO mart.t14 SELECT id FROM raw.account UNION ALL SELECT id FROM raw.item
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t14", "column": "id"}, "sources": [{"table": "raw.account", "column": "id"}, {"table": "raw.item", "column": "id"}], "transform_type": "copy", "sql_fragment": "id UNION ALL", "confidence": 1.0, "method": "autogt", "static": true}]
union
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t14 SELECT id FROM raw.account UNION ALL SELECT id FROM raw.item ### Сх...
INSERT INTO mart.t41 SELECT a.id AS id, b.amount AS amount FROM stg.payment a RIGHT JOIN raw.customer b ON a.id = b.id
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": ["id"], "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t1...
[{"target": {"table": "mart.t41", "column": "id"}, "sources": [{"table": "stg.payment", "column": "id"}], "transform_type": "direct", "sql_fragment": "a.id AS id", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t41", "column": "amount"}, "sources": [{"table": "raw.customer", "column"...
joins
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t41 SELECT a.id AS id, b.amount AS amount FROM stg.payment a RIGHT JOIN...
INSERT INTO mart.t37 SELECT COALESCE(type, amount) AS v FROM raw.order
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": ["v"], "ods.customer": null, "ods.item": null, "mart.t15...
[{"target": {"table": "mart.t37", "column": "v"}, "sources": [{"table": "raw.order", "column": "type"}, {"table": "raw.order", "column": "amount"}], "transform_type": "expression", "sql_fragment": "COALESCE(type, amount) AS v", "confidence": 1.0, "method": "autogt", "static": true}]
expression
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t37 SELECT COALESCE(type, amount) AS v FROM raw.order ### Схема: {"raw....
CREATE OR REPLACE FUNCTION load_7888() RETURNS void AS $$ DECLARE r RECORD; BEGIN FOR r IN SELECT id, amount, status FROM stg.account LOOP IF r.status = 'A' THEN INSERT INTO mart.t9 (id, amount) VALUES (r.id, r.amount); ELSE INSERT INTO mart.t9 (id, amount) VALUES (r.id, 0); END IF; END LOOP...
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t9", "column": "id"}, "sources": [{"table": "stg.account", "column": "id"}], "transform_type": "copy", "sql_fragment": "r.id", "confidence": 0.9, "method": "autogt", "static": false}, {"target": {"table": "mart.t9", "column": "amount"}, "sources": [{"table": "stg.account", "column": "amount"...
procedural
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: CREATE OR REPLACE FUNCTION load_7888() RETURNS void AS $$ DECLARE r RECORD; BEGIN FOR ...
INSERT INTO mart.t29 SELECT balance FROM raw.order INTERSECT SELECT balance FROM stg.payment
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": ["balance"], "mart.t37": null, "ods.customer": null, "ods.item": null, "ma...
[{"target": {"table": "mart.t29", "column": "balance"}, "sources": [{"table": "raw.order", "column": "balance"}], "transform_type": "copy", "sql_fragment": "balance INTERSECT", "confidence": 1.0, "method": "autogt", "static": true}]
union
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t29 SELECT balance FROM raw.order INTERSECT SELECT balance FROM stg.pay...
CREATE OR REPLACE FUNCTION load_7277() RETURNS void AS $$ DECLARE cur CURSOR FOR SELECT id, amount FROM raw.region; r RECORD; BEGIN OPEN cur; LOOP FETCH cur INTO r; EXIT WHEN NOT FOUND; INSERT INTO mart.t13 (id, amount) VALUES (r.id, r.amount); END LOOP; CLOSE cur; END; $$ LANGUAGE plpgsql
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t13", "column": "id"}, "sources": [{"table": "raw.region", "column": "id"}], "transform_type": "copy", "sql_fragment": "r.id", "confidence": 0.9, "method": "autogt", "static": false}, {"target": {"table": "mart.t13", "column": "amount"}, "sources": [{"table": "raw.region", "column": "amount"...
procedural
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: CREATE OR REPLACE FUNCTION load_7277() RETURNS void AS $$ DECLARE cur CURSOR FOR SELEC...
INSERT INTO mart.t43 SELECT SUM(amount) AS total, COUNT(*) AS n, date FROM raw.product GROUP BY date
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": ["amount", "date"], "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": nu...
[{"target": {"table": "mart.t43", "column": "total"}, "sources": [{"table": "raw.product", "column": "amount"}], "transform_type": "aggregation", "sql_fragment": "SUM(amount) AS total", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t43", "column": "n"}, "sources": [{"table": "raw.pr...
aggregation
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t43 SELECT SUM(amount) AS total, COUNT(*) AS n, date FROM raw.product G...
DECLARE @sql nvarchar(max); SET @sql = N'INSERT INTO mart.t24 SELECT id, amount FROM ods.branch'; EXEC sp_executesql @sql
tsql
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": ["id", "amount"], "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null...
[{"target": {"table": "mart.t24", "column": "id"}, "sources": [{"table": "ods.branch", "column": "id"}], "transform_type": "direct", "sql_fragment": "<dynamic>", "confidence": 0.9, "method": "autogt", "static": false}, {"target": {"table": "mart.t24", "column": "amount"}, "sources": [{"table": "ods.branch", "column": "...
dynamic
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: tsql ### SQL: DECLARE @sql nvarchar(max); SET @sql = N'INSERT INTO mart.t24 SELECT id, amount FROM ods.bra...
INSERT INTO mart.t36 SELECT a.id AS id, b.amount AS amount FROM raw.account a LEFT JOIN stg.account b ON a.id = b.id
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": ["id", "amount"], "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null...
[{"target": {"table": "mart.t36", "column": "id"}, "sources": [{"table": "raw.account", "column": "id"}], "transform_type": "direct", "sql_fragment": "a.id AS id", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t36", "column": "amount"}, "sources": [{"table": "stg.account", "column":...
joins
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t36 SELECT a.id AS id, b.amount AS amount FROM raw.account a LEFT JOIN ...
INSERT INTO mart.t13 SELECT name FROM ods.loan UNION SELECT name FROM stg.customer
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t13", "column": "name"}, "sources": [{"table": "ods.loan", "column": "name"}, {"table": "stg.customer", "column": "name"}], "transform_type": "copy", "sql_fragment": "name UNION", "confidence": 1.0, "method": "autogt", "static": true}]
union
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t13 SELECT name FROM ods.loan UNION SELECT name FROM stg.customer ### С...
MERGE INTO mart.t48 USING (SELECT id, amount FROM stg.item) AS s ON mart.t48.id = s.id WHEN MATCHED THEN UPDATE SET amount = s.amount WHEN NOT MATCHED THEN INSERT (id, amount) VALUES (s.id, s.amount)
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t48", "column": "id"}, "sources": [{"table": "stg.item", "column": "id"}], "transform_type": "direct", "sql_fragment": "id", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t48", "column": "amount"}, "sources": [{"table": "stg.item", "column": "amount"}], "...
insert_merge
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: MERGE INTO mart.t48 USING (SELECT id, amount FROM stg.item) AS s ON mart.t48.id = s.id W...
EXECUTE IMMEDIATE 'INSERT INTO mart.t17 SELECT id, amount FROM ods.loan'
oracle
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t17", "column": "id"}, "sources": [{"table": "ods.loan", "column": "id"}], "transform_type": "direct", "sql_fragment": "<dynamic>", "confidence": 0.9, "method": "autogt", "static": false}, {"target": {"table": "mart.t17", "column": "amount"}, "sources": [{"table": "ods.loan", "column": "amou...
dynamic
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: oracle ### SQL: EXECUTE IMMEDIATE 'INSERT INTO mart.t17 SELECT id, amount FROM ods.loan' ### Схема: {"ods....
INSERT INTO mart.t22 SELECT amount::numeric * 100 AS scaled FROM raw.order
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t22", "column": "scaled"}, "sources": [{"table": "raw.order", "column": "amount"}], "transform_type": "expression", "sql_fragment": "amount::numeric * 100 AS scaled", "confidence": 1.0, "method": "autogt", "static": true}]
expression
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t22 SELECT amount::numeric * 100 AS scaled FROM raw.order ### Схема: {"...
INSERT INTO mart.t12 SELECT status AS name, qty AS amount FROM raw.loan
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t12", "column": "name"}, "sources": [{"table": "raw.loan", "column": "status"}], "transform_type": "direct", "sql_fragment": "status AS name", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t12", "column": "amount"}, "sources": [{"table": "raw.loan", "colu...
direct
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t12 SELECT status AS name, qty AS amount FROM raw.loan ### Схема: {"raw...
INSERT INTO mart.t12 SELECT a.id AS id, b.amount AS amount FROM raw.payment a INNER JOIN raw.product b ON a.id = b.id
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": ["id", "amount"], "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null...
[{"target": {"table": "mart.t12", "column": "id"}, "sources": [{"table": "raw.payment", "column": "id"}], "transform_type": "direct", "sql_fragment": "a.id AS id", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t12", "column": "amount"}, "sources": [{"table": "raw.product", "column":...
joins
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t12 SELECT a.id AS id, b.amount AS amount FROM raw.payment a INNER JOIN...
INSERT INTO mart.t50 SELECT SUM(amount) AS total, COUNT(*) AS n, type FROM stg.product GROUP BY type HAVING SUM(amount) > 0
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t50", "column": "total"}, "sources": [{"table": "stg.product", "column": "amount"}], "transform_type": "aggregation", "sql_fragment": "SUM(amount) AS total", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t50", "column": "n"}, "sources": [{"table": "stg.pr...
aggregation
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t50 SELECT SUM(amount) AS total, COUNT(*) AS n, type FROM stg.product G...
INSERT INTO mart.t27 SELECT LEAD(id) OVER (PARTITION BY type ORDER BY balance) AS next_val, type FROM stg.loan
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t27", "column": "next_val"}, "sources": [{"table": "stg.loan", "column": "id"}, {"table": "stg.loan", "column": "type"}, {"table": "stg.loan", "column": "balance"}], "transform_type": "window", "sql_fragment": "LEAD(id) OVER (PARTITION BY type ORDER BY balance) AS next_val", "confidence": 1....
window
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t27 SELECT LEAD(id) OVER (PARTITION BY type ORDER BY balance) AS next_v...
CREATE OR REPLACE FUNCTION load_4567() RETURNS void AS $$ DECLARE cur CURSOR FOR SELECT id, amount FROM raw.account; r RECORD; BEGIN OPEN cur; LOOP FETCH cur INTO r; EXIT WHEN NOT FOUND; INSERT INTO mart.t31 (id, amount) VALUES (r.id, r.amount); END LOOP; CLOSE cur; END; $$ LANGUAGE plpgsql
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t31", "column": "id"}, "sources": [{"table": "raw.account", "column": "id"}], "transform_type": "copy", "sql_fragment": "r.id", "confidence": 0.9, "method": "autogt", "static": false}, {"target": {"table": "mart.t31", "column": "amount"}, "sources": [{"table": "raw.account", "column": "amoun...
procedural
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: CREATE OR REPLACE FUNCTION load_4567() RETURNS void AS $$ DECLARE cur CURSOR FOR SELEC...
INSERT INTO mart.t37 SELECT AVG(amount) AS total, COUNT(*) AS n, balance FROM ods.account GROUP BY balance HAVING AVG(amount) > 0
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": ["total", "n", "balance"], "ods.customer": null, "ods.it...
[{"target": {"table": "mart.t37", "column": "total"}, "sources": [{"table": "ods.account", "column": "amount"}], "transform_type": "aggregation", "sql_fragment": "AVG(amount) AS total", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t37", "column": "n"}, "sources": [{"table": "ods.ac...
aggregation
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t37 SELECT AVG(amount) AS total, COUNT(*) AS n, balance FROM ods.accoun...
INSERT INTO mart.t36 SELECT type FROM raw.payment INTERSECT SELECT type FROM ods.customer
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": ["type"], "stg.payment": null, "mart.t37": null, "ods.customer": ["type"], "ods.item": null, "m...
[{"target": {"table": "mart.t36", "column": "type"}, "sources": [{"table": "raw.payment", "column": "type"}], "transform_type": "copy", "sql_fragment": "type INTERSECT", "confidence": 1.0, "method": "autogt", "static": true}]
union
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t36 SELECT type FROM raw.payment INTERSECT SELECT type FROM ods.custome...
INSERT INTO mart.t48 SELECT status AS rate, amount AS id, status AS qty FROM raw.account
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t48", "column": "rate"}, "sources": [{"table": "raw.account", "column": "status"}], "transform_type": "direct", "sql_fragment": "status AS rate", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t48", "column": "id"}, "sources": [{"table": "raw.account", "co...
direct
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t48 SELECT status AS rate, amount AS id, status AS qty FROM raw.account...
CREATE OR REPLACE FUNCTION load_3579() RETURNS void AS $$ DECLARE cur CURSOR FOR SELECT id, amount FROM stg.customer; r RECORD; BEGIN OPEN cur; LOOP FETCH cur INTO r; EXIT WHEN NOT FOUND; INSERT INTO mart.t26 (id, amount) VALUES (r.id, r.amount); END LOOP; CLOSE cur; END; $$ LANGUAGE plpgsql
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t26", "column": "id"}, "sources": [{"table": "stg.customer", "column": "id"}], "transform_type": "copy", "sql_fragment": "r.id", "confidence": 0.9, "method": "autogt", "static": false}, {"target": {"table": "mart.t26", "column": "amount"}, "sources": [{"table": "stg.customer", "column": "amo...
procedural
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: CREATE OR REPLACE FUNCTION load_3579() RETURNS void AS $$ DECLARE cur CURSOR FOR SELEC...
INSERT INTO mart.t9 SELECT a.id AS id, b.amount AS amount FROM raw.order a RIGHT JOIN raw.contract b ON a.id = b.id
postgres
{"raw.contract": ["id", "amount"], "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null...
[{"target": {"table": "mart.t9", "column": "id"}, "sources": [{"table": "raw.order", "column": "id"}], "transform_type": "direct", "sql_fragment": "a.id AS id", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t9", "column": "amount"}, "sources": [{"table": "raw.contract", "column": "a...
joins
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t9 SELECT a.id AS id, b.amount AS amount FROM raw.order a RIGHT JOIN ra...
INSERT INTO mart.t20 SELECT a.id AS id, b.amount AS amount FROM raw.product a FULL OUTER JOIN stg.contract b ON a.id = b.id
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": ["id"], "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t1...
[{"target": {"table": "mart.t20", "column": "id"}, "sources": [{"table": "raw.product", "column": "id"}], "transform_type": "direct", "sql_fragment": "a.id AS id", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t20", "column": "amount"}, "sources": [{"table": "stg.contract", "column"...
joins
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t20 SELECT a.id AS id, b.amount AS amount FROM raw.product a FULL OUTER...
CREATE TABLE mart.t46 AS SELECT balance AS date, name AS name, type AS date_1 FROM ods.order
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": ["balance", "name", "type"], "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods....
[{"target": {"table": "mart.t46", "column": "date"}, "sources": [{"table": "ods.order", "column": "balance"}], "transform_type": "direct", "sql_fragment": "balance AS date", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t46", "column": "name"}, "sources": [{"table": "ods.order", "co...
direct
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: CREATE TABLE mart.t46 AS SELECT balance AS date, name AS name, type AS date_1 FROM ods.o...
INSERT INTO mart.t30 SELECT AVG(balance) AS total, COUNT(*) AS n, amount FROM ods.region GROUP BY amount HAVING AVG(balance) > 0
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": ["balance", "amount"], "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item":...
[{"target": {"table": "mart.t30", "column": "total"}, "sources": [{"table": "ods.region", "column": "balance"}], "transform_type": "aggregation", "sql_fragment": "AVG(balance) AS total", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t30", "column": "n"}, "sources": [{"table": "ods.r...
aggregation
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t30 SELECT AVG(balance) AS total, COUNT(*) AS n, amount FROM ods.region...
INSERT INTO mart.t35 SELECT a.id AS id, b.amount AS amount FROM raw.branch a LEFT JOIN raw.contract b ON a.id = b.id
postgres
{"raw.contract": ["id", "amount"], "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null...
[{"target": {"table": "mart.t35", "column": "id"}, "sources": [{"table": "raw.branch", "column": "id"}], "transform_type": "direct", "sql_fragment": "a.id AS id", "confidence": 1.0, "method": "autogt", "static": true}, {"target": {"table": "mart.t35", "column": "amount"}, "sources": [{"table": "raw.contract", "column":...
joins
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t35 SELECT a.id AS id, b.amount AS amount FROM raw.branch a LEFT JOIN r...
INSERT INTO mart.t40 SELECT name::numeric * 100 AS scaled FROM stg.contract
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t40", "column": "scaled"}, "sources": [{"table": "stg.contract", "column": "name"}], "transform_type": "expression", "sql_fragment": "name::numeric * 100 AS scaled", "confidence": 1.0, "method": "autogt", "static": true}]
expression
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t40 SELECT name::numeric * 100 AS scaled FROM stg.contract ### Схема: {...
INSERT INTO mart.t19 SELECT name FROM stg.order EXCEPT SELECT name FROM raw.contract
postgres
{"raw.contract": ["name"], "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart....
[{"target": {"table": "mart.t19", "column": "name"}, "sources": [{"table": "stg.order", "column": "name"}], "transform_type": "copy", "sql_fragment": "name EXCEPT", "confidence": 1.0, "method": "autogt", "static": true}]
union
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: INSERT INTO mart.t19 SELECT name FROM stg.order EXCEPT SELECT name FROM raw.contract ###...
CREATE OR REPLACE FUNCTION load_9037() RETURNS void AS $$ BEGIN CREATE TEMP TABLE tmp_9037 AS SELECT id, amount FROM stg.order; INSERT INTO mart.t32 (id, amount) SELECT id, amount FROM tmp_9037; END; $$ LANGUAGE plpgsql
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t32", "column": "id"}, "sources": [{"table": "stg.order", "column": "id"}], "transform_type": "copy", "sql_fragment": "r.id", "confidence": 0.9, "method": "autogt", "static": false}, {"target": {"table": "mart.t32", "column": "amount"}, "sources": [{"table": "stg.order", "column": "amount"}]...
procedural
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: CREATE OR REPLACE FUNCTION load_9037() RETURNS void AS $$ BEGIN CREATE TEMP TABLE tmp_...
CREATE OR REPLACE FUNCTION load_5817() RETURNS void AS $$ DECLARE r RECORD; BEGIN FOR r IN SELECT id, amount FROM ods.contract LOOP INSERT INTO mart.t39 (id, amount) VALUES (r.id, r.amount); END LOOP; END; $$ LANGUAGE plpgsql
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": ["id", "amount"], "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null...
[{"target": {"table": "mart.t39", "column": "id"}, "sources": [{"table": "ods.contract", "column": "id"}], "transform_type": "copy", "sql_fragment": "r.id", "confidence": 0.9, "method": "autogt", "static": false}, {"target": {"table": "mart.t39", "column": "amount"}, "sources": [{"table": "ods.contract", "column": "amo...
procedural
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: CREATE OR REPLACE FUNCTION load_5817() RETURNS void AS $$ DECLARE r RECORD; BEGIN FOR ...
CREATE OR REPLACE FUNCTION load_113() RETURNS void AS $$ DECLARE r RECORD; BEGIN FOR r IN SELECT id, amount FROM raw.payment LOOP INSERT INTO mart.t22 (id, amount) VALUES (r.id, r.amount); END LOOP; END; $$ LANGUAGE plpgsql
postgres
{"raw.contract": null, "mart.t6": null, "ods.region": null, "mart.t1": null, "raw.product": null, "mart.t10": null, "ods.payment": null, "mart.t24": null, "ods.contract": null, "mart.t7": null, "ods.order": null, "mart.t36": null, "stg.payment": null, "mart.t37": null, "ods.customer": null, "ods.item": null, "mart.t15"...
[{"target": {"table": "mart.t22", "column": "id"}, "sources": [{"table": "raw.payment", "column": "id"}], "transform_type": "copy", "sql_fragment": "r.id", "confidence": 0.9, "method": "autogt", "static": false}, {"target": {"table": "mart.t22", "column": "amount"}, "sources": [{"table": "raw.payment", "column": "amoun...
procedural
synthetic
<|im_start|>system Ты — эксперт по data lineage. Для каждой колонки целевой таблицы определи источник (table.column) и тип трансформации. Верни ТОЛЬКО JSON {"edges": [...]}.<|im_end|> <|im_start|>user ### Диалект: postgres ### SQL: CREATE OR REPLACE FUNCTION load_113() RETURNS void AS $$ DECLARE r RECORD; BEGIN FOR r...
End of preview. Expand in Data Studio

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

lineage-sql-v10-smoke

Tiny smoke subset of lineage-sql-v10 (train 70).

Downloads last month
40