1
0
mirror of synced 2025-12-23 21:03:15 -05:00

CDK: Fix 'emitted_at' from 'seconds * 1000' to correct milliseconds. (#8295)

This commit is contained in:
Yevhenii
2021-11-29 14:32:20 +02:00
committed by GitHub
parent b727bb262e
commit afaa963a7f
3 changed files with 5 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
# Changelog
## 0.1.37
Fix `emitted_at` from `seconds * 1000` to correct milliseconds.
## 0.1.36
Fix broken logger in streams: add logger inheritance for streams from `airbyte`.

View File

@@ -229,7 +229,7 @@ class AbstractSource(Source, ABC):
return stream_instance.transformer, stream_instance.get_json_schema()
def _as_airbyte_record(self, stream_name: str, data: Mapping[str, Any]):
now_millis = int(datetime.now().timestamp()) * 1000
now_millis = int(datetime.now().timestamp() * 1000)
transformer, schema = self._get_stream_transformer_and_schema(stream_name)
# Transform object fields according to config. Most likely you will
# need it to normalize values against json schema. By default no action

View File

@@ -15,7 +15,7 @@ README = (HERE / "README.md").read_text()
setup(
name="airbyte-cdk",
version="0.1.36",
version="0.1.37",
description="A framework for writing Airbyte Connectors.",
long_description=README,
long_description_content_type="text/markdown",