Data: datasets and sources
Datasets, uploads, database connections, versions and the data profile.
Every model starts with data. In mlflow, data enters a workspace as a data source, and a project's pipelines read from it. This page explains the words you meet on the Data pages. For step-by-step instructions, see Add data.
Datasets and sources
A data source is a named pointer to data: an uploaded file, or a table or query in a database. It has a name that is unique inside the workspace, a kind (a file type or a database type) and a description. The Data page lists the workspace's data sources with their rows and columns. A dataset is what a data source contains at a point in time: its columns, its row count and its size.
Two properties follow from this:
- Data sources belong to the workspace. Any project in the workspace can use them. A pipeline names the data source it reads.
- Deleting a data source does not delete your database. Uploaded files are removed from disk; database tables are never touched.
Uploads and connections
You can bring data in three ways:
| Way | Details |
|---|---|
| Upload a file | CSV, Excel (.xlsx, .xls) or Parquet. Excel workbooks are read from their first sheet. By default a single upload can be up to 64 MB, and a file can have up to 10 million rows. |
| Connect a database | Pick a Connector and a Connection, then import a Table or an SQL query. mlflow only runs read-only SELECT queries, with a time limit and, by default, a limit of 1,000,000 rows. |
| Browse samples | Bundled public datasets that you add to the workspace. See Sample datasets. |
The connectors include PostgreSQL, MySQL, SQL Server, Oracle, Redshift, BigQuery, Snowflake and HTTP APIs. File uploads, PostgreSQL and MySQL are tested against real files and services. The other connectors are marked experimental, so test them with your own database before you rely on them.
A connection stores the credentials once, encrypted, so several data sources can reuse it. Select Test connection to check it before you import. Connections and secrets are managed under Settings > Connections & secrets; see Connect a database.
Use a read-only database user
mlflow limits queries to read-only SELECT statements, but for some databases, such as Snowflake and BigQuery, the server cannot force a read-only session. Give the connection a user that can only read.
Read-only workspace roles cannot upload data or add connectors. They cannot run queries against connections either.
Versions
A data source keeps a history of versions. Open a data source's Versions page and select Refresh now to capture a new one: mlflow reads the source again and records version 1, 2, 3 and so on. Each version records:
- the schema: every column with its Dtype, whether it is Nullable, and a Sample value;
- the number of rows and the size;
- up to 20 Sample rows, shown only to roles that may read the data.
A version is a record of what the data looked like at that moment. It does not store a second copy of the data. Refreshing also clears the cached profile, so the next profile reflects the current data.
A column that disappeared or changed type between two versions is the most common reason that a pipeline stops working after the data changes, so check the schema when that happens.
The profile and data signals
Select Explore on a data source to open the Data profile. It has six tabs:
| Tab | What you see |
|---|---|
| Overview | The quality grade, rows, columns, missing cells, duplicates, memory, column types and the columns with the most missing values. |
| Columns | Every column with its type (numeric, categorical, datetime, boolean or text), missing count and unique count. Expand a column for its distribution, its statistics (min, quartiles, mean, standard deviation, skew, kurtosis, zeros and outliers by the IQR rule) and its top values. |
| Correlations | A Pearson correlation matrix of the numeric columns and the strongest pairs. |
| Missing | Total cells, missing cells and the missing rate of each column. |
| Quality | The quality score, all warnings, the suggested task, target leakage, duplicate columns and class balance. |
| Sample | The first rows of the data. |
The Quality tab turns the profile into signals. They come from fixed rules applied to the data, with no AI involved and no API key, so the same data always gives the same answer. Each warning names the column and the number that triggered it.
- Constant and ID-like columns carry no information for a model: every row is equal, or every row is different.
- High cardinality and missing columns need a careful encoding or imputation step.
- Duplicates are repeated rows. Duplicate columns hold identical values in every row, so you keep one.
- Possible leakage flags a column that is very strongly associated with the target (0.80 or more on the scale shown). A column like that may contain the answer. It is a warning, not a verdict: you decide. No leakage claim is made for datasets of fewer than 20 rows.
- Class imbalance and rare class describe how unevenly the target classes are spread.
- Suggested task proposes classification, regression and so on from the target column. You can override it.
If the dataset has no target recorded, leakage and class balance are not assessed. They are left out of the score rather than counted as clean.
The lessons Data types, Exploratory data analysis and Data leakage explain why each of these checks matters.
Sample datasets
Browse samples opens a catalog of bundled public datasets, with their task, rows, columns and target column. Search by name, task or target, filter by task, and select Add to workspace. The workspace keeps a pointer to the bundled file, so a sample uses no extra storage. The use-case templates use these samples too: Churn prediction uses the employee sample.
The New pipeline dialog currently lists only CSV datasets, although Add data also accepts Excel and Parquet files. To use an Excel or Parquet dataset in a pipeline today, upload it as CSV.
Next steps
Learn the theory
Lessons on learning.mlflow.es that explain the ideas behind this page.
Updated 2026-11-22