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
Copy file name to clipboardExpand all lines: mkdocs/docs/expression-dsl.md
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@
14
14
- See the License for the specific language governing permissions and
15
15
- limitations under the License.
16
16
-->
17
-
17
+
18
18
# Expression DSL
19
19
20
20
The PyIceberg library provides a powerful expression DSL (Domain Specific Language) for building complex row filter expressions. This guide will help you understand how to use the expression DSL effectively. This DSL allows you to build type-safe expressions for use in the `row_filter` scan argument.
1.**Type Mismatches**: Always ensure that the types of your literals match the field types in your schema.
204
-
205
-
2.**Null Handling**: Be careful when using `IsNull` and `NotNull` predicates with required fields. The expression DSL will automatically optimize these cases:
206
-
-`IsNull` on a required field will always return `False`
207
-
-`NotNull` on a required field will always return `True`
203
+
1.**Null Handling**: Be careful when using `IsNull` and `NotNull` predicates with required fields. The expression DSL will automatically optimize these cases:
204
+
-`IsNull` (and `IsNaN` for doubles/floats) on a required field will always return `False`
205
+
-`NotNull` (and `NotNaN` for doubles/floats) on a required field will always return `True`
208
206
209
-
3.**String Comparisons**: When using string predicates like `StartsWith`, ensure that the field type is actually a string type.
207
+
2.**String Comparisons**: When using string predicates like `StartsWith`, ensure that the field type is actually a string type.
0 commit comments