-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[6/n][dagster-airbyte] Implement AirbyteWorkspaceData to AirbyteConnectionTableProps method #26257
Conversation
9606d1d
to
904c458
Compare
4be30a4
to
61380f0
Compare
904c458
to
30495b8
Compare
61380f0
to
726f64a
Compare
30495b8
to
41211ed
Compare
726f64a
to
3a8a668
Compare
41211ed
to
bfed07f
Compare
3a8a668
to
7b1189b
Compare
bfed07f
to
a99e648
Compare
7b1189b
to
f9cf32c
Compare
a99e648
to
ab61c91
Compare
f9cf32c
to
d231cae
Compare
ab61c91
to
c986086
Compare
|
||
class AirbyteConnectionTableProps(NamedTuple): ... | ||
|
||
class AirbyteConnectionTableProps(NamedTuple): |
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.
We could also name this AirbyteConnectionStreamProps if we want to keep as close as possible to Airbyte's ontology.
assert len(table_props_data) == 1 | ||
first_table_props = next(iter(table_props_data)) | ||
assert first_table_props.table_name == f"{TEST_STREAM_PREFIX}{TEST_STREAM_NAME}" | ||
assert first_table_props.stream_prefix == TEST_STREAM_PREFIX | ||
assert first_table_props.stream_name == TEST_STREAM_NAME | ||
assert first_table_props.connection_id == TEST_CONNECTION_ID | ||
assert first_table_props.connection_name == TEST_CONNECTION_NAME | ||
assert first_table_props.json_schema == TEST_JSON_SCHEMA | ||
assert first_table_props.database == TEST_DESTINATION_DATABASE | ||
assert first_table_props.schema == TEST_DESTINATION_SCHEMA |
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.
nit; could just create an "expected table props data" and have a single assertion instead of many (might require making this a record)
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.
Done in 0d1570d
d231cae
to
4054ff8
Compare
c986086
to
03f3e0b
Compare
4054ff8
to
da101d9
Compare
03f3e0b
to
0137ae8
Compare
da101d9
to
874b666
Compare
0137ae8
to
ef486b7
Compare
874b666
to
3ca1897
Compare
ef486b7
to
c575675
Compare
3ca1897
to
977b2d4
Compare
c575675
to
0d1570d
Compare
0d1570d
to
b2af23f
Compare
…ctionTableProps method (dagster-io#26257) ## Summary & Motivation This PR implement AirbyteWorkspaceData.to_airbyte_connection_table_props, which creates the props that will be passed to the translator. These props include every detail required to create the asset spec for a given table (Airbyte stream) ## How I Tested These Changes Additional unit tests with BK
Summary & Motivation
This PR implement AirbyteWorkspaceData.to_airbyte_connection_table_props, which creates the props that will be passed to the translator. These props include every detail required to create the asset spec for a given table (Airbyte stream)
How I Tested These Changes
Additional unit tests with BK