Skip to content

Inconsistent null/empty str handling for multi-value/single-value dimensions in QueryableIndexStorageAdapter #2776

@jon-wei

Description

@jon-wei

In the Cursor returned by QueryableIndexStorageAdapter, the DimensionSelectors created from the Cursor have different null handling behavior for multi-value and single-value dimensions.

In the implementation of DimensionSelector.lookupName(id):

  • For multi-value dimensions, Strings.nullToEmpty() is called on the value before it is returned or passed to the extractionFn.
  • For single-value dimensions, there is no null->empty str conversion.

DimensionSelectors originating from an IncrementalIndex do not perform the null->empty str conversion either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions