Skip to content

Commit

Permalink
work around empty row bug, until a complete fix is added
Browse files Browse the repository at this point in the history
  • Loading branch information
harelba committed Jan 7, 2014
1 parent a15b922 commit bfc1ee3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion q
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,10 @@ class TableCreator(object):

effective_column_names = self.column_inferer.column_names[:len(col_vals)]

self.buffered_inserts.append((effective_column_names,col_vals))
if len(effective_column_names) > 0:
self.buffered_inserts.append((effective_column_names,col_vals))
else:
self.buffered_inserts.append((["c1"],[""]))

if len(self.buffered_inserts) < 1000:
return
Expand Down

0 comments on commit bfc1ee3

Please sign in to comment.