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.
Create a connection to your data warehouse.
Profiling Overview
ekai automatically profiles all selected tables after connection:

Profile Tab Navigation
The PROFILE tab shows:
| Element | Description |
|---|---|
| Total Rows | Sum of all rows across profiled tables |
| Table Tabs | Navigate between tables |
| Usage Context | Row count, data volume, last modified |
| Column Analysis | Detailed 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
- The agent reads the failed query and the warehouse error
- It runs a few small, read-only probe queries to find the cause
- It edits the query and tests the fix
- 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.
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:
| Button | Meaning |
|---|---|
| N queries auto-repaired | Every failed query was repaired; the profile is complete |
| N of M queries failed | Some queries could not be repaired; some metrics may be missing |
| N queries failed | No query could be repaired; some metrics may be missing |

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.


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:
- Click Restart Profiling button (top right)
- Wait for profiling to complete
- New statistics are used for ERD generation
Privacy & Security
| Aspect | Guarantee |
|---|---|
| Data Location | Queries run in your warehouse |
| Data Transfer | Only statistics transferred, not raw data |
| Storage | Statistical features stored, not source data |
| Encryption | TLS 1.3 for all transfers |
Next Steps
- Generate ERD — Create the Entity Relationship Diagram
- Review Relationships — Refine with AI chat