Pārlūkot izejas kodu

HUE-8888 [hive] Fix missing % typo in log printing

Romain 5 gadi atpakaļ
vecāks
revīzija
2a92e3fd5b
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 4 2
      apps/beeswax/src/beeswax/server/hive_server2_lib.py

+ 4 - 2
apps/beeswax/src/beeswax/server/hive_server2_lib.py

@@ -186,12 +186,14 @@ class HiveServerTable(Table):
       end_cols_index = list(map(itemgetter('col_name'), rows[col_row_index:])).index('')
     except ValueError as e:
       end_cols_index = 5000
-      LOG.warn('Could not guess end column index, so defaulting to %s: %s' (end_cols_index, e))
+      LOG.warn('Could not guess end column index, so defaulting to %s: %s' % (end_cols_index, e))
     return [{
           'col_name': prop['col_name'].strip() if prop['col_name'] else prop['col_name'],
           'data_type': prop['data_type'].strip() if prop['data_type'] else prop['data_type'],
           'comment': prop['comment'].strip() if prop['comment'] else prop['comment']
-        } for prop in rows[col_row_index + end_cols_index + 1:]
+        }
+        for prop in rows[col_row_index + end_cols_index + 1:
+      ]
     ]
 
   @property