Prerequisites
To follow the code examples in this guide, you must install Docker locally and download recipes.Navigate to recipe
- If you haven’t already, download recipes.
- In terminal, go to the recipe by running the following command:
Launch Pinot Cluster and Kafka
You can spin up a Pinot Cluster and Kafka Broker by running the following command:DateTime Strings in Pinot
Pinot automatically creates Timestamps from DateTime strings that are in the following format:yyyy-mm-dd hh:mm:ss[.fffffffff]- Millis since epoch
Add Schema and Table
Now let’s create a Pinot Schema and Table.- Map
timestamp1from the data source into theDate1column - Map
timestamp2from the data source into theDate2column - Map
timestamp3from the data source into theDate3column, with help from the function. - Map
timestamp4from the data source into theDate1column
Ingesting Data into Kafka
We can ingest a message into Kafka by running the following command:Querying
Once that’s completed, navigate to localhost:9000/#/query and click on the dates table or copy/paste the following query:
Query Results

