Skip to content

Commit

Permalink
[fix](tools) tpcds-tools: fix TPCDS_DBGEN_DIR (#44409)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

Issue Number: close #xxx

Related PR: #43668

Problem Summary:

This associated PR modified the TPCDD_DBGEN-DIR path, but omitted the
file 'create tpcs-tables. sh'

```bash
bin/gen-tpcds-data.sh -s 100
Scale Factor: 100
Parallelism: 10
/test/doris/tools/tpcds-tools/bin/DSGen-software-code-3.2.0rc1/tools/dsdgen does not exist. Run build-tpcds-dsdgen.sh first to build it first.
```
  • Loading branch information
feifeifeimoon authored Nov 25, 2024
1 parent 1c3789e commit 647cd86
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tools/tpcds-tools/bin/build-tpcds-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ check_prerequest() {
check_prerequest "unzip -h" "unzip"

# download tpcds tools package first
if [[ -d "${CURDIR}/DSGen-software-code-3.2.0rc1" ]]; then
echo "If you want to rebuild TPC-DS_Tools_v3.2.0 again, please delete ${CURDIR}/DSGen-software-code-3.2.0rc1 first."
if [[ -d "${CURDIR}/DSGen-software-code-3.2.0rc2" ]]; then
echo "If you want to rebuild TPC-DS_Tools_v3.2.0 again, please delete ${CURDIR}/DSGen-software-code-3.2.0rc2 first."
elif [[ -f "TPC-DS_Tools_v3.2.0rc2.zip" ]]; then
unzip TPC-DS_Tools_v3.2.0rc2.zip -d "${CURDIR}/"
else
Expand Down
2 changes: 1 addition & 1 deletion tools/tpcds-tools/bin/gen-tpcds-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ROOT=$(
)

CURDIR="${ROOT}"
TPCDS_DBGEN_DIR="${CURDIR}/DSGen-software-code-3.2.0rc1/tools"
TPCDS_DBGEN_DIR="${CURDIR}/DSGen-software-code-3.2.0rc2/tools"

usage() {
echo "
Expand Down
2 changes: 1 addition & 1 deletion tools/tpcds-tools/bin/gen-tpcds-queries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ROOT=$(
)

CURDIR="${ROOT}"
TPCDS_DSQGEN_DIR="${CURDIR}/DSGen-software-code-3.2.0rc1/tools"
TPCDS_DSQGEN_DIR="${CURDIR}/DSGen-software-code-3.2.0rc2/tools"
TPCDS_QUERIE_DIR="${CURDIR}/../queries"

usage() {
Expand Down

0 comments on commit 647cd86

Please sign in to comment.