calm-state-78410
09/28/2023, 7:31 PMmillions-activity-52391
09/28/2023, 7:31 PMcreamy-table-83685
09/28/2023, 7:49 PMcreamy-table-83685
09/28/2023, 7:52 PMchilly-television-36470
09/28/2023, 8:11 PMcreamy-table-83685
09/28/2023, 8:14 PMcalm-state-78410
09/28/2023, 8:14 PMcreamy-table-83685
09/28/2023, 8:22 PMcreamy-table-83685
09/28/2023, 8:22 PMcreamy-table-83685
09/28/2023, 8:23 PMcreamy-table-83685
09/28/2023, 8:24 PMcreamy-table-83685
09/28/2023, 8:26 PMcreamy-table-83685
09/28/2023, 8:27 PMcalm-state-78410
09/28/2023, 8:29 PMchilly-television-36470
10/06/2023, 10:30 PMcreamy-table-83685
10/06/2023, 10:54 PMchilly-television-36470
10/07/2023, 12:40 AMchilly-television-36470
10/07/2023, 1:07 AMcreamy-table-83685
10/07/2023, 5:26 PMWITH columns AS (
SELECT
column_name AS cn,
table_catalog || '.' || table_schema || '.' || table_name AS tn
FROM `my_data_set.INFORMATION_SCHEMA.COLUMNS`
WHERE
LOWER(column_name) IN {{ var('id-columns') }}
{% if var('schemas-to-include') != '()' %}
AND LOWER(table_schema) IN {{ var('schemas-to-include') }}
{% endif %}
{% if var('schemas-to-exclude') != '()' %}
AND NOT LOWER(table_schema) IN {{ var('schemas-to-exclude') }}
{% endif %}
{% if var('tables-to-include') != '()' %}
AND LOWER(table_name) IN {{ var('tables-to-include') }}
{% endif %}
{% if var('tables-to-exclude') != '()' %}
AND NOT LOWER(table_name) IN {{ var('tables-to-exclude') }}
{% endif %}
AND NOT LOWER(table_name) LIKE 'snapshot_%'
AND NOT LOWER(table_name) LIKE 'sync_data_%'
AND NOT LOWER(table_name) LIKE 'failed_records_%'
)
SELECT "SELECT DISTINCT CAST("|| a.cn ||" AS STRING) AS edge_a, '" || a.cn || "' AS edge_a_label, " || b.cn || " AS edge_b, '" || b.cn || "' AS edge_b_label FROM " || a.tn || " WHERE COALESCE(CAST(" || a.cn || " AS STRING), '') != '' AND COALESCE(CAST(" || b.cn || " AS STRING), '') != ''" AS sql_to_run
FROM columns AS a
INNER JOIN columns AS b
ON a.tn = b.tn
AND a.cn > b.cncreamy-table-83685
10/07/2023, 5:27 PMcreamy-table-83685
10/07/2023, 5:28 PMcreamy-table-83685
10/07/2023, 5:28 PMcreamy-table-83685
10/07/2023, 5:29 PMcreamy-table-83685
10/07/2023, 5:30 PMcreamy-table-83685
10/07/2023, 5:30 PMversion: 2sources: - name: rudder description: All shopify data tables that would be generated by RudderStack SDK and webhook. database: "{{var ('rs_database')}}" schema: "{{var ('rs_schema')}}" tables: - name: tracks - name: pages - name: identifies - name: screens - name: information_schema tables: - name: columnsmodels: - name: queries columns: - name: sql_to_run tests: - unique - not_null - name: edges columns: - name: rudder_id tests: - not_null - name: original_rudder_id tests: - not_null - name: edge_a tests: - not_null - name: edge_a_label tests: - not_null - name: edge_b tests: - not_null - name: edge_b_label tests: - not_null - name: edge_timestamp tests: - not_null - name: check_edges columns: - name: consolidation_needed tests: - not_null - name: rows_to_update tests: - not_null - name: id_graph columns: - name: rudder_id tests: - not_null - name: edge tests: - unique - not_null - name: labels tests: - not_null - name: latest_timestamp tests: - not_nullcreamy-table-83685
10/07/2023, 5:31 PMtables: - name: tracks - name: pages - name: identifies - name: screenscreamy-table-83685
10/07/2023, 5:31 PMcreamy-table-83685
10/07/2023, 5:31 PMtracks, pages, identifies and screens tables in your my_data_set folder.creamy-table-83685
10/07/2023, 5:33 PMcreamy-table-83685
10/07/2023, 5:34 PMcreamy-table-83685
10/07/2023, 5:35 PMcreamy-table-83685
10/07/2023, 5:35 PMcreamy-table-83685
10/07/2023, 5:36 PMcreamy-table-83685
10/07/2023, 5:36 PMcreamy-table-83685
10/07/2023, 5:37 PMcreamy-table-83685
10/07/2023, 5:38 PMmillions-activity-52391
10/09/2023, 2:51 PM