Skip to content

Bug in anomaly result query #873

@oleg-savko

Description

@oleg-savko

in anomaly result query (which is in UI), table is None (used clickhouse)

select * from (None) results
      where
        anomaly_score is not null and
        upper(full_table_name) = upper(cast('...' as String)) and
        metric_name = cast('null_percent' as String)
          and upper(column_name) = upper(cast('sent_amount' as String))

seems problem here where {{ sql }} not defiend

{%- set test_results_query -%}
select * from ({{ sql }}) results
where
anomaly_score is not null and
upper(full_table_name) = upper({{ elementary.const_as_string(full_table_name) }}) and
metric_name = {{ elementary.const_as_string(metric_name) }}
{%- if column_name %}
and upper(column_name) = upper({{ elementary.const_as_string(column_name) }})
{%- endif %}
{%- endset -%}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions