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

Add support to read zstd compressed spkg files #504

Open
matthewdarwin opened this issue Jul 15, 2024 · 2 comments
Open

Add support to read zstd compressed spkg files #504

matthewdarwin opened this issue Jul 15, 2024 · 2 comments

Comments

@matthewdarwin
Copy link

Add support to read zstd compressed spkg files

When we need to re-process cache files (like in https://github.com/streamingfast/substreams/releases/tag/v1.9.0), the spkg file is stored zstd compressed by module in the substreams cache location.

Substreams cannot currently read zstd compressed files.

This enhancement request is to have substreams natively read zstd compressed files. According to @sduchesneau it already checks if the extension is a '.yaml' or '.spkg'... checking for zstd and inlining a decoder should be straightforward.

Goal is to allow for this to work:

$ substreams info  s3://[insert_details]/substreams.partial.spkg.zst --skip-package-validation
@matthewdarwin
Copy link
Author

I believe this was implemented last week.

@abourget
Copy link
Contributor

Do you have a link? Can't find it.. but should be straighforward.. and would be a great contribution :)

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

2 participants