Skip to main content

Statistical Profiling

ekai performs full-column statistical profiling on your data—no sampling. This analysis runs in-place within your warehouse and powers the AI's key detection algorithms.

Prerequisites

Create a connection to your data warehouse.


Profiling Overview​

ekai automatically profiles all selected tables after connection:

Data Profile view

Profile Tab Navigation​

The PROFILE tab shows:

ElementDescription
Total RowsSum of all rows across profiled tables
Table TabsNavigate between tables
Usage ContextRow count, data volume, last modified
Column AnalysisDetailed statistics per column

Table-Level Metrics​

For each table, ekai displays:

Row Count

Total rows in the table

Data Volume

Approximate size in MB/GB

Last Modified

When data was last updated


Column-Level Analysis​

Click on any column to see detailed statistics:

What Gets Analyzed​

ekai analyzes schema metadata and statistical properties to understand your data structure:

  • Data types — Column types and formats
  • Schema patterns — Table and column naming conventions
  • Statistical properties — Aggregated characteristics for AI analysis
  • Relationships — Connections between tables

All analysis runs in your warehouse. Only statistical summaries are transferred—never raw data.


How Profiling Powers Key Detection​

ekai uses AI to analyze your schema and data patterns, combining multiple signals to accurately detect primary and foreign keys with confidence scores.


Automatic Query Repair​

Some profiling queries fail on the warehouse, for example because of column names with special characters or data types that a metric cannot handle. When a query fails, an AI agent repairs it so the table is still profiled.

How It Works​

  1. The agent reads the failed query and the warehouse error
  2. It runs a few small, read-only probe queries to find the cause
  3. It edits the query and tests the fix
  4. If the fixed query runs, its results are used in the profile

The fix never changes what is measured. The agent does not switch to other tables, replace a view with its definition, join other tables, filter out rows or drop output columns. When the cause is outside the query, such as a missing table, a view whose base table was dropped, missing access or a timeout, the agent leaves the query unchanged and explains why.

note

Repair uses the Top model of your LLM provider. Probe results are sent to that provider with personal data columns masked.

Review Query Issues​

When a table had failed queries, a button appears next to Re-profile in the data profile:

ButtonMeaning
N queries auto-repairedEvery failed query was repaired; the profile is complete
N of M queries failedSome queries could not be repaired; some metrics may be missing
N queries failedNo query could be repaired; some metrics may be missing
Auto-repaired button next to Re-profile

Click the button to open Query issues. Each row shows whether the query was repaired and the agent's explanation. Expand a row to see the Warehouse Error and the query. Queries that were not repaired are listed first.

Query repaired after a type error
Query not repaired because the view's base table is missing

To recover the missing metrics, fix the cause in your warehouse (for example, restore the table or grant access) and click Re-profile.


Re-Running Profiles​

To refresh statistics after data changes:

  1. Click Restart Profiling button (top right)
  2. Wait for profiling to complete
  3. New statistics are used for ERD generation
Restart Profiling

Privacy & Security​

AspectGuarantee
Data LocationQueries run in your warehouse
Data TransferOnly statistics transferred, not raw data
StorageStatistical features stored, not source data
EncryptionTLS 1.3 for all transfers

Next Steps​