Created
March 23, 2019 01:41
-
-
Save boristyukin/a594a323472d8aa5bef55608adf96cc2 to your computer and use it in GitHub Desktop.
How to drop all Impala tables in a given database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
impala-shell -d mydbname -q 'show tables' -B | xargs -I '{}' impala-shell -d mydbname -q 'DROP TABLE IF EXISTS `{}`;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment