Using Yandex Query Language syntax in Yandex Query
In this tutorial, you will learn how to use Yandex Query Language syntax and perform data operations in Yandex Query with analytical and streaming query examples.
All examples use a ready-made dataset containing New York City taxi trips from 2019 to 2021.
Note
Yandex Cloud provides the New York City taxi trips dataset as is. Yandex Cloud makes no express or implied representations, warranties, or conditions pertaining to your use of the specified dataset. To the extent permitted by your local law, Yandex Cloud shall not be liable for any loss or damage, including direct, indirect, consequential, special, incidental, or punitive, resulting from your use of the dataset.
NYC Taxi and Limousine Commission (TLC):
The data was collected and provided to the NYC Taxi and Limousine Commission (TLC) by technology providers authorized under the Taxicab & Livery Passenger Enhancement Programs (TPEP/LPEP). The taxi trip data was not created by the TLC, and the TLC makes no representations whatsoever about the accuracy of this data.
Please review the dataset’s original source
Analytical query example
To create an analytical query and get started:
- In the management console
, select the folder where you want to create a connection. - In the list of services, select Yandex Query.
- In the left-hand panel, select
Tutorial. - Click Create connection. In the Create connection section, all the parameter fields are pre-filled. Just enter an optional description and click Create. You will see the Create data binding screen.
- Enter the optional data binding description and click Create. This will create the resources required for this tutorial.
From the list on the left-hand panel, select a tutorial section:
- Selecting all columns.
- Selecting specific columns.
- Sorting and filtering.
- Data aggregation.
- Aggregation conditions.
- JSON.
Streaming query example
To create a streaming query and get started:
- In the management console
, select the folder where you want to create a connection. - In the list of services, select Yandex Query.
- In the left-hand panel, select
Tutorial. - Select
Streaming. - Click Create connection. In the
create connectionsection, some settings are pre-filled. - Select an existing database or create a new one.
- Select an existing service account or create a new one.
- Click Create. You will see the
create data bindingscreen. - Select an existing data stream or create a new one.
- Enter the optional data binding description and click Create. This will create the resources required for this tutorial.
From the list on the left-hand panel, select a tutorial section: