Skip to main content
This tutorial walks you through how you can upload a CSV file into the NexusOne platform.

Prerequisite

Appropriate permission: nx1_ingest, nx1_monitor, nx1_s3_admin, airflow_user, superset_user, spark_sql, and trino_admin

Download a CSV file

Use a financial transactions dataset from Kaggle containing user data.

Upload it to the portal

  1. Log in to NexusOne.
  2. On the NexusOne homepage, navigate to Ingest > File.
  3. In the File Details section, click Upload File > Choose file.
After choosing a file, several file options displays, which provides extra customization for the CSV file.
  • Header: Use it to define if the first row is the column name. Defaults to True.
  • Infer Schema: If NexusOne should guess the data type of each column. Defaults to True.
  • Delimeter: To separate each field.
  • Quote character: Protects the slicing of strings by a delimeter.
  • Date format: Indicates the date format of the CSV file.
  • Timestamp format: Indicates the timestamp format of the CSV file.
Leave these file options as defaults since the data has no special configurations needed.

Add ingest details

Add the following information to the fields:
  • Name: csv
  • Schema: csv_schema
  • Table: csv_table
  • Schedule: None
  • Mode: append
  • Tags: Don’t add any tags
For the Schedule field, None specifies that the DAG on Apache Airflow won’t run. After adding these details, click Ingest. Wait for a few minutes until you see a success message appear.

Monitor and trigger job

  1. When you ingest the file, this creates an Airflow job, so a success message with a View Jobs button appears.
  2. Track the job status by clicking View Jobs or navigate to the NexusOne homepage and click Monitor.
  3. You should see your job name, csv, in the list, and its current status. Use the three dots ... menu to trigger the job.
  4. If you clicked Trigger job, then click the job’s name to open its DAG details in Airflow’s portal.

Visualize your dataset

Use the following steps to visualize your dataset:
  1. On the NexusOne homepage, click Discover to launch Superset.
  2. Hover your mouse over SQL and select SQL Lab.
  3. Enter the following command in the query box:
SELECT * FROM csv_schema.csv_table
visualize-csv-dataset-v4-1-2

Visualize your dataset

Additional resources