GitHub user AakashPradeep opened a pull request:
https://github.com/apache/phoenix/pull/81
PHOENIX-1938 Like operator should throw proper exception when it is used
with data type other then Varcahr and Char
LIKE operator should be supported only for Varchar and Char and it should
throw SQLException with SQLExceptionCode.TYPE_NOT_SUPPORTED_FOR_OPERATOR for
any other data type.
Postgres specification :
http://www.postgresql.org/docs/8.3/static/functions-matching.html
Oracle specification:
http://docs.oracle.com/cd/B12037_01/server.101/b10759/conditions016.htm
@JamesRTaylor @twdsilva Can you please review this.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/AakashPradeep/phoenix bugfix
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/phoenix/pull/81.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #81
----
commit fd615a7c267e58b2b4a4a10c595c1aeababbdb72
Author: Aakash <[email protected]>
Date: 2015-04-30T04:41:00Z
PHOENIX-1938 Like operator should throw proper exception when it is used
with data type other then Varcahr and Char
commit 5b9d5d5d5bd7754da3e8023b5a005be2590f6abe
Author: Aakash <[email protected]>
Date: 2015-04-30T04:47:42Z
PHOENIX-1938 Like operator should throw proper exception when it is used
with data type other then Varcahr and Char
commit ad04526922193c99314b91c9fe21abe2d8759035
Author: Aakash <[email protected]>
Date: 2015-04-30T05:13:22Z
PHOENIX-1938 Like operator should throw proper exception when it is used
with data type other then Varcahr and Char- IT test
----
---
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.
---