You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Emiliia Nesterovych (JIRA)" <ji...@apache.org> on 2019/02/28 08:25:00 UTC

[jira] [Updated] (PHOENIX-5173) LIKE and ILIKE statements return empty result list for search without wildcard

     [ https://issues.apache.org/jira/browse/PHOENIX-5173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emiliia Nesterovych updated PHOENIX-5173:
-----------------------------------------
    Description: 
I expect these two statements to return same result, as MySql does:
{code:java}
SELECT * FROM USER WHERE USER_NAME = 'Some Name';
{code}
{code:java}
SELECT * FROM USER LIKE USER_NAME = 'Some Name';
{code}
But while there is data for these scripts, the statement with "LIKE" operator returns empty result set. Same affects "ILIKE" operator. 

  was:
I expect these two statements to return same result, as MySql does:
{code:java}
SELECT * FROM USER WHERE USER_NAME = 'Some Name';
{code}
{code:java}
SELECT * FROM USER LIKE USER_NAME = 'Some Name';
{code}
But while there is data for this script the statement with "LIKE" operator returns empty result set. Same affects "ILIKE" operator. 


> LIKE and ILIKE statements return empty result list for search without wildcard
> ------------------------------------------------------------------------------
>
>                 Key: PHOENIX-5173
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5173
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.7.0
>            Reporter: Emiliia Nesterovych
>            Priority: Blocker
>
> I expect these two statements to return same result, as MySql does:
> {code:java}
> SELECT * FROM USER WHERE USER_NAME = 'Some Name';
> {code}
> {code:java}
> SELECT * FROM USER LIKE USER_NAME = 'Some Name';
> {code}
> But while there is data for these scripts, the statement with "LIKE" operator returns empty result set. Same affects "ILIKE" operator. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)