Giter VIP home page Giter VIP logo

lincqa's Introduction

LinCQA

This repository accompanies the paper LinCQA: Faster Consistent Query Answering with Linear Time Guarantees, to appear in SIGMOD 2023.

Usage

Given a database schema stored in .json format (an example here), the first-order rewriting of an acyclic SQL query using a specified algorithm algo can be generated by running the following command:

python3 rewriter.py -s <dir-to-schema.json> -i <dir-to-input-sql-file.sql> -algo <lincqa/conquer/fastfo>

Currently, the -algo flag only supports lincqa. Implementations for conquer and fastfo can be found here.

Rewriting

The rewritings of all queries generated by all CQA systems to reproduce the results in the paper and located in the following directories.

Synthetic dataset

The original SQL queries for the synthetic dataset is stored under

benchmarks/synthetic/sqls/

Their corresponding rewritings are in

benchmarks/synthetic/{rewriting}/

where rewriting can be lincqa, conquerand fastfo.

TPC-H dataset

The original SQL queries for the TPC-H workload is stored under

benchmarks/tpch/sqls/

Their corresponding rewritings are in

benchmarks/tpch/{rewriting}/

where rewriting can be lincqa, conquerand fastfo.

StackOverflow dataset

The original SQL queries for the StackOverflow workload is stored under

benchmarks/stackoverflow/sqls/

Their corresponding rewritings are in

benchmarks/stackoverflow/{rewriting}/

where rewriting can be lincqa, conquerand fastfo.

We note that the LinCQA rewriting can be implemented using either views or intermediate tables, stored in

benchmarks/stackoverflow/{rewriting}/views

and

benchmarks/stackoverflow/{rewriting}/materialize

respectively.

lincqa's People

Contributors

xiatingouyang avatar hacker0912 avatar

Stargazers

 avatar

Watchers

Paris Koutris avatar  avatar  avatar

Forkers

kellsky

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.