arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.00417cs.DBcs.HC
收藏

语义层中的聚合一致性错误及其避免方法

Aggregation Consistency Errors in Semantic Layers and How to Avoid Them

Zezhou Huang, Pavan Kalyan Damalapati, Eugene Wu

AI总结:

针对数据库连接导致的聚合一致性错误,提出“加权”原语抵消连接扇出,并结合人在回路框架帮助用户迭代探索策略以保障指标一致性。

摘要:

分析师常因不了解如何连接和聚合数据,而难以分析数据库中多张表的数据。为此,数据工程师预先指定“语义层”,其中包含连接条件以及带有聚合函数和表达式的关注“指标”。然而,连接可能导致“聚合一致性问题”。例如,分析师可能会观察到由连接扇出引起的重复计数所导致的总营收虚高。现有 BI 工具依赖启发式方法进行去重,导致结果不精确且难以理解。为克服这些挑战,我们提出将“加权”作为抵消连接扇出的核心原语。“加权”已在市场归因和订单管理等多个领域使用,即使在多对多连接的情况下也能确保指标一致性(例如,总营收保持不变)。其核心思想是为每个连接键组(而非每个元组)分配相等的权重,然后将权重分配给各个元组。实现加权技术需要用户输入;因此,我们推荐一种人在回路的框架,使用户能够迭代地探索不同策略并可视化结果。

英文摘要:

Analysts often struggle with analyzing data from multiple tables in a database due to their lack of knowledge on how to join and aggregate the data. To address this, data engineers pre-specify "semantic layers" which include the join conditions and "metrics" of interest with aggregation functions and expressions. However, joins can cause "aggregation consistency issues". For example, analysts may observe inflated total revenue caused by double counting from join fanouts. Existing BI tools rely on heuristics for deduplication, resulting in imprecise and challenging-to-understand outcomes. To overcome these challenges, we propose "weighing" as a core primitive to counteract join fanouts. "Weighing" has been used in various areas, such as market attribution and order management, ensuring metrics consistency (e.g., total revenue remains the same) even for many-to-many joins. The idea is to assign equal weight to each join key group (rather than each tuple) and then distribute the weights among tuples. Implementing weighing techniques necessitates user input; therefore, we recommend a human-in-the-loop framework that enables users to iteratively explore different strategies and visualize the results.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