-
Notifications
You must be signed in to change notification settings - Fork 268
Documented row_filter
expressions
#1862
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?
Conversation
Co-authored-by: Fokko Driesprong <fokko@apache.org>
Co-authored-by: Fokko Driesprong <fokko@apache.org>
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.
Thanks @norton120 I think this is a great addition to the docs 🙌 I left some small suggestions, let me know what you think of it 👍
Co-authored-by: Fokko Driesprong <fokko@apache.org>
Co-authored-by: Fokko Driesprong <fokko@apache.org>
Co-authored-by: Fokko Driesprong <fokko@apache.org>
5b347e4
to
21b6196
Compare
bah 🤦🏻 I clobbered the in-GH changes while rebasing main. grr. |
Sorry these last fixes took so long I missed the notifications. Updated! |
@norton120 no worries, thanks for following up! 🙌 |
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.
@norton120 I have two more minor issues while going over it
```python | ||
|
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.
```python | |
```python |
age_equals_18 = EqualTo("age", 18) | ||
|
||
# This will raise a TypeError if the field type doesn't match | ||
age_equals_18 = EqualTo("age", "18") # Will fail if age is an integer field |
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.
Rationale for this change
scan's
row_filter
param is not super intuitive. I got tired of reading over the expression and parser code as I'm trying to build out statements, so I had some docs made up.Are these changes tested?
They are docs only, so not really?
Are there any user-facing changes?
Yes there are docs for the expression and string syntaxes of
row_filter
now.