Return-Path: X-Original-To: apmail-phoenix-commits-archive@minotaur.apache.org Delivered-To: apmail-phoenix-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AD6E6112E6 for ; Mon, 18 Aug 2014 07:13:01 +0000 (UTC) Received: (qmail 17310 invoked by uid 500); 18 Aug 2014 07:13:01 -0000 Delivered-To: apmail-phoenix-commits-archive@phoenix.apache.org Received: (qmail 17268 invoked by uid 500); 18 Aug 2014 07:13:01 -0000 Mailing-List: contact commits-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list commits@phoenix.apache.org Received: (qmail 17259 invoked by uid 99); 18 Aug 2014 07:13:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Aug 2014 07:13:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Aug 2014 07:12:32 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 330492388868; Mon, 18 Aug 2014 07:12:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1618548 [1/2] - in /phoenix/site/publish/language: datatypes.html functions.html index.html Date: Mon, 18 Aug 2014 07:12:30 -0000 To: commits@phoenix.apache.org From: jamestaylor@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140818071230.330492388868@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jamestaylor Date: Mon Aug 18 07:12:29 2014 New Revision: 1618548 URL: http://svn.apache.org/r1618548 Log: Update language reference for 3.1/4.1 release Modified: phoenix/site/publish/language/datatypes.html phoenix/site/publish/language/functions.html phoenix/site/publish/language/index.html Modified: phoenix/site/publish/language/datatypes.html URL: http://svn.apache.org/viewvc/phoenix/site/publish/language/datatypes.html?rev=1618548&r1=1618547&r2=1618548&view=diff ============================================================================== --- phoenix/site/publish/language/datatypes.html (original) +++ phoenix/site/publish/language/datatypes.html Mon Aug 18 07:12:29 2014 @@ -1,129 +1,11 @@ - - - - - - - - Data Types | Apache Phoenix - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-
- -
-
-
-
- + + + +Data Types + + + +

Index

@@ -673,186 +555,5 @@ syntax-end --> - -
-
-
-
- -
- - - - -
-
-
-

Back to top

- -
-
-
- - - - - - - - - - - - - - - - + + Modified: phoenix/site/publish/language/functions.html URL: http://svn.apache.org/viewvc/phoenix/site/publish/language/functions.html?rev=1618548&r1=1618547&r2=1618548&view=diff ============================================================================== --- phoenix/site/publish/language/functions.html (original) +++ phoenix/site/publish/language/functions.html Mon Aug 18 07:12:29 2014 @@ -1,129 +1,11 @@ - - - - - - - - Functions | Apache Phoenix - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-
- -
-
-
-
- + + + +Functions + + + +

Aggregate Functions

@@ -146,6 +28,12 @@ PERCENT_RANK
+ FIRST_VALUE
+ + LAST_VALUE
+ + NTH_VALUE
+ STDDEV_POP
STDDEV_SAMP
@@ -163,17 +51,23 @@ syntax-end --> MAX
MIN
- SUM
+ PERCENTILE_CONT
PERCENTILE_DISC
PERCENT_RANK
+ + FIRST_VALUE
+ + LAST_VALUE
+ NTH_VALUE
+ STDDEV_POP
STDDEV_SAMP
@@ -194,6 +88,8 @@ syntax-end --> RTRIM
+ LPAD
+ LENGTH
REGEXP_SUBSTR
@@ -223,14 +119,16 @@ syntax-end --> RTRIM
+ LPAD
+ LENGTH
REGEXP_SUBSTR
REGEXP_REPLACE
+ UPPER
- LOWER
@@ -251,6 +149,10 @@ syntax-end --> CURRENT_DATE
CURRENT_TIME
+ + CONVERT_TZ
+ + TIMEZONE_OFFSET

syntax-end --> @@ -259,12 +161,16 @@ syntax-end --> TO_DATE
- CURRENT_DATE
CURRENT_TIME
+ + CONVERT_TZ
+ + + TIMEZONE_OFFSET
@@ -313,6 +219,10 @@ syntax-end --> ARRAY_ELEM
ARRAY_LENGTH
+ + ANY
+ + ALL

syntax-end --> @@ -321,10 +231,14 @@ syntax-end --> ARRAY_ELEM
- ARRAY_LENGTH
+ + ANY
+ + ALL
+ @@ -338,6 +252,10 @@ syntax-end --> INVERT
+ ENCODE
+ + DECODE
+ COALESCE

syntax-end --> @@ -347,11 +265,15 @@ syntax-end --> MD5
- INVERT
+ ENCODE
+ + DECODE
+ + COALESCE
@@ -504,6 +426,60 @@ syntax-end -->

Example:

