Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CALCITE-6742] StandardConvertletTable.convertCall loses casts from ROW comparisons #4107

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

mihaibudiu
Copy link
Contributor

No description provided.

@@ -563,9 +563,15 @@ private Expression getConvertExpression(
case TINYINT:
case SMALLINT: {
if (SqlTypeName.NUMERIC_TYPES.contains(sourceType.getSqlTypeName())) {
Type javaClass = typeFactory.getJavaClass(targetType);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change is only indirectly related to this PR: without this change, the code generated for ROW casts crashes at runtime.

Copy link
Member

Choose a reason for hiding this comment

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

Why does it crash? It feels a bit strange

@mihaibudiu
Copy link
Contributor Author

This PR fixes a real bug and should not be too hard to review.

…OW comparisons

Signed-off-by: Mihai Budiu <mbudiu@feldera.com>
@mihaibudiu mihaibudiu merged commit 47ba3d5 into apache:main Dec 24, 2024
20 checks passed
@mihaibudiu mihaibudiu deleted the issue6742 branch December 24, 2024 21:07
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.

3 participants