You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by je...@apache.org on 2015/02/25 23:38:29 UTC

svn commit: r1662319 - in /phoenix: phoenix-docs/src/docsrc/help/phoenix.csv site/publish/language/datatypes.html

Author: jeffreyz
Date: Wed Feb 25 22:38:29 2015
New Revision: 1662319

URL: http://svn.apache.org/r1662319
Log:
PHOENIX-1685 Update decimal datatype documentation to explicitly indicates a user can specify precision & scale

Modified:
    phoenix/phoenix-docs/src/docsrc/help/phoenix.csv
    phoenix/site/publish/language/datatypes.html

Modified: phoenix/phoenix-docs/src/docsrc/help/phoenix.csv
URL: http://svn.apache.org/viewvc/phoenix/phoenix-docs/src/docsrc/help/phoenix.csv?rev=1662319&r1=1662318&r2=1662319&view=diff
==============================================================================
--- phoenix/phoenix-docs/src/docsrc/help/phoenix.csv (original)
+++ phoenix/phoenix-docs/src/docsrc/help/phoenix.csv Wed Feb 25 22:38:29 2015
@@ -981,8 +981,8 @@ UNSIGNED_DOUBLE
 "Data Types","DECIMAL Type","
 DECIMAL
 ","
-Data type with fixed precision and scale. The maximum precision is 38 digits.
-Mapped to ""java.math.BigDecimal"". The binary representation is binary
+Data type with fixed precision and scale. A user can specify precision and scale by expression DECIMAL(precision,scale) in a DDL statement, for example, DECIMAL(10,2).
+The maximum precision is 38 digits. Mapped to ""java.math.BigDecimal"". The binary representation is binary
 comparable, variable length format. When used in a row key, it is terminated
 with a null byte unless it is the last column.
 ","

Modified: phoenix/site/publish/language/datatypes.html
URL: http://svn.apache.org/viewvc/phoenix/site/publish/language/datatypes.html?rev=1662319&r1=1662318&r2=1662319&view=diff
==============================================================================
--- phoenix/site/publish/language/datatypes.html (original)
+++ phoenix/site/publish/language/datatypes.html Wed Feb 25 22:38:29 2015
@@ -478,7 +478,7 @@ DECIMAL
 DECIMAL
 </pre>
 syntax-end -->
-<p>Data type with fixed precision and scale. The maximum precision is 38 digits. Mapped to <code>java.math.BigDecimal</code>. The binary representation is binary comparable, variable length format. When used in a row key, it is terminated with a null byte unless it is the last column.</p>
+<p>Data type with fixed precision and scale. A user can specify precision and scale by expression <code>DECIMAL</code>(precision,scale) in a <code>DDL</code> statement, for example, <code>DECIMAL</code>(10,2). The maximum precision is 38 digits. Mapped to <code>java.math.BigDecimal</code>. The binary representation is binary comparable, variable length format. When used in a row key, it is terminated with a null byte unless it is the last column.</p>
 <p>Example:</p>
 <p class="notranslate">DECIMAL</p>