Skip to content

Commit

Permalink
add change type and user id
Browse files Browse the repository at this point in the history
  • Loading branch information
SandhraSokhal committed Sep 24, 2023
1 parent 541462b commit ac2d92d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scripts/glue_jobs/team_member_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def main():
mapped_frame = input_frame.apply_mapping(
[
("changeTimestamp", "bigint", "change_timestamp", "timestamp"),
("changeType", "string", "change_type", "string"),
("userId", "bigint", "change_user_id", "bigint"),
("snapshotTimestamp", "bigint", "snapshot_timestamp", "timestamp"),
# Note that we map the same timestamp into a bigint so that we can extract the partition date
("snapshotTimestamp", "bigint", "snapshot_date", "bigint"),
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/glue_jobs/team_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def main():
mapped_frame = input_frame.apply_mapping(
[
("changeTimestamp", "bigint", "change_timestamp", "timestamp"),
("changeType", "string", "change_type", "string"),
("userId", "bigint", "change_user_id", "bigint"),
("snapshotTimestamp", "bigint", "snapshot_timestamp", "timestamp"),
# Note that we map the same timestamp into a bigint so that we can extract the partition date
("snapshotTimestamp", "bigint", "snapshot_date", "bigint"),
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/glue_jobs/user_group_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def main():
mapped_frame = input_frame.apply_mapping(
[
("changeTimestamp", "bigint", "change_timestamp", "timestamp"),
("changeType", "string", "change_type", "string"),
("userId", "bigint", "change_user_id", "bigint"),
("snapshotTimestamp", "bigint", "snapshot_timestamp", "timestamp"),
# Note that we map the same timestamp into a bigint so that we can extract the partition date
("snapshotTimestamp", "bigint", "snapshot_date", "bigint"),
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/glue_jobs/user_profile_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def main():
mapped_frame = input_frame.apply_mapping(
[
("changeTimestamp", "bigint", "change_timestamp", "timestamp"),
("changeType", "string", "change_type", "string"),
("userId", "bigint", "change_user_id", "bigint"),
("snapshotTimestamp", "bigint", "snapshot_timestamp", "timestamp"),
# Note that we map the same timestamp into a bigint so that we can extract the partition date
("snapshotTimestamp", "bigint", "snapshot_date", "bigint"),
Expand Down

0 comments on commit ac2d92d

Please sign in to comment.