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

Refactor GpuJsonToStruct to reduce code duplication and manage resources more efficiently #10084

Merged
merged 2 commits into from
Jan 2, 2024

Conversation

andygrove
Copy link
Contributor

Part of #10001

This PR is a small refactor that does not change functionality but reduces some code duplication and also releases some resources sooner. It is unlikely that this will make much of a difference, but it is technically more efficient.

@andygrove andygrove self-assigned this Dec 20, 2023
@@ -37,6 +37,8 @@ case class GpuJsonToStructs(
extends GpuUnaryExpression with TimeZoneAwareExpression with ExpectsInputTypes
with NullIntolerant {

lazy val emptyRowStr = constructEmptyRow(schema)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved this to the top of the class rather than declare it between methods

Signed-off-by: Andy Grove <[email protected]>
@andygrove
Copy link
Contributor Author

build

@andygrove andygrove merged commit 27945ba into NVIDIA:branch-24.02 Jan 2, 2024
38 checks passed
@andygrove andygrove deleted the refactor-json-to-struct branch January 2, 2024 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants