Pinot Version | 0.10.0 |
---|---|
Code | startreedata/pinot-recipes/combine-fields |
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
You can spin up a Pinot Cluster by running the following command:Dataset
We’re going to import the following JSON file:Pinot Schema and Table
Now let’s create a Pinot Schema and Table. First, the schema:name
and surname
fields, separated by a space.
You can create the table by running the following command:`
Ingestion Job
Now we’re going to import the JSON file into Pinot. We’ll do this with the following ingestion spec:Querying
Once that’s completed, navigate to localhost:9000/#/query and click on thepeople
table or copy/paste the following query:
fullName |
---|
Pete Smith |
John Jones |
name
and surname
fields from our JSON file have been combined into a single fullName
column for each person.