-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: (airbyte-protocol) add new record message type #102
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,6 +122,25 @@ definitions: | |
- SOURCE_RETRIEVAL_ERROR | ||
# Errors casting to appropriate type | ||
- DESTINATION_TYPECAST_ERROR | ||
AirbyteFileTransferMessage: | ||
type: object | ||
additionalProperties: true | ||
required: | ||
- stream | ||
- file | ||
- emitted_at | ||
properties: | ||
namespace: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: It feels weird to me to see fields like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Revisiting
Well, we could, but I think it would require us to make changes on the platform (and destination?) side, as the current structure is similar to a record, where stream is a string rather than an object. File record sample:
Regular record sample
Stream descriptor from state message:
Currently StreamDescriptor is used for |
||
description: "namespace the data is associated with" | ||
type: string | ||
stream: | ||
description: "stream the data is associated with" | ||
type: string | ||
file: | ||
"$ref": "#/definitions/AirbyteFileType" | ||
emitted_at: | ||
description: "when the data was emitted from the source. epoch in millisecond." | ||
type: integer | ||
AirbyteStateMessage: | ||
type: object | ||
additionalProperties: true | ||
|
@@ -176,6 +195,30 @@ definitions: | |
type: array | ||
items: | ||
"$ref": "#/definitions/AirbyteStreamState" | ||
AirbyteFileType: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: What is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's fair, I think i can reuse the idea of a descriptor which makes more sense, then we can have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would this be a breaking change considering the current implementation? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Do you mean this ref for this comment? No Introducing the new message to protocol? It depends, it would be replacing this message in cdk. Renaming keys or changing expected structure could lead to changes on the cdk (not a big problem) and platform/destination (more problematic) , I think it wouldn't be a change to impact on connectors but may we depend on coordinate to introduce such changes. |
||
type: object | ||
additionalProperties: true | ||
required: | ||
- file_url | ||
- file_relative_path | ||
- modified | ||
- bytes | ||
properties: | ||
file_url: | ||
description: "local path to file" | ||
type: string | ||
file_relative_path: | ||
description: "relative path to file" | ||
type: string | ||
source_file_url: | ||
description: "source file path" | ||
type: string | ||
modified: | ||
description: "file modified date. epoch in millisecond" | ||
type: string | ||
bytes: | ||
description: "file size in bytes" | ||
type: integer | ||
StreamDescriptor: | ||
type: object | ||
additionalProperties: true | ||
|
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.
Where is this used? I don't see any reference to this definition