CDK: Fix 'emitted_at' from 'seconds * 1000' to correct milliseconds. (#8295)
This commit is contained in:
@@ -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`.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user