Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions clickhouse_mysql/writer/chwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def insert(self, event_or_events=None):
event_converted = self.convert(event)
for row in event_converted:
for key in row.keys():
row[key] = '' if row[key] is None else row[key]
# we need to convert Decimal value to str value for suitable for table structure
if type(row[key]) == Decimal:
row[key] = str(row[key])
Expand Down