phoenix git commit: PHOENIX-2011 Default, min, and max values should not require quotes around it in create function(Rajeshbabu)

2015-07-02 Thread rajeshbabu
Repository: phoenix
Updated Branches:
  refs/heads/4.4-HBase-0.98 a52978e38 - aa288f8fe


PHOENIX-2011 Default, min, and max values should not require quotes around it 
in create function(Rajeshbabu)


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/aa288f8f
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/aa288f8f
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/aa288f8f

Branch: refs/heads/4.4-HBase-0.98
Commit: aa288f8fe291438fd3c27bdbd0685102c7c0abc7
Parents: a52978e
Author: Rajeshbabu Chintaguntla rajeshb...@apache.org
Authored: Thu Jul 2 15:55:04 2015 +0530
Committer: Rajeshbabu Chintaguntla rajeshb...@apache.org
Committed: Thu Jul 2 15:55:04 2015 +0530

--
 .../apache/phoenix/end2end/UserDefinedFunctionsIT.java  | 12 ++--
 phoenix-core/src/main/antlr3/PhoenixSQL.g   |  3 ++-
 .../phoenix/coprocessor/MetaDataEndpointImpl.java   |  9 +
 .../org/apache/phoenix/parse/FunctionParseNode.java |  9 +++--
 .../main/java/org/apache/phoenix/parse/PFunction.java   | 12 +---
 .../java/org/apache/phoenix/schema/MetaDataClient.java  |  6 +++---
 6 files changed, 28 insertions(+), 23 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/aa288f8f/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
index cee1c85..613231d 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
@@ -348,7 +348,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 
 }
 
