1
0
Fork 0

fixed an impala error

This commit is contained in:
Antonis Lempesis 2021-09-24 12:57:24 +03:00
parent f358cabb2b
commit a1e1cf32d7
1 changed files with 1 additions and 1 deletions

View File

@ -13,4 +13,4 @@ export SHADOW=$3
echo "Creating observatory database"
impala-shell -q "drop database if exists ${TARGET} cascade"
impala-shell -q "create database if not exists ${TARGET}"
impala-shell -d ${SOURCE} -q "show tables" --delimited | sed "s/\(.*\)/create view ${TARGET}.\1 as select * from ${SOURCE}.\1;/" | impala-shell -f -
impala-shell -d ${SOURCE} -q "show tables" --delimited | grep -iv roar | sed "s/\(.*\)/create view ${TARGET}.\1 as select * from ${SOURCE}.\1;/" | impala-shell -f -