-
Notifications
You must be signed in to change notification settings - Fork 40
fix: Make sameOrEqual work properly #561
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
base: main
Are you sure you want to change the base?
fix: Make sameOrEqual work properly #561
Conversation
|
@mbasmanova hey! have found a bug and fixed it |
mbasmanova
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pashandor789 Thank you for the fix. Would you add a test?
|
CI is red. |
|
@mbasmanova CI is green now |
|
@mbasmanova i'm really not sure how to test it. It's used in the depths of the optimizer. Is it possible to merge without test because the fix is really obviuos, WDYT? 🤔 |
This logic is unit testable, no? |
|
@mbasmanova Yes, I even did this, but not sure it's helpful. I think this code actually couldn't be called while we don't have data sources with partitionkeys/orderkeys that isn't just columns. I think it's possible in theory but in practice we don't have such usage right now |
This pull request fixes a logical error in the
Expr::sameOrEqualmethod inQueryGraph.cpp. The change corrects the condition for comparing arguments in function call expressions.Expr::sameOrEqualso that it returnsfalseif any argument is not the same or equal, rather than if any argument is the same or equal.