You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Kevin Liew (JIRA)" <ji...@apache.org> on 2016/01/29 20:03:39 UTC
[jira] [Updated] (PHOENIX-2641) Implicit wildcard in LIKE predicate
search pattern
[ https://issues.apache.org/jira/browse/PHOENIX-2641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Liew updated PHOENIX-2641:
--------------------------------
Description:
LIKE predicates have an implicit wildcard at the end of the search pattern
ie.
{code:sql}select distinct at1.col2 from at1 group by at1.col2 having at1.col2 like '_'{code}
will match every row in the table
was:
LIKE predicates have an implicit wildcard at the end of the search pattern
ie.
{code:sql}select distinct at1.col2 from at1 group by at1.col2 having at1.col2 like '_'{code}
will match every row in the table, including NULL cells
> Implicit wildcard in LIKE predicate search pattern
> --------------------------------------------------
>
> Key: PHOENIX-2641
> URL: https://issues.apache.org/jira/browse/PHOENIX-2641
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 4.7.0
> Environment: Phoenix 4.7.0 on Calcite 1.5.0
> Reporter: Kevin Liew
> Labels: newbie
>
> LIKE predicates have an implicit wildcard at the end of the search pattern
> ie.
> {code:sql}select distinct at1.col2 from at1 group by at1.col2 having at1.col2 like '_'{code}
> will match every row in the table
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)