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

Improved Handling of Sparse Dictionaries #4414

Closed
tustvold opened this issue Jun 14, 2023 · 1 comment
Closed

Improved Handling of Sparse Dictionaries #4414

tustvold opened this issue Jun 14, 2023 · 1 comment
Labels
enhancement Any new improvement worthy of a entry in the changelog

Comments

@tustvold
Copy link
Contributor

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

Sparse dictionaries, where a large number of a dictionary's values are not referenced by a corresponding key, can occur fairly frequently:

  • Parquet dictionary preservation will output the same dictionary for all arrays in a row group
  • Selection kernels like take or filter will not recompute a smaller dictionary

Many of the kernels, however, proceed by evaluating against the values and then "materializing" this result in the context of a dictionary.

Describe the solution you'd like

The basic primitive needed is the ability to compute a selection vector for a dictionary's values, which can then be used as a selection vector (#4095) (#3620) for further operations

Describe alternatives you've considered

Additional context

#506 tracks adding the ability to recompute a dictionary, which may share similar primitives

#4095 and #3620 track adding selection vector support.

@tustvold tustvold added the enhancement Any new improvement worthy of a entry in the changelog label Jun 14, 2023
@tustvold
Copy link
Contributor Author

tustvold commented Jan 1, 2024

Closed by #3558

@tustvold tustvold closed this as completed Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Any new improvement worthy of a entry in the changelog
Projects
None yet
Development

No branches or pull requests

1 participant