The Query processor executes a Spark SQL query statement on the input data set.
Spark SQL brings native support for SQL to Spark and streamlines the process of querying data stored both in RDDs (Spark’s distributed datasets) and in external sources.
The Query processor operates on a single input data set containing any type of data.
NOTE THAT the input table should be called inputTable when calling it in the SQL statement.
Supported SQL features can be found in the Spark SQL documentation.
Once the query is executed, the response can visualised in the output table.
We use the following SQL statement to query our data set.