Skip to content
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

criSize meaning #437

Open
wxybear opened this issue Dec 30, 2021 · 1 comment
Open

criSize meaning #437

wxybear opened this issue Dec 30, 2021 · 1 comment

Comments

@wxybear
Copy link

wxybear commented Dec 30, 2021

Hello, I want to know what is the meaning of the criSize variable,
I use csv-writer write data(5 column, about 2KB per row), when I write with pw.Write(or WriteString), common.Sizeof(val) func return 20(because slice has 5 interface, Sizeof(interface) is 4). When write 256MB data, I expected 2 row group. However, there's only one because pw.ObjsSize is smaller than criSize, just flush once when WriteStop.

PageSize: 1M
RowGroup: Default(128M)

image

image

image

@wxybear
Copy link
Author

wxybear commented Dec 30, 2021

there is the meta generated by parquet-tools(java)
image

zolstein pushed a commit to zolstein/parquet-go that referenced this issue Jun 23, 2023
* better estimation of the size of decode output buffers

* detect whether some encodings support decoding values in place

* fix page size

* chunk large writes of rows

* support configuring the sorting buffer pool

* rename: PageBufferPool => BufferPool

* let io.Seeker handle negative offsets

* rename: pageBuffer => memoryBuffer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant