Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
fix row_to_singer_record for time type (#35)
Browse files Browse the repository at this point in the history
Co-authored-by: Jose Valenzuela <[email protected]>
  • Loading branch information
jmriego and Jose Valenzuela authored Sep 4, 2020
1 parent 44ad67d commit 7df974e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.3.7 (2020-09-04)
------------------
Fix for time sql type.

1.3.6 (2020-09-02)
------------------
Remove info log
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
long_description = fh.read()

setup(name='pipelinewise-tap-mysql',
version='1.3.6',
version='1.3.7',
description='Singer.io tap for extracting data from MySQL - PipelineWise compatible',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down
2 changes: 1 addition & 1 deletion tap_mysql/sync_strategies/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def row_to_singer_record(catalog_entry, version, row, columns, time_extracted):

elif isinstance(elem, datetime.timedelta):
if property_format == 'time':
row_to_persist=(str(elem),) # this should convert time column into 'HH:MM:SS' formatted string
row_to_persist += (str(elem),) # this should convert time column into 'HH:MM:SS' formatted string
else:
epoch = datetime.datetime.utcfromtimestamp(0)
timedelta_from_epoch = epoch + elem
Expand Down

0 comments on commit 7df974e

Please sign in to comment.