Loading Data

A dataset describes the data; this article is about putting data into it from the Models tab. To load data from a pipeline or a script instead, see Bringing Data In and the Upload API; data other services provide can arrive through a connection.

Load a file into a dataset

  1. Open the dataset in the models panel.
  2. Click the ⋯ (Actions) button at the right of the toolbar.
  3. Click Upload Sample Data and pick a CSV file. The file is uploaded — the line under the properties table reads Uploading…, then Uploaded with the file's name — and the dataset's CSV File field takes the file's name if it was empty. Uploading does not load the rows yet: File uploaded. Run ingest to import it.
  4. Open the ⋯ menu again and click Re-ingest. The load runs in the background — the line reads Re-ingest started — and the dataset's Rows count and the count beside it in the models panel update when it completes.

A file may be at most 32 MiB; split or compress a larger one, or load it through the Upload API. The columns of the file are matched to the dataset's properties by Source Column, or by ID where no source column is set — so describe the dataset before you load it.

Save the model first: a model that is still a draft (no dataset yet) has nowhere to upload to.

Infer a schema from an example

Instead of typing every property, let Engeene suggest them from a sample file.

  1. Add the dataset, or open an empty one, and give it its ID and Name.
  2. Click the ⋯ (Actions) button in the toolbar.
  3. Click Infer Schema from Example and pick a sample CSV or Parquet file. The properties table is replaced with one row per column of the file — ID, name, type, definition and source column filled in — and the line under it reads Schema inferred from and the file's name.
  4. Review the suggested types before you load data. A column of identifiers such as booking_id comes back as an ID; when it points at another dataset, change it to a Reference and pick the target (see Link two datasets). Check the decimal places of money columns and the granularity of times too.

The sample is read in your browser: it is not uploaded, nothing is stored, and only the first few megabytes of a large CSV are read. To load the rows themselves, use Upload Sample Data and Re-ingest above.

Re-ingest after you change the model

New or changed properties need a fresh load before Explore sees them: until then a query naming a new property is refused rather than answered with made-up values. Open the dataset and choose Re-ingest in the ⋯ menu. During the run, existing answers keep working, and the new version replaces the old one when the load completes. Which changes are safe on a dataset that already holds data, and what each does to the records already loaded, is explained in Changing a Model That Holds Data.

If only the files changed and the model did not, re-run your usual upload — here or through your pipeline.

Wipe a model's data

Wipe All Data removes every row from every dataset of the model and keeps the model itself — its datasets, properties, types and links stay exactly as they are, ready for new data. Dashboards keep working and simply show no data until you load some.

  1. Select the model in the models panel to open its overview.
  2. Click the ⋯ (Actions) button in the toolbar.
  3. Click Wipe All Data.
  4. Confirm. The model is empty straight away, and the row counts drop to zero.

The files you uploaded are not destroyed immediately. They are kept for 30 days, and within that time support can bring the data back. After 30 days they are deleted for good. The wipe is recorded in the model's History.

To remove the model altogether, use Delete instead — see The Model Overview.

← Property Details and ColorsChanging a Model That Holds Data →