Skip to content

CASSGO-33 snappy has been moved to a separate package #1844

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

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

OleksiienkoMykyta
Copy link
Contributor

@OleksiienkoMykyta OleksiienkoMykyta commented Nov 20, 2024

This PR should be reviewed right after #1822 is merged.

@joao-r-reis
Copy link
Contributor

joao-r-reis commented Mar 18, 2025

@OleksiienkoMykyta can you rebase this branch? Or even start from scratch (from trunk) and force push to this branch, might be easier

@OleksiienkoMykyta
Copy link
Contributor Author

@OleksiienkoMykyta can you rebase this branch? Or even start from scratch (from trunk) and force push to this branch, might be easier

Sure, I'll handle this on the next week

@OleksiienkoMykyta OleksiienkoMykyta force-pushed the CASSGO-33-snappy-has-been-moved-to-a-separate-package branch 2 times, most recently from d373fb6 to 0f254c1 Compare March 25, 2025 10:33
@OleksiienkoMykyta
Copy link
Contributor Author

@joao-r-reis, I have fixed the conflicts.

CHANGELOG.md Outdated
@@ -18,6 +18,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Moved the Snappy compressor into its own separate package.
This allows users to include only the compression dependencies they need. (CASSGO-33)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we don't need this last line, it would be good to keep this list brief, users can open the linked JIRAs if they want more details.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree, fixed.

@joao-r-reis joao-r-reis changed the title WIP-Cassgo 33 snappy has been moved to a separate package Cassgo 33 snappy has been moved to a separate package Mar 25, 2025
Copy link
Contributor

@joao-r-reis joao-r-reis left a comment

Choose a reason for hiding this comment

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

Left 1 comment about the change in CHANGELOG.md and the new file name for the snappy compressor.

I'm not sure if the tests under snappy/compressor_test.go will run. I believe this is being handled in #1864 but it would be nice to get confirmation that these tests are passing before merging this.

Maybe we can wait for #1864 to be merged before merging this one.

@@ -0,0 +1,28 @@
package snappy

import "github.com/golang/snappy"
Copy link
Contributor

Choose a reason for hiding this comment

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

We can have this file be named compressor.go no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried to align it with lz4, but sure, we can keep it just as a compressor.go.
Fixed.

@joao-r-reis joao-r-reis changed the title Cassgo 33 snappy has been moved to a separate package CASSGO-33 snappy has been moved to a separate package Mar 25, 2025
@OleksiienkoMykyta OleksiienkoMykyta force-pushed the CASSGO-33-snappy-has-been-moved-to-a-separate-package branch from 0f254c1 to e6fd92d Compare March 26, 2025 10:12
@OleksiienkoMykyta
Copy link
Contributor Author

Left 1 comment about the change in CHANGELOG.md and the new file name for the snappy compressor.

I'm not sure if the tests under snappy/compressor_test.go will run. I believe this is being handled in #1864 but it would be nice to get confirmation that these tests are passing before merging this.

Maybe we can wait for #1864 to be merged before merging this one.

Sure, let's wait for it. It's always better to double-check

@joao-r-reis
Copy link
Contributor

Can you rebase this branch so it gets the changes from trunk? With this I think we will see the snappy unit tests run on CI

Currently, Snappy is downloaded and included even when users only require LZ4 compression.
To streamline the driver and reduce unnecessary dependency overhead for users who don't utilize Snappy,
move the Snappy compressor into its own separate package.
This will allow users to include only the compression dependencies they need.

Patch by Mykyta Oleksiienko; reviewed by Joao Reis CASSGO-33
@OleksiienkoMykyta OleksiienkoMykyta force-pushed the CASSGO-33-snappy-has-been-moved-to-a-separate-package branch from e6fd92d to 20ff614 Compare March 31, 2025 07:28
@@ -22,7 +22,7 @@
* See the NOTICE file distributed with this work for additional information.
*/

package gocql
package snappy
Copy link
Contributor

Choose a reason for hiding this comment

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

This file is missing

//go:build all || unit
// +build all unit

so it runs in the CI unit tests step

@joao-r-reis
Copy link
Contributor

integration tests with snappy appear fine so when you add this I'll merge this pr

@joao-r-reis
Copy link
Contributor

@OleksiienkoMykyta do you have time to address this? We're trying to resolve the remaining pending PRs for the 2.0 release

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