In their classical 1993 paper [CV93] Chaudhuri and Vardi notice that some fundamental database theory results and techniques fail to survive when we try to see query answers as bags (multisets) of tuples rather than as sets of tuples. But disappointingly, almost 30 years after [CV93], the bag-semantics based database theory is still in its infancy. We do not even know whether conjunctive query containment is decidable. And this is not due to lack of interest, but because, in the multiset world, everything suddenly gets discouragingly complicated. In this paper, we try to re-examine, in the bag semantics scenario, the query determinacy problem, which has recently been intensively studied in the set semantics scenario. We show that query determinacy (under bag semantics) is decidable for boolean conjunctive queries and undecidable for unions of such queries (in contrast to the set semantics scenario, where the UCQ case remains decidable even for unary queries). We also show that -- surprisingly -- for path queries determinacy under bag semantics coincides with determinacy under set semantics (and thus it is decidable).
翻译:在1993年古典论文[CV93]中,Chaudhuri和Vardi注意到,当我们试图将查询答案看成麻果袋(多重)而不是麻果后,一些基本数据库理论和技巧无法生存。但令人失望的是,在[CV93]后近30年,基于包的语义数据库理论仍然处于萌芽阶段。我们甚至不知道是否可分解调试控制。这并非因为缺乏兴趣,而是因为在多套式世界中,每件事情都突然变得令人沮丧地复杂。在本文中,我们试图在包式语义假设中重新审查最近已在设置的语义假设中深入研究过的质疑确定性问题。我们显示,对布利安的同源性询问(在包式语义语义中)的质疑是可分解的,对于这类查询的结合是不可分辨的(与设定的语义假设相反,在不透明的情况下,UCQ案仍然可以分辨。我们还表明,在包状语义的语义下,路径上的查询是惊人的(在定性),因此,在定性定性设置的。