Skip to main content

Upload file

In this guide we'll learn how to upload a file of up to 1MB in size in CSV, Avro, JSON, or Parquet format.

Select data source

Click on the Upload file button under the Which data do you want to use? heading:

Upload a fileUpload a file

Create a file transcript.csv, based on the Pinot Batch import example, that contains the following:

transcript.csv
studentID,firstName,lastName,gender,subject,score,timestampInEpoch
200,Lucy,Smith,Female,Maths,3.8,1570863600000
200,Lucy,Smith,Female,English,3.5,1571036400000
201,Bob,King,Male,Maths,3.2,1571900400000
202,Nick,Young,Male,Physics,3.6,1572418800000

Drag the file onto the onto the Drop File Here or Browse area or click on that button to select the file using the file manager.

Enter transcripts as the Dataset Name. This value will also be used as the name for the underlying Pinot table.

Select CSV fileSelect CSV file

If you want to delete the file, hover over the paper clip icon and click on the delete button. Once you're happy with the selected file, click the NEXT button.

Data Transformation

The Dataset Manager will make an educated guess at the field and data types for each of the columns in the CSV file.

Data TransformationData Transformation

You can update the selections on this screen, as well as adding any column transformation/mappings. We'll change the student data type to LONG, the score field type to METRIC, and the score data type to DOUBLE. The final version of the data transformation is shown below:

Data TransformationData Transformation

Once you're happy with the data transformations, scroll down, and click on the NEXT button.

Advanced settings

On this screen you'll be able to configure indexes, tennats, and data retention on this data source.

Configure indexes, tenants, and data retentionConfigure indexes, tenants, and data retention

For more information on the different types of indexes and when to use them, see the Apache Pinot Indexing Documentation.

Once you're happy with the configuration, scroll down, and click on the NEXT button.

Review

You'll now see the review and submit screen, where you can review everything that we've configured in the previous steps.

ReviewReview

If anything doesn't look right, click on the PREV button to go back to the previous screen.

Once you're happy ready to create the data source, click on the FINISH button. You'll then see the following screen:

Data Source CreatedData Source Created

Query Data Source

To have a look at the data that we've imported, click on the Query Console link, which will open the Pinot Data Explorer. Click on the transcript table and then click RUN QUERY to run a basic query against the data source:

Query Transcript Data SourceQuery Transcript Data Source