Skip to content
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(source-gcs): add support for zip files #45671

Merged
merged 17 commits into from
Sep 24, 2024

Conversation

darynaishchenko
Copy link
Collaborator

What

resolved: https://github.com/airbytehq/airbyte-internal-issues/issues/8949
could not set up source for zip files

How

smart_open, which source uses for opening files, doesn't support .zip compression. For reading zip files unzipping into a temporary folder was added. Then source uses path to it as uri to remote file. GCSRemoteFile is used to avoid using temp path in state and record values for uri field.

Review guide

  1. airbyte-integrations/connectors/source-gcs/source_gcs/stream_reader.py
  2. airbyte-integrations/connectors/source-gcs/source_gcs/helpers.py
  3. airbyte-integrations/connectors/source-gcs/source_gcs/cursor.py
  4. airbyte-integrations/connectors/source-gcs/source_gcs/stream.py
  5. other files

User Impact

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

Copy link

vercel bot commented Sep 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 24, 2024 2:32pm

@darynaishchenko darynaishchenko self-assigned this Sep 19, 2024
@octavia-squidington-iii octavia-squidington-iii added area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/gcs labels Sep 19, 2024
Copy link
Contributor

@aldogonzalez8 aldogonzalez8 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@lazebnyi lazebnyi left a comment

Choose a reason for hiding this comment

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

lgtm

docs/integrations/sources/gcs.md Outdated Show resolved Hide resolved
@darynaishchenko darynaishchenko merged commit 56dd151 into master Sep 24, 2024
34 checks passed
@darynaishchenko darynaishchenko deleted the daryna/source-gcs/failed-check branch September 24, 2024 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/gcs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants