-
Notifications
You must be signed in to change notification settings - Fork 762
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(doc): fix load tpcds tpch document (#17438)
* fix(doc): fix load tpcds tpch document * fix(doc): fix load tpcds tpch document * fix(doc): fix load tpcds tpch document * fix(doc): fix load tpcds tpch document
- Loading branch information
Showing
6 changed files
with
54 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
# generate tpch data | ||
sh ./gen_data.sh $1 | ||
|
||
echo """ | ||
INSTALL tpch; | ||
LOAD tpch; | ||
SELECT * FROM dsdgen(sf=1); -- sf can be other values, such as 0.1, 1, 10, ... | ||
EXPORT DATABASE '/tmp/tpch_1/' (FORMAT CSV, DELIMITER '|'); | ||
""" | duckdb | ||
|
||
mv /tmp/tpch_1/ "$(pwd)/data/" | ||
|
||
if [[ $2 == native ]]; then | ||
echo "native" | ||
sh ./prepare_table.sh "storage_format = 'native' compression = 'lz4'" | ||
sh ./load_data.sh "storage_format = 'native' compression = 'lz4'" | ||
else | ||
echo "fuse" | ||
sh ./prepare_table.sh "" | ||
sh ./load_data.sh "" | ||
fi | ||
|