From b12fe6f730c65b183f8aed623e133e5d5d4b0a3b Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Thu, 30 Jan 2020 10:13:03 +0000 Subject: [PATCH] updated impala_list_tables.sh --- impala_list_tables.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/impala_list_tables.sh b/impala_list_tables.sh index 878f7ff0..f5c2908e 100755 --- a/impala_list_tables.sh +++ b/impala_list_tables.sh @@ -28,8 +28,8 @@ set -eu -o pipefail [ -n "${DEBUG:-}" ] && set -x srcdir="$(dirname "$0")" -"$srcdir/impala_shell.sh" -Bq 'show databases' "$@" | +"$srcdir/impala_shell.sh" -Bq 'SHOW DATABASES' "$@" | while read -r db; do - "$srcdir/impala_shell.sh" -Bq 'use `'"$db"'`; show tables' "$@" | + "$srcdir/impala_shell.sh" -Bq 'USE `'"$db"'`; SHOW TABLES' "$@" | sed "s/^/$db./" done