Github user AakashPradeep commented on the pull request:
https://github.com/apache/phoenix/pull/81#issuecomment-104047363
As per the SQL specification, LIKE only works with String data type
(http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt search for "Like
predicate") .
If it has been set to PVarchar.isCoercible() that means anything which can
be coerced to Varchar but is not varchar for example VarBinary and JSON, can
also be used with "Like".
IMHO Like should only work with Varhcar and char datatype and throw illegal
data type error with other datatype arguments.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---