-
Notifications
You must be signed in to change notification settings - Fork 326
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
Allow Filter_Condition to be inverted. #8861
Conversation
b933552
to
f3995a1
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.
Add an action to determine if a Filter_Condition is keep or remove.
Remove Not_In, Not_Contains and Not_Like from Filter_Condition.
I was rather expecting introduction of
type Filter_Condition
Not condition:Filter_Condition
the parameters of the methods would not need to be duplicated. But probably the Not
constructor approach has its own quirks as well.
Will have a play with the Not approach post merge - with the new GUI might actually work well (wouldn't have with the old one). |
Change error on types.
Some edge cases.
3b2bc3e
to
86876d3
Compare
distribution/lib/Standard/Table/0.0.0-dev/src/Data/Column_Ref.enso
Outdated
Show resolved
Hide resolved
group_builder.specify "Not_Equal test cases" pending="Specification needs clarifying, see: https://github.com/enso-org/enso/issues/5241#issuecomment-1480167927" <| | ||
group_builder.specify "Not_Equal test cases" <| |
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.
Good to see this test re-enabled.
t.filter "X" (Filter_Condition.Not_Equal to=(t.at "Y")) . at "X" . to_vector . should_equal [3, 12] | ||
t.filter "X" (Filter_Condition.Not_Equal to=(Column_Ref.Name "Y")) . at "X" . to_vector . should_equal [3, 12] | ||
t.filter "X" (Filter_Condition.Not_Equal to=(Column_Ref.Expression "[Y]")) . at "X" . to_vector . should_equal [3, 12] |
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.
I'm tempted to test the Filter_Action.Remove
here as well, to clearly see what is the NULL behaviour with that.
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.
Looks all good
Pull Request Description
Filter_Condition
is keep or remove.2024-01-25_13-14-44.mp4
Remove
Not_In
,Not_Contains
andNot_Like
fromFilter_Condition
.Ability to use an
Expression
as aColumn_Ref
.2024-02-02_12-42-18.mp4
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
./run ide build
.