Conjunctive Queries with Comparisons

被引:2
|
作者
Wang, Qichen [1 ]
Yi, Ke [2 ]
机构
[1] Hong Kong Baptist Univ, Hong Kong, Peoples R China
[2] HKUST, Hong Kong, Peoples R China
关键词
D O I
10.1145/3514221.3517830
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Conjunctive queries with predicates in the form of comparisons that span multiple relations have regained interest recently, due to their relevance in OLAP queries, spatiotemporal databases, and machine learning over relational data. The standard technique, predicate pushdown, has limited efficacy on such comparisons. A technique by Willard can be used to process short comparisons that are adjacent in the join tree in time linear in the input size plus output size. In this paper, we describe a new algorithm for evaluating conjunctive queries with both short and long comparisons, and identify an acyclic condition under which linear time can be achieved. We have also implemented the new algorithm on top of Spark, and our experimental results demonstrate order-of-magnitude speedups over SparkSQL on a variety of graph patterns and analytical queries.
引用
收藏
页码:54 / 62
页数:9
相关论文
共 50 条
  • [1] Conjunctive Queries with Comparisons
    Wang, Qichen
    Yi, Ke
    PROCEEDINGS OF THE 2022 INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA (SIGMOD '22), 2022, : 108 - 121
  • [2] Technical Perspective: Conjunctive Queries with Comparisons
    Vansummeren, Stijn
    SIGMOD RECORD, 2023, 52 (01) : 53 - 53
  • [3] On containment of conjunctive queries with arithmetic comparisons
    Afrati, F
    Li, C
    Mitra, P
    ADVANCES IN DATABASE TECHNOLOGY - EDBT 2004, PROCEEDINGS, 2004, 2992 : 459 - 476
  • [4] Containment of acyclic conjunctive queries with negated atoms or arithmetic comparisons
    Sherkhonov, Evgeny
    Marx, Maarten
    INFORMATION PROCESSING LETTERS, 2017, 120 : 30 - 39
  • [5] ORDERING CONJUNCTIVE QUERIES
    SMITH, DE
    GENESERETH, MR
    ARTIFICIAL INTELLIGENCE, 1985, 26 (02) : 171 - 215
  • [6] Dynamic conjunctive queries
    Zeume, Thomas
    Schwentick, Thomas
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2017, 88 : 3 - 26
  • [7] Bounded Conjunctive Queries
    Cao, Yang
    Fani, Wenfei
    Wo, Tianyu
    Yu, Wenyuan
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2014, 7 (12): : 1231 - 1242
  • [8] On Horn Conjunctive Queries
    Alfonso, Enrique Matos
    Stamou, Giorgos
    RULES AND REASONING (RULEML+RR 2018), 2018, 11092 : 115 - 130
  • [9] On the containment of conjunctive queries
    Lausen, G
    Wei, F
    COMPUTER SCIENCE IN PERSPECTIVE: ESSAYS DEDICATED TO THOMAS OTTMANN, 2003, 2598 : 231 - 244
  • [10] Answering Conjunctive Queries with Inequalities
    Paraschos Koutris
    Tova Milo
    Sudeepa Roy
    Dan Suciu
    Theory of Computing Systems, 2017, 61 : 2 - 30