Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.40.0
Description
sql:
"select \"net_weight\" like '%' from \"product\""
would convert as expected:
"SELECT NULL OR \"net_weight\" IS NOT NULL\nFROM \"foodmart\".\"product\""
but sql:
"select \"net_weight\" like '%%' from \"product\""
would convert not as expected:
"SELECT \"net_weight\" LIKE '%%'\nFROM \"foodmart\".\"product\"" ;
note: "x = x" simplifies to "null or x is not null"
LIKE '%%' (with any number of '%') should keep the same with LIKE '%'
Attachments
Issue Links
- Blocked
-
CALCITE-4159 RexSimplify should simplify more always true OR expressions
-
- Closed
-
- links to