[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-17 Thread shuxiong
Github user shuxiong closed the pull request at: https://github.com/apache/phoenix/pull/45 --- 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 en

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-15 Thread shuxiong
Github user shuxiong commented on a diff in the pull request: https://github.com/apache/phoenix/pull/45#discussion_r26445767 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/schema/types/PDouble.java --- @@ -17,15 +17,16 @@ */ package org.apache.phoenix.schema.typ

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-15 Thread JamesRTaylor
Github user JamesRTaylor commented on a diff in the pull request: https://github.com/apache/phoenix/pull/45#discussion_r26445142 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/schema/types/PDouble.java --- @@ -17,15 +17,16 @@ */ package org.apache.phoenix.schema

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-14 Thread shuxiong
Github user shuxiong commented on a diff in the pull request: https://github.com/apache/phoenix/pull/45#discussion_r26443842 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/schema/types/PDouble.java --- @@ -17,15 +17,16 @@ */ package org.apache.phoenix.schema.typ

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-13 Thread JamesRTaylor
Github user JamesRTaylor commented on the pull request: https://github.com/apache/phoenix/pull/45#issuecomment-79185104 Couple of very minor items, but otherwise we're good to go. Excellent work, @shuxiong. Nice first contribution. --- If your project is set up for it, you can reply

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-13 Thread JamesRTaylor
Github user JamesRTaylor commented on a diff in the pull request: https://github.com/apache/phoenix/pull/45#discussion_r26407007 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/schema/types/PDouble.java --- @@ -17,15 +17,16 @@ */ package org.apache.phoenix.schema

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-13 Thread JamesRTaylor
Github user JamesRTaylor commented on a diff in the pull request: https://github.com/apache/phoenix/pull/45#discussion_r26406807 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/expression/function/SignFunction.java --- @@ -0,0 +1,71 @@ +/* + * Licensed to the Apach

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-13 Thread shuxiong
Github user shuxiong commented on the pull request: https://github.com/apache/phoenix/pull/45#issuecomment-78868573 Hi @JamesRTaylor , I already revert the changes and combine all commits into a single one. --- If your project is set up for it, you can reply to this email and have y

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-13 Thread JamesRTaylor
Github user JamesRTaylor commented on the pull request: https://github.com/apache/phoenix/pull/45#issuecomment-78853991 @shuxiong - you're doing a great job so far. Just revert SignFunction back to your original version, keep the PWholeNumber and PRealNumber classes you created but ma

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-13 Thread shuxiong
Github user shuxiong commented on a diff in the pull request: https://github.com/apache/phoenix/pull/45#discussion_r26368458 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/expression/function/SignFunction.java --- @@ -0,0 +1,85 @@ +/* + * Licensed to the Apache So

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-12 Thread JamesRTaylor
Github user JamesRTaylor commented on a diff in the pull request: https://github.com/apache/phoenix/pull/45#discussion_r26340462 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/schema/types/PWholeNumber.java --- @@ -0,0 +1,45 @@ +/* + * Licensed to the Apache Softwa

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-12 Thread JamesRTaylor
Github user JamesRTaylor commented on a diff in the pull request: https://github.com/apache/phoenix/pull/45#discussion_r26340267 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/schema/types/PRealNumber.java --- @@ -0,0 +1,44 @@ +/* + * Licensed to the Apache Softwar

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-12 Thread JamesRTaylor
Github user JamesRTaylor commented on a diff in the pull request: https://github.com/apache/phoenix/pull/45#discussion_r26340384 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/schema/types/PUnsignedWholeNumber.java --- @@ -0,0 +1,39 @@ +/* + * Licensed to the Apac

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-12 Thread JamesRTaylor
Github user JamesRTaylor commented on a diff in the pull request: https://github.com/apache/phoenix/pull/45#discussion_r26340175 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/schema/types/PInteger.java --- @@ -272,4 +273,10 @@ public PhoenixArray newArray(PDataType type,

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-12 Thread JamesRTaylor
Github user JamesRTaylor commented on a diff in the pull request: https://github.com/apache/phoenix/pull/45#discussion_r26340133 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/schema/types/PFloat.java --- @@ -305,4 +306,10 @@ public PhoenixArray newArray(PDataType type, Ob

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-12 Thread JamesRTaylor
Github user JamesRTaylor commented on a diff in the pull request: https://github.com/apache/phoenix/pull/45#discussion_r26340356 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/schema/types/PUnsignedRealNumber.java --- @@ -0,0 +1,39 @@ +/* + * Licensed to the Apach

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-12 Thread JamesRTaylor
Github user JamesRTaylor commented on a diff in the pull request: https://github.com/apache/phoenix/pull/45#discussion_r26340280 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/schema/types/PSmallint.java --- @@ -256,4 +257,10 @@ public PhoenixArray newArray(PDataType type,

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-12 Thread JamesRTaylor
Github user JamesRTaylor commented on a diff in the pull request: https://github.com/apache/phoenix/pull/45#discussion_r26340181 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/schema/types/PLong.java --- @@ -328,4 +329,10 @@ public PhoenixArray newArray(PDataType type, Obj

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-12 Thread JamesRTaylor
Github user JamesRTaylor commented on a diff in the pull request: https://github.com/apache/phoenix/pull/45#discussion_r26340105 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/schema/types/PDouble.java --- @@ -308,4 +309,10 @@ public PhoenixArray newArray(PDataType type, O

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-12 Thread JamesRTaylor
Github user JamesRTaylor commented on a diff in the pull request: https://github.com/apache/phoenix/pull/45#discussion_r26340049 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/schema/types/PDecimal.java --- @@ -402,4 +402,25 @@ public String toStringLiteral(Object o, Forma

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-12 Thread JamesRTaylor
Github user JamesRTaylor commented on a diff in the pull request: https://github.com/apache/phoenix/pull/45#discussion_r26339983 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/expression/function/SignFunction.java --- @@ -0,0 +1,85 @@ +/* + * Licensed to the Apach

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-12 Thread shuxiong
Github user shuxiong commented on the pull request: https://github.com/apache/phoenix/pull/45#issuecomment-78433212 Hi @JamesRTaylor , I update the code, adding two more types, PWholeNumber and PRealNumber. and rename the function from getSign to signum. Thanks. --- If y

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-11 Thread JamesRTaylor
Github user JamesRTaylor commented on a diff in the pull request: https://github.com/apache/phoenix/pull/45#discussion_r26272833 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/schema/types/PInteger.java --- @@ -272,4 +273,10 @@ public PhoenixArray newArray(PDataType type,

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-11 Thread JamesRTaylor
Github user JamesRTaylor commented on a diff in the pull request: https://github.com/apache/phoenix/pull/45#discussion_r26272695 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/schema/types/PDouble.java --- @@ -308,4 +309,28 @@ public PhoenixArray newArray(PDataType type, O

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-10 Thread shuxiong
GitHub user shuxiong opened a pull request: https://github.com/apache/phoenix/pull/45 PHOENIX-1715 Implement Build-in Math function sign 1. Add Build-in Math Function Sign 2. Add a new Type, PNumericType, which is superclass of all numeric type, such as PInteger, PFloat etc.

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-10 Thread shuxiong
Github user shuxiong commented on a diff in the pull request: https://github.com/apache/phoenix/pull/40#discussion_r26134544 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/expression/function/SignFunction.java --- @@ -0,0 +1,77 @@ +/* + * Licensed to the Apache So

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-10 Thread shuxiong
Github user shuxiong closed the pull request at: https://github.com/apache/phoenix/pull/40 --- 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 en

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-10 Thread shuxiong
Github user shuxiong commented on a diff in the pull request: https://github.com/apache/phoenix/pull/40#discussion_r26112698 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/expression/function/SignFunction.java --- @@ -0,0 +1,77 @@ +/* + * Licensed to the Apache So

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-10 Thread shuxiong
Github user shuxiong commented on a diff in the pull request: https://github.com/apache/phoenix/pull/40#discussion_r26112576 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/expression/function/SignFunction.java --- @@ -0,0 +1,77 @@ +/* + * Licensed to the Apache So

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-10 Thread JamesRTaylor
Github user JamesRTaylor commented on a diff in the pull request: https://github.com/apache/phoenix/pull/40#discussion_r26103663 --- Diff: phoenix-core/src/main/java/org/apache/phoenix/expression/function/SignFunction.java --- @@ -0,0 +1,77 @@ +/* + * Licensed to the Apach

[GitHub] phoenix pull request: PHOENIX-1715 Implement Build-in Math functio...

2015-03-09 Thread shuxiong
GitHub user shuxiong opened a pull request: https://github.com/apache/phoenix/pull/40 PHOENIX-1715 Implement Build-in Math function sign Hi, I am a student from Peking University, and I'd like to participate GSOC2015. This patch is an implementation of Build-in math