xitongsys / parquet-go

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

(unreadable could not resolve interface type) #498

Open JuanVargas opened 2 years ago

JuanVargas commented 2 years ago

I wrote several parquet files around july 2022 using parquet-go. The files can be read by Julia and Python, but not with parquet-go.

I get the error (unreadable could not resolve interface type). The code is

func rdPrqFile(fileName string) {

fr, err := local.NewLocalFileReader(fileName)
if err != nil {
    log.Println("Can't open file ", fileName)
    return
}
pr, err := reader.NewParquetReader(fr, nil, 4)
if err != nil {
    log.Println("Can't create parquet reader", err)
    return
}
num := int(pr.GetNumRows())
res, err := pr.ReadByNumber(num)
if err != nil {
    log.Println("Can't read", err)
    return
}
log.Println(res)
pr.ReadStop()
fr.Close()

}