-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error to read parquet with latest parquet-go #61
Comments
Can you send me the file |
|
Can you create the DataFrame from this package, export it to paraquet and then try and import it back? |
I tried it at the first time, it seems like a error parquet file with content "PAR1" func main() {
df := dataframe.NewDataFrame(dataframe.NewSeriesString("A", nil, []string{"1", "2", "3"}))
file, _ := os.Create("1.parquet")
_ = exports.ExportToParquet(context.Background(), file, df)
} |
A Parquet file is not text based. Can you try importing the file back. |
df := dataframe.NewDataFrame(dataframe.NewSeriesString("A", nil, []string{"1", "2", "3"}))
file, _ := os.Create("1.parquet")
_ = exports.ExportToParquet(context.Background(), file, df)
fr, _ := local.NewLocalFileReader("1.parquet")
df, err := imports.LoadFromParquet(context.Background(), fr)
if err != nil {
panic(err)
}
fmt.Println(df)
Error at |
My |
I tried opening your file and it worked:
OUTPUT:
|
Can you tell me your |
|
I use |
In the release notes:
I may need to update package to use 1.6+ instead of 1.5. No idea why it is not using v1.5 for you since it's registered in the |
v1.5 works find, may be i installed parquet-go before installed dataframe-go, not sure about it. |
It seems the problem solved, I should close this issue |
Maybe you directly imported |
Here is my shell records ➜ go get -u github.com/rocketlaunchr/dataframe-go
go: downloading github.com/rocketlaunchr/dataframe-go v0.0.0-20211025052708-a1030444159b
go: downloading golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5
go: downloading github.com/google/go-cmp v0.4.0
go: downloading github.com/guptarohit/asciigraph v0.5.1
go: downloading github.com/olekukonko/tablewriter v0.0.4
go: downloading golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a
go: downloading github.com/olekukonko/tablewriter v0.0.5
go: downloading github.com/google/go-cmp v0.5.7
go: downloading github.com/mattn/go-runewidth v0.0.7
go: downloading github.com/mattn/go-runewidth v0.0.13
go: downloading golang.org/x/exp v0.0.0-20220328175248-053ad81199eb
go: downloading github.com/guptarohit/asciigraph v0.5.3
go: downloading github.com/rivo/uniseg v0.2.0
go: added github.com/google/go-cmp v0.5.7
go: added github.com/guptarohit/asciigraph v0.5.3
go: added github.com/mattn/go-runewidth v0.0.13
go: added github.com/olekukonko/tablewriter v0.0.5
go: added github.com/rivo/uniseg v0.2.0
go: added github.com/rocketlaunchr/dataframe-go v0.0.0-20211025052708-a1030444159b
go: added golang.org/x/exp v0.0.0-20220328175248-053ad81199eb
go: added golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
➜ go get -u github.com/xitongsys/parquet-go/parquet
go: downloading github.com/apache/thrift v0.16.0
go: upgraded github.com/apache/thrift v0.0.0-20181112125854-24918abba929 => v0.16.0
go: upgraded github.com/xitongsys/parquet-go v1.5.2 => v1.6.2
➜ go get -u github.com/xitongsys/parquet-go-source
go: downloading github.com/xitongsys/parquet-go-source v0.0.0-20220315005136-aec0fe3e777c
go: upgraded github.com/xitongsys/parquet-go-source v0.0.0-20200817004010-026bad9b25d0 => v0.0.0-20220315005136-aec0fe3e777c
|
You shouldn't have done the last 2 |
From Go's point of view, when you do that, it's an unrelated package. |
Get it, thanks a lot |
Hi - when is this lib going to be upgraded to use >= V1.6.2 of parquet-go please? having to fix on v1.5.4 just broke all the tagging I was using which assumed V1.6.2 :-( |
There is a backward-incompatible change in v1.6.2. Therefore I will need to explore it more deeply. This package's go.mod is set to Let the main package dictate the dependencies for the sub-packages. |
This file looks like:
imports.LoadFromParquet
with empty nameseach keys in this map with prefix "Scheme", but
goName
didn't, may be it's the reason why can't not find a name from this mapThis's the first time I use golang to read parquet files. It is an error cause by parquet-go breaking changes or something else ?
The text was updated successfully, but these errors were encountered: