Skip to content

Commit

Permalink
Handling T64, DoubleDelta, Gorilla codec
Browse files Browse the repository at this point in the history
Signed-off-by: Sharad Gaur <[email protected]>
  • Loading branch information
sharadgaur committed Jul 17, 2024
1 parent 11f26f8 commit 16eeb76
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions parser/parser_column.go
Original file line number Diff line number Diff line change
Expand Up @@ -801,10 +801,12 @@ func (p *Parser) tryParseCompressionCodecs(pos Pos) (*CompressionCodec, error) {
if err != nil {
return nil, err
}
// parse DELTA if CODEC(Delta, ZSTD(1)) or CODEC(Delta(9), ZSTD(1))
// parse DELTA if CODEC(Delta, ZSTD(1))
// or CODEC(Delta(9), ZSTD(1)) or CODEC(T64, ZSTD(1))
var codecType *Ident
var typeLevel *NumberLiteral
if strings.ToUpper(name.Name) == "DELTA" {
switch strings.ToUpper(name.Name) {
case "DELTA", "DoubleDelta", "T64", "Gorilla":
codecType = name
// try parse delta level
typeLevel, err = p.tryParseCompressionLevel(p.Pos())
Expand All @@ -824,7 +826,7 @@ func (p *Parser) tryParseCompressionCodecs(pos Pos) (*CompressionCodec, error) {
var level *NumberLiteral
// TODO: check if the codec name is valid
switch strings.ToUpper(name.Name) {
case "ZSTD", "LZ4HC":
case "ZSTD", "LZ4HC", "LH4":
level, err = p.tryParseCompressionLevel(p.Pos())
if err != nil {
return nil, err
Expand Down

0 comments on commit 16eeb76

Please sign in to comment.