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

Compare DataType based on memory size #4919

Closed
ch-sc opened this issue Oct 11, 2023 · 1 comment
Closed

Compare DataType based on memory size #4919

ch-sc opened this issue Oct 11, 2023 · 1 comment
Labels
development-process Related to development process of arrow-rs enhancement Any new improvement worthy of a entry in the changelog

Comments

@ch-sc
Copy link
Contributor

ch-sc commented Oct 11, 2023

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

Related datafusion issue: apache/datafusion#3214

I would like to order fields of a schema based on the datatype's memory size to find the column with the presumable lowest memory footprint at query planning time.

Describe the solution you'd like

Implement Ord for DataType and base cmp on memory size.

Describe alternatives you've considered

--

Additional context

--

@ch-sc ch-sc added the enhancement Any new improvement worthy of a entry in the changelog label Oct 11, 2023
@ch-sc
Copy link
Contributor Author

ch-sc commented Oct 11, 2023

Will be implemented in DataFusion

@ch-sc ch-sc closed this as completed Oct 11, 2023
@tustvold tustvold added the development-process Related to development process of arrow-rs label Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development-process Related to development process of arrow-rs enhancement Any new improvement worthy of a entry in the changelog
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants