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

layout: fix read byte not full from s3 #330

Merged
merged 1 commit into from
Nov 9, 2020

Conversation

3pointer
Copy link

@3pointer 3pointer commented Nov 5, 2020

thriftReader may not read full bytes from s3 backend. use io.ReadFull instead.

@xitongsys
Copy link
Owner

thanks !

@@ -28,7 +28,7 @@ func BinaryReadINT32(r io.Reader, nums []interface{}) error {

func BinaryReadINT64(r io.Reader, nums []interface{}) error {
buf := make([]byte, len(nums)*8)
n, err := r.Read(buf)
n, err := io.ReadFull(r, ,buf)
Copy link

@kennytm kennytm Nov 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting, shouldn't the compiler reject this?

edit: ok fixed in b09c49d.

zolstein pushed a commit to zolstein/parquet-go that referenced this pull request Jun 23, 2023
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

Successfully merging this pull request may close these issues.

3 participants