Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vdk-test-utils: adopt ingester changes #3119

Merged
merged 2 commits into from
Feb 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def pre_ingest_process(
target: Optional[str] = None,
collection_id: Optional[str] = None,
metadata: IngestionMetadata = None,
method: Optional[str] = None,
) -> Tuple[List[Dict], Optional[IngestionMetadata]]:
processed_payload = [{k: str(v) for (k, v) in i.items()} for i in payload]
return processed_payload, metadata
Expand Down Expand Up @@ -56,6 +57,7 @@ def pre_ingest_process(
destination_table: Optional[str] = None,
target: Optional[str] = None,
collection_id: Optional[str] = None,
method: Optional[str] = None,
) -> Tuple[List[Dict], Optional[IngestionMetadata]]:
processed_payloads = []
start_time = datetime.datetime(year=2022, month=1, day=27, hour=16)
Expand Down Expand Up @@ -91,6 +93,7 @@ def post_ingest_process(
destination_table: Optional[str] = None,
target: Optional[str] = None,
collection_id: Optional[str] = None,
method: Optional[str] = None,
) -> Optional[IngestionMetadata]:
start_time = None
if metadata:
Expand Down
Loading