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>
32 lines
2.1 KiB
HTML
32 lines
2.1 KiB
HTML
<a name="mrs_01_1458"></a><a name="mrs_01_1458"></a>
|
|
|
|
<h1 class="topictitle1">Why Is Incorrect Output Displayed When I Perform Query with Filter on Decimal Data Type Values?</h1>
|
|
<div id="body1595920215740"><div class="section" id="mrs_01_1458__s2dae0e55679b47c39b9360ec94fd49fc"><h4 class="sectiontitle">Question</h4><p id="mrs_01_1458__afd247e99d5ab491897ae73be19ab4d35">Why is incorrect output displayed when I perform query with filter on decimal data type values?</p>
|
|
</div>
|
|
<p id="mrs_01_1458__a3c2b236508ed4443bb6a3d5c960673ef">For example:</p>
|
|
<p id="mrs_01_1458__ab51e0f9983874f99afa5a65fa8584459"><i><b><span class="cmdname" style="font-family:Arial" id="mrs_01_1458__c1c29dff083fd461c8609f1dcd1c8169d">select * from carbon_table where num = 1234567890123456.22;</span></b></i></p>
|
|
<p id="mrs_01_1458__a3ed7d55f9f764c0281172a3c5285f95c">Output:</p>
|
|
<pre class="screen" id="mrs_01_1458__s1671349e190c493ea4f7b451ea952dbe">+------+---------------------+--+
|
|
| name | num |
|
|
+------+---------------------+--+
|
|
| IAA | 1234567890123456.22 |
|
|
| IAA | 1234567890123456.21 |
|
|
+------+---------------------+--+</pre>
|
|
<div class="section" id="mrs_01_1458__s75efaeea13f843d8b01749ff3be9b21f"><h4 class="sectiontitle">Answer</h4><p id="mrs_01_1458__a374278828a2d462db71a30b8c85fccb9">To obtain accurate output, append BD to the number.</p>
|
|
</div>
|
|
<p id="mrs_01_1458__a63b29985af924a21b8ebad41f2dc0ce4">For example:</p>
|
|
<p id="mrs_01_1458__aaeb6936540d94ae588da0e60fc4dc280"><i><b><span class="cmdname" style="font-family:Arial" id="mrs_01_1458__c3e062d4148734b879188145c238ede1e">select * from carbon_table where num = 1234567890123456.22BD;</span></b></i></p>
|
|
<p id="mrs_01_1458__a06f2948173fb4662ada2101639692e36">Output:</p>
|
|
<pre class="screen" id="mrs_01_1458__s0eb21d6ad3234b70b9f1c3acd790af29">+------+---------------------+--+
|
|
| name | num |
|
|
+------+---------------------+--+
|
|
| IAA | 1234567890123456.22 |
|
|
+------+---------------------+--+</pre>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1457.html">CarbonData FAQ</a></div>
|
|
</div>
|
|
</div>
|
|
|