PERCENT_RANK( 100 ) WITHIN GROUP (ORDER BY X ASC)

+

FIRST_VALUE

+ +
+FIRST_VALUE( { expression } ) WITHIN GROUP (ORDER BY { expression } { ASC | DESC } )
+
+
+
FIRST_VALUE ( expression ) WITHIN GROUP ( ORDER BY expression
ASC
DESC
)
+
+ + +

The first value in each distinct group ordered according to the ORDER BY specification.

+

Example:

+

FIRST_VALUE( name ) WITHIN GROUP (ORDER BY salary DESC)

+ +

LAST_VALUE

+ +
+LAST_VALUE( { expression } ) WITHIN GROUP (ORDER BY { expression } { ASC | DESC } )
+
+
+
LAST_VALUE ( expression ) WITHIN GROUP ( ORDER BY expression
ASC
DESC
)
+
+ + +

The last value in each distinct group ordered according to the ORDER BY specification.

+

Example:

+

LAST_VALUE( name ) WITHIN GROUP (ORDER BY salary DESC)

+ +

NTH_VALUE

+ +
+NTH_VALUE( { expression, nthNumeric } ) WITHIN GROUP (ORDER BY { expression } { ASC | DESC } )
+
+
+
NTH_VALUE ( expression , nthNumeric ) WITHIN GROUP ( ORDER BY expression
ASC
DESC
)
+
+ + +

The nth value in each distinct group ordered according to the ORDER BY specification.

+

Example:

+

NTH_VALUE( name, 2 ) WITHIN GROUP (ORDER BY salary DESC)

+

STDDEV_POP

@@ -576,6 +552,42 @@ syntax-end -->
 

Example:

ARRAY_LENGTH(my_array_col)
ARRAY_LENGTH(ARRAY[1,2,3])

+

ANY

+ +
+ANY( arrayTerm )
+
+
+
ANY ( arrayTerm )
+
+ + +

Used on the right-hand side of a comparison expression to test that any array element satisfies the comparison expression against the left-hand side.

+

Example:

+

1 = ANY(my_array)
10 > ANY(my_array)

+ +

ALL

+ +
+ALL( arrayTerm )
+
+
+
ALL ( arrayTerm )
+
+ + +

Used on the right-hand side of a comparison expression to test that all array elements satisfy the comparison expression against the left-hand side. of the array.

+

Example:

+

1 = ALL(my_array)
10 > ALL(my_array)

+

MD5

@@ -612,6 +624,42 @@ syntax-end -->
 

Example:

INVERT(my_column)

+

ENCODE

+ +
+ENCODE( expression, 'BASE62' )
+
+
+
ENCODE ( expression , ' BASE62 ' )
+
+ + +

Encodes the expression according to the encoding format provided and returns the resulting string. For 'BASE62', converts the given base 10 number to a base 62 number and returns a string representing the number.

+

Example:

+

ENCODE(myNumber, 'BASE62')

+ +

DECODE

+ +
+DECODE( expression, 'HEX' )
+
+
+
DECODE ( expression , ' HEX ' )
+
+ + +

Decodes the expression according to the encoding format provided and returns the resulting value as a VARBINARY. For 'HEX', converts the hex string expression to its binary representation, providing a mechanism for inputting binary data through the console.

+

Example:

+

DECODE('000000008512af277ffffff8', 'HEX')

+

COALESCE

@@ -792,6 +840,24 @@ syntax-end -->
 

Example:

RTRIM('Hello   ')

+

LPAD

+ +
+LPAD( stringTerm, lengthNumeric, [padString] )
+
+ + + +

Pads the string expression with the specific pad character (space by default) up to the length argument.

+

Example:

+

LPAD('John',30)

+

LENGTH

@@ -972,188 +1038,43 @@ syntax-end -->
 

Example:

CURRENT_TIME()

+

CONVERT_TZ

+ +
+CONVERT_TZ(dateTerm|timeTerm|timestampTerm, fromTimeZoneString, toTimeZoneString)
+
+ + + +

Converts date/time from one time zone to another returning the shifted date/time value.

+

Example:

+

CONVERT_TZ(myDate, 'UTC', 'Europe/Prague')

+ +

TIMEZONE_OFFSET

+ +
+TIMEZONE_OFFSET(timeZoneString, dateTerm|timeTerm|timestampTerm)
+
+ + + +

Returns offset (shift in minutes) of a time zone at particular date/time in minutes.

+

Example:

+

TIMEZONE_OFFSET('Indian/Cocos', myDate)

+ - -
-
-
-
- -
- - - - -
-
-
-

Back to top

- -
-
-
- - - - - - - - - - - - - - - - + +