Spreadsheets for Stream Partitions and Windows

Martin Hirzel, Rodric Rabbah, Philippe Suter, Olivier Tardieu, Mandana Vaziri

Introduction

Stream processing has become an essential component of modern data infrastructure, particularly in high-stakes environments like finance and healthcare where real-time decision-making is critical. However, the barrier to entry remains high. Building stream processing operators typically requires specialized programming knowledge in languages such as SPL. While domain experts—the financial analysts and clinicians who understand the data best—are often masters of spreadsheet software, these tools are fundamentally "bounded." They operate on a fixed grid of rows and columns, which creates a significant mismatch with the "unbounded," infinite nature of real-time data streams.

This paper proposes a solution to bridge this gap by making spreadsheets "stream-native." By introducing two novel functional concepts—WINDOW and PARTITION—the authors extend the familiar spreadsheet model to handle dynamic data buffers and multi-category data streams without requiring traditional coding.

Methodology: Extending the Spreadsheet Model

The proposed framework builds upon ActiveSheets, a platform that integrates Microsoft Excel with IBM InfoSphere Streams. ActiveSheets allows users to map spreadsheet ranges to live data streams and export their formulas as high-performance stream operators. To address the limitations of static grids, two functional extensions are introduced:

  1. The WINDOW Function: Traditional spreadsheets require a fixed range (e.g., rows 1-20). The WINDOW function allows a single cell to act as a dynamic buffer, storing a variable list of values that can be passed to standard aggregate functions like SUM or AVERAGE. This allows the spreadsheet to handle sliding windows of data where the number of entries fluctuates over time.
  2. The PARTITION Function: This function enables a "programming by example" workflow. A user defines the logic for a single data key (e.g., a specific stock ticker like "ACME"). The system then automatically replicates this logic for every unique key in the stream, handling the complexity of parallelization and dynamic scaling behind the scenes.
A spreadsheet-based VWAP calculation for a single stock ticker.

As illustrated in the figure above, a standard spreadsheet can easily calculate the Volume-Weighted Average Price (VWAP) for a single entity using standard formulas like =SUM(C3:C22) and =IF(B29<G3,"YES","NO"). The goal of the proposed extensions is to allow this same intuitive logic to scale across thousands of concurrent streams automatically.

Key Insights and Ideas

The authors identify a "natural symmetry" between spreadsheets and stream processing. Both systems utilize a two-dimensional view of data (rows/columns vs. tuples/attributes), follow a reactive model where updates trigger recomputations, and rely on stateless, functional operators. By leveraging these similarities, the framework democratizes big data analysis. It removes the need for a "middleman" programmer, allowing the hundreds of millions of people who already understand spreadsheet logic to build complex real-time systems.

Furthermore, the PARTITION function provides a powerful abstraction of complexity. The user only needs to focus on one instance of the problem, while the underlying engine manages the "n-way" replication required for large-scale data processing. This effectively turns the spreadsheet into a high-level UI for a high-throughput back-end.

Conclusion and Future Work

This position paper establishes a conceptual framework where variable-sized windows and key-based partitioning coexist within a reactive spreadsheet environment. While the integration of ActiveSheets with IBM InfoSphere Streams demonstrates the feasibility of this approach, several challenges remain.

Future work will focus on optimizing performance through "incremental recomputations" to avoid the overhead of full sheet updates for every new data point. Additionally, formalizing the expanded computation model is necessary to ensure robustness as systems scale to millions of tuples per second. By evolving the spreadsheet from a static tool into a stream-native engine, the authors aim to empower a new class of users to participate in high-performance data engineering.

Summary updated

BibTeX
@inproceedings{hirzel2015spreadsheets,
  author = {Martin Hirzel and Rodric Rabbah and Philippe Suter and Olivier Tardieu and Mandana Vaziri},
  title = {{Spreadsheets for Stream Partitions and Windows}},
  booktitle = {SEMS@ICSE},
  year = {2015},
  url = {https://openreview.net/forum?id=tB8t0HkpiY},
}
Figure