{# US3 - deep-analysis result fragment. Shows cardinality + the top-20 distribution as a small horizontal bar list. ECharts is already loaded by layout.html, but for v1 we keep the rendering server-side (no JS chart) - distribution is a simple list. #} {% extends "layout.html" %} {% block content %}

Deep analysis result

{{ table_full_name }} · {{ column_name }}

← back to layout detail

Distinct values (approx.)

{{ "{:,}".format(outcome.approx_distinct_count) }}

{% if outcome.approx_distinct_count > 1000000 %} Very high cardinality — clustering may not prune scans well for this column. {% elif outcome.approx_distinct_count < 50 %} Low cardinality — check the distribution below; if values are uniformly distributed, clustering helps a lot. {% else %} Moderate cardinality — combine with the distribution below to judge clustering fit. {% endif %}

Cost charged

{{ outcome.actual_cost_usd | format_usd }}

{% if outcome.from_cache %}

cached — no new BigQuery charge

{% else %}

Just-ran — subsequent loads within this scan will hit cache.

{% endif %}

Top values

{{ outcome.top_values | length }}

capped at 20 for the distribution preview

Top 20 values by frequency

{% if outcome.top_values %} {% set max_count = outcome.top_values[0].count %} {% else %}

No values returned — the column may be entirely NULL on this table.

{% endif %}
{% endblock %}