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

fix parquet-tools cat oom issue #266

Merged
merged 3 commits into from
May 13, 2020
Merged

fix parquet-tools cat oom issue #266

merged 3 commits into from
May 13, 2020

Conversation

xitongsys
Copy link
Owner

No description provided.

@xitongsys xitongsys merged commit 78e705d into master May 13, 2020
zolstein pushed a commit to zolstein/parquet-go that referenced this pull request Jun 23, 2023
As part of exploring xitongsys#266, it was identified that the code around
deserializing Parquet values into Go values should be refactored to make
supporting other types like `time.Time` possible. This is the first
change which refactors the monolithic `assignValue()` function into an
`AssignValue()` function implemented on each Parquet type.
zolstein pushed a commit to zolstein/parquet-go that referenced this pull request Jun 23, 2023
To support deserializing Parquet timestamp values for xitongsys#266, there needs
to be a way to convert between different Parquet types. For example,
there might be a TIMESTAMP(isAdjustedToUTC=true, unit=MILLIS) value
stored in a file and it needs to be deserialized into a time.Time which
expects a number of nanoseconds. This PR adds a
ConvertValue(val Value, typ Type) function to the parquet.Type interface
which accepts the source Value and Type and return a Value converted to
the Type of the receiver.
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.

1 participant