|
|
|
@ -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 -
|
|
|
|
|