quollio-core 0.4.2__py3-none-any.whl → 0.4.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- quollio_core/__init__.py +1 -1
- quollio_core/dbt_projects/redshift/macros/materialization/divided_view.sql +4 -0
- quollio_core/dbt_projects/redshift/models/quollio_stats_columns.sql +1 -1
- quollio_core/dbt_projects/snowflake/macros/materialization/divided_view.sql +4 -0
- quollio_core/dbt_projects/snowflake/models/quollio_stats_columns.sql +1 -1
- quollio_core/dbt_projects/snowflake/package-lock.yml +1 -1
- quollio_core/redshift.py +5 -5
- quollio_core/snowflake.py +5 -4
- {quollio_core-0.4.2.dist-info → quollio_core-0.4.4.dist-info}/METADATA +1 -1
- {quollio_core-0.4.2.dist-info → quollio_core-0.4.4.dist-info}/RECORD +12 -12
- {quollio_core-0.4.2.dist-info → quollio_core-0.4.4.dist-info}/LICENSE +0 -0
- {quollio_core-0.4.2.dist-info → quollio_core-0.4.4.dist-info}/WHEEL +0 -0
quollio_core/__init__.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
{%- set identifier = model['alias'] %}
|
3
3
|
{%- set target_relations = [] %}
|
4
4
|
{%- set chunk = config.get('chunk') %}
|
5
|
+
{%- set grant_config = config.get('grants') %}
|
5
6
|
|
6
7
|
{{ run_hooks(pre_hooks, inside_transaction=False) }}
|
7
8
|
-- `BEGIN` happens here:
|
@@ -54,6 +55,9 @@ SELECT * FROM {{ ref('quollio_stats_profiling_columns') }} WHERE table_name no
|
|
54
55
|
{% call statement("main") %}
|
55
56
|
{{ get_replace_view_sql(target_relation, build_sql) }}
|
56
57
|
{% endcall %}
|
58
|
+
{%- set full_refresh_mode = (should_full_refresh()) -%}
|
59
|
+
{%- set should_revoke = should_revoke(target_relation, full_refresh_mode) %}
|
60
|
+
{%- do apply_grants(target_relation, grant_config, should_revoke) %}
|
57
61
|
{%- set target_relations = target_relations.append(target_relation) %}
|
58
62
|
{%- endfor -%}
|
59
63
|
|
@@ -2,6 +2,7 @@
|
|
2
2
|
{%- set identifier = model['alias'] %}
|
3
3
|
{%- set target_relations = [] %}
|
4
4
|
{%- set chunk = config.get('chunk') %}
|
5
|
+
{%- set grant_config = config.get('grants') %}
|
5
6
|
|
6
7
|
{{ run_hooks(pre_hooks, inside_transaction=False) }}
|
7
8
|
-- `BEGIN` happens here:
|
@@ -46,6 +47,9 @@ SELECT * FROM {{ ref('quollio_stats_profiling_columns') }} WHERE NOT startswit
|
|
46
47
|
{% call statement("main") %}
|
47
48
|
{{ get_create_view_as_sql(target_relation, build_sql) }}
|
48
49
|
{% endcall %}
|
50
|
+
{%- set full_refresh_mode = (should_full_refresh()) -%}
|
51
|
+
{%- set should_revoke = should_revoke(target_relation, full_refresh_mode) %}
|
52
|
+
{%- do apply_grants(target_relation, grant_config, should_revoke) %}
|
49
53
|
{%- set target_relations = target_relations.append(target_relation) %}
|
50
54
|
{%- endfor -%}
|
51
55
|
|
quollio_core/redshift.py
CHANGED
@@ -49,12 +49,12 @@ def build_view(
|
|
49
49
|
profile_dir=template_path,
|
50
50
|
options=["--no-use-colors", "--log-level", log_level, "--vars", options],
|
51
51
|
)
|
52
|
-
|
53
52
|
run_options = ["--no-use-colors", "--log-level", log_level, "--vars", options]
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
53
|
+
target_tables_list = target_tables.split()
|
54
|
+
if target_tables_list is not None:
|
55
|
+
if "quollio_stats_columns" in target_tables_list:
|
56
|
+
target_tables_list.append("quollio_stats_profiling_columns")
|
57
|
+
target_tables_str = " ".join(target_tables_list)
|
58
58
|
run_options.append("--select")
|
59
59
|
run_options.append(target_tables_str)
|
60
60
|
|
quollio_core/snowflake.py
CHANGED
@@ -50,10 +50,11 @@ def build_view(
|
|
50
50
|
options=["--no-use-colors", "--log-level", log_level, "--vars", options],
|
51
51
|
)
|
52
52
|
run_options = ["--no-use-colors", "--log-level", log_level, "--vars", options]
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
53
|
+
target_tables_list = target_tables.split()
|
54
|
+
if target_tables_list is not None:
|
55
|
+
if "quollio_stats_columns" in target_tables_list:
|
56
|
+
target_tables_list.append("quollio_stats_profiling_columns")
|
57
|
+
target_tables_str = " ".join(target_tables_list)
|
57
58
|
run_options.append("--select")
|
58
59
|
run_options.append(target_tables_str)
|
59
60
|
|
@@ -1,20 +1,20 @@
|
|
1
|
-
quollio_core/__init__.py,sha256=
|
2
|
-
quollio_core/redshift.py,sha256=
|
3
|
-
quollio_core/snowflake.py,sha256=
|
1
|
+
quollio_core/__init__.py,sha256=sinr8rUqUwUO5zp1Hn9GCN0b1plUwURdi3kHHHxZYc4,83
|
2
|
+
quollio_core/redshift.py,sha256=81cFHWzTHgO7u6wpW32w1dsvqttVRxpkhj-n7VL0Blo,10234
|
3
|
+
quollio_core/snowflake.py,sha256=VtslGFeCWpLotGk2RE9JTLRFP3rEm0JBG08Gd3oGChY,10333
|
4
4
|
quollio_core/dbt_projects/redshift/README.md,sha256=55nDkX5uQXWmawpQbgG1hbyn64j_CegDBQddQ2C85C8,571
|
5
5
|
quollio_core/dbt_projects/redshift/dbt_project.yml,sha256=WVCmT-2usdGSm6EBM6MCdzEeEFwv9ANsyknreoNXgBc,405
|
6
6
|
quollio_core/dbt_projects/redshift/package-lock.yml,sha256=1N71QqV5p07pG5JVP73nSkz-cndl6UtjYLfmF0KrVsk,109
|
7
7
|
quollio_core/dbt_projects/redshift/packages.yml,sha256=p9Bl2C44gdC6iYTUkz_15yq3xahSJf2IA3WOXLF_ahA,61
|
8
8
|
quollio_core/dbt_projects/redshift/analyses/.gitkeep,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
quollio_core/dbt_projects/redshift/macros/.gitkeep,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
|
-
quollio_core/dbt_projects/redshift/macros/materialization/divided_view.sql,sha256=
|
10
|
+
quollio_core/dbt_projects/redshift/macros/materialization/divided_view.sql,sha256=e5d-5MrLiP_rxM5kPRHQg5RPIemvsBaLcX3Av13uEHU,3492
|
11
11
|
quollio_core/dbt_projects/redshift/models/quollio_lineage_table_level.sql,sha256=AVPcNXfVYHwyutJzg61QT_VF9umfoC4i8C2HecAU4d4,2042
|
12
12
|
quollio_core/dbt_projects/redshift/models/quollio_lineage_table_level.yml,sha256=UcrXpUTT3ihBHKPljvjw8xHz-ND60PfvMJaXqGKOEic,236
|
13
13
|
quollio_core/dbt_projects/redshift/models/quollio_lineage_view_level.sql,sha256=A0CTgQwlz8InabA0cHuygV2GMZGYuAa7Zd5DIUOYzQI,1289
|
14
14
|
quollio_core/dbt_projects/redshift/models/quollio_lineage_view_level.yml,sha256=7Npwo3svL9715HpNU2MKzRI014Da4tIStLzAHmd0UaU,235
|
15
15
|
quollio_core/dbt_projects/redshift/models/quollio_sqllineage_sources.sql,sha256=e0A_Wqv_OcC8gG_yzTbI59vT-4vCI3JiAzFlmkvLnMk,1049
|
16
16
|
quollio_core/dbt_projects/redshift/models/quollio_sqllineage_sources.yml,sha256=qgazupx3ca4P8R0loY5F9hyCz2fmAcWqZ6iOySo_NoY,377
|
17
|
-
quollio_core/dbt_projects/redshift/models/quollio_stats_columns.sql,sha256=
|
17
|
+
quollio_core/dbt_projects/redshift/models/quollio_stats_columns.sql,sha256=lH8xPmAzSW-6wi_g1y_LFVhtFgHzBvTweVX-MKeJzUQ,302
|
18
18
|
quollio_core/dbt_projects/redshift/models/quollio_stats_columns.yml,sha256=V_BESPk6IqE52ExT26-78As9l9AlWW86-Geb5PIhThU,67
|
19
19
|
quollio_core/dbt_projects/redshift/models/quollio_stats_profiling_columns.sql,sha256=IPmHf51Er2jE9cMQHybT4adRxwwi2CEmgrBSv1Oeduc,1592
|
20
20
|
quollio_core/dbt_projects/redshift/models/quollio_stats_profiling_columns.yml,sha256=s-p9F44TdwoFYlQN-b9gHzcFYOMqhqDGA9ORS_M4lhs,523
|
@@ -24,18 +24,18 @@ quollio_core/dbt_projects/redshift/seeds/.gitkeep,sha256=47DEQpj8HBSa-_TImW-5JCe
|
|
24
24
|
quollio_core/dbt_projects/redshift/snapshots/.gitkeep,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
25
25
|
quollio_core/dbt_projects/snowflake/README.md,sha256=55nDkX5uQXWmawpQbgG1hbyn64j_CegDBQddQ2C85C8,571
|
26
26
|
quollio_core/dbt_projects/snowflake/dbt_project.yml,sha256=LN5NDOyakQjIK99IogQX4Whh_1zmqUfD2gqDU9JR3As,407
|
27
|
-
quollio_core/dbt_projects/snowflake/package-lock.yml,sha256=
|
27
|
+
quollio_core/dbt_projects/snowflake/package-lock.yml,sha256=Gef3zDCLF41j_FL-_h3sIZOUVj6j7nTTvxXrQPLcBP0,109
|
28
28
|
quollio_core/dbt_projects/snowflake/packages.yml,sha256=p9Bl2C44gdC6iYTUkz_15yq3xahSJf2IA3WOXLF_ahA,61
|
29
29
|
quollio_core/dbt_projects/snowflake/analyses/.gitkeep,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
30
30
|
quollio_core/dbt_projects/snowflake/macros/.gitkeep,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
31
|
-
quollio_core/dbt_projects/snowflake/macros/materialization/divided_view.sql,sha256=
|
31
|
+
quollio_core/dbt_projects/snowflake/macros/materialization/divided_view.sql,sha256=T4nFL76AbuQHBiLSAvNchoJnRjb1IRj4nToOyTNvLvw,2782
|
32
32
|
quollio_core/dbt_projects/snowflake/models/quollio_lineage_column_level.sql,sha256=Cxt2U2aXNG_LUm63jwTyxUkapkrB7_uHmesx1PTcMJM,4721
|
33
33
|
quollio_core/dbt_projects/snowflake/models/quollio_lineage_column_level.yml,sha256=a2uNIAh-xw51eu-GmHVuAnGnTbwK7h8-DjDeQtK3KaQ,711
|
34
34
|
quollio_core/dbt_projects/snowflake/models/quollio_lineage_table_level.sql,sha256=Q_7vY1N1Hi1LFv5CxkkdR3gQw8fTDnoKECTLSK4gd3o,5112
|
35
35
|
quollio_core/dbt_projects/snowflake/models/quollio_lineage_table_level.yml,sha256=QXlMBIkHo1Y-ANveKVx1FwyoYTMRXKgE2Z-PNouhQTw,325
|
36
36
|
quollio_core/dbt_projects/snowflake/models/quollio_sqllineage_sources.sql,sha256=gd6JhQO13xBIvOoeXcce1I7amNGytwE8pwUApXehwqM,1520
|
37
37
|
quollio_core/dbt_projects/snowflake/models/quollio_sqllineage_sources.yml,sha256=qgazupx3ca4P8R0loY5F9hyCz2fmAcWqZ6iOySo_NoY,377
|
38
|
-
quollio_core/dbt_projects/snowflake/models/quollio_stats_columns.sql,sha256=
|
38
|
+
quollio_core/dbt_projects/snowflake/models/quollio_stats_columns.sql,sha256=lH8xPmAzSW-6wi_g1y_LFVhtFgHzBvTweVX-MKeJzUQ,302
|
39
39
|
quollio_core/dbt_projects/snowflake/models/quollio_stats_columns.yml,sha256=V_BESPk6IqE52ExT26-78As9l9AlWW86-Geb5PIhThU,67
|
40
40
|
quollio_core/dbt_projects/snowflake/models/quollio_stats_profiling_columns.sql,sha256=kt2aFimIPkgKI_UQTjvfRlAjrdSbO8z6C_749pnXrnE,1382
|
41
41
|
quollio_core/dbt_projects/snowflake/models/quollio_stats_profiling_columns.yml,sha256=W39VAmFnnX6RBoW7B_4CConC1lm0Jm9o50Jsz9bYZzY,538
|
@@ -57,7 +57,7 @@ quollio_core/repository/dbt.py,sha256=HXqW_xa4xYPh9CnKkg4L1gwG3SGjj2BAYoWgzWMFU4
|
|
57
57
|
quollio_core/repository/qdc.py,sha256=VCmzAUvjLemw1os5TaPtfBFkMCOMuPeftjZmUPhFj2Y,4702
|
58
58
|
quollio_core/repository/redshift.py,sha256=UVHIpYzDQ2AbBTAGa8DgmEenG0NZsHfYroR1MmEPQGA,2991
|
59
59
|
quollio_core/repository/snowflake.py,sha256=1YVMDfb9euJKvikv1pk_IxVF6SVsiemSvZ-WMTSbY7E,1874
|
60
|
-
quollio_core-0.4.
|
61
|
-
quollio_core-0.4.
|
62
|
-
quollio_core-0.4.
|
63
|
-
quollio_core-0.4.
|
60
|
+
quollio_core-0.4.4.dist-info/LICENSE,sha256=V8j_M8nAz8PvAOZQocyRDX7keai8UJ9skgmnwqETmdY,34520
|
61
|
+
quollio_core-0.4.4.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
62
|
+
quollio_core-0.4.4.dist-info/METADATA,sha256=P9s-iBcITaWkLeY8wyMPMIoVCEEwFuFGbfrQf5fwTPk,6400
|
63
|
+
quollio_core-0.4.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|