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

Ingest: Support S3 bucket in FilesGlob source #943

Open
sergiimk opened this issue Nov 7, 2024 · 0 comments
Open

Ingest: Support S3 bucket in FilesGlob source #943

sergiimk opened this issue Nov 7, 2024 · 0 comments

Comments

@sergiimk
Copy link
Member

sergiimk commented Nov 7, 2024

This ticket is to extend FilesGlob support to allow something like:

fetch:
  kind: FilesGlob
  path: s3://my.bucket/data/db-table-dump-*.csv
  eventTime:
    kind: FromPath
    pattern: 'db-table-dump-(\d+-\d+-\d+)\.csv'
    timestampFormat: '%Y-%m-%d'

It should also allow expressing paths to S3-like storages like Minio e.g. like:

s3+http://localhost:5050/my.bucket/data/db-table-dump-*.csv

Notes:

  • Wildcards will only be supported in object path components (not hosts or bucket names)
  • We can support initially patterns like (/dir/file-*.csv, /dir/**/*.json, /dir/subdir-*/*.parquet)
  • This type of ingest is aimed at initial convenience only, and should be reserved for low file counts, as the operation of listing an S3 bucket may get slow/expensive at scale
  • Similarly to existing FileGlob logic, the state of the source will be represented by the name of the last file ingested, with ingest proceeding in lexicographic sort order
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

No branches or pull requests

1 participant