File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -171,10 +171,14 @@ def main():
171171 # doesn't support parameterized query quoting from dbapi spec
172172 table_cursor .execute (query )
173173 for result in table_cursor :
174- row_count = result [ 0 ]
175- print ( '{db}.{table} \t {row_count}' . format ( db = database , table = table , row_count = row_count ))
174+ print ( '{db}.{table} \t {result}' . format ( db = database , table = table , \
175+ result = ' \t ' . join ([ str ( _ ) for _ in result ]) ))
176176 except (impala .error .OperationalError , impala .error .HiveServer2Error ) as _ :
177177 log .error (_ )
178+ #except impala.error.ProgrammingError as _:
179+ # # COMPUTE STATS returns no results
180+ # if not 'Trying to fetch results on an operation with no results' in _:
181+ # raise
178182
179183
180184if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments