Skip to content

Conversation

@chernser
Copy link
Contributor

@chernser chernser commented Jun 5, 2025

Summary

Adds grammar for cast operation: ?:: integer or ?::UUID

Closes #2422

Checklist

Delete items not relevant to your PR:

Copy link
Contributor

@windsurf-bot windsurf-bot bot left a comment

Choose a reason for hiding this comment

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

Other comments (1)

💡 To request another review, post a new comment with "/windsurf-review".

DECIMAL_LITERAL : DEC_DIGIT+;
HEXADECIMAL_LITERAL : '0' X HEX_DIGIT+;
CAST_OP : '::';
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add unit or integration tests to verify the correct handling of the new CAST_OP token and cast grammar (e.g., ?::integer, ?::UUID). This ensures the lexer and parser changes are covered and prevents regressions.

| LBRACKET columnExprList? RBRACKET # ColumnExprArray
| columnIdentifier # ColumnExprIdentifier
| QUERY # ColumnExprParam
| QUERY CAST_OP identifier # ColumnExprParamWithCast
Copy link
Contributor

Choose a reason for hiding this comment

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

Tests are required for the new cast operation grammar (e.g., ?::integer). Please add or update unit/integration tests to ensure this functionality is covered.

@chernser chernser merged commit 4eff362 into main Jun 5, 2025
22 of 23 checks passed
@chernser chernser deleted the jdbc_2422 branch June 5, 2025 01:01
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.

new parser doesn't parse parameters in certain circumstances

2 participants