Help › Work with results
Profile the values of a column
See each column's NULLs and a small histogram under its header, open a column's full profile, and profile a whole table on its server.
Querlyn 0.1.0 is not released yet. This help describes it ahead of release.
A column profile tells you what a column holds without writing a query: how many values are NULL, how many are distinct, the smallest and the largest, the mean and the quartiles of numbers, the most common texts, and how the values are spread. Querlyn works it out from the rows the grid has loaded, in the background, so the grid stays responsive; for a table it can also ask the server about every row.
Show the profile strip
Click Profile in the bar above the grid, choose , or use this link: . A strip appears under every column header; the same command hides it. Querlyn remembers the choice on this computer.
Each column's strip shows:
- how many of its values are NULL: 12% null, no nulls or all null;
- under it, a small chart: a histogram of the values for numbers, dates and timestamps; the most common values, most first, for text; the share of true values for a boolean column. Text whose values are all different has no chart.
With a screen reader, a column header is read with its profile: its NULLs, its distinct values and, for numbers, the smallest and largest.
A column's full profile
Rest the mouse on a column's strip and its full profile opens below the header; it closes when the mouse moves on. Click the strip, or right-click the column header and choose Profile Column (), to open it with the keyboard: it stays until you press ⎋ on macOS or Esc on Windows and Linux, click Close or click elsewhere. The strip does not have to be shown for Profile Column.
| For | The profile shows |
|---|---|
| Every column | The rows, the NULLs (how many and their share) and the distinct values |
| Numbers | The smallest and largest, the mean, the 25th percentile, the median and the 75th percentile, NaN and infinite values counted apart, and a histogram |
| Text | The first and last value in binary order (as the bytes sort, not as a language sorts), the shortest and longest length in characters, and the most common values with their counts |
| Booleans | How many are true and how many false |
| Dates, times and timestamps | The earliest and the latest, the span between them, and a histogram |
| Binary values | The shortest and longest length in bytes |
The numbers are exact:
- Decimals are compared and added as decimals, never through a floating-point number, so the smallest and largest are the values exactly as stored, however many digits they have. The mean of integers and decimals is rounded half away from zero to four more decimal places than the values have. A mean that could not be computed exactly (floating-point columns, decimals of more than 38 digits) reads about.
- The percentiles are values of the column, as PostgreSQL's
percentile_discpicks them. With more than a million rows loaded they are picked among every few values and read about. - Timestamps with a time zone are ordered as moments:
10:00+02comes before09:00+00. They are shown as the server sent them. - Distinct values are counted exactly up to 100,000 of them; past that the count is an estimate and says estimated.
- The most common values are counted exactly. Past 100,000 distinct values, a value that is not among the most frequent few could be missed, and the list says so.
A value of another type than its column's (a SQLite column holding text among numbers) is counted apart and left out of the rest.
Which rows are profiled
A profile is of the rows the grid has loaded. While the result has more rows on the server, the line above the grid says so ("Column profiles of the 1,000 rows loaded; the result has more."), and so does the full profile. As more rows load (when you scroll, or choose Load More), the profile is worked out again; while rows keep coming, a large result is profiled again after a pause, not for every few rows. Sorting and filtering the loaded rows do not change it: it is always of every loaded row.
Profile the whole table
For a table tab, or a result whose columns all come from one table, the line above the grid and the full profile offer Profile the Whole Table (). Querlyn then asks the server to count every row of the table: one statement of aggregates for each set of 40 columns, which only reads, on a session of its own, read-only where the database allows it, with the connection's time limits.
| Database | Distinct values | Percentiles |
|---|---|---|
| PostgreSQL | Exact | Yes |
| MySQL, MariaDB, SQL Server, SQLite | Exact | No |
| Oracle | Exact | Yes |
| Snowflake, DuckDB | The server's estimate | Yes |
| ClickHouse, BigQuery | The server's estimate | The server's estimate |
| Redshift | The server's estimate | No |
Every database gives the NULLs, the smallest and largest values (text in binary order) and the mean. Large text, JSON and other values the database cannot compare are only counted. The server does not draw histograms or list common values: those stay of the loaded rows.
While it runs, Stop cancels the statement on the server (). When it is done, the strip's NULL shares and the full profile's Of the whole table section come from the server, and the line above the grid says which counts are of the whole table. Querlyn keeps the answer for the table until you choose Profile Again or quit.
On a Production connection, Querlyn asks first, saying that it reads every row of the table: choose Profile or Cancel. Nothing is read before you answer.
On a database that bills by the bytes a query reads (BigQuery), Querlyn asks on every connection, and first estimates what profiling will read: the line above the grid says so while it estimates, and the question states the bytes. If the estimate fails, nothing is read.
Masked columns
A masked column is profiled into counts only: its rows, NULLs and distinct values. Its smallest and largest values, its common values and its histogram are never worked out while it is masked, and Profile the Whole Table only counts it. After , its profile is worked out again, as the column then shows on screen.
Help for Querlyn 0.1.0. All help topics