数据分析流水线的形式化语义
A Formal Semantics for Data Analytics Pipelines
摘要:
在本报告中,我们提出了一种基于Pipelines和Operators的新编程模型,它们是用PiCo编写的程序的构建块,PiCo是数据分析管道的DSL。在我们提出的模型中,我们使用术语管道来表示处理数据汇集的工作流,而不是数据处理社区中常见的计算过程。相对于其他框架的新颖性在于,所有PiCo操作符相对于数据类型是多态的。这使得有可能1)在不同的数据模型(例如,流、列表、集合等); 2)在不同的上下文中重用相同的运算符,以及3)在不影响调用上下文的情况下更新运算符,即,管道中的前级和后级。请注意,在其他主流框架中,例如Spark,通过将一个转换更改为另一个转换来更新管道并不一定是微不足道的,因为它可能需要开发输入和输出代理来适应调用上下文的新转换。同样,我们提供了一个正式的框架(即,类型化和语义学),从程序如何转换它们所处理的数据结构的角度来描述程序的特征--而不是它们所表示的计算过程。这种方法允许在抽象级别上对程序进行推理,而不考虑底层执行模型或实现的任何方面。
英文摘要:
In this report, we present a new programming model based on Pipelines and Operators, which are the building blocks of programs written in PiCo, a DSL for Data Analytics Pipelines. In the model we propose, we use the term Pipeline to denote a workflow that processes data collections -- rather than a computational process -- as is common in the data processing community. The novelty with respect to other frameworks is that all PiCo operators are polymorphic with respect to data types. This makes it possible to 1) re-use the same algorithms and pipelines on different data models (e.g., streams, lists, sets, etc); 2) reuse the same operators in different contexts, and 3) update operators without affecting the calling context, i.e., the previous and following stages in the pipeline. Notice that in other mainstream frameworks, such as Spark, the update of a pipeline by changing a transformation with another is not necessarily trivial, since it may require the development of an input and output proxy to adapt the new transformation for the calling context. In the same line, we provide a formal framework (i.e., typing and semantics) that characterizes programs from the perspective of how they transform the data structures they process -- rather than the computational processes they represent. This approach allows to reason about programs at an abstract level, without taking into account any aspect from the underlying execution model or implementation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。