-tenant2Conn.createStatement().execute(create function 
myfunction(INTEGER, INTEGER CONSTANT defaultValue='10' minvalue='1' 
maxvalue='15' ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
+tenant2Conn.createStatement().execute(create function 
myfunction(INTEGER, INTEGER CONSTANT defaultValue=10 minvalue=1 maxvalue=15 ) 
returns INTEGER as 'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 

 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar2.jar+');
 try {
 tenant2Conn.createStatement().execute(create function 
myfunction(VARCHAR) returns VARCHAR as 
'org.apache.phoenix.end2end.UnknownClass' using jar 
@@ -424,7 +424,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 conn.commit();
 conn.createStatement().execute(create table t2(k integer primary key, 
k1 integer, lastname_reverse varchar));
 conn.commit();
-stmt.execute(create function mysum3(INTEGER, INTEGER CONSTANT 
defaultValue='10' minvalue='1' maxvalue='15' ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
+stmt.execute(create function mysum3(INTEGER, INTEGER CONSTANT 
defaultValue=10 minvalue=1 maxvalue=15 ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar2.jar+');
 stmt.execute(create function myreverse3(VARCHAR) returns VARCHAR as 
'org.apache.phoenix.end2end.+MY_REVERSE_CLASS_NAME+' using jar 
 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar1.jar+');
@@ -458,7 +458,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 conn.createStatement().execute(create table t4(k integer primary key, 
k1 integer, lastname varchar));
 stmt.execute(upsert into t4 values(1,1,'jock'));
 conn.commit();
-stmt.execute(create function mysum(INTEGER, INTEGER CONSTANT 
defaultValue='10' minvalue='1' maxvalue='15' ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
+stmt.execute(create function mysum(INTEGER, INTEGER CONSTANT 
defaultValue=10 minvalue=1 maxvalue=15 ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar2.jar+');
 ResultSet rs = stmt.executeQuery(select mysum(k,12) from t4);
 assertTrue(rs.next());
@@ -481,7 +481,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 conn.createStatement().execute(create table t9(k integer primary key, 
k1 integer, lastname varchar));
 stmt.execute(upsert into t9 values(1,1,'jock'));
 conn.commit();
-stmt.execute(create temporary function mysum9(INTEGER, INTEGER 
CONSTANT 

phoenix git commit: PHOENIX-2011 Default, min, and max values should not require quotes around it in create function(Rajeshbabu)

2015-07-02 Thread rajeshbabu
Repository: phoenix
Updated Branches:
  refs/heads/4.4-HBase-1.0 3ff71e974 - 95edc578c


PHOENIX-2011 Default, min, and max values should not require quotes around it 
in create function(Rajeshbabu)


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/95edc578
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/95edc578
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/95edc578

Branch: refs/heads/4.4-HBase-1.0
Commit: 95edc578cb4038419be92879beb946af07180545
Parents: 3ff71e9
Author: Rajeshbabu Chintaguntla rajeshb...@apache.org
Authored: Thu Jul 2 15:54:25 2015 +0530
Committer: Rajeshbabu Chintaguntla rajeshb...@apache.org
Committed: Thu Jul 2 15:54:25 2015 +0530

--
 .../apache/phoenix/end2end/UserDefinedFunctionsIT.java  | 12 ++--
 phoenix-core/src/main/antlr3/PhoenixSQL.g   |  3 ++-
 .../phoenix/coprocessor/MetaDataEndpointImpl.java   |  9 +
 .../org/apache/phoenix/parse/FunctionParseNode.java |  9 +++--
 .../main/java/org/apache/phoenix/parse/PFunction.java   | 12 +---
 .../java/org/apache/phoenix/schema/MetaDataClient.java  |  6 +++---
 6 files changed, 28 insertions(+), 23 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/95edc578/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
index cee1c85..613231d 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
@@ -348,7 +348,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 
 }
 
-tenant2Conn.createStatement().execute(create function 
myfunction(INTEGER, INTEGER CONSTANT defaultValue='10' minvalue='1' 
maxvalue='15' ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
+tenant2Conn.createStatement().execute(create function 
myfunction(INTEGER, INTEGER CONSTANT defaultValue=10 minvalue=1 maxvalue=15 ) 
returns INTEGER as 'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 

 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar2.jar+');
 try {
 tenant2Conn.createStatement().execute(create function 
myfunction(VARCHAR) returns VARCHAR as 
'org.apache.phoenix.end2end.UnknownClass' using jar 
@@ -424,7 +424,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 conn.commit();
 conn.createStatement().execute(create table t2(k integer primary key, 
k1 integer, lastname_reverse varchar));
 conn.commit();
-stmt.execute(create function mysum3(INTEGER, INTEGER CONSTANT 
defaultValue='10' minvalue='1' maxvalue='15' ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
+stmt.execute(create function mysum3(INTEGER, INTEGER CONSTANT 
defaultValue=10 minvalue=1 maxvalue=15 ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar2.jar+');
 stmt.execute(create function myreverse3(VARCHAR) returns VARCHAR as 
'org.apache.phoenix.end2end.+MY_REVERSE_CLASS_NAME+' using jar 
 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar1.jar+');
@@ -458,7 +458,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 conn.createStatement().execute(create table t4(k integer primary key, 
k1 integer, lastname varchar));
 stmt.execute(upsert into t4 values(1,1,'jock'));
 conn.commit();
-stmt.execute(create function mysum(INTEGER, INTEGER CONSTANT 
defaultValue='10' minvalue='1' maxvalue='15' ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
+stmt.execute(create function mysum(INTEGER, INTEGER CONSTANT 
defaultValue=10 minvalue=1 maxvalue=15 ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar2.jar+');
 ResultSet rs = stmt.executeQuery(select mysum(k,12) from t4);
 assertTrue(rs.next());
@@ -481,7 +481,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 conn.createStatement().execute(create table t9(k integer primary key, 
k1 integer, lastname varchar));
 stmt.execute(upsert into t9 values(1,1,'jock'));
 conn.commit();
-stmt.execute(create temporary function mysum9(INTEGER, INTEGER 
CONSTANT 

phoenix git commit: PHOENIX-2011 Default, min, and max values should not require quotes around it in create function(Rajeshbabu)

2015-07-02 Thread rajeshbabu
Repository: phoenix
Updated Branches:
  refs/heads/master 54da7d1d6 - b2fb04b0c


PHOENIX-2011 Default, min, and max values should not require quotes around it 
in create function(Rajeshbabu)


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/b2fb04b0
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/b2fb04b0
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/b2fb04b0

Branch: refs/heads/master
Commit: b2fb04b0c2234c5b573642d39589ab9d36469723
Parents: 54da7d1
Author: Rajeshbabu Chintaguntla rajeshb...@apache.org
Authored: Thu Jul 2 15:51:18 2015 +0530
Committer: Rajeshbabu Chintaguntla rajeshb...@apache.org
Committed: Thu Jul 2 15:51:18 2015 +0530

--
 .../apache/phoenix/end2end/UserDefinedFunctionsIT.java  | 12 ++--
 phoenix-core/src/main/antlr3/PhoenixSQL.g   |  3 ++-
 .../phoenix/coprocessor/MetaDataEndpointImpl.java   |  9 +
 .../org/apache/phoenix/parse/FunctionParseNode.java |  9 +++--
 .../main/java/org/apache/phoenix/parse/PFunction.java   | 12 +---
 .../java/org/apache/phoenix/schema/MetaDataClient.java  |  6 +++---
 6 files changed, 28 insertions(+), 23 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/b2fb04b0/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
index cee1c85..613231d 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
@@ -348,7 +348,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 
 }
 
-tenant2Conn.createStatement().execute(create function 
myfunction(INTEGER, INTEGER CONSTANT defaultValue='10' minvalue='1' 
maxvalue='15' ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
+tenant2Conn.createStatement().execute(create function 
myfunction(INTEGER, INTEGER CONSTANT defaultValue=10 minvalue=1 maxvalue=15 ) 
returns INTEGER as 'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 

 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar2.jar+');
 try {
 tenant2Conn.createStatement().execute(create function 
myfunction(VARCHAR) returns VARCHAR as 
'org.apache.phoenix.end2end.UnknownClass' using jar 
@@ -424,7 +424,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 conn.commit();
 conn.createStatement().execute(create table t2(k integer primary key, 
k1 integer, lastname_reverse varchar));
 conn.commit();
-stmt.execute(create function mysum3(INTEGER, INTEGER CONSTANT 
defaultValue='10' minvalue='1' maxvalue='15' ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
+stmt.execute(create function mysum3(INTEGER, INTEGER CONSTANT 
defaultValue=10 minvalue=1 maxvalue=15 ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar2.jar+');
 stmt.execute(create function myreverse3(VARCHAR) returns VARCHAR as 
'org.apache.phoenix.end2end.+MY_REVERSE_CLASS_NAME+' using jar 
 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar1.jar+');
@@ -458,7 +458,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 conn.createStatement().execute(create table t4(k integer primary key, 
k1 integer, lastname varchar));
 stmt.execute(upsert into t4 values(1,1,'jock'));
 conn.commit();
-stmt.execute(create function mysum(INTEGER, INTEGER CONSTANT 
defaultValue='10' minvalue='1' maxvalue='15' ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
+stmt.execute(create function mysum(INTEGER, INTEGER CONSTANT 
defaultValue=10 minvalue=1 maxvalue=15 ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar2.jar+');
 ResultSet rs = stmt.executeQuery(select mysum(k,12) from t4);
 assertTrue(rs.next());
@@ -481,7 +481,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 conn.createStatement().execute(create table t9(k integer primary key, 
k1 integer, lastname varchar));
 stmt.execute(upsert into t9 values(1,1,'jock'));
 conn.commit();
-stmt.execute(create temporary function mysum9(INTEGER, INTEGER 
CONSTANT defaultValue='10' 

phoenix git commit: PHOENIX-2011 Default, min, and max values should not require quotes around it in create function(Rajeshbabu)

2015-07-02 Thread rajeshbabu
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.0 329363f7d - 32aa19cc2


PHOENIX-2011 Default, min, and max values should not require quotes around it 
in create function(Rajeshbabu)


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/32aa19cc
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/32aa19cc
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/32aa19cc

Branch: refs/heads/4.x-HBase-1.0
Commit: 32aa19cc26d355316c829c02f95fd48e0183163d
Parents: 329363f
Author: Rajeshbabu Chintaguntla rajeshb...@apache.org
Authored: Thu Jul 2 15:52:35 2015 +0530
Committer: Rajeshbabu Chintaguntla rajeshb...@apache.org
Committed: Thu Jul 2 15:52:35 2015 +0530

--
 .../apache/phoenix/end2end/UserDefinedFunctionsIT.java  | 12 ++--
 phoenix-core/src/main/antlr3/PhoenixSQL.g   |  3 ++-
 .../phoenix/coprocessor/MetaDataEndpointImpl.java   |  9 +
 .../org/apache/phoenix/parse/FunctionParseNode.java |  9 +++--
 .../main/java/org/apache/phoenix/parse/PFunction.java   | 12 +---
 .../java/org/apache/phoenix/schema/MetaDataClient.java  |  6 +++---
 6 files changed, 28 insertions(+), 23 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/32aa19cc/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
index cee1c85..613231d 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
@@ -348,7 +348,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 
 }
 
-tenant2Conn.createStatement().execute(create function 
myfunction(INTEGER, INTEGER CONSTANT defaultValue='10' minvalue='1' 
maxvalue='15' ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
+tenant2Conn.createStatement().execute(create function 
myfunction(INTEGER, INTEGER CONSTANT defaultValue=10 minvalue=1 maxvalue=15 ) 
returns INTEGER as 'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 

 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar2.jar+');
 try {
 tenant2Conn.createStatement().execute(create function 
myfunction(VARCHAR) returns VARCHAR as 
'org.apache.phoenix.end2end.UnknownClass' using jar 
@@ -424,7 +424,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 conn.commit();
 conn.createStatement().execute(create table t2(k integer primary key, 
k1 integer, lastname_reverse varchar));
 conn.commit();
-stmt.execute(create function mysum3(INTEGER, INTEGER CONSTANT 
defaultValue='10' minvalue='1' maxvalue='15' ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
+stmt.execute(create function mysum3(INTEGER, INTEGER CONSTANT 
defaultValue=10 minvalue=1 maxvalue=15 ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar2.jar+');
 stmt.execute(create function myreverse3(VARCHAR) returns VARCHAR as 
'org.apache.phoenix.end2end.+MY_REVERSE_CLASS_NAME+' using jar 
 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar1.jar+');
@@ -458,7 +458,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 conn.createStatement().execute(create table t4(k integer primary key, 
k1 integer, lastname varchar));
 stmt.execute(upsert into t4 values(1,1,'jock'));
 conn.commit();
-stmt.execute(create function mysum(INTEGER, INTEGER CONSTANT 
defaultValue='10' minvalue='1' maxvalue='15' ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
+stmt.execute(create function mysum(INTEGER, INTEGER CONSTANT 
defaultValue=10 minvalue=1 maxvalue=15 ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar2.jar+');
 ResultSet rs = stmt.executeQuery(select mysum(k,12) from t4);
 assertTrue(rs.next());
@@ -481,7 +481,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 conn.createStatement().execute(create table t9(k integer primary key, 
k1 integer, lastname varchar));
 stmt.execute(upsert into t9 values(1,1,'jock'));
 conn.commit();
-stmt.execute(create temporary function mysum9(INTEGER, INTEGER 
CONSTANT 

phoenix git commit: PHOENIX-2011 Default, min, and max values should not require quotes around it in create function(Rajeshbabu)

2015-07-02 Thread rajeshbabu
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 0a530565f - a7a55ab53


PHOENIX-2011 Default, min, and max values should not require quotes around it 
in create function(Rajeshbabu)


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/a7a55ab5
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/a7a55ab5
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/a7a55ab5

Branch: refs/heads/4.x-HBase-0.98
Commit: a7a55ab5354ef07a53e875e3812b50f8cf674594
Parents: 0a53056
Author: Rajeshbabu Chintaguntla rajeshb...@apache.org
Authored: Thu Jul 2 15:53:12 2015 +0530
Committer: Rajeshbabu Chintaguntla rajeshb...@apache.org
Committed: Thu Jul 2 15:53:12 2015 +0530

--
 .../apache/phoenix/end2end/UserDefinedFunctionsIT.java  | 12 ++--
 phoenix-core/src/main/antlr3/PhoenixSQL.g   |  3 ++-
 .../phoenix/coprocessor/MetaDataEndpointImpl.java   |  9 +
 .../org/apache/phoenix/parse/FunctionParseNode.java |  9 +++--
 .../main/java/org/apache/phoenix/parse/PFunction.java   | 12 +---
 .../java/org/apache/phoenix/schema/MetaDataClient.java  |  6 +++---
 6 files changed, 28 insertions(+), 23 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/a7a55ab5/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
index cee1c85..613231d 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
@@ -348,7 +348,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 
 }
 
-tenant2Conn.createStatement().execute(create function 
myfunction(INTEGER, INTEGER CONSTANT defaultValue='10' minvalue='1' 
maxvalue='15' ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
+tenant2Conn.createStatement().execute(create function 
myfunction(INTEGER, INTEGER CONSTANT defaultValue=10 minvalue=1 maxvalue=15 ) 
returns INTEGER as 'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 

 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar2.jar+');
 try {
 tenant2Conn.createStatement().execute(create function 
myfunction(VARCHAR) returns VARCHAR as 
'org.apache.phoenix.end2end.UnknownClass' using jar 
@@ -424,7 +424,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 conn.commit();
 conn.createStatement().execute(create table t2(k integer primary key, 
k1 integer, lastname_reverse varchar));
 conn.commit();
-stmt.execute(create function mysum3(INTEGER, INTEGER CONSTANT 
defaultValue='10' minvalue='1' maxvalue='15' ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
+stmt.execute(create function mysum3(INTEGER, INTEGER CONSTANT 
defaultValue=10 minvalue=1 maxvalue=15 ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar2.jar+');
 stmt.execute(create function myreverse3(VARCHAR) returns VARCHAR as 
'org.apache.phoenix.end2end.+MY_REVERSE_CLASS_NAME+' using jar 
 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar1.jar+');
@@ -458,7 +458,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 conn.createStatement().execute(create table t4(k integer primary key, 
k1 integer, lastname varchar));
 stmt.execute(upsert into t4 values(1,1,'jock'));
 conn.commit();
-stmt.execute(create function mysum(INTEGER, INTEGER CONSTANT 
defaultValue='10' minvalue='1' maxvalue='15' ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
+stmt.execute(create function mysum(INTEGER, INTEGER CONSTANT 
defaultValue=10 minvalue=1 maxvalue=15 ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar2.jar+');
 ResultSet rs = stmt.executeQuery(select mysum(k,12) from t4);
 assertTrue(rs.next());
@@ -481,7 +481,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 conn.createStatement().execute(create table t9(k integer primary key, 
k1 integer, lastname varchar));
 stmt.execute(upsert into t9 values(1,1,'jock'));
 conn.commit();
-stmt.execute(create temporary function mysum9(INTEGER, INTEGER 
CONSTANT 

[46/47] phoenix git commit: PHOENIX-2011 Default, min, and max values should not require quotes around it in create function(Rajeshbabu)

2015-07-02 Thread maryannxue
PHOENIX-2011 Default, min, and max values should not require quotes around it 
in create function(Rajeshbabu)


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/b2fb04b0
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/b2fb04b0
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/b2fb04b0

Branch: refs/heads/calcite
Commit: b2fb04b0c2234c5b573642d39589ab9d36469723
Parents: 54da7d1
Author: Rajeshbabu Chintaguntla rajeshb...@apache.org
Authored: Thu Jul 2 15:51:18 2015 +0530
Committer: Rajeshbabu Chintaguntla rajeshb...@apache.org
Committed: Thu Jul 2 15:51:18 2015 +0530

--
 .../apache/phoenix/end2end/UserDefinedFunctionsIT.java  | 12 ++--
 phoenix-core/src/main/antlr3/PhoenixSQL.g   |  3 ++-
 .../phoenix/coprocessor/MetaDataEndpointImpl.java   |  9 +
 .../org/apache/phoenix/parse/FunctionParseNode.java |  9 +++--
 .../main/java/org/apache/phoenix/parse/PFunction.java   | 12 +---
 .../java/org/apache/phoenix/schema/MetaDataClient.java  |  6 +++---
 6 files changed, 28 insertions(+), 23 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/b2fb04b0/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
index cee1c85..613231d 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UserDefinedFunctionsIT.java
@@ -348,7 +348,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 
 }
 
-tenant2Conn.createStatement().execute(create function 
myfunction(INTEGER, INTEGER CONSTANT defaultValue='10' minvalue='1' 
maxvalue='15' ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
+tenant2Conn.createStatement().execute(create function 
myfunction(INTEGER, INTEGER CONSTANT defaultValue=10 minvalue=1 maxvalue=15 ) 
returns INTEGER as 'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 

 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar2.jar+');
 try {
 tenant2Conn.createStatement().execute(create function 
myfunction(VARCHAR) returns VARCHAR as 
'org.apache.phoenix.end2end.UnknownClass' using jar 
@@ -424,7 +424,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 conn.commit();
 conn.createStatement().execute(create table t2(k integer primary key, 
k1 integer, lastname_reverse varchar));
 conn.commit();
-stmt.execute(create function mysum3(INTEGER, INTEGER CONSTANT 
defaultValue='10' minvalue='1' maxvalue='15' ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
+stmt.execute(create function mysum3(INTEGER, INTEGER CONSTANT 
defaultValue=10 minvalue=1 maxvalue=15 ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar2.jar+');
 stmt.execute(create function myreverse3(VARCHAR) returns VARCHAR as 
'org.apache.phoenix.end2end.+MY_REVERSE_CLASS_NAME+' using jar 
 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar1.jar+');
@@ -458,7 +458,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 conn.createStatement().execute(create table t4(k integer primary key, 
k1 integer, lastname varchar));
 stmt.execute(upsert into t4 values(1,1,'jock'));
 conn.commit();
-stmt.execute(create function mysum(INTEGER, INTEGER CONSTANT 
defaultValue='10' minvalue='1' maxvalue='15' ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
+stmt.execute(create function mysum(INTEGER, INTEGER CONSTANT 
defaultValue=10 minvalue=1 maxvalue=15 ) returns INTEGER as 
'org.apache.phoenix.end2end.+MY_SUM_CLASS_NAME+' using jar 
 + '+util.getConfiguration().get(DYNAMIC_JARS_DIR_KEY) + 
/myjar2.jar+');
 ResultSet rs = stmt.executeQuery(select mysum(k,12) from t4);
 assertTrue(rs.next());
@@ -481,7 +481,7 @@ public class UserDefinedFunctionsIT extends 
BaseOwnClusterIT{
 conn.createStatement().execute(create table t9(k integer primary key, 
k1 integer, lastname varchar));
 stmt.execute(upsert into t9 values(1,1,'jock'));
 conn.commit();
-stmt.execute(create temporary function mysum9(INTEGER, INTEGER 
CONSTANT defaultValue='10' minvalue='1' maxvalue='15' ) returns INTEGER as