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/01/11 18:24:12 UTC

[GitHub] [iceberg] jun-he commented on a change in pull request #3875: [python legacy] Stripping quotes in convert_string_to_expr() when predicate value is a string type

jun-he commented on a change in pull request #3875:
URL: https://github.com/apache/iceberg/pull/3875#discussion_r782418646



##########
File path: python_legacy/iceberg/api/expressions/expression_parser.py
##########
@@ -126,6 +126,15 @@ def get_expr_tree(tokens):
                  binary_tuples]}
 
 
+def handle_str_expr(node):
+    if node.startswith("'") and node.endswith("'"):

Review comment:
       Will it handle some complicated cases, e.g. `'foo\'bar\'' case as well?
   wondering if we can use some functions in pyparsing quotedString to solve it?
   




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