xitongsys / parquet-go

pure golang library for reading/writing parquet file
Apache License 2.0
1.27k stars 293 forks source link

type.go in example errors with unrecognized tag convertedtype #337

Closed fils closed 3 years ago

fils commented 4 years ago

Title says it all really..

wget https://raw.githubusercontent.com/xitongsys/parquet-go/master/example/type.go

~ (issues ✗) go version
go version go1.15.3 linux/amd64
~ (issues ✗) go run type.go
2020/12/04 20:11:15 Can't create parquet writer Unrecognized tag 'convertedtype'
celsomarques commented 3 years ago

Same here!

Versions: github.com/xitongsys/parquet-go v1.5.4 github.com/xitongsys/parquet-go-source v0.0.0-20201108113611-f372b7d813be

lucasasalmins commented 3 years ago

Me too!

github.com/xitongsys/parquet-go v1.5.3 github.com/xitongsys/parquet-go-source v0.0.0-20200817004010-026bad9b25d0

d-helios commented 3 years ago

the same v1.5.4

type ExportedMetrics struct {
    Value     *float64          `parquet:"name=value, type=BYTE_ARRAY, type=FLOAT"`
    Timestamp *int64            `parquet:"name=timestamp, type=INT64, convertedtype=TIMESTAMP_MILLIS"`
    Name      *string           `parquet:"name=name, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"`
    Host      *string           `parquet:"name=host, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"`
    Labels    map[string]string `parquet:"name=labels, type=MAP, convertedtype=MAP, keytype=BYTE_ARRAY, keyconvertedtype=UTF8, valuetype=UTF8"`
}
xitongsys commented 3 years ago

hi, sorry to late response. There are some big change in the master branch which is not compatible with before version. I release a new version v1.6.0. Please use it.