Skip to content

Repository files navigation

SQL Generation

Generate SQLs that satisfy target cost or cardinality constraints.

(1) Generate target point queries (cardinality=1000):

 python3 cal_time.py tpch card point 1000 1000

(2) Generate target range queries (cost in [1000, 2000]):

python3 cal_time.py tpch cost range 1000 1000 2000

Check the RL-based method at https://github.com/TsinghuaDatabaseGroup/AI4DBCode/tree/master/SQLGen/code.

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages