Skip to content

Commit

Permalink
feat: add bigint to is_numeric_dtype (#64)
Browse files Browse the repository at this point in the history
This allows the profiler to run against dbt-spark / dbt-databricks profiler
  • Loading branch information
jomach authored Feb 8, 2023
1 parent a105f1d commit d3797d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macros/cross_db_utils.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{%- endmacro -%}

{%- macro default__is_numeric_dtype(dtype) -%}
{% set is_numeric = dtype.startswith("int") or dtype.startswith("float") or "numeric" in dtype or "number" in dtype or "double" in dtype %}
{% set is_numeric = dtype.startswith("int") or dtype.startswith("float") or "numeric" in dtype or "number" in dtype or "double" in dtype or "bigint" in dtype %}
{% do return(is_numeric) %}
{%- endmacro -%}

Expand Down Expand Up @@ -99,4 +99,4 @@
where lower(table_schema) = lower('{{ relation.schema }}')
and lower(table_name) = lower('{{ relation.identifier }}')
and attr.attnum > 0
{%- endmacro -%}
{%- endmacro -%}

0 comments on commit d3797d6

Please sign in to comment.