Product and Technology

Accelerate Time-Series Analytics with RANGE-Based Window Frames, now Generally Available

Accelerate Time-Series Analytics with RANGE-Based Window Frames, now Generally Available

Addressing Time-Series Analytics Challenges

At Snowflake, we are committed to helping customers derive meaningful insights from data with simplicity and speed. That’s why we’re thrilled to announce the general availability of our enhanced RANGE-based window frame, which will help accelerate time-series analytics. 

For customers across industries, the ability to perform time-series analytics is crucial. This often involves calculating rolling statistics that remain robust despite gaps or nonuniform time-series data. Regardless of the reason for gaps in data, analytics must account for them to produce more accurate results.

Our solution

We recognize the significance and prevalence of these use cases. So we have invested in solving them by extending our support for RANGE BETWEEN sliding window frames to INTERVAL and unsigned numeric constants to define explicit offsets.

Deep dive into Snowflake’s extended RANGE-based frame support

This can now be easily accomplished using Snowflake’s support for INTERVAL in the RANGE-based window frame, as demonstrated in the pseudo-SQL below. With this functionality, customers can avoid the cumbersome preprocessing of their data to eliminate gaps. Instead, they can focus on the crucial task of extracting valuable insights from their data.

How does our solution work?

Without the native support for RANGE-based window frames, customers typically use workarounds, such as performing an aggregate function with a range join or preprocessing their data to be uniformly distributed to align with row-based window frames. These workarounds are often less efficient and can become tedious to maintain. 

The new functionality we offer is easy to use and complies with the SQL standard. It applies partition-aware sorting; efficiently computes the variable-sized window and corresponding output for each row; and spills to local/remote storage, as needed, when certain windows are huge.

To illustrate performance gains from using RANGE-based window frames, we used sample data sets with uniformly distributed time series and 22 million rows, which were divided into 5K partitions. The RANGE-based window frame turned out to be 6x faster than the “aggregate + range join” workaround. On scaling the data size by 10 times to 220 million rows, the RANGE-based window is 9x faster than the workaround. In summary, RANGE-based window frames provide a simple and efficient way for computing rolling statistics in real-world time-series use cases that usually contain data gaps.

What are customers using RANGE-based window frames for?

Across the board, the RANGE-based window frames are being adopted rapidly by customers for varied types of use cases. Noted below are a few popular use cases across industries: 

Manufacturing customers are using them for use cases, such as resource monitoring, equipment performance analytics and supply chain analytics. 

Financial services customers are using them for asset performance tracking, time-based transaction analytics for fraud detection and loyalty program analytics.

Retail companies are using them for use cases such as demand planning, rolling inventory analytics, sales allocation and customer spend analytics. 

Telecommunications companies are using them for, among others, call volume analytics and issue monitoring and detection.

Irrespective of the industry, we have seen that the functionality is being used for common operations, such as user analytics, customer spend analytics, and sales and campaign monitoring. 

What’s next?

The feature is now available in all Snowflake accounts. You can start using this functionality for your relevant analytics and even migrate your existing workarounds to this performant, easy-to-use solution. To learn more details, such as the list of window functions supported, you can read the Snowflake documentation. You can also refer to the time series user guide to learn more about working with time-series data in Snowflake.

What’s New: Time-Series Analytics in Snowflake

Share Article

Time Series ASOF JOIN analytics now Generally Available

Snowflake's ASOF JOIN Time Series Analytics, now in GA, addresses timestamp-based record association challenges in data analysis.

Streamlining Financial Market Intelligence with Time-Series Innovations and Tick Data Modernization

Discover how financial data leaders can tackle tick data challenges with Snowflake's time-series innovations and modern data strategies to drive competitive advantage.

Snowflake Announces Intent to Acquire Myst

Leverage Faster, More Efficient Search in Snowflake

Snowflake's Search Optimization Service is now generally available. Customers can leverage faster, more efficient search capabilities to make data-driven decisions quickly.

Protect Your Sensitive Data Better with Tag-Based Masking

Tag-based masking, a scalable, uniform, and automated solution for protecting sensitive data, is now generally available. Here’s everything you need to know.

Experience AI-Powered Analytics and Migrations at Warp Speed with Snowflake’s Latest Innovations

Unlock the power of AI-driven analytics with Snowflake's latest innovations. Discover seamless migrations from legacy systems, unmatched AI advantages for multi-modal data, and over 2x faster performance for core analytics workloads

Snowflake Invests in RightRev to Add Revenue Accounting Automation to the AI Data Cloud

Snowflake reinvests in RightRev to enhance revenue recognition automation for usage-based models, enabling faster, GAAP-ready reporting in the AI Data Cloud.

Go Secretless with Snowflake Workload Identity Federation

Snowflake's Workload Identity Federation (WIF) is now generally available, enabling secure, secretless authentication for your applications and services.

Snowflake Data Cloud Boosts Python capabilities with Ponder

Snowflake's acquisition of Ponder aims to enhance Python capabilities, bridging the gap between data science libraries and data storage.

Subscribe to our blog newsletter

Get the best, coolest and latest delivered to your inbox each week

Where Data Does More

  • 30-day free trial
  • No credit card required
  • Cancel anytime