Skip to content

Commit

Permalink
Merge pull request #2 from scentbird/master
Browse files Browse the repository at this point in the history
Correct the way etl_timestamp is stored
  • Loading branch information
daigotanaka authored May 26, 2020
2 parents 6474a9c + 638a314 commit fd592ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name="tap_bigquery",
version="0.1.4",
version="0.2.0",
description="Singer.io tap for extracting data",
author="Stitch",
url="http://singer.io",
Expand Down
2 changes: 1 addition & 1 deletion tap_bigquery/sync_bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def do_sync(config, stream):
for key in properties.keys():
prop = properties[key]
if "_etl_tstamp" in properties.keys() and key == "_etl_tstamp":
record["_etl_tstamp"] = time.time()
record["_etl_tstamp"] = int(round(time.time() * 1000))
elif prop.format == "date-time":
record[key] = row[key].strftime("%Y-%m-%d %H:%M:%S")
else:
Expand Down

0 comments on commit fd592ae

Please sign in to comment.