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

add ability to customize json (and auto) column physical storage details on per column basis #17762

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

clintropolis
Copy link
Member

Description

changes:

  • NestedDataColumnSchema and AutoTypeColumnSchema now accept a NestedCommonFormatColumn as a new 'columnFormatSpec' property, which allows customizing how json and auto columns are compressed, how strings are encoded in dictionaries, etc, on a per column level. The nested column format spec has several properties: objectKeysEncoding, objectStorageEncoding, objectStorageCompression, stringDictionaryEncoding, dictionaryEncodedColumnCompression, longColumnEncoding, longColumnCompression, doubleColumnCompression NestedCommonFormatColumn blends in segment level config from IndexSpec to populate any values not explicitly specified with segment level.
  • JSON field names can now be stored with front-coding with columnFormatSpec property objectKeysEncoding
  • Adds 'druid.indexing.formats.nestedColumnFormatSpec' to define a default NestedCommonFormatColumn

Release note

todo


This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.
  • a release note entry in the PR description.
  • added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
  • added or updated version, license, or notice information in licenses.yaml
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • added integration tests.
  • been tested in a test Druid cluster.

…lumn physical storage details on per column basis

changes:
* NestedDataColumnSchema and AutoTypeColumnSchema now accept a NestedCommonFormatColumn as a new 'columnFormatSpec' property, which allows customizing how json and auto columns are compressed, how strings are encoded in dictionaries, etc, on a per column level. The nested column format spec has several properties: objectKeysEncoding, objectStorageEncoding, objectStorageCompression, stringDictionaryEncoding, dictionaryEncodedColumnCompression, longColumnEncoding, longColumnCompression, doubleColumnCompression NestedCommonFormatColumn blends in segment level config from IndexSpec to populate any values not explicitly specified with segment level.
* JSON field names can now be stored with front-coding with columnFormatSpec property objectKeysEncoding
* Adds 'druid.indexing.formats.nestedColumnFormatSpec' to define a default NestedCommonFormatColumn
@github-actions github-actions bot added Area - Batch Ingestion Area - Querying Area - Segment Format and Ser/De Area - Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area - Batch Ingestion Area - Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 Area - Querying Area - Segment Format and Ser/De
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant