kbendick opened a new issue #2059:
URL: https://github.com/apache/iceberg/issues/2059


   I've been working on adding support for not starts with, 
https://github.com/apache/iceberg/issues/1952, and I've noticed that the string 
representation of many startsWith Expressions has too many quotes.
   
   An example would be
   ```
   Expression expr = startsWith("data", "ab");
   System.out.printf("The expression is %s\n", expr);
   ```
   
   I would expect the above code to print `The expression is ref(name="data") 
startsWith "ab"`, however what's printing for me is  `ref(name="data") 
startsWith ""ab""`.
   
   This does not match what I typically expect from query engines, like when 
printing the explanation of a query on a dataframe in spark.
   
   I propose we remove the extra pair of quotes.
   
   I can make a PR for this before (or after) I put up the PR for the original 
issue, if we think that this should be changed.


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

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to