Examples of query execution plan
You can write some queries using the users table and understand how query execution plan is generated.
Description of the users table:
CREATE TABLE users (
id INTEGER,
firstName STRING,
lastName STRING,
otherNames ARRAY(RECORD(first STRING, last STRING)),
age INTEGER,
income INTEGER,
address JSON,
connections ARRAY(INTEGER),
expenses MAP(INTEGER),
PRIMARY KEY (id)
)
The following index has been created in the users table.
CREATE INDEX idx_state_city_income on Users(address.state as string,
address.city as string, income)
Some examples of query execution plan :