Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Query
    • Overview
    • Selecting all columns
    • Selecting specific columns
    • Sorting and filtering
    • Data aggregation
    • Additional filter conditions
    • Working with JSON
    • Querying streaming data
  • Access management
  • Pricing policy
  • Integrations
  • Audit Trails events
  • FAQ
  1. Working with YQL
  2. Querying streaming data

Querying real-time data

Written by
Yandex Cloud
Improved by
Max Z.
Updated at July 7, 2026
View in Markdown

You can process data from both Yandex Object Storage storage systems and Yandex Data Streams data streaming buses.

The example below shows how to split input data into one-minute intervals, count the number of events within each interval, and calculate the totals per interval:

SELECT
    HOP_END() AS time,
    COUNT(*) AS ride_count,
    SUM(total_amount) AS total_amount
FROM
(
    SELECT
        *
    FROM
        bindings.`tutorial-streaming`
    LIMIT 10
)
GROUP BY
    HOP(Just(CAST(tpep_pickup_datetime AS Timestamp)), "PT1M", "PT1M", "PT1M");

Useful linksUseful links

  • SELECT operator
  • GROUP BY operator
  • HOP operator
  • Data aggregation function

Was the article helpful?

Previous
Working with JSON
Next
Access management
© 2026 Direct Cursus Technology L.L.C.