Skip to content

fix(index): allow date32 ordered scalar indexes - #5269

Merged
jiaoew1991 merged 2 commits into
lance-format:mainfrom
nyl3532016:main
Nov 9, 2026
Merged

jiaoew1991 merged 2 commits into
lance-format:mainfrom
nyl3532016:main

Conversation

@nyl3532016

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added the bug Something isn't working label Aug 5, 2026
@nyl3532016

Copy link
Copy Markdown
Contributor Author

@yanghua Could you give this commit/PR a quick review when you get a moment?

@nyl3532016

Copy link
Copy Markdown
Contributor Author

@jackye1995 Could you please help review and merge this PR? We need this fix for our production environment.

Copy link
Copy Markdown
Contributor Author

@yanghua @jiaoew1991 This is a small validation fix enabling the already-supported Date32 type for distributed BTREE/ZONEMAP indexes. CI is green. Could you please take a quick look?

Comment thread lance_ray/index.py Outdated
is_supported = (
pa.types.is_integer(value_type)
or pa.types.is_floating(value_type)
or pa.types.is_date32(value_type)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the fix! Could we also cover date64, time32, time64, timestamp, and duration while we’re here? I tried them with pylance 12.0.0 and they work with both indexes. Interval still fails at write time, so pa.types.is_temporal(t) and not pa.types.is_interval(t) should do it.

@ddupg ddupg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jiaoew1991
jiaoew1991 merged commit f114a28 into lance-format:main Nov 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants