arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.22705cs.DBcs.LG
收藏

用于查询模板识别的数据起源聚合与结构描述符

Data Provenance Aggregation and Structural Descriptors for Query-Template Identification

University of Aveiro(阿威罗大学);University of Coimbra(科英布拉大学)

Paulo Pintor, Rogério Costa, José Moreira

AI总结:

该研究针对现有查询相似性识别方法未考虑数据起源的问题,提出利用数据起源聚合构建查询特征及起源结构描述符(PSD)的方法,可从起源足迹识别查询模板,且PSD在低训练成本下准确率高。

摘要:

运行时查询相似性识别支持多种活动,包括工作负载分析、识别重复行为、审计、调试和异常检测。现有评估查询相似性的方法大多依赖SQL文本、执行计划或结果值,但未考虑输入数据或查询执行期间结果的推导方式。本文提出一种利用数据起源进行查询模板识别的新方法:通过聚合整个查询结果中的元组级Lineage和Why-起源,构建捕获显式数据依赖、出现频率和结构属性的查询级特征;还推导了起源结构描述符(PSD),用少量数值特征概括这些特征。我们使用这些特征对从参数化TPC-DS查询模板生成的12500个不同查询实例进行查询模板识别评估,实验表明仅通过起源足迹即可识别查询模板,且随着历史数据增多准确率提升;同时PSD在有限训练历史和低测试处理成本下实现了高分类准确率。

英文摘要:

Runtime query similarity identification supports several activities, including workload analysis, identifying recurring behaviour, auditing, debugging, and anomaly detection. Existing methods for evaluating query similarity mostly rely on SQL text, execution plans, or result values but do not account for input data or how results are derived during query execution. This paper proposes a novel approach using data provenance for query-template identification. We construct query-level profiles that capture explicit data dependencies, occurrence frequencies, and structural properties by aggregating tuple-level Lineage and Why-provenance across entire query results. We also derive Provenance Structural Descriptors (PSD), which summarise these profiles using a small set of numerical features. We evaluate our proposals using these profiles to identify query templates over \(12{,}500\) distinct query instances generated from parametrised TPC-DS query templates. The experimental evaluation shows that query templates can be identified solely from their provenance footprints, and that accuracy improves as more historical data becomes available. It also shows that PSD achieve high classification accuracy with limited training history and low test-processing cost.

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

↑