Skip to content

Conversation

@clintropolis
Copy link
Member

This was a regression of sorts from refactoring in #18589, the isNumeric check was always returning true when it really should have only been returning true if the field is a numeric type or non-existent. Improved the check to return true if the field is a numeric array with an array element path.

@github-actions github-actions bot added Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels Jan 23, 2026
}
}
return true;
return field == null;
Copy link
Contributor

Choose a reason for hiding this comment

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

would be more readable if this just returns true (and return false as i commented above). also might be helpful adding explanation like this field doesnt exist, thus we can vectorized....

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess i was thinking that if we ever add any other types of path parts here then they will default to 'not numeric' instead of 'numeric'

).getCapabilities().getElementType();
if (elementType != null) {
return elementType.isNumeric();
}
Copy link
Contributor

Choose a reason for hiding this comment

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

would be helpful to add some explanation here say if elementType not derived, we dont know this field is numeric or not... also might be just more readable return false directly after the if statement.

@clintropolis clintropolis merged commit e7a604a into apache:master Jan 24, 2026
40 checks passed
@clintropolis clintropolis deleted the fix-json-column-stuff branch January 24, 2026 04:10
clintropolis added a commit to clintropolis/druid that referenced this pull request Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 Area - Querying Area - Segment Format and Ser/De Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants