Skip to content

Conversation

@viirya
Copy link
Member

@viirya viirya commented Apr 30, 2024

Which issue does this PR close?

Closes #.

Rationale for this change

I saw this error message Unsupported data type in sort merge join comparator when debugging some issues in Comet. It reads a bit confusing and doesn't provide useful info. It would be better at least we can add the data type info into the error message.

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

dt => {
return not_impl_err!(
"Unsupported data type in sort merge join comparator"
"{}",
Copy link
Contributor

Choose a reason for hiding this comment

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

IIRC not_impl_err! works like format!, so you don't need to create an intermediate string here (apart from the fact that the nesting is not that readable.

Same goes for the other change.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, got it. Fixed.

@viirya
Copy link
Member Author

viirya commented Apr 30, 2024

Thanks @crepererum

@crepererum crepererum merged commit 3d90931 into apache:main Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants