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
Move postgres source to AB Protocol & various python fixes #610
Conversation
…e-postgres-to-abprotocol
airbyte-integrations/base-python/airbyte_protocol/entrypoint.py
Outdated
Show resolved
Hide resolved
@@ -0,0 +1 @@ | |||
config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my PR this weekend: #606
airbyte-integrations/singer/postgres_abprotocol/postgres_singer_source/source.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/singer/stripe_abprotocol/source/source_stripe_singer/source.py
Outdated
Show resolved
Hide resolved
@@ -34,6 +34,36 @@ class Catalogs: | |||
|
|||
|
|||
class SingerHelper: | |||
@staticmethod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
having multiple types is valid jsonschema. i don't think we want to normalize it out in the integration if we are saying that you define your stream's schema using jsonschema.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh. saw your comment here: #609 (review). maybe we're on the same page now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, we are. I was confused. JSONSchema it is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In which case please merge your PR 😆
…e-postgres-to-abprotocol
@@ -85,19 +86,17 @@ def start(self, args): | |||
if cmd == "check": | |||
check_result = self.source.check(logger, config_container) | |||
|
|||
if check_result.successful: | |||
if check_result.status == Status.SUCCEEDED: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sherifnada If i understand right, this change is not compatible with what is currently in the template/python-source
for the ´ check' function anymore, right?
AirbyteCheckResponse
has to be changed to AirbyteConnectionStatus
in that file too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ChristopheDuong Correct - good catch
What
The main change:
Supporting Python/singer fixes:
Reading Order
Main change:
postgres_singer_source/source.py
SingerPostgresSourceTest.java
airbyte-integrations/singer/postgres_abprotocol
Supporting changes:
*/source.py
entrypoint.py
singer_helpers.py
TODO
secrets
instead ofconfig
SingerSource
instead ofSource