[ https://issues.apache.org/jira/browse/PHOENIX-3046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15479193#comment-15479193 ]
James Taylor commented on PHOENIX-3046: --------------------------------------- Not sure - I think we need to try this in another database for the case when col is null: {{WHERE col IS NOT LIKE '%'}} Do you know offhand, [~julianhyde]? Would that always evaluate to false or if col is null would it evaluate to true? Given the tri-logic wackiness, I suspect WHERE null IS NOT LIKE '%' may evaluate to null. > `NOT LIKE '%'` unexpectedly returns results > ------------------------------------------- > > Key: PHOENIX-3046 > URL: https://issues.apache.org/jira/browse/PHOENIX-3046 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.7.0 > Reporter: Kevin Liew > Assignee: Kevin Liew > Priority: Minor > Labels: like, like-predicate, phoenix, regex, wildcard, wildcards > Fix For: 4.9.0, 4.8.1 > > > The following returns all rows in the table when it should return no rows: > {code}select * from emp where first_name not like '%'{code} > The following returns no rows as expected: > {code}select * from emp where first_name not like '%%'{code} > first_name is a VARCHAR column -- This message was sent by Atlassian JIRA (v6.3.4#6332)