[ https://issues.apache.org/jira/browse/CALCITE-7088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18003553#comment-18003553 ]
Yu Xu edited comment on CALCITE-7088 at 7/7/25 3:26 PM: -------------------------------------------------------- Thanks for pointing out, there are some problems with my description. In fact, the original intention is to express that LIKE can match any number of %. I need to correct the issue title. [~julianhyde] was (Author: JIRAUSER307770): Thanks for pointing out, Yes, there are some problems with my description. In fact, the original intention is to express that LIKE can match any number of %. I need to correct the issue title. [~julianhyde] > X LIKE '%%' should simply to X=X > -------------------------------- > > Key: CALCITE-7088 > URL: https://issues.apache.org/jira/browse/CALCITE-7088 > Project: Calcite > Issue Type: Bug > Components: core > Affects Versions: 1.40.0 > Reporter: Yu Xu > Assignee: Yu Xu > Priority: Minor > Fix For: 1.41.0 > > > sql: > {code:java} > "select \"product_name\" like '%' from \"product\""; {code} > would convert as expected: > {code:java} > "SELECT TRUE\nFROM \"foodmart\".\"product\"" ;{code} > but sql: > {code:java} > "select \"product_name\" like '%%' from \"product\"";{code} > would convert not as expected: > {code:java} > "SELECT \"product_name\" LIKE '%%'\nFROM \"foodmart\".\"product\"" ;{code} > > LIKE '%%...' should keep the same with LIKE '%' -- This message was sent by Atlassian Jira (v8.20.10#820010)