You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if the event_type is "page_view", then page_url must be non-null
if the event_type is "button_click", then button_name and page_from must be non-null.
Purpose
For this simple example, a sql_expression with both conditions could solve the problem, but for readability, I find it more elegant to keep native rules (here is_not_null) to which we apply a filter. This is even more the case when we want to apply a rule to a list of columns, it's much more readable to do that.
I started a draft PR (#141) with a simple working purpose but there are still a lot of things to validate, for example, how to display filter in _error or _warning result.
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Problem statement
Problem
I need to apply rules to a part of a DataFrame.
Context
We have a table of tracking events, and depending on the type of event, we want to apply a rule or not.
Example
In this case
event_type
is "page_view", thenpage_url
must be non-nullevent_type
is "button_click", thenbutton_name
andpage_from
must be non-null.Purpose
For this simple example, a
sql_expression
with both conditions could solve the problem, but for readability, I find it more elegant to keep native rules (hereis_not_null
) to which we apply a filter. This is even more the case when we want to apply a rule to a list of columns, it's much more readable to do that.Proposed Solution
Additional Context
I started a draft PR (#141) with a simple working purpose but there are still a lot of things to validate, for example, how to display filter in
_error
or_warning
result.The text was updated successfully, but these errors were encountered: