2024-08-06 00:02:20 +02:00
|
|
|
#!/bin/zsh
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
|
|
|
|
psql -h 0.0.0.0 -p 4566 -d dev -U root -f templates/create_sources.sql || true
|
|
|
|
psql -h 0.0.0.0 -p 4566 -d dev -U root -f templates/create_mvs.sql || true
|
2024-08-07 10:22:11 +02:00
|
|
|
psql -h 0.0.0.0 -p 4566 -d dev -U root -f templates/create_iceberg_sink.sql || true
|
|
|
|
psql -h 0.0.0.0 -p 4566 -d dev -U root -f templates/create_clickhouse_sink.sql || true
|
2024-08-06 00:02:20 +02:00
|
|
|
|
|
|
|
./docker-exec.sh exec spark bash /spark-script/run_sql.sh create-table
|
|
|
|
./docker-exec.sh exec spark bash /spark-script/run_sql.sh query-table
|
|
|
|
|