Skip to content

Commit

Permalink
Merge branch 'master' into ele-1860-get-columns-descriptions-to-the-o…
Browse files Browse the repository at this point in the history
…ss-and-to-the-cloud
  • Loading branch information
ellakz authored Oct 23, 2023
2 parents fb01ffc + 9aab795 commit 948237a
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 66 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Monitor your data quality, operation and performance directly from your dbt proj
```yml packages.yml
packages:
- package: elementary-data/elementary
version: 0.11.1
version: 0.11.2
## Docs: https://docs.elementary-data.com
```

Expand Down
24 changes: 0 additions & 24 deletions macros/edr/system/system_utils/empty_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -74,30 +74,6 @@
{{ elementary.empty_table(columns) }}
{% endmacro %}

{% macro empty_elementary_exposures() %}
{% set columns = [('unique_id', 'string'),
('name', 'string'),
('maturity', 'string'),
('type', 'string'),
('owner_email', 'string'),
('owner_name', 'string'),
('url', 'long_string'),
('depends_on_macros', 'long_string'),
('depends_on_nodes', 'long_string'),
('description', 'long_string'),
('tags', 'long_string'),
('meta', 'long_string'),
('package_name', 'string'),
('original_path', 'long_string'),
('path', 'string'),
('generated_at', 'string'),
('metadata_hash', 'string'),
('label', 'string'),
('raw_queries', 'long_string'),
] %}
{{ elementary.empty_table(columns) }}
{% endmacro %}


{% macro empty_schema_columns_snapshot() %}
{{ elementary.empty_table([('column_state_id','string'),('full_column_name','string'),('full_table_name','string'),('column_name','string'),('data_type','string'),('is_new','boolean'),('detected_at','timestamp'),('created_at','timestamp')]) }}
Expand Down
4 changes: 2 additions & 2 deletions macros/edr/tests/test_event_freshness_anomalies.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- depends_on: {{ ref('data_monitoring_metrics') }}
-- depends_on: {{ ref('dbt_run_results') }}

{% if execute %}
{% if execute and flags.WHICH in ['test', 'build'] %}
{% set model_relation = elementary.get_model_relation_for_test(model, context["model"]) %}
{% if not model_relation %}
{{ exceptions.raise_compiler_error("Unsupported model: " ~ model ~ " (this might happen if you override 'ref' or 'source')") }}
Expand All @@ -12,7 +12,7 @@
{%- if not event_timestamp_column -%}
{%- do exceptions.raise_compiler_error('event_timestamp_column must be specified for the event freshness test!') -%}
{%- endif -%}
{%- set event_timestamp_column_data_type = elementary.find_normalized_data_type_for_column(model, event_timestamp_column) -%}
{%- set event_timestamp_column_data_type = elementary.find_normalized_data_type_for_column(model_relation, event_timestamp_column) -%}
{%- if not elementary.is_column_timestamp(model_relation, event_timestamp_column, event_timestamp_column_data_type) -%}
{% do exceptions.raise_compiler_error("Column `{}` is not a timestamp.".format(event_timestamp_column)) %}
{%- endif -%}
Expand Down
2 changes: 1 addition & 1 deletion macros/edr/tests/test_exposure_schema_validity.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% test exposure_schema_validity(model, exposures, node, columns) %}
{%- if not execute -%}
{%- if not execute or flags.WHICH not in ['test', 'build'] -%}
{%- do return(none) -%}
{%- endif -%}

Expand Down
2 changes: 1 addition & 1 deletion macros/edr/tests/test_json_schema.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% test json_schema(model, column_name, where_expression) %}
{{ config(fail_calc = 'fail_count') }}

{% if not execute %}
{% if not execute or flags.WHICH not in ['test', 'build'] %}
{% do return(none) %}
{% endif %}

Expand Down
2 changes: 1 addition & 1 deletion macros/utils/graph/get_compiled_code.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% set compiled_code = adapter.dispatch("get_compiled_code", "elementary")(node) %}

{% set max_column_size = elementary.get_column_size() %}
{% if as_column_value and max_column_size and compiled_code | length > max_column_size %}
{% if as_column_value and max_column_size and compiled_code and compiled_code | length > max_column_size %}
{% do return(elementary.get_compiled_code_too_long_err_msg()) %}
{% endif %}

Expand Down
11 changes: 0 additions & 11 deletions models/edr/elementary_exposures/elementary_exposures.sql

This file was deleted.

19 changes: 0 additions & 19 deletions models/edr/elementary_exposures/enriched_exposures.sql

This file was deleted.

6 changes: 0 additions & 6 deletions models/elementary_exposures.yml

This file was deleted.

0 comments on commit 948237a

Please sign in to comment.