Skip to content

[CALCITE-6736] Validator accepts comparisons between arrays, multiset… - #4098

Merged
mihaibudiu merged 1 commit into
apache:mainfrom
mihaibudiu:issue6736
Dec 19, 2024
Merged

[CALCITE-6736] Validator accepts comparisons between arrays, multiset…#4098
mihaibudiu merged 1 commit into
apache:mainfrom
mihaibudiu:issue6736

Conversation

@mihaibudiu

Copy link
Copy Markdown
Contributor

…s, maps without regard to element types

…s, maps without regard to element types

Signed-off-by: Mihai Budiu <mbudiu@feldera.com>
@sonarqubecloud

Copy link
Copy Markdown

@ILuffZhe ILuffZhe left a comment

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.

Overall looks good, just one minor question.

+ "'<BINARY.2.> <> <INTEGER>'.*");
// Test cases for [CALCITE-6736] Validator accepts comparisons between arrays, multisets, maps
// without regard to element types
expr("^array[x'a4'] = array[1]^")

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.

Do we need to add some positive tests for those types(like array[2]= array[1])?

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 assumed such tests exists, but didn't look too much. This change only rejects some programs that used to be accepted, so I really focused on negative tests.

@mihaibudiu
mihaibudiu merged commit 01cfeee into apache:main Dec 19, 2024
@mihaibudiu
mihaibudiu deleted the issue6736 branch December 19, 2024 01:21
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