|
|
@@ -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
|