Skip to content

Commit

Permalink
fix sink schema compare test
Browse files Browse the repository at this point in the history
  • Loading branch information
pnadolny13 committed Jun 20, 2023
1 parent 7cbf834 commit bfeb482
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions singer_sdk/sinks/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from __future__ import annotations

import abc
import copy
import datetime
import json
import time
Expand Down Expand Up @@ -67,6 +68,7 @@ def __init__(
"Initializing target sink for stream '%s'...",
stream_name,
)
self.original_schema = copy.deepcopy(schema)
self.schema = schema
if self.include_sdc_metadata_properties:
self._add_sdc_metadata_to_schema()
Expand Down
2 changes: 1 addition & 1 deletion singer_sdk/target_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def get_sink(
return self.add_sink(stream_name, schema, key_properties)

if (
existing_sink.schema != schema
existing_sink.original_schema != schema
or existing_sink.key_properties != key_properties
):
self.logger.info(
Expand Down

0 comments on commit bfeb482

Please sign in to comment.