Conjunctive Queries with Comparisons

被引:4
|
作者
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 条
  • [11] Answering Conjunctive Queries with Inequalities
    Paraschos Koutris
    Tova Milo
    Sudeepa Roy
    Dan Suciu
    Theory of Computing Systems, 2017, 61 : 2 - 30
  • [12] Fitting Algorithms for Conjunctive Queries
    ten Cate, Balder
    Funk, Maurice
    Jung, Jean Christoph
    Lutz, Carsten
    SIGMOD RECORD, 2023, 52 (04) : 6 - 18
  • [13] EFFICIENT APPROXIMATIONS OF CONJUNCTIVE QUERIES
    Barcelo, Pablo
    Libkin, Leonid
    Romero, Miguel
    SIAM JOURNAL ON COMPUTING, 2014, 43 (03) : 1085 - 1130
  • [14] Semantic Optimization of Conjunctive Queries
    Barcelo, Pablo
    Figueira, Diego
    Gottlob, Georg
    Pieris, Andreas
    JOURNAL OF THE ACM, 2020, 67 (06)
  • [15] ON CONJUNCTIVE QUERIES CONTAINING INEQUALITIES
    KLUG, A
    JOURNAL OF THE ACM, 1988, 35 (01) : 146 - 160
  • [16] DIVERSITY OF ANSWERS TO CONJUNCTIVE QUERIES
    Merkl, Timo camillo
    Pichler, Reinhard
    Skritek, Sebastian
    LOGICAL METHODS IN COMPUTER SCIENCE, 2025, 21 (01) : 1 - 35
  • [17] Learnability of Solutions to Conjunctive Queries
    Chen, Hubie
    Valeriote, Matthew
    JOURNAL OF MACHINE LEARNING RESEARCH, 2019, 20
  • [18] The resilience of conjunctive queries with inequalities
    Qin, Biao
    Li, Deying
    Zhou, Chunlai
    INFORMATION SCIENCES, 2022, 613 : 982 - 1002
  • [19] The complexity of acyclic conjunctive queries
    Gottlob, G
    Leone, N
    Scarcello, F
    39TH ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE, PROCEEDINGS, 1998, : 706 - 715
  • [20] OPTIMIZATION OF A SUBCLASS OF CONJUNCTIVE QUERIES
    DUBLISH, P
    BISKUP, J
    SAGIV, Y
    LECTURE NOTES IN COMPUTER SCIENCE, 1990, 470 : 455 - 469