mirror of
https://github.com/FlipsideCrypto/livequery-models.git
synced 2026-02-06 19:06:49 +00:00
* add deploy/core & updated test_udf * namespace scope macros * remove package namespace * add render.sql * namespace scole apply_grants_by_schema * add depnends_on clause for deploy/martketplace models
12 lines
378 B
SQL
12 lines
378 B
SQL
-- depends_on: {{ ref('live') }}
|
|
{{ config(
|
|
materialized = 'view',
|
|
grants = {'+select': fromyaml(var('ROLES'))}
|
|
) }}
|
|
SELECT '*.' || t.value AS allowed_domains
|
|
FROM table(flatten(input => {{ this.database }}.live.udf_allow_list())) AS t
|
|
ORDER BY
|
|
split_part(allowed_domains, '.', -1),
|
|
split_part(allowed_domains, '.', -2),
|
|
split_part(allowed_domains, '.', -3)
|