forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
63 lines
6.4 KiB
HTML
63 lines
6.4 KiB
HTML
<a name="mrs_01_0387"></a><a name="mrs_01_0387"></a>
|
|
|
|
<h1 class="topictitle1">About CarbonData Table</h1>
|
|
<div id="body1589421630481"><div class="section" id="mrs_01_0387__s37a167cf46534a5c86a6dd255f507313"><h4 class="sectiontitle">Description</h4><p id="mrs_01_0387__aa7618ed863604f33a193fbf748cc268d">CarbonData tables are similar to tables in the relational database management system (RDBMS). RDBMS tables consist of rows and columns to store data. CarbonData tables have fixed columns and also store structured data. In CarbonData, data is saved in entity files.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_0387__s4d42c16cf1b345998429c2d60187f61b"><h4 class="sectiontitle">Supported Data Types</h4><p id="mrs_01_0387__a9444d553624c4f8392f1a991ed51198d">CarbonData tables support the following data types:</p>
|
|
<ul id="mrs_01_0387__ua24b2111a80c4c5c9d357e46852c995d"><li id="mrs_01_0387__l1dd0de74010d4c80987f469257e7c53f">Int</li><li id="mrs_01_0387__l7ac79c72232b41e1b8100a99d95f0f83">String</li><li id="mrs_01_0387__l2daff01225a14d6386d6133e7275439e">BigInt</li><li id="mrs_01_0387__l2a53145b90a14ff1875d6d241dbdcaf1">Decimal</li><li id="mrs_01_0387__le6fb613c848c49e9aa8758af3953a591">Double</li><li id="mrs_01_0387__laea0184b92c54a82b0de2d365be9db83">TimeStamp</li></ul>
|
|
<p id="mrs_01_0387__acbc15142c35d4048bd955222e5227cf6"><a href="#mrs_01_0387__te1b84a2aca034e4b9e5745ab6b7bb9fd">Table 1</a> describes the details about each data type.</p>
|
|
|
|
<div class="tablenoborder"><a name="mrs_01_0387__te1b84a2aca034e4b9e5745ab6b7bb9fd"></a><a name="te1b84a2aca034e4b9e5745ab6b7bb9fd"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_0387__te1b84a2aca034e4b9e5745ab6b7bb9fd" frame="border" border="1" rules="all"><caption><b>Table 1 </b>CarbonData data types</caption><thead align="left"><tr id="mrs_01_0387__rd3b328e62f2b4310bdef2241311e9aa0"><th align="left" class="cellrowborder" valign="top" width="17.86%" id="mcps1.3.2.5.2.3.1.1"><p id="mrs_01_0387__aa28d1893b34e4eeaa48df18792631a86"><strong id="mrs_01_0387__aff01f97dda44406f8696dc16db9755e6">Data Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="82.14%" id="mcps1.3.2.5.2.3.1.2"><p id="mrs_01_0387__a85bfd0562b2c48eb908159085edc4b2a"><strong id="mrs_01_0387__acd837afd6a894dd38c2ed5b84054fce9">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_0387__r6ac513fe3c1349d09bd26a5604c5590f"><td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.2.5.2.3.1.1 "><p id="mrs_01_0387__a642277b4335e4f58a093239a03c99faf">Int</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="82.14%" headers="mcps1.3.2.5.2.3.1.2 "><p id="mrs_01_0387__a3b30403f1eed4272ae1aa9b51c59bc0d">4-byte signed integer ranging from -2,147,483,648 to 2,147,483,647</p>
|
|
<div class="note" id="mrs_01_0387__n7445349efce143f592b2cad98a229a5d"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="mrs_01_0387__a6dbea4c08bf24cda85f5f62fd0ab8fab">If a non-dictionary column is of the <strong id="mrs_01_0387__b186492030143212">int</strong> data type, it is internally stored as the <strong id="mrs_01_0387__b1611564011324">BigInt</strong> type.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0387__r6177c2e01b704ce294126970975cbc43"><td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.2.5.2.3.1.1 "><p id="mrs_01_0387__afeec3c1fd2ac4c84a7395cbb42ead7fc">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="82.14%" headers="mcps1.3.2.5.2.3.1.2 "><p id="mrs_01_0387__a626dbc69aee1459aa9507338092e25c9">The maximum character string length is 100000.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0387__r5ead914fca4b4de596d27b0f4b64e174"><td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.2.5.2.3.1.1 "><p id="mrs_01_0387__ae0a25f8a623d4deb989d6d0c3028f4a3">BigInt</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="82.14%" headers="mcps1.3.2.5.2.3.1.2 "><p id="mrs_01_0387__a07346125300442148b45db0c18bd69d2">Data is saved using the 64-bit technology. The value ranges from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0387__rdda503697b19495198c30c8e0c627b4d"><td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.2.5.2.3.1.1 "><p id="mrs_01_0387__acf6443d6bd224c5fb89c21f31604eb7d">Decimal</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="82.14%" headers="mcps1.3.2.5.2.3.1.2 "><p id="mrs_01_0387__ad46da508c383488e84664641e9f4aa84">The default value is (10,0) and maximum value is (38,38).</p>
|
|
<div class="note" id="mrs_01_0387__ne391f81fa0dd4db2a99fe35ca38fab0f"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="mrs_01_0387__a33e816c61afc446dbce30490a9e9411c">When query with filters, append <strong id="mrs_01_0387__b20529643410044">BD</strong> to the number to achieve accurate results. For example, <strong id="mrs_01_0387__abaac208bb93d4b05b7a8c9ee5b433c70">select * from carbon_table where num = 1234567890123456.22BD</strong>.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0387__r1cdaa25b579b49f085957a2c9f17f0b6"><td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.2.5.2.3.1.1 "><p id="mrs_01_0387__a16752fb94c3e43c1a1689edc2a13b61d">Double</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="82.14%" headers="mcps1.3.2.5.2.3.1.2 "><p id="mrs_01_0387__a1d8592a7fa244b05851f90de48955904">Data is saved using the 64-bit technology. The value ranges from 4.9E-324 to 1.7976931348623157E308.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0387__rd79a0af8d043482792b8cea697ace2f5"><td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.2.5.2.3.1.1 "><p id="mrs_01_0387__acbdeefa77b3a466cae261d060f709cd7">TimeStamp</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="82.14%" headers="mcps1.3.2.5.2.3.1.2 "><p id="mrs_01_0387__a92b5ac6157034199bdd2ae14ebb79a93"><strong id="mrs_01_0387__b842352706105311">yyyy-MM-dd HH:mm:ss</strong> format is used by default.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="note" id="mrs_01_0387__n129762786c3d49f59245b46966f36f30"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_0387__ac432d51896564b829c391641b03c2d6a">Measurement of all Integer data is processed and displayed using the <strong id="mrs_01_0387__b83744150341">BigInt</strong> data type.</p>
|
|
</div></div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_0385.html">Using CarbonData (for Versions Earlier Than MRS 3.x)</a></div>
|
|
</div>
|
|
</div>
|
|
|