This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-python.git
The following commit(s) were added to refs/heads/main by this push:
new 00573608c Docs: Add module docstring to expression parser (#4378)
00573608c is described below
commit 00573608c68b401a695b2fd29d50f5f3bbec6e6c
Author: Fokko Driesprong <[email protected]>
AuthorDate: Wed Nov 18 18:04:19 2026 +0000
Docs: Add module docstring to expression parser (#4378)
Describe what the parser supports and that the grammar should follow ANSI
SQL where possible.
Co-authored-by: Isaac <[email protected]>
---
pyiceberg/expressions/parser.py | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/pyiceberg/expressions/parser.py b/pyiceberg/expressions/parser.py
index d813bcaa0..6150e3ce4 100644
--- a/pyiceberg/expressions/parser.py
+++ b/pyiceberg/expressions/parser.py
@@ -14,6 +14,20 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
+"""Parser that converts a SQL-like filter string into an Iceberg
BooleanExpression.
+
+This module enables:
+ - Parsing comparisons (<, <=, >, >=, =, !=, <>), BETWEEN, IN and NOT IN.
+ - Parsing IS [NOT] NULL, IS [NOT] NAN and LIKE (prefix matching only).
+ - Combining predicates with NOT, AND and OR.
+
+Note:
+ The grammar should follow ANSI SQL where possible, so that a filter
behaves the same
+ as it would in a SQL engine. For example, identifiers are quoted with
double quotes,
+ string literals with single quotes, and a single quote within a string is
escaped by
+ doubling it. Deviations from ANSI SQL should be avoided when extending the
grammar.
+"""
+
import re
from decimal import Decimal