{% extends "base.html" %} {% block headerextracss %} {% endblock %} {% block headertitle %} Diff Report {% endblock %} {% block body %}

Diff report between tables
  • {{ x_table|code }} and
  • {{ y_table|code }}.

Joined using columns: {% for col in join_cols %}{{ col|code }}{% if not loop.last %}, {% endif %}{% endfor %}.


Summary:

(1) Missing rows, (2) mismatched rows, and (3) differences by each column. Click to expand.

Columns are ordered by the number of differences on each column. For the mismatched rows, columns with prefix "x" are from {{ x_schema }}.{{ x_table }} and columns with prefix "y" are from {{ x_schema }}.{{ y_table }}. The same columns labels are in the "grouped differences" output, in which we take all pairs of cells that are different for the given column, and count up the number of such pairs. The code to pull the difference data is printed below it.

{% for side, info in missing_join_info.items() %} {% if info.count > 0 %}

{{ info.sample|dfhtml|safe }}

Query:

{{ info.query|code("pgsql") }}
{% endif %} {% endfor %} {% for col, m in hierarchical_join_info.items() %} {% for side, info in m.items() %} {% if info.count > 0 %}

{{ info.sample|dfhtml|safe }} {% if "sample_grouped" in info %}

Grouped:

{{ info.sample_grouped|dfhtml|safe }} {% endif %}

Queries:

{{ info.query|code("pgsql") }}
{% if "sample_grouped" in info %}
{{ info.query_grouped|code("pgsql") }}
{% endif %}
{% endif %} {% endfor %} {% endfor %} {% if diff_summary.count %}

{{ diff_summary.sample|dfhtml|safe }}
{% endif %} {% for column, info in column_info.items() %}

Grouped differences, 100 most common:

{{ info.df|dfhtml|safe }}

Raw differences samples:

{{ info.df_raw|dfhtml|safe }}

{% if info.q_h_x %}

Raw differences by first join column sample for x:

{{ info.df_h_x|dfhtml|safe }}

Raw differences by first join column sample for y:

{{ info.df_h_y|dfhtml|safe }}

{% endif %} {% if info.q_n %}

Binned differences between values:

{{ info.df_n|dfhtml|safe }}

Biggest differences between values:

{{ info.df_n_sample|dfhtml|safe }}

{% endif %}

Query for grouped differences:

{{ info.q|code("pgsql") }}

Query for raw differences:

{{ info.q_raw|code("pgsql") }}
{% if info.q_h_x %}

Query for raw differences by first join column in x:

{{ info.q_h_x|code("pgsql") }}

Query for raw differences by first join column in y:

{{ info.q_h_y|code("pgsql") }}
{% endif %} {% if info.q_n %}

Query for grouped numeric differences:

{{ info.q_n|code("pgsql") }}

Query for sample biggest numeric differences:

{{ info.q_n_sample|code("pgsql") }}
{% endif %}
{% endfor %}
{% endblock %} {% block bodyextrajs %} {% endblock %}