-
Notifications
You must be signed in to change notification settings - Fork 109
Zachmu/bug fixes to contribute #784
Zachmu/bug fixes to contribute #784
Conversation
5f46739
to
bdf8233
Compare
Sorry for the relatively messy diff (includes several recent changes from your master), not sure what caused it exactly. Open to suggestions for how to make it cleaner. |
bdf8233
to
59a3829
Compare
Cleaned this up with the help of my colleague, ready to be reviewed. |
515c313
to
d40a464
Compare
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.
Just a minor nitpick. Other than that LGTM. Good catches! and thank you so much for the contribution.
Only a couple easy to fix things, thanks for the PR! |
6f02dac
to
89d4baa
Compare
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
… evaluation of string fields. This required allowing conversion of strings to bool (always false, as MySQL). This in turn exposed a bug in optimization, where non-column expressions were inappropriately getting coerced into boolean values. Removed the boolean casting, which is slightly less performant but correct in all cases. Signed-off-by: Zach Musgrave <zach@liquidata.co>
89d4baa
to
ded9391
Compare
…thChildren) Signed-off-by: Zach Musgrave <zach@liquidata.co>
Addressed PR feedback and updated to include the recent interface change to Expression. Adding tests for boolean columns for IsTrue evaluation as Juanjo suggested required being able to evaluate strings as booleans. Once implemented, this exposed a bug in the filter optimizer, where non-column expressions were incorrectly being coerced to booleans. Really, this is the same bug that was causing UnaryMinus expressions (for negative floats) to not work correctly. My fix is more general than my original PR: don't coerce to boolean during optimization. This is slightly less performant but more correct. Please take another look and merge if it looks good. |
Thanks for the fixes! |
Several bug fixes and improvements: