Skip to content

Conversation

@gkamat
Copy link
Collaborator

@gkamat gkamat commented Nov 4, 2025

Description

Changes to aid integration between SDG and Streaming ingestion and some fixes.

Testing

  • Ran unit and integ tests.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Comment on lines +58 to +60
if size == 0:
return
yield key
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add a comment here that the streaming terminates here when empty file is encountered?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that would be appropriate. Right now, the user model might change based on feedback, but once confirmed, this will be refactored.

for key in keys['Contents']:
rsl.append(key['Key'])
def _get_next_key(self):
if len(self.keys) > 2 and self.keys.endswith('**'):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does length of self.keys need to be at least 2?

len(self.keys) > 2

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So that readers can better understand what's happening, we can abstract these clauses into methods that explain the action and return booleans

len(self.keys) > 2 and self.keys.endswith('**')

and

len(self.keys) > 1 and self.keys[-1] == '*':

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will add this in the next update.

Copy link
Collaborator

@IanHoang IanHoang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few comments.

@gkamat gkamat merged commit 519289c into opensearch-project:main Nov 5, 2025
11 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants