Skip to content

Commit

Permalink
fix plain tag
Browse files Browse the repository at this point in the history
  • Loading branch information
xitongsys committed Sep 23, 2019
1 parent b4224db commit 492ed2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ func StringToTag(tag string) *Tag {
}
case "encoding":
switch strings.ToLower(val) {
case "plain":
mp.Encoding = parquet.Encoding_PLAIN
case "rle":
mp.Encoding = parquet.Encoding_RLE
case "delta_binary_packed":
Expand Down
2 changes: 1 addition & 1 deletion example/local_flat.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

type Student struct {
Name string `parquet:"name=name, type=UTF8, encoding=PLAIN_DICTIONARY"`
Age int32 `parquet:"name=age, type=INT32"`
Age int32 `parquet:"name=age, type=INT32, encoding=PLAIN"`
Id int64 `parquet:"name=id, type=INT64"`
Weight float32 `parquet:"name=weight, type=FLOAT"`
Sex bool `parquet:"name=sex, type=BOOLEAN"`
Expand Down

0 comments on commit 492ed2d

Please sign in to comment.