HIVE-29765: HiveBetween#unparse ignores negated flag - #6637
Conversation
ayushtkn
left a comment
There was a problem hiding this comment.
Does it lead to any query level failure or so? If so can we extend a test?
|
@ayushtkn it seems this was untested, I will prepare a test |
|
@ayushtkn I included a new unit test, could you please take another look? |
|
@rubenada why are we going with Junit style test, can't we we have a q file test? |
|
@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). |
|



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?