利用谓词下推的高效行级血缘
Efficient Row-Level Lineage Leveraging Predicate Pushdown
AI总结:
提出PredTrace,一种利用谓词下推的行级血缘推断方法,通过下推行选择谓词至源表实现高效查询、低开销、高覆盖,在TPC-H及70个真实管道上覆盖率优于现有方法且查询快达10倍。
摘要:
行级血缘解释了通过数据处理管道生成输出行的输入行,在数据调试、审计、数据集成等方面有诸多应用。先前的血缘研究分为两类:急切血缘追踪和惰性血缘推断。急切追踪将血缘追踪紧密集成到算子实现中,实现了高效的自定义追踪。然而,这种方法具有侵入性、系统特定性,且缺乏适应性。相比之下,惰性推断生成额外的查询来计算血缘;它可以轻松应用于任何数据库,但血缘查询通常较慢。此外,由于特定于算子的追踪或推断规则,这两种方法支持的数据处理管道类型覆盖范围都有限。在这项工作中,我们提出了PredTrace,这是一种血缘推断方法,能够实现轻松适配、低运行时开销、高效血缘查询和高管道覆盖率。它通过利用谓词下推来实现这一点:将描述目标输出的行选择谓词下推到源表,并通过运行下推的谓词来查询血缘。PredTrace在运行管道时可能需要保存中间结果,以便计算精确的血缘。当这不可行时,它仍然可以推断血缘,但可能返回一个超集。与先前的工作相比,PredTrace在TPC-H查询以及70个广泛使用UDF的采样真实世界数据处理管道上实现了更高的覆盖率。它可以在几秒钟内推断血缘,比先前的惰性方法快达10倍。
英文摘要:
Row-level lineage explains what input rows produce an output row through a data processing pipeline, having many applications like data debugging, auditing, data integration, etc. Prior work on lineage falls in two lines: eager lineage tracking and lazy lineage inference. Eager tracking integrates lineage tracing tightly into the operator implementation, enabling efficient customized tracking. However, this approach is intrusive, system-specific, and lacks adaptability. In contrast, lazy inference generates additional queries to compute lineage; it can be easily applied to any database, but the lineage query is usually slow. Furthermore, both approaches have limited coverage of the type of data processing pipeline supported due to operator-specific tracking or inference rules. In this work, we propose PredTrace, a lineage inference approach that achieves easy adaptation, low runtime overhead, efficient lineage querying, and high pipeline coverage. It achieves this by leveraging predicate pushdown: pushing a row-selection predicate that describes the target output down to source tables and querying the lineage by running the pushed-down predicate. PredTrace may require saving intermediate results when running the pipeline in order to compute the precise lineage. When this is not viable, it can still infer lineage but may return a superset. Compared to prior work, PredTrace achieves higher coverage on TPC-H queries as well as 70 sampled real-world data processing pipelines in which UDFs are widely used. It can infer lineage in seconds, outperforming prior lazy approaches by up to 10x.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。