Skip to content

Commit

Permalink
Merge branch 'main' into add-support-for-trino
Browse files Browse the repository at this point in the history
  • Loading branch information
b-per authored Sep 20, 2023
2 parents 4950ce7 + b293dd6 commit fceea28
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
7 changes: 6 additions & 1 deletion integration_tests/models/reports/reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ models:
access: public
config:
materialized: table
columns:
- name: col
description: col me maybe
data_type: boolean

- name: report_2
description: the colbert report
access: public
config:
materialized: table
contract:
enforced: true
description: the colbert report
columns:
- name: id
data_type: integer
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
resource_name,access,is_described,total_defined_columns,total_described_columns
report_1,public,TRUE,0,0
report_2,public,TRUE,1,0
4 changes: 2 additions & 2 deletions macros/unpack/get_node_values.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
wrap_string_with_quotes(node.access),
wrap_string_with_quotes(node.latest_version),
"cast(" ~ contract | trim ~ " as boolean)",
node.columns | length,
node.columns | selectattr('description' , 'defined') | list | length,
node.columns.values() | list | length,
node.columns.values() | list | selectattr('description') | list | length,
wrap_string_with_quotes(node.database),
wrap_string_with_quotes(node.schema),
wrap_string_with_quotes(node.package_name),
Expand Down

0 comments on commit fceea28

Please sign in to comment.