Skip to content

ShimCursor: Fix dimension selectors on non-strings.#18371

Merged
cryptoe merged 1 commit intoapache:masterfrom
gianm:fix-shim-csf
Aug 6, 2025
Merged

ShimCursor: Fix dimension selectors on non-strings.#18371
cryptoe merged 1 commit intoapache:masterfrom
gianm:fix-shim-csf

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Aug 5, 2025

Follow-up to #18305. Fixes a bug where calling ShimCursor's makeDimensionSelector on a non-string type would throw an error. Now, it has behavior similar to QueryableIndexCursor:

  • Uses ValueTypes.makeNumericWrappingDimensionSelector on numeric types, casting the numbers to strings.
  • Returns a nil selector for array and complex types.

The new tests verify selector compatibility more extensively.

Follow-up to apache#18305. Fixes a bug where calling ShimCursor's
makeDimensionSelector on a non-string type would throw an error.
Now, it has behavior similar to QueryableIndexCursor:

- Uses ValueTypes.makeNumericWrappingDimensionSelector on numeric types,
  casting the numbers to strings.
- Returns a nil selector for array and complex types.

The new tests verify selector compatibility more extensively.
dimensionSpec,
spec -> {
if (spec.mustDecorate()) {
if (spec.mustDecorate() || spec.getExtractionFn() != null) {

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
DimensionSpec.getExtractionFn
should be avoided because it has been deprecated.
@cryptoe cryptoe merged commit 6707757 into apache:master Aug 6, 2025
95 of 96 checks passed
@cecemei cecemei added this to the 35.0.0 milestone Oct 21, 2025
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.

5 participants