Skip to content

Commit

Permalink
Add createTime and updateTime to DateTimeTransformation for enhanced …
Browse files Browse the repository at this point in the history
…timestamp handling
  • Loading branch information
HumbleBeck committed Jan 20, 2025
1 parent 5d6f4f8 commit aa8e910
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,13 @@ def __post_init__(self, parameters: Mapping[str, Any]):


class DateTimeTransformation(RecordTransformation):
DATETIME_FIELDS = ["commitTime", "startTime", "endTime"]
DATETIME_FIELDS = [
"commitTime",
"startTime",
"endTime",
"createTime",
"updateTime",
]

def transform(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ definitions:

apps_stream:
$ref: "#/definitions/base_stream"
transformations:
- type: CustomTransformation
class_name: source_aws_amplify.components.DateTimeTransformation
$parameters:
name: "apps"
primary_key: "appId"
Expand All @@ -79,6 +82,9 @@ definitions:

branches_stream:
$ref: "#/definitions/base_stream"
transformations:
- type: CustomTransformation
class_name: source_aws_amplify.components.DateTimeTransformation
retriever:
$ref: "#/definitions/retriever"
requester:
Expand Down

0 comments on commit aa8e910

Please sign in to comment.