Skip to content

Commit f8ee296

Browse files
committed
added NaN
1 parent 5b347e4 commit f8ee296

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

mkdocs/docs/expression-dsl.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
- See the License for the specific language governing permissions and
1515
- limitations under the License.
1616
-->
17-
17+
1818
# Expression DSL
1919

2020
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.
@@ -200,13 +200,11 @@ complex_filter = And(age_range, status_filter)
200200

201201
## Common Pitfalls
202202

203-
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`
208206

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.
210208

211209
## Examples
212210

0 commit comments

Comments
 (0)