Skip to content

Conversation

@gengliangwang
Copy link
Member

What changes were proposed in this pull request?

Update the codegen error message for data type which can't be compared by replacingun-comparable with incomparable

Why are the changes needed?

Incomparable is the correct wording here

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing UT

@gengliangwang gengliangwang requested a review from MaxGekk July 29, 2022 05:07
@gengliangwang
Copy link
Member Author

This is trivial. I found it when working on #37337

@github-actions github-actions bot added the SQL label Jul 29, 2022
@HyukjinKwon
Copy link
Member

Merged to master.

case udt: UserDefinedType[_] => genComp(udt.sqlType, c1, c2)
case _ =>
throw QueryExecutionErrors.cannotGenerateCodeForUncomparableTypeError("compare", dataType)
throw QueryExecutionErrors.cannotGenerateCodeForIncomparableTypeError("compare", dataType)
Copy link
Member

Choose a reason for hiding this comment

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

Don't revert this, but, this is very pedantically techincally incorrect. "Incomparable" means "without peer, the best". "Uncomparable" isn't a word really, but, probably more accurate. Whatev

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants