Skip to content

Commit

Permalink
remove pwd
Browse files Browse the repository at this point in the history
  • Loading branch information
data-sleek committed Jan 12, 2023
1 parent 2146533 commit 93092af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions clickhouse/load_tpch_dataset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@ done
for i in "${array[@]}"
do
log "Clearing table ${i}"
clickhouse-client --password Tibeun1111 --query="truncate table tpch.${i} "
clickhouse-client --password xxxx --query="truncate table tpch.${i} "
log "- - - -"
done


for i in "${array[@]}"
do
log "Loading ${i}.tbl..."
clickhouse-client --password Tibeun1111 --format_csv_delimiter="|" --query="INSERT INTO tpch.${i} FORMAT CSV" < ${targetdir}/${i}.tbl
clickhouse-client --password xxxx --format_csv_delimiter="|" --query="INSERT INTO tpch.${i} FORMAT CSV" < ${targetdir}/${i}.tbl
log "Done Loading ${i}.tbl..."
done


for i in "${array[@]}"
do
log "Clearing table ${i}"
clickhouse-client --password Tibeun1111 --query="select count(*) from tpch.${i} "
clickhouse-client --password xxxx --query="select count(*) from tpch.${i} "
log "- - - -"
done

Expand Down
6 changes: 3 additions & 3 deletions singlestore/load_tpch_dataset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ done
for i in "${array[@]}"
do
log "Loading ${i}.tbl..."
memsql -uroot -pTibeun1111 tpch -e"LOAD DATA INFILE '${targetdir}/${i}.tbl' INTO TABLE tpch.${i} FIELDS TERMINATED BY '|' LINES TERMINATED BY '|\n';"
memsql -uroot -pxxxx tpch -e"LOAD DATA INFILE '${targetdir}/${i}.tbl' INTO TABLE tpch.${i} FIELDS TERMINATED BY '|' LINES TERMINATED BY '|\n';"
log "Done Loading ${i}.tbl..."
done


for i in "${array[@]}"
do
log "Clearing table ${i}"
memsql -uroot -pTibeun1111 -e"select count(*) from tpch.${i};"
memsql -uroot -pxxxx -e"select count(*) from tpch.${i};"
log "- - - -"
done


memsql -uroot -pTibeun1111 -e"show databases"
memsql -uroot -pxxxx -e"show databases"

0 comments on commit 93092af

Please sign in to comment.