Skip to content

Fix IsSorted return dtype#7914

Merged
joseph-isaacs merged 1 commit into
developfrom
ct/union-not-sorted
May 13, 2026
Merged

Fix IsSorted return dtype#7914
joseph-isaacs merged 1 commit into
developfrom
ct/union-not-sorted

Conversation

@connortsui20
Copy link
Copy Markdown
Contributor

Summary

This is why catch all arms are dangerous!

Also: I made extension type not sortable, I think this is correct? Though it might also break timestamp is sorted, I have no idea.

Testing

How should we test this?

Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
| DType::List(..)
| DType::FixedSizeList(..)
| DType::Variant(..) => None,
_ => Some(DType::Bool(Nullability::NonNullable)),
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.

This should have been written in the negative variant.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I dont understand?

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.

You enumerate the ones that can instead of the ones that can’t

@joseph-isaacs joseph-isaacs merged commit 59fcd14 into develop May 13, 2026
73 of 74 checks passed
@joseph-isaacs joseph-isaacs deleted the ct/union-not-sorted branch May 13, 2026 15:44
@robert3005
Copy link
Copy Markdown
Contributor

Is sorted on extension dtype needs to call the vtable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants