Skip to content

Commit 7718241

Browse files
committed
updated hive_tables_row_counts.py
1 parent f4cdfb5 commit 7718241

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

hive_tables_row_counts.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def parse_args():
118118
# impala.error.HiveServer2Error: AnalysisException: Unsupported type 'void' in column '<column>' of table '<table>'
119119
# CAUSED BY: TableLoadingException: Unsupported type 'void' in column '<column>' of table '<table>'
120120
#
121-
parser.add_argument('-e', '--ignore-errors', action='store_true', help='Ignore errors and continue')
121+
parser.add_argument('-e', '--ignore-errors', action='store_true', help='Ignore individual table errors and continue')
122122
parser.add_argument('-v', '--verbose', action='store_true', help='Verbose mode')
123123
args = parser.parse_args()
124124

@@ -190,6 +190,8 @@ def main():
190190
try:
191191
get_row_counts(conn, args, database, table, partition_regex)
192192
except Exception as _:
193+
# invalid query handle and similar errors happen at higher level
194+
# as they are not query specific, will not be caught here so still error out
193195
if args.ignore_errors:
194196
log.error("database '%s' table '%s': %s", database, table, _)
195197
continue

0 commit comments

Comments
 (0)