Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add gendata command in bendsql #593

Merged
merged 4 commits into from
Feb 18, 2025
Merged

feat: add gendata command in bendsql #593

merged 4 commits into from
Feb 18, 2025

Conversation

sundy-li
Copy link
Member

@sundy-li sundy-li commented Feb 18, 2025

usage

gendata(tpch | tpcds, sf = <float>, override = 0 | 1); will generate tpch/tpcds tables in current database via duckdb extention

example:

root@localhost:18000/test> gendata(tpch, sf = 0.01, override = 1);

gendata(tpch, sf = 0.01, override = 1)

┌─────────────────────────────┐
│   table  │ status │   size  │
│  String  │ String │  UInt64 │
├──────────┼────────┼─────────┤
│ customer │ OK     │  130089 │
│ lineitem │ OK     │ 2551994 │
│ nation   │ OK     │    2195 │
│ orders   │ OK     │  598190 │
│ partsupp │ OK     │  437252 │
│ part     │ OK     │   77400 │
│ supplier │ OK     │   10653 │
│ region   │ OK     │    1018 │
└─────────────────────────────┘
root@localhost:18000/test> 

fixes #592

Note binary size increase from 34MB to 64MB now.

@sundy-li sundy-li requested review from everpcpc and b41sh February 18, 2025 06:00
@sundy-li sundy-li merged commit 1e1ec86 into main Feb 18, 2025
31 checks passed
@sundy-li sundy-li deleted the duckdb-tpch branch February 18, 2025 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate with duckdb crate
2 participants