FlinkEval:用于评估流处理SQL自然语言接口的合成语料库
FlinkEval: A Synthetic Corpus for Evaluating Natural Language Interfaces to Streaming SQL
AI总结:
针对现有自然语言转SQL基准对流语义探索不足的问题,本文提出FlinkEval合成基准,包含3903个问题-SQL对,经Confluent Cloud Apache Flink执行验证,揭示了模式组合与请求规范的挑战。
摘要:
现有的自然语言转SQL基准主要评估针对有界关系数据的查询,对流语义的探索不足。我们推出FlinkEval,这是一个基于执行的合成基准,包含45个行业领域、45个语义标签下的3903个问题-SQL对。我们通过迭代生成与验证创建多样化的模式以及符合领域逻辑、时间一致的数据。从人工编写的NL2SQL对和厂商文档中收集的SQL模式驱动配额均衡的生成,在Confluent Cloud Apache Flink上执行并结合修复循环,生成涵盖窗口化、时间连接、模式匹配、嵌套类型和数据操作的参考查询。该语料库包含成对的模式显式请求和业务语言请求,带有按查询模式、复杂度和执行模式分析的注释。七级问题规范阶梯用于研究语义保留的重述以及由 oracle 派生线索增强的欠规范请求。基线评估结合执行结果与经裁决的LLM判断,揭示了模式组合和请求规范方面的挑战。
英文摘要:
Existing natural-language-to-SQL benchmarks primarily evaluate queries over bounded relational data, leaving streaming semantics underexplored. We introduce FlinkEval, an execution-grounded synthetic benchmark comprising 3,903 question--SQL pairs across 45 industry domains and 45 semantic labels. We create diverse schemas and domain-plausible, temporally consistent data through iterative generation and validation. SQL patterns collected from the human-written NL2SQL pairs and vendor documentation drive quota-balanced generation, and execution with a repair loop on Confluent Cloud Apache Flink produces reference queries covering windowing, temporal joins, pattern matching, nested types, and data manipulation. The corpus includes paired schema-explicit and business-language requests, with annotations for analysis by query pattern, complexity, and execution mode. A seven-level Question Specification Ladder examines semantics-preserving reformulation and underspecified requests augmented with oracle-derived clues. Baseline evaluations combine execution outcomes with adjudicated LLM judgments, revealing challenges in pattern composition and request specification.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。