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

hard-code compaction tasks to use ARRAY for multi-value handling to preserve order #17110

Merged

Conversation

clintropolis
Copy link
Member

Changes compaction tasks to always use MultiValueHandling.ARRAY if the column schema is not explicitly specified. This should be safe because it will just preserve whatever order the values in the row were stored in on the initial ingestion, and not re-order the values if initially ingested as unordered.

@@ -989,9 +990,13 @@ private void processDimensionsSpec(final QueryableIndex index)
// column for it.
final ColumnHolder columnHolder = index.getColumnHolder(dimension);
if (columnHolder != null) {
DimensionSchema schema = columnHolder.getColumnFormat().getColumnSchema(dimension);
if (schema instanceof StringDimensionSchema) {
Copy link
Contributor

Choose a reason for hiding this comment

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

A comment about why this is happening would be useful. It probably won't be obvious to a reader.

@clintropolis clintropolis merged commit 4f137d2 into apache:master Sep 19, 2024
90 checks passed
@clintropolis clintropolis deleted the hardcode-compaction-mvd-mode-array branch September 19, 2024 18:56
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