You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/07/29 19:21:47 UTC

[GitHub] [iceberg] dramaticlly commented on a diff in pull request #5389: Python: Refactor expression hierarchy

dramaticlly commented on code in PR #5389:
URL: https://github.com/apache/iceberg/pull/5389#discussion_r933557842


##########
python/tests/expressions/test_expressions_base.py:
##########
@@ -208,9 +208,9 @@ def test_notnan_bind_nonfloat():
 @pytest.mark.parametrize(
     "op, string",
     [
-        (base.And(ExpressionA(), ExpressionB()), "And(testexpra, testexprb)"),
-        (base.Or(ExpressionA(), ExpressionB()), "Or(testexpra, testexprb)"),
-        (base.Not(ExpressionA()), "Not(testexpra)"),
+        (base.And(ExpressionA(), ExpressionB()), "And(left=ExpressionA(), right=ExpressionB())"),
+        (base.Or(ExpressionA(), ExpressionB()), "Or(left=ExpressionA(), right=ExpressionB())"),
+        (base.Not(ExpressionA()), "Not(child=ExpressionA())"),

Review Comment:
   nit: since updating this file, maybe worth try simply LINE 220 to 245 as sam suggested in https://github.com/apache/iceberg/pull/5362/files#r932825540
   
   ```python
   def test_ref_binding_case_sensitive(request):
       schema = request.getfixturevalue("table_schema_simple")
   ```
   
   can be replaced by python
   ```
   def test_ref_binding_case_sensitive(table_schema_simple):
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org