Skip to content

HIVE-29765: HiveBetween#unparse ignores negated flag - #6637

Open
rubenada wants to merge 1 commit into
apache:masterfrom
rubenada:HIVE-29765
Open

HIVE-29765: HiveBetween#unparse ignores negated flag#6637
rubenada wants to merge 1 commit into
apache:masterfrom
rubenada:HIVE-29765

Conversation

@rubenada

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

HiveBetween#unparse will consider the negated flag.

Why are the changes needed?

Fix the unparse of NOT BETWEEN.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

@ayushtkn ayushtkn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does it lead to any query level failure or so? If so can we extend a test?

@rubenada

Copy link
Copy Markdown
Contributor Author

@ayushtkn it seems this was untested, I will prepare a test

@rubenada

Copy link
Copy Markdown
Contributor Author

@ayushtkn I included a new unit test, could you please take another look?

@ayushtkn

Copy link
Copy Markdown
Member

@rubenada why are we going with Junit style test, can't we we have a q file test?

@rubenada

Copy link
Copy Markdown
Contributor Author

@ayushtkn it was simpler. It seems in practice the "NOT BETWEEN" operator is currently not generated in the intermediate planner conversions (that's probably why this bug went under the radar).
There's a PR to "enable" it (which unveiled the current issue): #6634 ; but there are some discussions on that Jira whether or not we should really apply that change, so that one may not land in master.
Nevertheless, we would need to fix this bug.

@sonarqubecloud

Copy link
Copy Markdown

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants