Skip to content
This repository was archived by the owner on Mar 13, 2020. It is now read-only.

Commit 505c9d3

Browse files
authored
Merge pull request #67 from pageuppeople-opensource/feature/SP-340-send-col-metadata-to-extractor-lambda
[SP-340] - send col metadata to aws lambda
2 parents 5f8ee04 + 19f642a commit 505c9d3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

rdl/data_sources/AWSLambdaDataSource.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,14 @@ def __get_table_data(
120120
"BatchSize": batch_config["size"],
121121
"LastSyncVersion": change_tracking_info.last_sync_version,
122122
"FullRefresh": full_refresh,
123-
"ColumnNames": list(
124-
map(lambda cfg: cfg["source_name"], columns_config)
125-
),
126-
"PrimaryKeyColumnNames": table_config["primary_keys"],
123+
"Columns": [
124+
{
125+
"Name": col["source_name"],
126+
"DataType": col["destination"]["type"],
127+
"IsPrimaryKey": col["destination"]["primary_key"]
128+
}
129+
for col in columns_config
130+
],
127131
"LastBatchPrimaryKeys": [
128132
{"Key": k, "Value": v}
129133
for k, v in batch_key_tracker.bookmarks.items()

0 commit comments

Comments
 (0)