Skip to content

Commit

Permalink
Bugfix: using s2 instead of snappy
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhant2001 committed Sep 25, 2023
1 parent a6cf8ec commit 1953f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion table/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func NewTableBuilder(opts Options) *Builder {
func maxEncodedLen(ctype options.CompressionType, sz int) int {
switch ctype {
case options.Snappy:
return snappy.MaxEncodedLen(sz)
return s2.MaxEncodedLen(sz)
case options.ZSTD:
return y.ZSTDCompressBound(sz)
}
Expand Down

0 comments on commit 1953f11

Please sign in to comment.