HazyResearch / ddlog

Compiler for writing DeepDive applications in a Datalog-like language — ⚠️🚧🛑 REPO MOVED TO DEEPDIVE 👇🏿
https://github.com/HazyResearch/deepdive/tree/master/compiler/ddlog
19 stars 4 forks source link

Fixes redundant columns compiled for join variables in queries #78

Closed netj closed 8 years ago

netj commented 8 years ago
?- articles(id1, content), articles(id2, content).

It was producing an extra column for every join variable like:

SELECT R0.article_id AS "id1", R0.text AS "content", R1.article_id AS "id2", R0.text AS "content"
FROM articles R0, articles R1
        WHERE R1.text = R0.text