doc-exports/docs/dws/dev/dws_04_0931.html
Lu, Huayi ef0ada5a59 DWS DEV 20240716 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-11-02 09:07:47 +00:00

1127 lines
149 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<a name="EN-US_TOPIC_0000001510522261"></a><a name="EN-US_TOPIC_0000001510522261"></a>
<h1 class="topictitle1">Platform and Client Compatibility</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001510522261__en-us_topic_0059779195_p530012210918">Database systems are widely used across many platforms, and their external compatibility offers a great deal of convenience.</p>
<div class="section" id="EN-US_TOPIC_0000001510522261__s465b1881b33b48779cd75f1e0157ed04"><h4 class="sectiontitle">transform_null_equals</h4><p id="EN-US_TOPIC_0000001510522261__a0fa0671c479f4f5283aef12a32f6caee"><strong id="EN-US_TOPIC_0000001510522261__en-us_topic_0059779195_en-us_topic_0058967662_b57839303">Parameter description</strong>: Determines whether expressions of the form expr = NULL (or NULL = expr) are treated as expr IS NULL. They return true if expr evaluates to <strong id="EN-US_TOPIC_0000001510522261__b1050594414610">NULL</strong>, and false otherwise.</p>
<ul id="EN-US_TOPIC_0000001510522261__u7e211590a3d6447c8dc67e1ff8d52645"><li id="EN-US_TOPIC_0000001510522261__lda1f58bf407243a9be3dec57e686ecd9">The correct SQL-standard-compliant behavior of expr = NULL is to always return null (unknown).</li><li id="EN-US_TOPIC_0000001510522261__la8d4f39991e14533abcb88ecc31c5231">Filtered forms in Microsoft Access generate queries that appear to use expr = NULL to test for null values. If you turn this option on, you can use this interface to access the database.</li></ul>
<p id="EN-US_TOPIC_0000001510522261__p492024913111"><strong id="EN-US_TOPIC_0000001510522261__b9103194032714">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001510522261__aa966be2f0f3041cebe5007536c305b50"><strong id="EN-US_TOPIC_0000001510522261__en-us_topic_0059779195_en-us_topic_0058967662_b9110456">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001510522261__uff36d86872544950b54cc0b4a7befcd1"><li id="EN-US_TOPIC_0000001510522261__lf9f2e54fc4de40ddb3b0231e0c79e478"><strong id="EN-US_TOPIC_0000001510522261__b84235270618506">on</strong> indicates expressions of the form expr = NULL (or NULL = expr) are treated as expr IS NULL.</li><li id="EN-US_TOPIC_0000001510522261__l60697a10ff1b435fa06d4aba7f4e2fbd"><strong id="EN-US_TOPIC_0000001510522261__b842352706185024">off</strong> indicates expr = NULL always returns NULL.</li></ul>
<p id="EN-US_TOPIC_0000001510522261__a0cdc12756eef44f58f5af3d2dfaaa85c"><strong id="EN-US_TOPIC_0000001510522261__b0197192335114">Default value</strong>: <strong id="EN-US_TOPIC_0000001510522261__b7198112395112">off</strong></p>
<div class="note" id="EN-US_TOPIC_0000001510522261__note1640115117223"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001510522261__p194016512225">New users are always confused about the semantics of expressions involving <strong id="EN-US_TOPIC_0000001510522261__b1927919414521">NULL</strong> values. Therefore, <strong id="EN-US_TOPIC_0000001510522261__b14207825165114">off</strong> is used as the default value.</p>
</div></div>
</div>
<div class="section" id="EN-US_TOPIC_0000001510522261__s8f140de59591465d93205f2b55cbbf97"><h4 class="sectiontitle">td_compatible_truncation</h4><p id="EN-US_TOPIC_0000001510522261__a73c968a2349d4b43b0a31081276b1d40"><strong id="EN-US_TOPIC_0000001510522261__en-us_topic_0059779195_ad1519c7350894050b41766ffadb349e9">Parameter description</strong>: Determines whether to enable features compatible with a Teradata database. You can set this parameter to <strong id="EN-US_TOPIC_0000001510522261__b84235270693039">on</strong> when connecting to a database compatible with the Teradata database, so that when you perform the INSERT operation, overlong strings are truncated based on the allowed maximum length before being inserted into char- and varchar-type columns in the target table. This ensures all data is inserted into the target table without errors reported.</p>
<div class="note" id="EN-US_TOPIC_0000001510522261__ne10d54ac562b4e8da4eb8a4c397413b1"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001510522261__ul148861376132"><li id="EN-US_TOPIC_0000001510522261__li48861437161312">The string truncation function cannot be used if the <strong id="EN-US_TOPIC_0000001510522261__b84235270615747">INSERT</strong> statement includes a foreign table.</li><li id="EN-US_TOPIC_0000001510522261__li9886123701317">If inserting multi-byte character data (such as Chinese characters) to database with the character set byte encoding (SQL_ASCII, LATIN1), and the character data crosses the truncation position, the string is truncated based on its bytes instead of characters. Unexpected result will occur in tail after the truncation. If you want correct truncation result, you are advised to adopt encoding set such as UTF8, which has no character data crossing the truncation position.</li></ul>
</div></div>
<p id="EN-US_TOPIC_0000001510522261__p1970111811131"><strong id="EN-US_TOPIC_0000001510522261__b897315536272">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001510522261__acf442b11d2384499baa27959e961d122"><strong id="EN-US_TOPIC_0000001510522261__en-us_topic_0059779195_ad30c759dbc054219938f1769e85d4ef6">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001510522261__u0c1e022745b04dc4a513bd312bfa9057"><li id="EN-US_TOPIC_0000001510522261__lf704409cd1b14a08be610ed1088a6556"><strong id="EN-US_TOPIC_0000001510522261__b8423527069403">on</strong> indicates overlong strings are truncated.</li><li id="EN-US_TOPIC_0000001510522261__le3a3106edd564327a122e2147ff7460c"><strong id="EN-US_TOPIC_0000001510522261__b84235270694016">off</strong> indicates overlong strings are not truncated.</li></ul>
<p id="EN-US_TOPIC_0000001510522261__a0ff0cda68a844c3599bcd14b9b5bd3ad"><strong id="EN-US_TOPIC_0000001510522261__b709721779">Default value</strong>: <strong id="EN-US_TOPIC_0000001510522261__b1027872987">off</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001510522261__section1980124735516"><a name="EN-US_TOPIC_0000001510522261__section1980124735516"></a><a name="section1980124735516"></a><h4 class="sectiontitle">behavior_compat_options</h4><p id="EN-US_TOPIC_0000001510522261__p13165133175914"><strong id="EN-US_TOPIC_0000001510522261__b11165173205911">Parameter description</strong>: Specifies database compatibility behavior. Multiple items are separated by commas (,).</p>
<p id="EN-US_TOPIC_0000001510522261__p15381657181413"><strong id="EN-US_TOPIC_0000001510522261__b607871965">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001510522261__p1321515556296"><strong id="EN-US_TOPIC_0000001510522261__b192166552294">Value range</strong>: a string</p>
<p id="EN-US_TOPIC_0000001510522261__p021715572919"><strong id="EN-US_TOPIC_0000001510522261__b2626152462315">Default value</strong>: In upgrade scenarios, the default value of this parameter is the same as that in the cluster before the upgrade. When a new cluster is installed, the default value of this parameter is <strong id="EN-US_TOPIC_0000001510522261__b17896531172314">check_function_conflicts</strong> to prevent serious problems caused by incorrect function attributes defined by users.</p>
<div class="note" id="EN-US_TOPIC_0000001510522261__n1b4fe0be7f3940b0ac755e711dc456d7"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001510522261__ul8436164984013"><li id="EN-US_TOPIC_0000001510522261__li66662166472">Currently, only items listed in <a href="#EN-US_TOPIC_0000001510522261__table182861153114812">Table 1</a> are supported.</li><li id="EN-US_TOPIC_0000001510522261__li73919863014">Multiple items are separated by commas (,), for example, <strong id="EN-US_TOPIC_0000001510522261__b81388308244">set behavior_compat_options='end_month_calculate,display_leading_zero';</strong>.</li><li id="EN-US_TOPIC_0000001510522261__li117418359161"><strong id="EN-US_TOPIC_0000001510522261__b1112143812419">strict_concat_functions</strong> and <strong id="EN-US_TOPIC_0000001510522261__b212217385246">strict_text_concat_td</strong> are mutually exclusive.</li></ul>
</div></div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001510522261__table182861153114812"></a><a name="table182861153114812"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001510522261__table182861153114812" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Compatibility configuration items</caption><thead align="left"><tr id="EN-US_TOPIC_0000001510522261__row1128619535483"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.1"><p id="EN-US_TOPIC_0000001510522261__p192861053194814"><strong id="EN-US_TOPIC_0000001510522261__b2762515242">Configuration Item</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="59.95%" id="mcps1.3.4.7.2.4.1.2"><p id="EN-US_TOPIC_0000001510522261__p10286553144814"><strong id="EN-US_TOPIC_0000001510522261__b67901454172415">Behavior</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.049999999999999%" id="mcps1.3.4.7.2.4.1.3"><p id="EN-US_TOPIC_0000001510522261__p178834429141"><strong id="EN-US_TOPIC_0000001510522261__b1846716582245">Applicable Compatibility Mode</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001510522261__row2028605318483"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p152861153174819">display_leading_zero</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p192848725515">Specifies how floating point numbers are displayed.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul11299194763811"><li id="EN-US_TOPIC_0000001510522261__li3299204710383">If this item is not specified, for a decimal number between 1 and 1, the 0 before the decimal point is not displayed. For example, 0.25 is displayed as <strong id="EN-US_TOPIC_0000001510522261__b209540639311017">.25</strong>.</li><li id="EN-US_TOPIC_0000001510522261__li92991747133819">If this item is specified, for a decimal number between 1 and 1, the 0 before the decimal point is displayed. For example, 0.25 is displayed as <strong id="EN-US_TOPIC_0000001510522261__b201802909711017">0.25</strong>.</li></ul>
<div class="p" id="EN-US_TOPIC_0000001510522261__p10271150165614">For example, during data migration, if this parameter is not set during data import, when floating numbers are displayed or converted to strings, the leading zeros of the floating point numbers are omitted, causing an error message like this:<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510522261__screen6864205810551"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span></pre></div></td><td class="code"><div><pre><span></span><span class="n">ERROR</span><span class="p">:</span><span class="w"> </span><span class="n">xxx</span><span class="w"> </span><span class="n">invalid</span><span class="w"> </span><span class="k">input</span><span class="w"> </span><span class="n">syntax</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="k">type</span><span class="w"> </span><span class="n">xxx</span>
<span class="n">DETAIL</span><span class="p">:</span><span class="w"> </span><span class="n">Token</span><span class="w"> </span><span class="ss">&quot;.&quot;</span><span class="w"> </span><span class="k">is</span><span class="w"> </span><span class="n">invalid</span>
</pre></div></td></tr></table></div>
</div>
</div>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p1488364210146">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p12331564155">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row14286165319484"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p15286253134812">end_month_calculate</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p12991318145719">Specifies the calculation logic of the add_months function.</p>
<p id="EN-US_TOPIC_0000001510522261__p43715241715">Assuming that the two parameters of the <strong id="EN-US_TOPIC_0000001510522261__b761284432514">add_months</strong> function are <strong id="EN-US_TOPIC_0000001510522261__b1661264411251">param1</strong> and <strong id="EN-US_TOPIC_0000001510522261__b11612144442518">param2</strong>, and the sum of the months of <strong id="EN-US_TOPIC_0000001510522261__b2613124417251">param1</strong> and <strong id="EN-US_TOPIC_0000001510522261__b13613944102516">param2</strong> is <strong id="EN-US_TOPIC_0000001510522261__b1613104482515">result</strong>:</p>
<ul id="EN-US_TOPIC_0000001510522261__ul69601452123815"><li id="EN-US_TOPIC_0000001510522261__li6960552203818">If this item is not specified, and the <strong id="EN-US_TOPIC_0000001510522261__b1773335217257">Day</strong> of <strong id="EN-US_TOPIC_0000001510522261__b8733205222510">param1</strong> indicates the last day of a month shorter than <strong id="EN-US_TOPIC_0000001510522261__b3734155212510">result</strong>, the <strong id="EN-US_TOPIC_0000001510522261__b11734175217250">Day</strong> in the calculation result will equal that in <strong id="EN-US_TOPIC_0000001510522261__b773435292510">param1</strong>. The following is an example:</li></ul>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510522261__screen568916248386"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span>
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">select</span><span class="w"> </span><span class="n">add_months</span><span class="p">(</span><span class="s1">'2018-02-28'</span><span class="p">,</span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="k">from</span><span class="w"> </span><span class="n">dual</span><span class="p">;</span>
<span class="n">add_months</span>
<span class="c1">---------------------</span>
<span class="mi">2018</span><span class="o">-</span><span class="mi">05</span><span class="o">-</span><span class="mi">28</span><span class="w"> </span><span class="mi">00</span><span class="p">:</span><span class="mi">00</span><span class="p">:</span><span class="mi">00</span>
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
<ul id="EN-US_TOPIC_0000001510522261__ul165115579383"><li id="EN-US_TOPIC_0000001510522261__li1365110578389">If this item is specified, and the <strong id="EN-US_TOPIC_0000001510522261__b842251611263">Day</strong> of <strong id="EN-US_TOPIC_0000001510522261__b1942371642613">param1</strong> indicates the last day of a month shorter than <strong id="EN-US_TOPIC_0000001510522261__b5423101652617">result</strong>, the <strong id="EN-US_TOPIC_0000001510522261__b1342351642619">Day</strong> in the calculation result will equal that in <strong id="EN-US_TOPIC_0000001510522261__b842331652619">result</strong>. The following is an example:</li></ul>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510522261__screen45031931103816"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span>
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">select</span><span class="w"> </span><span class="n">add_months</span><span class="p">(</span><span class="s1">'2018-02-28'</span><span class="p">,</span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="k">from</span><span class="w"> </span><span class="n">dual</span><span class="p">;</span>
<span class="n">add_months</span>
<span class="c1">---------------------</span>
<span class="mi">2018</span><span class="o">-</span><span class="mi">05</span><span class="o">-</span><span class="mi">31</span><span class="w"> </span><span class="mi">00</span><span class="p">:</span><span class="mi">00</span><span class="p">:</span><span class="mi">00</span>
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p688311420141">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p108501718171617">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row528635394812"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p128618539487">compat_analyze_sample</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p828635304814">Specifies the sampling behavior of the ANALYZE operation.</p>
<p id="EN-US_TOPIC_0000001510522261__p108691828173114">If this item is specified, the sample collected by the ANALYZE operation will be limited to around 30,000 records, controlling CN memory consumption and maintaining the stability of ANALYZE.</p>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p1288314213141">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p16314015165">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p423764414166">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row84793168551"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p7480171620559">bind_schema_tablespace</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p7391102013556">Binds a schema with the tablespace with the same name.</p>
<p id="EN-US_TOPIC_0000001510522261__p164801516195514">If a tablespace name is the same as <em id="EN-US_TOPIC_0000001510522261__i1976925279">sche_name</em>, <strong id="EN-US_TOPIC_0000001510522261__b13977112172716">default_tablespace</strong> will also be set to <em id="EN-US_TOPIC_0000001510522261__i15977152182711">sche_name</em> if <strong id="EN-US_TOPIC_0000001510522261__b59771220270">search_path</strong> is set to <em id="EN-US_TOPIC_0000001510522261__i1977112122719">sche_name</em>.</p>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p188311421147">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p1765425551711">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p465495561712">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row104641129185511"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p4465122914550">bind_procedure_searchpath</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p195111830125718">Specifies the search path of the database object for which no schema name is specified.</p>
<p id="EN-US_TOPIC_0000001510522261__p12261948214">If no schema name is specified for a stored procedure, the search is performed in the schema the stored procedure belongs to.</p>
<p id="EN-US_TOPIC_0000001510522261__p716129629">If the stored procedure is not found, the following operations are performed:</p>
<ul id="EN-US_TOPIC_0000001510522261__ul7861812102420"><li id="EN-US_TOPIC_0000001510522261__li78617127245">If this item is not specified, the system reports an error and exits.</li><li id="EN-US_TOPIC_0000001510522261__li3861512172411">If this item is specified, the search continues based on the settings of <strong id="EN-US_TOPIC_0000001510522261__b128451314103820">search_path</strong>. If the issue persists, the system reports an error and exits.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p12884144214149">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p1991386171813">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p19132631815">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row24411166214"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p20442166924">correct_to_number</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p13214155316919">Controls the compatibility of the <strong id="EN-US_TOPIC_0000001510522261__b29261326123815">to_number()</strong> result.</p>
<p id="EN-US_TOPIC_0000001510522261__p104421662219">If this item is specified, the result of the <strong id="EN-US_TOPIC_0000001510522261__b16439193811382">to_number()</strong> function is the same as that of PG11. Otherwise, the result is the same as that of Oracle.</p>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p7884124271420">ORA</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row789175471518"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p1289114540156">unbind_divide_bound</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p88921554101510">Controls the range check on the result of integer division.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul9514164310"><li id="EN-US_TOPIC_0000001510522261__li3517174310">If this item is not specified, the division result is checked. If the result is out of the range, an error is reported. In the following example, an out-of-range error is reported because the value of <strong id="EN-US_TOPIC_0000001510522261__b17229454163810">INT_MIN/(-1)</strong> is greater than the value of <strong id="EN-US_TOPIC_0000001510522261__b1922916549387">INT_MAX</strong>.</li></ul>
<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen1936029103116"><span id="EN-US_TOPIC_0000001510522261__text11937172915317"></span>SELECT (-2147483648)::int / (-1)::int;
ERROR: integer out of range</pre>
<ul id="EN-US_TOPIC_0000001510522261__ul17302829104411"><li id="EN-US_TOPIC_0000001510522261__li1330218293449">If this item is specified, the range of the division result does not need to be checked. In the following example, <strong id="EN-US_TOPIC_0000001510522261__b23445713391">INT_MIN/(-1)</strong> can be used to obtain the output result <strong id="EN-US_TOPIC_0000001510522261__b734437153919">INT_MAX+1</strong>.</li></ul>
<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen1937929113113"><span id="EN-US_TOPIC_0000001510522261__text15937162923118"></span>SELECT (-2147483648)::int / (-1)::int;
?column?
------------
2147483648
(1 row)</pre>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p988484219143">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p9235131141810">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row482471810177"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p188261018181719">merge_update_multi</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p1182614187179">Specifies whether to perform an update when <strong id="EN-US_TOPIC_0000001510522261__b84451612143910">MERGE INTO</strong> is executed to match multiple rows.</p>
<p id="EN-US_TOPIC_0000001510522261__p185787144214">If this item is specified, no error is reported when multiple rows are matched. Otherwise, an error is reported (same as Oracle).</p>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p1488464241416">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p159815419181">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row335897172210"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p193597711223">disable_row_update_multi</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p53595742212">Specifies whether to perform an update when multiple rows of a row-store table are matched.</p>
<p id="EN-US_TOPIC_0000001510522261__p1088124714227">If this item is specified, an error is reported when multiple rows are matched. Otherwise, multiple rows can be matched and updated by default.</p>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p13359776224">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p230115818230">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row648032118477"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p16481102116476">return_null_string</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p162371248164218">Specifies how to display the empty result (empty string '') of the <strong id="EN-US_TOPIC_0000001510522261__b458413333399">lpad()</strong>, <strong id="EN-US_TOPIC_0000001510522261__b1958563310397">rpad()</strong>, <strong id="EN-US_TOPIC_0000001510522261__b858513393913">repeat()</strong>, <strong id="EN-US_TOPIC_0000001510522261__b7585233103911">regexp_split_to_table()</strong>, and <strong id="EN-US_TOPIC_0000001510522261__b17585833133911">split_part()</strong> functions.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul828544001313"><li id="EN-US_TOPIC_0000001510522261__li14484281466">If this item is not specified, the empty string is displayed as <strong id="EN-US_TOPIC_0000001510522261__b4617154913915">NULL</strong>.</li></ul>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510522261__screen17865171482915"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span>
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">select</span><span class="w"> </span><span class="k">length</span><span class="p">(</span><span class="n">lpad</span><span class="p">(</span><span class="s1">'123'</span><span class="p">,</span><span class="mi">0</span><span class="p">,</span><span class="s1">'*'</span><span class="p">))</span><span class="w"> </span><span class="k">from</span><span class="w"> </span><span class="n">dual</span><span class="p">;</span>
<span class="k">length</span>
<span class="c1">--------</span>
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
<ul id="EN-US_TOPIC_0000001510522261__ul75590181418"><li id="EN-US_TOPIC_0000001510522261__li8559201191418">If this item is specified, the empty string is displayed as single quotation marks ('').</li></ul>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510522261__screen104295208294"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span>
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">select</span><span class="w"> </span><span class="k">length</span><span class="p">(</span><span class="n">lpad</span><span class="p">(</span><span class="s1">'123'</span><span class="p">,</span><span class="mi">0</span><span class="p">,</span><span class="s1">'*'</span><span class="p">))</span><span class="w"> </span><span class="k">from</span><span class="w"> </span><span class="n">dual</span><span class="p">;</span>
<span class="k">length</span>
<span class="c1">--------</span>
<span class="mi">0</span>
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p388464271415">ORA</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row1255211543476"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p19552125434713">compat_concat_variadic</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p15521954134717">Specifies the compatibility of variadic results of the <strong id="EN-US_TOPIC_0000001510522261__b1773110855313">concat()</strong> and <strong id="EN-US_TOPIC_0000001510522261__b18731128175315">concat_ws()</strong> functions.</p>
<p id="EN-US_TOPIC_0000001510522261__p1060812139425">If this item is specified and a <strong id="EN-US_TOPIC_0000001510522261__b866819154539">concat</strong> function has a parameter of the <strong id="EN-US_TOPIC_0000001510522261__b1966821516535">variadic</strong> type, different result formats in Oracle and Teradata are retained. If this item is not specified and a <strong id="EN-US_TOPIC_0000001510522261__b156681515135312">concat</strong> function has a parameter of the <strong id="EN-US_TOPIC_0000001510522261__b1966819155535">variadic</strong> type, the result format of Oracle is retained for both Oracle and Teradata.</p>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p188847426140">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p2070219931916">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row354815251562"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p145489251764">convert_string_digit_to_numeric</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p65481251568">Specifies the type casting priority for binary BOOL operations on the CHAR type and INT type.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul6547658121018"><li id="EN-US_TOPIC_0000001510522261__li95471758101014">If this item is not specified, the type casting priority is the same as that of PG9.6.</li><li id="EN-US_TOPIC_0000001510522261__li75397325428">After this item is configured, all binary BOOL operations of the CHAR type and INT type are forcibly converted to the NUMERIC type for computation.<p id="EN-US_TOPIC_0000001510522261__p05641332427"><a name="EN-US_TOPIC_0000001510522261__li75397325428"></a><a name="li75397325428"></a>After this configuration item is set, the CHAR types that are affected include BPCHAR, VARCHAR, NVARCHAR2, and TEXT, and the INT types that are affected include INT1, INT2, INT4, and INT8.</p>
</li></ul>
<div class="caution" id="EN-US_TOPIC_0000001510522261__note739001353612"><span class="cautiontitle"> CAUTION: </span><div class="cautionbody"><p id="EN-US_TOPIC_0000001510522261__p193901413163619">This configuration item is valid only for binary BOOL operation, for example, <strong id="EN-US_TOPIC_0000001510522261__b1883317474537">INT2&gt;TEXT</strong> and <strong id="EN-US_TOPIC_0000001510522261__b883314718539">INT4=BPCHAR</strong>. Non-BOOL operation is not affected. This configuration item does not support conversion of UNKNOWN operations such as <strong id="EN-US_TOPIC_0000001510522261__b17833547145320">INT&gt;'1.1'</strong>. After this configuration item is enabled, all BOOL operations of the CHAR and INT types are preferentially converted to the NUMERIC type for computation, which affects the computation performance of the database. When the JOIN column is a combination of affected types, the execution plan is affected.</p>
</div></div>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p192122911919">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p208842421146">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p165239353213">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row39091152163412"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p053818873311">check_function_conflicts</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p1053811811336">Controls the check of the custom <strong id="EN-US_TOPIC_0000001510522261__b149711582539">plpgsql/SQL</strong> function attributes.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul412081553417"><li id="EN-US_TOPIC_0000001510522261__li171208151345">If this parameter is not specified, the <strong id="EN-US_TOPIC_0000001510522261__b217163105410">IMMUTABLE/STABLE/VOLATILE</strong> attributes of a custom function are not checked.</li><li id="EN-US_TOPIC_0000001510522261__li20102194924016">If this parameter is specified, the IMMUTABLE attribute of a custom function is checked. If the function contains a table or the <strong id="EN-US_TOPIC_0000001510522261__b1965157105418">STABLE/VOLATILE</strong> function, an error is reported during the function execution. In a custom function, a table or the <strong id="EN-US_TOPIC_0000001510522261__b2913250546">STABLE/VOLATILE</strong> function conflicts with the IMMUTABLE attribute, thus function behaviors are not IMMUTABLE in this case.</li></ul>
<p id="EN-US_TOPIC_0000001510522261__p17816175118402">For example, when this parameter is specified, an error is reported in the following scenarios:</p>
<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen2082242254018"><span id="EN-US_TOPIC_0000001510522261__text07891442104016"></span>CREATE OR replace FUNCTION sql_immutable (INTEGER)
RETURNS INTEGER AS 'SELECT a+$1 from shipping_schema.t4 where a=1;'
LANGUAGE SQL IMMUTABLE
RETURNS NULL
ON NULL INPUT;
select sql_immutable(1);
ERROR: IMMUTABLE function cannot contain SQL statements with relation or Non-IMMUTABLE function.
CONTEXT: SQL function "sql_immutable" during startup
referenced column: sql_immutable</pre>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p988464241420">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p775273951912">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p16600134241917">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row7925175463114"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p1044110536318">varray_verification</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p116759441535">Indicates whether to verify the array length and array type length. This parameter is compatible with <span id="EN-US_TOPIC_0000001510522261__text1866914035415">GaussDB(DWS)</span> of versions earlier than 8.1.0.</p>
<p id="EN-US_TOPIC_0000001510522261__p8616109164116">If this parameter is specified, the array length and array type length are not verified.</p>
<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen29944493612">Scenario 1
<span id="EN-US_TOPIC_0000001510522261__text699420493618"></span>CREATE OR REPLACE PROCEDURE varray_verification
AS
TYPE org_varray_type IS varray(5) OF VARCHAR2(2);
v_org_varray org_varray_type;
BEGIN
v_org_varray(1) := '111'; --If the value exceeds the limit of <strong id="EN-US_TOPIC_0000001510522261__b28730341644">VARCHAR2(2)</strong>, the setting will be consistent with that in the historical version and no verification is performed after configuring this option.
END;
/
Scenario 2
CREATE OR REPLACE PROCEDURE varray_verification_i3_1
AS
TYPE org_varray_type IS varray(2) OF NUMBER(2);
v_org_varray org_varray_type;
BEGIN
v_org_varray(3) := 1; --If the value exceeds the limit of <strong id="EN-US_TOPIC_0000001510522261__b17399114710414">varray(2)</strong> specified for array length, the setting will be consistent with that in the historical version and no verification is performed after configuring this option.
END;
/ </pre>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p16884144281417">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p450865911198">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row746022743612"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p846142733618">strict_concat_functions</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p184611627133610">Indicates whether the <strong id="EN-US_TOPIC_0000001510522261__b1590111541413">textanycat()</strong> and <strong id="EN-US_TOPIC_0000001510522261__b49011549414">anytextcat()</strong> functions are compatible with the return value if there are null parameters. This parameter and <strong id="EN-US_TOPIC_0000001510522261__b1254540351">strict_text_concat_td</strong> are mutually exclusive.</p>
<p id="EN-US_TOPIC_0000001510522261__p88621241164419">In MySQL-compatible mode, this parameter has no impact.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul17149104004220"><li id="EN-US_TOPIC_0000001510522261__li106593343532">If this configuration item is not specified, the returned values of the <strong id="EN-US_TOPIC_0000001510522261__b753161111510">textanycat()</strong> and <strong id="EN-US_TOPIC_0000001510522261__b1853112115512">anytextcat()</strong> functions are the same as those in the Oracle database.</li><li id="EN-US_TOPIC_0000001510522261__li614914012424">When this configuration item is specified, if there are null parameters in the <strong id="EN-US_TOPIC_0000001510522261__b38246165515">textanycat()</strong> and <strong id="EN-US_TOPIC_0000001510522261__b2082501614519">anytextcat()</strong> functions, the returned value is also null. Different result formats in Oracle and Teradata are retained.</li></ul>
<p id="EN-US_TOPIC_0000001510522261__p208515481577">If this configuration item is not specified, the returned values of the <strong id="EN-US_TOPIC_0000001510522261__b118912310519">textanycat()</strong> and <strong id="EN-US_TOPIC_0000001510522261__b58912311557">anytextcat()</strong> functions are the same as those in the Oracle database.</p>
<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen19952121214019"><span id="EN-US_TOPIC_0000001510522261__text64971081137"></span>SELECT textanycat('gauss', cast(NULL as BOOLEAN));
textanycat
------------
gauss
(1 row)
<span id="EN-US_TOPIC_0000001510522261__text127061536751"></span>SELECT 'gauss' || cast(NULL as BOOLEAN); -- In this case, the <strong id="EN-US_TOPIC_0000001510522261__b57061336156">||</strong> operator is converted to the <strong id="EN-US_TOPIC_0000001510522261__b37061361256">textanycat</strong> function.
?column?
----------
gauss
(1 row)</pre>
<p id="EN-US_TOPIC_0000001510522261__p742531014020">When setting this configuration item, retain the results that are different from those in Oracle and Teradata:</p>
<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen027920589614"><span id="EN-US_TOPIC_0000001510522261__text20687121816318"></span>SELECT textanycat('gauss', cast(NULL as BOOLEAN));
textanycat
------------
(1 row)
<span id="EN-US_TOPIC_0000001510522261__text0829748352"></span>SELECT 'gauss' || cast(NULL as BOOLEAN); -- In this case, the <strong id="EN-US_TOPIC_0000001510522261__b108301248057">||</strong> operator is converted to the <strong id="EN-US_TOPIC_0000001510522261__b283016481559">textanycat</strong> function.
?column?
----------
(1 row)</pre>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p0884642131416">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p19748216202015">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row1911016291135"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p101111229181318">strict_text_concat_td</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p15533514132">In Teradata compatible mode, whether the <strong id="EN-US_TOPIC_0000001510522261__b2073718541956">textcat()</strong>, <strong id="EN-US_TOPIC_0000001510522261__b27371054756">textanycat()</strong> and <strong id="EN-US_TOPIC_0000001510522261__b197371854659">anytextcat()</strong> functions are compatible with the return value if there are null parameters. This parameter and <strong id="EN-US_TOPIC_0000001510522261__b95560591557">strict_concat_functions</strong> are mutually exclusive.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul1597911188145"><li id="EN-US_TOPIC_0000001510522261__li149790185149">If this parameter is not specified, the return values of the <strong id="EN-US_TOPIC_0000001510522261__b1349412717620">textcat()</strong>, <strong id="EN-US_TOPIC_0000001510522261__b17494571869">textanycat()</strong>, and <strong id="EN-US_TOPIC_0000001510522261__b1349547164">anytextcat()</strong> functions in Teradata-compatible mode are the same as those in GaussDB(DWS).</li><li id="EN-US_TOPIC_0000001510522261__li61241325101411">When this parameter is specified, if the <strong id="EN-US_TOPIC_0000001510522261__b1167811123619">textcat()</strong>, <strong id="EN-US_TOPIC_0000001510522261__b16678812764">textanycat()</strong>, and <strong id="EN-US_TOPIC_0000001510522261__b16678161210617">anytextcat()</strong> functions contain any null parameter values, the return value is null in the Teradata-compatible mode.</li></ul>
<p id="EN-US_TOPIC_0000001510522261__p155314511137">If this parameter is not specified, the returned values of the <strong id="EN-US_TOPIC_0000001510522261__b15857111813612">textcat()</strong>, <strong id="EN-US_TOPIC_0000001510522261__b19857161814617">textanycat()</strong>, and <strong id="EN-US_TOPIC_0000001510522261__b385751810613">anytextcat()</strong> functions are the same as those in the GaussDB(DWS).</p>
<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen1971164611381">td_compatibility_db=# SELECT textcat('abc', NULL);
textcat
---------
abc
(1 row)</pre>
<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen19291174163814">td_compatibility_db=# SELECT 'abc' || NULL; -- In this case, the operator <strong id="EN-US_TOPIC_0000001510522261__b592916221869">||</strong> is converted to the <strong id="EN-US_TOPIC_0000001510522261__b209299225612">textcat()</strong> function.
?column?
----------
abc
(1 row)</pre>
<p id="EN-US_TOPIC_0000001510522261__p85418517138">When this parameter is specified, <strong id="EN-US_TOPIC_0000001510522261__b5225927163">NULL</strong> is returned if any of the <strong id="EN-US_TOPIC_0000001510522261__b1822522719617">textcat()</strong>, <strong id="EN-US_TOPIC_0000001510522261__b1522617272614">textanycat()</strong>, and <strong id="EN-US_TOPIC_0000001510522261__b182263271611">anytextcat()</strong> functions returns a null value.</p>
<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen15394193163818">td_compatibility_db=# SELECT textcat('abc', NULL);
textcat
---------
(1 row)</pre>
<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen85011817133811">td_compatibility_db=# SELECT 'abc' || NULL;
?column?
----------
(1 row)</pre>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p1788474271419">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row5836132815209"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p168361428182019">compat_display_ref_table</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p1228215413442">Sets the column display format in the view.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul9774202613394"><li id="EN-US_TOPIC_0000001510522261__li33151274444">If this parameter is not specified, the prefix is used by default, in the <strong id="EN-US_TOPIC_0000001510522261__b6392835964">tab.col</strong> format.</li><li id="EN-US_TOPIC_0000001510522261__li1677418264393">Specify this parameter to the same original definition. It is displayed only when the original definition contains a prefix.</li></ul>
<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen4728155371718"><span id="EN-US_TOPIC_0000001510522261__text87841153141719"></span>SET behavior_compat_options='compat_display_ref_table';
<span id="EN-US_TOPIC_0000001510522261__text13787125391714"></span>CREATE OR REPLACE VIEW viewtest2 AS SELECT a.c1, <strong id="EN-US_TOPIC_0000001510522261__b15787105351717">c2</strong>, a.c3, 0 AS c4 FROM viewtest_tbl a;
<span id="EN-US_TOPIC_0000001510522261__text1578875318172"></span>SELECT pg_get_viewdef('viewtest2');
pg_get_viewdef
-----------------------------------------------------
<span id="EN-US_TOPIC_0000001510522261__text2788553171718"></span>SELECT a.c1, <strong id="EN-US_TOPIC_0000001510522261__b137881953171711">c2</strong>, a.c3, 0 AS c4 FROM viewtest_tbl a;
(1 row)</pre>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p1788417423147">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p115131931132014">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row10566144131"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p16578144138">para_support_set_func</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p106792026132819">Whether the input parameters of the <strong id="EN-US_TOPIC_0000001510522261__b118447451169">COALESCE()</strong>, <strong id="EN-US_TOPIC_0000001510522261__b138451045365">NVL()</strong>, <strong id="EN-US_TOPIC_0000001510522261__b118455451066">GREATEST()</strong>, and <strong id="EN-US_TOPIC_0000001510522261__b3845445964">LEAST()</strong> functions in a column-store table support multiple result set expressions.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul27511328202814"><li id="EN-US_TOPIC_0000001510522261__li0751162872820">If this item is not specified and the input parameter contains multiple result set expressions, an error is reported, indicating that the function is not supported.</li></ul>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510522261__screen11972151615132"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="k">COALESCE</span><span class="p">(</span><span class="n">regexp_split_to_table</span><span class="p">(</span><span class="n">c3</span><span class="p">,</span><span class="s1">'#'</span><span class="p">),</span><span class="w"> </span><span class="n">regexp_split_to_table</span><span class="p">(</span><span class="n">c3</span><span class="p">,</span><span class="s1">'#'</span><span class="p">))</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">regexp_ext2_tb1</span><span class="w"> </span><span class="k">ORDER</span><span class="w"> </span><span class="k">BY</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="k">LIMIT</span><span class="w"> </span><span class="mi">5</span><span class="p">;</span>
<span class="n">ERROR</span><span class="p">:</span><span class="w"> </span><span class="k">set</span><span class="o">-</span><span class="n">valued</span><span class="w"> </span><span class="k">function</span><span class="w"> </span><span class="k">called</span><span class="w"> </span><span class="k">in</span><span class="w"> </span><span class="n">context</span><span class="w"> </span><span class="n">that</span><span class="w"> </span><span class="n">cannot</span><span class="w"> </span><span class="n">accept</span><span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="k">set</span>
</pre></div></td></tr></table></div>
</div>
<ul id="EN-US_TOPIC_0000001510522261__ul15972816121317"><li id="EN-US_TOPIC_0000001510522261__li12972111671315">When this configuration item is specified, the function input parameter can contain multiple result set expressions.</li></ul>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510522261__screen897241613137"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span>
<span class="normal">5</span>
<span class="normal">6</span>
<span class="normal">7</span>
<span class="normal">8</span>
<span class="normal">9</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="k">COALESCE</span><span class="p">(</span><span class="n">regexp_split_to_table</span><span class="p">(</span><span class="n">c3</span><span class="p">,</span><span class="s1">'#'</span><span class="p">),</span><span class="w"> </span><span class="n">regexp_split_to_table</span><span class="p">(</span><span class="n">c3</span><span class="p">,</span><span class="s1">'#'</span><span class="p">))</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">regexp_ext2_tb1</span><span class="w"> </span><span class="k">ORDER</span><span class="w"> </span><span class="k">BY</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="k">LIMIT</span><span class="w"> </span><span class="mi">5</span><span class="p">;</span>
<span class="w"> </span><span class="k">coalesce</span>
<span class="c1">----------</span>
<span class="w"> </span><span class="n">a</span>
<span class="w"> </span><span class="n">a</span>
<span class="w"> </span><span class="n">a</span>
<span class="w"> </span><span class="n">a</span>
<span class="w"> </span><span class="n">a</span>
<span class="p">(</span><span class="mi">5</span><span class="w"> </span><span class="k">rows</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p2088464211416">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p1126518432201">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row138715183612"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p687141816613">disable_select_truncate_parallel</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p121471130144216">Controls the DDL lock level such as TRUNCATE in a partitioned table.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul1998332402"><li id="EN-US_TOPIC_0000001510522261__li2937113774215">If this item is specified, the concurrent execution of TRUNCATE and DML operations (such as SELECT) on different partitions is forbidden, and the fast query shipping (FQS) of the SELECT operation on the partitioned table is allowed. You can set this parameter in the OLTP database, where there are many simple queries on partitioned tables, and there is no requirement for concurrent TRUNCATE and DML operations on different partitions.</li><li id="EN-US_TOPIC_0000001510522261__li16992338403">If this item is not specified, SELECT and TRUNCATE operations can be concurrently performed on different partitions in a partitioned table, and the FQS of the partitioned table is disabled to avoid possible inconsistency.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p88841242171420">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p784955318206">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p185565713206">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row128641132102018"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p148656325208">bpchar_text_without_rtrim</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p46011656154113">In Teradata-compatible mode, controls the space to be retained on the right during the character conversion from <strong id="EN-US_TOPIC_0000001510522261__b2092212151717">bpchar</strong> to <strong id="EN-US_TOPIC_0000001510522261__b2092210156719">text</strong>. If the actual length is less than the length specified by <strong id="EN-US_TOPIC_0000001510522261__b179225151376">bpchar</strong>, spaces are added to the value to be compatible with the Teradata style of the <strong id="EN-US_TOPIC_0000001510522261__b139226151979">bpchar</strong> character string.</p>
<p id="EN-US_TOPIC_0000001510522261__p171346597418">Currently, ignoring spaces at the end of a string for comparison is not supported. If the concatenated string contains spaces at the end, the comparison is space-sensitive.</p>
<p id="EN-US_TOPIC_0000001510522261__p2865183213202">The following is an example:</p>
<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen1724953632916">td_compatibility_db=# select length('a'::char(10)::text);
length
--------
10
(1 row)
td_compatibility_db=# select length('a'||'a'::char(10));
length
--------
11
(1 row)</pre>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p78841442141420">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row1556311281443"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p155641828246">convert_empty_str_to_null_td</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p756402817415">In Teradata-compatible mode, controls the <strong id="EN-US_TOPIC_0000001510522261__b817413261075">to_date</strong>, <strong id="EN-US_TOPIC_0000001510522261__b117416261715">to_timestamp</strong>, and <strong id="EN-US_TOPIC_0000001510522261__b217412267714">to_number</strong> type conversion functions to return <strong id="EN-US_TOPIC_0000001510522261__b817442611720">null</strong> when they encounter empty strings, and controls the format of the return value when the <strong id="EN-US_TOPIC_0000001510522261__b117414261976">to_char</strong> function encounters an input parameter of the date type.</p>
<p id="EN-US_TOPIC_0000001510522261__p1221642572614">Example:</p>
<p id="EN-US_TOPIC_0000001510522261__p15928103421418">If this parameter is not specified:</p>
<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen17963227543">td_compatibility_db=# select to_number('');
to_number
-----------
0
(1 row)
td_compatibility_db=# select to_date('');
ERROR: the format is not correct
DETAIL: invalid date length "0", must between 8 and 10.
CONTEXT: referenced column: to_date
td_compatibility_db=# select to_timestamp('');
to_timestamp
------------------------
0001-01-01 00:00:00 BC
(1 row)
td_compatibility_db=# select to_char(date '2020-11-16');
to_char
------------------------
2020-11-16 00:00:00+08
(1 row)</pre>
<p id="EN-US_TOPIC_0000001510522261__p2441121814548">If this parameter is specified, and parameters of <strong id="EN-US_TOPIC_0000001510522261__b11475039675">to_number</strong>, <strong id="EN-US_TOPIC_0000001510522261__b147519391076">to_date</strong>, and <strong id="EN-US_TOPIC_0000001510522261__b54761039076">to_timestamp</strong> functions contain empty strings:</p>
<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen6912231378">td_compatibility_db=# select to_number('');
to_number
-----------
(1 row)
td_compatibility_db=# select to_date('');
to_date
---------
(1 row)
td_compatibility_db=# select to_timestamp('');
to_timestamp
--------------
(1 row)
td_compatibility_db=# select to_char(date '2020-11-16');
to_char
------------
2020/11/16
(1 row)</pre>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p58841942181418">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row1842115242357"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p1596318916134">disable_case_specific</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p1596419910135">Determines whether to ignore case sensitivity during character type match. This parameter is valid only in Teradata-compatible mode.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul13781258122112"><li id="EN-US_TOPIC_0000001510522261__li13781195882116">If this item is not specified, characters are case sensitive during character type match.</li><li id="EN-US_TOPIC_0000001510522261__li1283520399225">If this item is specified, characters are case insensitive during character type match.</li></ul>
<p id="EN-US_TOPIC_0000001510522261__p1335975242520">After being specified, this item will affect five character types (<strong id="EN-US_TOPIC_0000001510522261__b1794915913715">CHAR</strong>, <strong id="EN-US_TOPIC_0000001510522261__b2949135919714">TEXT</strong>, <strong id="EN-US_TOPIC_0000001510522261__b99491591976">BPCHAR</strong>, <strong id="EN-US_TOPIC_0000001510522261__b159499591577">VARCHAR</strong>, and <strong id="EN-US_TOPIC_0000001510522261__b29501759478">NVARCHAR</strong>), 12 operators (<strong id="EN-US_TOPIC_0000001510522261__b295015590715">&lt;</strong>, <strong id="EN-US_TOPIC_0000001510522261__b1095055914720">&gt;</strong>, <strong id="EN-US_TOPIC_0000001510522261__b895018591277">=</strong>, <strong id="EN-US_TOPIC_0000001510522261__b09507595718">&gt;=</strong>, <strong id="EN-US_TOPIC_0000001510522261__b17951145916716">&lt;=</strong>, <strong id="EN-US_TOPIC_0000001510522261__b1395118591776">!=</strong>, <strong id="EN-US_TOPIC_0000001510522261__b129515591376">&lt;&gt;</strong>, <strong id="EN-US_TOPIC_0000001510522261__b1395155917712">!=</strong>, <strong id="EN-US_TOPIC_0000001510522261__b9951459776">like</strong>, <strong id="EN-US_TOPIC_0000001510522261__b1595265912716">not like</strong>, <strong id="EN-US_TOPIC_0000001510522261__b1695217591979">in</strong>, and <strong id="EN-US_TOPIC_0000001510522261__b209522591273">not in</strong>), and expressions <strong id="EN-US_TOPIC_0000001510522261__b11952185914718">case when</strong> and <strong id="EN-US_TOPIC_0000001510522261__b595315591976">decode</strong>.</p>
<div class="caution" id="EN-US_TOPIC_0000001510522261__note17794618133816"><span class="cautiontitle"> CAUTION: </span><div class="cautionbody"><p id="EN-US_TOPIC_0000001510522261__p0794181819384">After this item is enabled, the <strong id="EN-US_TOPIC_0000001510522261__b13900530815">UPPER</strong> function is added before the character type, which affects the estimation logic. Therefore, an enhanced estimation model is required. (Suggested settings: <strong id="EN-US_TOPIC_0000001510522261__b15265152919116">cost_param=16</strong>, <strong id="EN-US_TOPIC_0000001510522261__b10265122961119">cost_model_version = 1</strong>, <strong id="EN-US_TOPIC_0000001510522261__b1726522931119">join_num_distinct=-20</strong>, and <strong id="EN-US_TOPIC_0000001510522261__b5265172911115">qual_num_distinct=200</strong>)</p>
</div></div>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p15884134201411">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row11741340124816"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p574174064816">enable_interval_to_text</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p14704165931714">Controls the implicit conversion from the <strong id="EN-US_TOPIC_0000001510522261__b943116406115">interval</strong> type to the <strong id="EN-US_TOPIC_0000001510522261__b9431164071120">text</strong> type.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul9761039187"><li id="EN-US_TOPIC_0000001510522261__li5771939189">When this option is enabled, the implicit conversion from the <strong id="EN-US_TOPIC_0000001510522261__b103053332019">interval</strong> type to the <strong id="EN-US_TOPIC_0000001510522261__b1831193362017">text</strong> type is supported.<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen711802005214"><span id="EN-US_TOPIC_0000001510522261__text15515172216285"></span>SELECT TO_DATE('20200923', 'yyyymmdd') - TO_DATE('20200920', 'yyyymmdd') = '3'::text;
?column?
----------
f
(1 row)</pre>
</li><li id="EN-US_TOPIC_0000001510522261__li1351858151812">When this option is disabled, the implicit conversion from the <strong id="EN-US_TOPIC_0000001510522261__b181311938142011">interval</strong> type to the <strong id="EN-US_TOPIC_0000001510522261__b191314387209">text</strong> type is not supported.<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen1053048151810"><span id="EN-US_TOPIC_0000001510522261__text12124132502813"></span>SELECT TO_DATE('20200923', 'yyyymmdd') - TO_DATE('20200920', 'yyyymmdd') = '3'::text;
?column?
----------
t
(1 row)</pre>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p1741440174814">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p1010802816555">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p8444132919557">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row32541352436"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p11255103594312">case_insensitive</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p255115383413">In MySQL-compatible mode, configure this parameter to specify the case-insensitive input parameters of the <strong id="EN-US_TOPIC_0000001510522261__b151751913152110">locate</strong>, <strong id="EN-US_TOPIC_0000001510522261__b181761713162113">strpos</strong>, and <strong id="EN-US_TOPIC_0000001510522261__b81761313162117">instr</strong> string functions.</p>
<p id="EN-US_TOPIC_0000001510522261__p9597136375">Currently, this parameter is not configured by default. That is, the input parameter is case-sensitive.</p>
<p id="EN-US_TOPIC_0000001510522261__p167084824916">Example:</p>
<ul id="EN-US_TOPIC_0000001510522261__ul3391155295516"><li id="EN-US_TOPIC_0000001510522261__li203910527550">If this parameter is not configured, the input parameter is case-sensitive.<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen6392738125312">mysql_compatibility_db=# SELECT LOCATE('sub', 'Substr');
locate
--------
0
(1 row)</pre>
</li></ul>
<ul id="EN-US_TOPIC_0000001510522261__ul174851591568"><li id="EN-US_TOPIC_0000001510522261__li104858955610">If this parameter is configured, the input parameter is case-insensitive.<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen831932465515">mysql_compatibility_db=# SELECT LOCATE('sub', 'Substr');
locate
--------
1
(1 row)</pre>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p15255163574316">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row1840231143519"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p114053113357">inherit_not_null_strict_func</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p14053143518">Controls the original <strong id="EN-US_TOPIC_0000001510522261__b77763416212">strict</strong> attribute of a function. A function with one parameter can transfer the <strong id="EN-US_TOPIC_0000001510522261__b1377711413217">NOT NULL</strong> attribute. func(x) is used an example. If func() is the <strong id="EN-US_TOPIC_0000001510522261__b191104612110">strict</strong> attribute and x contains the <strong id="EN-US_TOPIC_0000001510522261__b1191218463216">NOT NULL</strong> constraint, func(x) also contains the <strong id="EN-US_TOPIC_0000001510522261__b79122046152112">NOT NULL</strong> constraint.</p>
<p id="EN-US_TOPIC_0000001510522261__p15618484019">The compatible configuration item is effective in some optimization scenarios, for example, <strong id="EN-US_TOPIC_0000001510522261__b37371035182220">NOT IN</strong> and <strong id="EN-US_TOPIC_0000001510522261__b07371535182218">COUNT(DISTINCT)</strong> optimization. However, the optimization results may be incorrect in specific scenarios.</p>
<p id="EN-US_TOPIC_0000001510522261__p43125376418">Currently, this parameter is not configured by default to ensure that the result is correct. However, the performance may be rolled back. If an error occurs, you can set this parameter to roll back to the historical version.</p>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p84173163510">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p14083610403">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p1319219226257">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row185881912105010"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p058981295018">disable_compat_minmax_expr_mysql</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p172141644145115">Specifies the method for processing the input parameter <strong id="EN-US_TOPIC_0000001510522261__b47221346112219">null</strong> in the <strong id="EN-US_TOPIC_0000001510522261__b172319465223">greatest</strong>/<strong id="EN-US_TOPIC_0000001510522261__b137231746132218">least</strong> expression in MySQL-compatible mode.</p>
<p id="EN-US_TOPIC_0000001510522261__p128931731195219">This parameter is compatible with MySQL by default. You can set this parameter to roll back to a historical version.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul1963516411923"><li id="EN-US_TOPIC_0000001510522261__li1963524113219">If this parameter is not configured and the input parameter is <strong id="EN-US_TOPIC_0000001510522261__b776710092314">null</strong>, <strong id="EN-US_TOPIC_0000001510522261__b076790192313">null</strong> is returned.<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen136355411127">mysql_compatibility_db=# SELECT greatest(1, 2, null), least(1, 2, null);
greatest | least
----------+-------
|
(1 row)</pre>
</li><li id="EN-US_TOPIC_0000001510522261__li1463519411328">If this parameter is configured, the maximum or minimum value of non-null parameters is returned.<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen1063517412219">mysql_compatibility_db=# SELECT greatest(1, 2, null), least(1, 2, null);
greatest | least
----------+-------
2 | 1
(1 row)</pre>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p105890126505">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row1459201515019"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p1445991520505">disable_compat_substr_mysql</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p13560131615553">Specifies the behavior of the <strong id="EN-US_TOPIC_0000001510522261__b198761225142317">substr</strong>/<strong id="EN-US_TOPIC_0000001510522261__b387682582320">substring</strong> function when the start position pos is ≤ 0 in MySQL-compatible mode.</p>
<p id="EN-US_TOPIC_0000001510522261__p10211144917100">This parameter is compatible with MySQL by default. You can set this parameter to roll back to a historical version.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul18845114413214"><li id="EN-US_TOPIC_0000001510522261__li178451044829">If this parameter is not configured, that is, an empty string is returned when pos = 0. When pos &lt; 0, <strong id="EN-US_TOPIC_0000001510522261__b1888173822311">TRUNCATE</strong> starts from the last |<em id="EN-US_TOPIC_0000001510522261__i6881438122318">pos</em>| character on.<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen284510442212">mysql_compatibility_db=# SELECT substr('helloworld',0);
substr
--------
(1 row)
mysql_compatibility_db=# SELECT substring('helloworld',0),substring('helloworld',-2,4);
substring | substring
-----------+-----------
| ld
(1 row)</pre>
</li><li id="EN-US_TOPIC_0000001510522261__li1684511441724">If this parameter is configured and pos is ≤ 0, characters are truncated from the left.<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen1884515441216">mysql_compatibility_db=# SELECT substr('helloworld',0);
substr
------------
helloworld
(1 row)
mysql_compatibility_db=# SELECT substring('helloworld',0),substring('helloworld',-2,4);
substring | substring
------------+-----------
helloworld | h
(1 row)</pre>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p2459715145015">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row86341911505"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p1064111985011">disable_compat_trim_mysql</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p1564141817556">Specifies the method for processing the input parameter in the <strong id="EN-US_TOPIC_0000001510522261__b659210453232">trim</strong>/<strong id="EN-US_TOPIC_0000001510522261__b13593144582313">ltrim</strong>/<strong id="EN-US_TOPIC_0000001510522261__b135931045112318">rtrim</strong> function in MySQL-compatible mode.</p>
<p id="EN-US_TOPIC_0000001510522261__p162721952201010">This parameter is compatible with MySQL by default. You can set this parameter to roll back to a historical version.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul74698470210"><li id="EN-US_TOPIC_0000001510522261__li646911472210">If this parameter is not configured, the entire substring is matched.<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen84697471722">mysql_compatibility_db=# SELECT trim('{}{name}{}','{}'),trim('xyznamezyx','xyz');
btrim | btrim
--------+---------
{name} | namezyx
(1 row)</pre>
</li><li id="EN-US_TOPIC_0000001510522261__li14698471225">If this parameter is configured, a single character in the character set is matched.<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen174697471623">mysql_compatibility_db=# SELECT trim('{}{name}{}','{}'),trim('xyznamezyx','xyz');
btrim | btrim
-------+-------
name | name
(1 row)</pre>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p96441915016">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row2431042202416"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p1282812118149">light_object_mtime</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p10828151181414">Specifies whether the <strong id="EN-US_TOPIC_0000001510522261__b17454175842311">mtime</strong> column in the <strong id="EN-US_TOPIC_0000001510522261__b1945420586233">pg_object</strong> system catalog records object operations.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul4791154616244"><li id="EN-US_TOPIC_0000001510522261__li179110464245">If this parameter is configured, the <strong id="EN-US_TOPIC_0000001510522261__b388913002410">GRANT</strong>, <strong id="EN-US_TOPIC_0000001510522261__b4889150102418">REVOKE</strong>, and <strong id="EN-US_TOPIC_0000001510522261__b088930162411">TRUNCATE</strong> operations are not recorded by <strong id="EN-US_TOPIC_0000001510522261__b38898042416">mtime</strong>, that is, the <strong id="EN-US_TOPIC_0000001510522261__b1089060112418">mtime</strong> column is not updated.</li><li id="EN-US_TOPIC_0000001510522261__li352920498245">If this parameter is not configured (by default), the <strong id="EN-US_TOPIC_0000001510522261__b155193438011017">ALTER</strong>, <strong id="EN-US_TOPIC_0000001510522261__b127262655711017">COMMENT</strong>, <strong id="EN-US_TOPIC_0000001510522261__b63096903511017">GRANT</strong>, <strong id="EN-US_TOPIC_0000001510522261__b177822346411017">REVOKE</strong>, and <strong id="EN-US_TOPIC_0000001510522261__b81748639211017">TRUNCATE</strong> operations are recorded by <strong id="EN-US_TOPIC_0000001510522261__b77323674311017">mtime</strong>, that is, the <strong id="EN-US_TOPIC_0000001510522261__b144075430811017">mtime</strong> column is updated.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p582814115143">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p1191619155240">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p135317192245">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row1677911116016"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p678020117018">disable_including_all_mysql</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p185721447105818">In MySQL-compatible mode, this parameter controls whether the <strong id="EN-US_TOPIC_0000001510522261__b1983713782419">CREATE TABLE...LIKE</strong> syntax is <strong id="EN-US_TOPIC_0000001510522261__b5660151092420">INCLUDING_ALL</strong>.</p>
<p id="EN-US_TOPIC_0000001510522261__p47802112010">By default, this parameter is not set. That is, in MySQL compatibility mode, <strong id="EN-US_TOPIC_0000001510522261__b8950015142418">CREATE TABLE...</strong> <strong id="EN-US_TOPIC_0000001510522261__b8638191902414">LIKE</strong> syntax is <strong id="EN-US_TOPIC_0000001510522261__b10638131982411">INCLUDING_ALL</strong>.</p>
<p id="EN-US_TOPIC_0000001510522261__p11477154417316">You can set this parameter to roll back to a historical version.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul385811471247"><li id="EN-US_TOPIC_0000001510522261__li108589477414">If this parameter is not set, in MySQL-compatible mode, the <strong id="EN-US_TOPIC_0000001510522261__b1779118378321">CREATE TABLE...</strong> <strong id="EN-US_TOPIC_0000001510522261__b515654323216">LIKE</strong> syntax is in <strong id="EN-US_TOPIC_0000001510522261__b19157124393218">INCLUDING_ALL</strong>.<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen16723119151419">mysql_compatibility_db=# CREATE TABLE mysql_like(id int, name varchar(10), score int) DISTRIBUTE BY hash(id) COMMENT 'mysql_like';
CREATE TABLE
mysql_compatibility_db=# CREATE INDEX index_like ON mysql_like(name);
CREATE INDEX
mysql_compatibility_db=# \d+ mysql_like;
Table "public.mysql_like"
Column | Type | Modifiers | Storage | Stats target | Description
--------+-----------------------+-----------+----------+--------------+-------------
id | integer | | plain | |
name | character varying(10) | | extended | |
score | integer | | plain | |
Indexes:
"index_like" btree (name) TABLESPACE pg_default
Has OIDs: no
Distribute By: HASH(id)
Location Nodes: ALL DATANODES
Options: orientation=row, compression=no
mysql_compatibility_db=# CREATE TABLE copy_like like mysql_like;
CREATE TABLE
mysql_compatibility_db=# \d+ copy_like;
Table "public.copy_like"
Column | Type | Modifiers | Storage | Stats target | Description
--------+-----------------------+-----------+----------+--------------+-------------
id | integer | | plain | |
name | character varying(10) | | extended | |
score | integer | | plain | |
Indexes:
"copy_like_name_idx" btree (name) TABLESPACE pg_default
Has OIDs: no
Distribute By: HASH(id)
Location Nodes: ALL DATANODES
Options: orientation=row, compression=no</pre>
</li><li id="EN-US_TOPIC_0000001510522261__li59053321655">If this parameter is set, in MySQL-compatible mode, the <strong id="EN-US_TOPIC_0000001510522261__b6919174812327">CREATE TABLE...</strong> <strong id="EN-US_TOPIC_0000001510522261__b1745865119324">LIKE</strong> syntax is empty.<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen875813357147">mysql_compatibility_db=# SET behavior_compat_options = 'disable_including_all_mysql';
SET
mysql_compatibility_db=# CREATE TABLE mysql_copy LIKE mysql_like;
NOTICE: The 'DISTRIBUTE BY' clause is not specified. Using round-robin as the distribution mode by default.
HINT: Please use 'DISTRIBUTE BY' clause to specify suitable data distribution column.
CREATE TABLE
mysql_db=# \d+ mysql_copy;
Table "public.mysql_copy"
Column | Type | Modifiers | Storage | Stats target | Description
--------+-----------------------+-----------+----------+--------------+-------------
id | integer | | plain | |
name | character varying(10) | | extended | |
score | integer | | plain | |
Has OIDs: no
Distribute By: ROUND ROBIN
Location Nodes: ALL DATANODES
Options: orientation=row, compression=no</pre>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p1078018111905">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row101341716181417"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p1134016141415">cte_onetime_inline</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p61345169145">Indicates whether to execute <strong id="EN-US_TOPIC_0000001510522261__b155145733212">inline</strong> for non-stream plans.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul025414581299"><li id="EN-US_TOPIC_0000001510522261__li896148193417">If this parameter is not set, the CTE that is not in a stream plan and is referenced only once does not execute <strong id="EN-US_TOPIC_0000001510522261__b55412715338">inline</strong>.</li><li id="EN-US_TOPIC_0000001510522261__li1525545862913">If this parameter is not set, the CTE that is not in a stream plan and is referenced only once does not execute <strong id="EN-US_TOPIC_0000001510522261__b182481016339">inline</strong>.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p6134191681415">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p4141993188">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p8352314131819">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row589732354914"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p1689719231494">skip_first_after_mysql</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p1689762364916">Controls whether to ignore the <strong id="EN-US_TOPIC_0000001510522261__b5228205153311">FIRST/AFTER colname</strong> syntax in <strong id="EN-US_TOPIC_0000001510522261__b17229451203315">ALTER TABLE ADD/MODIFY/CHANGE COLUMN</strong> in MySQL-compatible mode.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul1242711435541"><li id="EN-US_TOPIC_0000001510522261__li1142718434546">If this parameter is set, the <strong id="EN-US_TOPIC_0000001510522261__b19650175617336">FIRST/AFTER colname</strong> syntax is ignored, and executing this syntax will not result in any errors.<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen12882950205714">mysql_compatibility_db=# SET behavior_compat_options = 'skip_first_after_mysql';
mysql_compatibility_db=# ALTER TABLE t1 ADD COLUMN b text after a;
ALTER TABLE</pre>
</li></ul>
<ul id="EN-US_TOPIC_0000001510522261__ul8424114518544"><li id="EN-US_TOPIC_0000001510522261__li569062710552">If this parameter is not set, the <strong id="EN-US_TOPIC_0000001510522261__b4677404347">FIRST/AFTER colname</strong> syntax is not supported, and executing this syntax causes errors.<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen9591115719570">mysql_compatibility_db=# SET behavior_compat_options = '';
mysql_compatibility_db=# ALTER TABLE t1 ADD COLUMN b text after a;
ERROR: FIRST/AFTER is not yet supported.</pre>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p19897142318493">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row1625323119444"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p191081522183217">enable_division_by_zero_mysql</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p391542912405">Specifies whether division or modulo operations will result in an error when the divisor is 0 in MySQL-compatible mode. (This configuration item is supported only by clusters of 8.1.3.110 and later versions.)</p>
<ul id="EN-US_TOPIC_0000001510522261__ul1015253083419"><li id="EN-US_TOPIC_0000001510522261__li715213304341">If this parameter is set, NULL is returned if the divisor is 0 in a division or modulo operation.<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen7364151121618">compatible_mysql_db=# SET behavior_compat_options = 'enable_division_by_zero_mysql';
SET
compatible_mysql_db=# SELECT 1/0 AS test;
test
----------
(1 row)</pre>
</li><li id="EN-US_TOPIC_0000001510522261__li8515827112110">If this parameter is not set, an error is returned if the divisor is 0 in a division or modulo operation.<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen1646973615211">compatible_mysql_db=# SELECT 1/0;
ERROR: division by zero</pre>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p210817225324">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row654715108373"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p18547710153714">normal_session_id</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p1743912420393">Indicates whether to generate a session ID in normal format.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul196183578436"><li id="EN-US_TOPIC_0000001510522261__li18439549395">If this option is set, a session ID in normal format will be generated, which is compatible with session IDs in clusters of version 8.1.3 or earlier.<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510522261__screen12288181295610"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span>
<span class="normal">5</span>
<span class="normal">6</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SET</span><span class="w"> </span><span class="n">behavior_compat_options</span><span class="o">=</span><span class="s1">'normal_session_id'</span><span class="p">;</span>
<span class="k">SELECT</span><span class="w"> </span><span class="n">pg_current_sessionid</span><span class="p">();</span>
<span class="w"> </span><span class="n">pg_current_sessionid</span>
<span class="c1">----------------------------</span>
<span class="w"> </span><span class="mi">1660268184</span><span class="p">.</span><span class="mi">140594655524608</span>
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</li><li id="EN-US_TOPIC_0000001510522261__li14619135711432">If this parameter is not set, a session ID in pretty format will be generated.<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510522261__screen1889272995615"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span>
<span class="normal">5</span>
<span class="normal">6</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SET</span><span class="w"> </span><span class="n">behavior_compat_options</span><span class="o">=</span><span class="s1">''</span><span class="p">;</span>
<span class="k">SELECT</span><span class="w"> </span><span class="n">pg_current_sessionid</span><span class="p">();</span>
<span class="w"> </span><span class="n">pg_current_sessionid</span>
<span class="c1">-----------------------------------------</span>
<span class="w"> </span><span class="mi">1660268184</span><span class="p">.</span><span class="mi">140594655524608</span><span class="p">.</span><span class="n">coordinator1</span>
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p378875116383">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p1878865113389">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p57881251193814">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row19122122916435"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p91221296434">disable_jsonb_exact_match</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p8123192974310">Specifies whether to check the jsonb type during fuzzy match for binary operators. (This parameter is supported by version 8.2.0 or later clusters.)</p>
<ul id="EN-US_TOPIC_0000001510522261__ul23631618104714"><li id="EN-US_TOPIC_0000001510522261__li5363018184716">If this parameter is specified, operators search for matched items within the entire search scope (including the jsonb type) during fuzzy match. This setting is compatible with the match rules of cluster versions 8.1.1 to 8.1.3.<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510522261__screen9363518124711"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SET</span><span class="w"> </span><span class="n">behavior_compat_options</span><span class="o">=</span><span class="s1">'disable_jsonb_exact_match'</span><span class="p">;</span>
<span class="k">select</span><span class="w"> </span><span class="s1">'2022'</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="s1">'2'</span><span class="p">::</span><span class="nb">text</span><span class="p">;</span>
<span class="n">ERROR</span><span class="p">:</span><span class="w"> </span><span class="n">cannot</span><span class="w"> </span><span class="k">delete</span><span class="w"> </span><span class="k">from</span><span class="w"> </span><span class="n">scalar</span>
</pre></div></td></tr></table></div>
</div>
</li><li id="EN-US_TOPIC_0000001510522261__li10363151804716">If this parameter is not specified, fuzzy match is performed within the search scope, except for the jsonb type. This setting is compatible with the match rules of clusters of version earlier than 8.1.1.<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510522261__screen43641918104710"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span>
<span class="normal">5</span>
<span class="normal">6</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SET</span><span class="w"> </span><span class="n">behavior_compat_options</span><span class="o">=</span><span class="s1">''</span><span class="p">;</span>
<span class="k">select</span><span class="w"> </span><span class="s1">'2022'</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="s1">'2'</span><span class="p">::</span><span class="nb">text</span><span class="p">;</span>
<span class="w"> </span><span class="o">?</span><span class="k">column</span><span class="o">?</span><span class="w"> </span>
<span class="c1">----------</span>
<span class="w"> </span><span class="mi">2020</span>
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p08871642114417">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p78872424444">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p28871742124416">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row461633115619"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p1761633105610">merge_into_with_trigger</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p6616431155610">Controls whether the MERGE INTO operation can be performed on tables with triggers. <span id="EN-US_TOPIC_0000001510522261__ph1786395815347">(This parameter is supported only by clusters of version 8.1.3.200 or later.)</span></p>
<ul id="EN-US_TOPIC_0000001510522261__ul8518135017589"><li id="EN-US_TOPIC_0000001510522261__li951925065814">When this option is set, the MERGE INTO operation can be performed on tables with triggers. When the MERGE INTO operation is performed, the trigger on the table is not activated.</li><li id="EN-US_TOPIC_0000001510522261__li367613015595">If this option is not set, an error is reported when the MERGE INTO operation is performed on a table with triggers.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p9823146105716">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p6823206145720">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p1082316620576">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row9226102053917"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p15227720123913">add_column_default_v_func</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p1227152011399">Controls whether <strong id="EN-US_TOPIC_0000001510522261__b2998181517354">expression</strong> in <strong id="EN-US_TOPIC_0000001510522261__b899951523517">alter table add column default expression</strong> supports volatile functions. <span id="EN-US_TOPIC_0000001510522261__ph118012653510">(This parameter is supported only by clusters of version 8.1.3.200 or later.)</span></p>
<ul id="EN-US_TOPIC_0000001510522261__ul6474184894016"><li id="EN-US_TOPIC_0000001510522261__li154749489408">If this option is selected, <strong id="EN-US_TOPIC_0000001510522261__b129055318358">expression</strong> in <strong id="EN-US_TOPIC_0000001510522261__b19061631163514">alter table add column default expression</strong> supports volatile functions.</li><li id="EN-US_TOPIC_0000001510522261__li12115108174211">If this option is not selected, <strong id="EN-US_TOPIC_0000001510522261__b72111873368">expression</strong> in <strong id="EN-US_TOPIC_0000001510522261__b72110793614">alter table add column default expression</strong> does not support volatile functions. If <strong id="EN-US_TOPIC_0000001510522261__b821118717366">expression</strong> contains volatile functions, an error will be reported during statement execution.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p98562024164014">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p285602417409">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p385612241407">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row1822712189401"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p3227191894013">disable_full_group_by_mysql</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p1822716183408">Specifies whether to display non-aggregated function query columns after <strong id="EN-US_TOPIC_0000001510522261__b19811616173610">GROUP BY</strong> in a query. (This parameter is supported by clusters of version 8.2.0.101 or later.)</p>
<ul id="EN-US_TOPIC_0000001510522261__ul52940143186"><li id="EN-US_TOPIC_0000001510522261__li82951314171815">If this option is specified, the query does not display any non-aggregated function query columns after <strong id="EN-US_TOPIC_0000001510522261__b746823543614">GROUP BY</strong>.<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510522261__screen191111527171812"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span>
<span class="normal">5</span>
<span class="normal">6</span>
<span class="normal">7</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SET</span><span class="w"> </span><span class="n">behavior_compat_options</span><span class="o">=</span><span class="s1">'disable_full_group_by_mysql'</span><span class="p">;</span>
<span class="k">SELECT</span><span class="w"> </span><span class="n">a</span><span class="p">,</span><span class="n">b</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">t1</span><span class="w"> </span><span class="k">GROUP</span><span class="w"> </span><span class="k">BY</span><span class="w"> </span><span class="n">a</span><span class="p">;</span>
<span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">b</span>
<span class="c1">---+---</span>
<span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">1</span>
<span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">2</span>
<span class="p">(</span><span class="mi">2</span><span class="w"> </span><span class="k">rows</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</li></ul>
<ul id="EN-US_TOPIC_0000001510522261__ul349143919184"><li id="EN-US_TOPIC_0000001510522261__li14912399183">If this option is not specified, the query must display all non-aggregated function query columns after <strong id="EN-US_TOPIC_0000001510522261__b93211245203615">GROUP BY</strong>, or an error will be reported.<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510522261__screen857719464186"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SET</span><span class="w"> </span><span class="n">behavior_compat_options</span><span class="o">=</span><span class="s1">''</span><span class="p">;</span>
<span class="k">SELECT</span><span class="w"> </span><span class="n">a</span><span class="p">,</span><span class="n">b</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">t1</span><span class="w"> </span><span class="k">GROUP</span><span class="w"> </span><span class="k">BY</span><span class="w"> </span><span class="n">a</span><span class="p">;</span>
<span class="n">ERROR</span><span class="p">:</span><span class="w"> </span><span class="k">column</span><span class="w"> </span><span class="ss">&quot;t1.b&quot;</span><span class="w"> </span><span class="n">must</span><span class="w"> </span><span class="n">appear</span><span class="w"> </span><span class="k">in</span><span class="w"> </span><span class="n">the</span><span class="w"> </span><span class="k">GROUP</span><span class="w"> </span><span class="k">BY</span><span class="w"> </span><span class="n">clause</span><span class="w"> </span><span class="k">or</span><span class="w"> </span><span class="n">be</span><span class="w"> </span><span class="n">used</span><span class="w"> </span><span class="k">in</span><span class="w"> </span><span class="n">an</span><span class="w"> </span><span class="k">aggregate</span><span class="w"> </span><span class="k">function</span>
<span class="n">LINE</span><span class="w"> </span><span class="mi">1</span><span class="p">:</span><span class="w"> </span><span class="k">SELECT</span><span class="w"> </span><span class="n">a</span><span class="p">,</span><span class="n">b</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">t1</span><span class="w"> </span><span class="k">GROUP</span><span class="w"> </span><span class="k">BY</span><span class="w"> </span><span class="n">a</span><span class="p">;</span>
</pre></div></td></tr></table></div>
</div>
</li></ul>
<div class="caution" id="EN-US_TOPIC_0000001510522261__note3929121225611"><span class="cautiontitle"> CAUTION: </span><div class="cautionbody"><p id="EN-US_TOPIC_0000001510522261__p19889117779">This parameter must be used together with <strong id="EN-US_TOPIC_0000001510522261__b11219253203616">full_group_by_mode</strong>. For details, see <a href="dws_04_0936.html#EN-US_TOPIC_0000001460882380__section8513287116">full_group_by_mode</a>.</p>
<p id="EN-US_TOPIC_0000001510522261__p445515571116">After configuring this option, if <strong id="EN-US_TOPIC_0000001510522261__b123996593361">full_group_by_mode</strong> is set to <strong id="EN-US_TOPIC_0000001510522261__b939995918365">notpadding</strong>, non-aggregated query columns that are not part of the GROUP BY clause must have consistent data after grouping. Otherwise, the values in that column will be random.</p>
</div></div>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p322811874013">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row0741103973618"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p7994125373618">disable_gc_fdw_filter_partial_pushdown</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p12994165303611">Controls whether filter criteria are pushed down when querying data from a foreign table (of type <strong id="EN-US_TOPIC_0000001510522261__b155851885370">gc_fdw</strong>) in a collaborative analysis scenario. (This parameter is supported only by clusters of version 8.2.1 or later.)</p>
<ul id="EN-US_TOPIC_0000001510522261__ul09941453113612"><li id="EN-US_TOPIC_0000001510522261__li1399445343618">When this option is specified, if there are factors in the filter criteria that do not meet the pushdown conditions (such as non-immutable functions), all filter criteria will not be pushed down to ensure the consistency of the result set. This behavior is compatible with clusters of version earlier than 8.2.1.<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510522261__screen1199435343615"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
<span class="normal"> 2</span>
<span class="normal"> 3</span>
<span class="normal"> 4</span>
<span class="normal"> 5</span>
<span class="normal"> 6</span>
<span class="normal"> 7</span>
<span class="normal"> 8</span>
<span class="normal"> 9</span>
<span class="normal">10</span>
<span class="normal">11</span>
<span class="normal">12</span>
<span class="normal">13</span>
<span class="normal">14</span>
<span class="normal">15</span>
<span class="normal">16</span>
<span class="normal">17</span>
<span class="normal">18</span></pre></div></td><td class="code"><div><pre><span></span><span class="c1">-- Create a table in the source cluster.</span>
<span class="k">CREATE</span><span class="w"> </span><span class="k">TABLE</span><span class="w"> </span><span class="n">t1</span><span class="p">(</span><span class="n">c1</span><span class="w"> </span><span class="nb">INT</span><span class="p">,</span><span class="w"> </span><span class="n">c2</span><span class="w"> </span><span class="nb">INT</span><span class="p">,</span><span class="w"> </span><span class="n">c3</span><span class="w"> </span><span class="nb">INT</span><span class="p">)</span><span class="w"> </span><span class="n">DISTRIBUTE</span><span class="w"> </span><span class="k">BY</span><span class="w"> </span><span class="n">HASH</span><span class="p">(</span><span class="n">c1</span><span class="p">);</span>
<span class="c1">-- Create a foreign table with the same structure in the local cluster.</span>
<span class="k">CREATE</span><span class="w"> </span><span class="n">SERVER</span><span class="w"> </span><span class="n">server_remote</span><span class="w"> </span><span class="k">FOREIGN</span><span class="w"> </span><span class="k">DATA</span><span class="w"> </span><span class="n">WRAPPER</span><span class="w"> </span><span class="n">gc_fdw</span><span class="w"> </span><span class="k">options</span><span class="p">(</span><span class="n">ADDRESS</span><span class="w"> </span><span class="s1">'address'</span><span class="p">,</span><span class="w"> </span><span class="n">DBNAME</span><span class="w"> </span><span class="s1">'dbname'</span><span class="p">,</span><span class="w"> </span><span class="n">USERNAME</span><span class="w"> </span><span class="s1">'username'</span><span class="p">,</span><span class="w"> </span><span class="n">PASSWORD</span><span class="w"> </span><span class="s1">'password'</span><span class="p">);</span>
<span class="k">CREATE</span><span class="w"> </span><span class="k">FOREIGN</span><span class="w"> </span><span class="k">TABLE</span><span class="w"> </span><span class="n">t1</span><span class="p">(</span><span class="n">c1</span><span class="w"> </span><span class="nb">INT</span><span class="p">,</span><span class="w"> </span><span class="n">c2</span><span class="w"> </span><span class="nb">INT</span><span class="p">,</span><span class="w"> </span><span class="n">c3</span><span class="w"> </span><span class="nb">INT</span><span class="p">)</span><span class="w"> </span><span class="n">SERVER</span><span class="w"> </span><span class="n">server_remote</span><span class="p">;</span>
<span class="c1">-- Enable the parameter and see the pushdown behavior.</span>
<span class="k">SET</span><span class="w"> </span><span class="n">behavior_compat_options</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s1">'disable_gc_fdw_filter_partial_pushdown'</span><span class="p">;</span>
<span class="k">EXPLAIN</span><span class="w"> </span><span class="p">(</span><span class="k">verbose</span><span class="w"> </span><span class="k">on</span><span class="p">,</span><span class="n">costs</span><span class="w"> </span><span class="k">off</span><span class="p">)</span><span class="w"> </span><span class="k">SELECt</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">t1</span><span class="w"> </span><span class="k">WHERE</span><span class="w"> </span><span class="n">c1</span><span class="o">&gt;</span><span class="mi">3</span><span class="w"> </span><span class="k">AND</span><span class="w"> </span><span class="n">c2</span><span class="w"> </span><span class="o">&lt;</span><span class="mi">100</span><span class="w"> </span><span class="k">AND</span><span class="w"> </span><span class="n">now</span><span class="p">()</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="s1">'20230101'</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">c3</span><span class="p">;</span>
<span class="w"> </span><span class="n">QUERY</span><span class="w"> </span><span class="n">PLAN</span><span class="w"> </span>
<span class="c1">----------------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span class="w"> </span><span class="n">Streaming</span><span class="w"> </span><span class="p">(</span><span class="k">type</span><span class="p">:</span><span class="w"> </span><span class="n">GATHER</span><span class="p">)</span>
<span class="w"> </span><span class="k">Output</span><span class="p">:</span><span class="w"> </span><span class="n">c1</span><span class="p">,</span><span class="w"> </span><span class="n">c2</span><span class="p">,</span><span class="w"> </span><span class="n">c3</span>
<span class="w"> </span><span class="n">Node</span><span class="o">/</span><span class="n">s</span><span class="p">:</span><span class="w"> </span><span class="k">All</span><span class="w"> </span><span class="n">datanodes</span>
<span class="w"> </span><span class="o">-&gt;</span><span class="w"> </span><span class="k">Foreign</span><span class="w"> </span><span class="n">Scan</span><span class="w"> </span><span class="k">on</span><span class="w"> </span><span class="n">ca_schema</span><span class="p">.</span><span class="n">t1</span>
<span class="w"> </span><span class="k">Output</span><span class="p">:</span><span class="w"> </span><span class="n">c1</span><span class="p">,</span><span class="w"> </span><span class="n">c2</span><span class="p">,</span><span class="w"> </span><span class="n">c3</span>
<span class="w"> </span><span class="n">Filter</span><span class="p">:</span><span class="w"> </span><span class="p">((</span><span class="n">t1</span><span class="p">.</span><span class="n">c1</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="k">AND</span><span class="w"> </span><span class="p">(</span><span class="n">t1</span><span class="p">.</span><span class="n">c2</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">100</span><span class="p">)</span><span class="w"> </span><span class="k">AND</span><span class="w"> </span><span class="p">((</span><span class="n">now</span><span class="p">()</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="s1">'2023-01-01 00:00:00-08'</span><span class="p">::</span><span class="k">timestamp</span><span class="w"> </span><span class="k">with</span><span class="w"> </span><span class="k">time</span><span class="w"> </span><span class="k">zone</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="p">(</span><span class="n">t1</span><span class="p">.</span><span class="n">c3</span><span class="p">)::</span><span class="nb">interval</span><span class="p">))</span>
<span class="w"> </span><span class="n">Remote</span><span class="w"> </span><span class="k">SQL</span><span class="p">:</span><span class="w"> </span><span class="k">SELECT</span><span class="w"> </span><span class="n">c1</span><span class="p">,</span><span class="w"> </span><span class="n">c2</span><span class="p">,</span><span class="w"> </span><span class="n">c3</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">ca_schema</span><span class="p">.</span><span class="n">t1</span>
<span class="p">(</span><span class="mi">7</span><span class="w"> </span><span class="k">rows</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</li><li id="EN-US_TOPIC_0000001510522261__li129781531184115">If this parameter is not set, the filter criteria that can be pushed down are executed in the source cluster, and the filter criteria that cannot be pushed down are executed in the local cluster. This improves the query efficiency of foreign tables.<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510522261__screen199942535363"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
<span class="normal"> 2</span>
<span class="normal"> 3</span>
<span class="normal"> 4</span>
<span class="normal"> 5</span>
<span class="normal"> 6</span>
<span class="normal"> 7</span>
<span class="normal"> 8</span>
<span class="normal"> 9</span>
<span class="normal">10</span>
<span class="normal">11</span>
<span class="normal">12</span>
<span class="normal">13</span></pre></div></td><td class="code"><div><pre><span></span><span class="c1">-- Disable this parameter and see the pushdown behavior.</span>
<span class="k">SET</span><span class="w"> </span><span class="n">behavior_compat_options</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s1">''</span><span class="p">;</span>
<span class="k">EXPLAIN</span><span class="w"> </span><span class="p">(</span><span class="k">verbose</span><span class="w"> </span><span class="k">on</span><span class="p">,</span><span class="n">costs</span><span class="w"> </span><span class="k">off</span><span class="p">)</span><span class="w"> </span><span class="k">SELECT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">t1</span><span class="w"> </span><span class="k">WHERE</span><span class="w"> </span><span class="n">c1</span><span class="o">&gt;</span><span class="mi">3</span><span class="w"> </span><span class="k">AND</span><span class="w"> </span><span class="n">c2</span><span class="w"> </span><span class="o">&lt;</span><span class="mi">100</span><span class="w"> </span><span class="k">AND</span><span class="w"> </span><span class="n">now</span><span class="p">()</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="s1">'20230101'</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">c3</span><span class="p">;</span>
<span class="w"> </span><span class="n">QUERY</span><span class="w"> </span><span class="n">PLAN</span><span class="w"> </span>
<span class="c1">----------------------------------------------------------------------------------------------------------</span>
<span class="w"> </span><span class="n">Streaming</span><span class="w"> </span><span class="p">(</span><span class="k">type</span><span class="p">:</span><span class="w"> </span><span class="n">GATHER</span><span class="p">)</span>
<span class="w"> </span><span class="k">Output</span><span class="p">:</span><span class="w"> </span><span class="n">c1</span><span class="p">,</span><span class="w"> </span><span class="n">c2</span><span class="p">,</span><span class="w"> </span><span class="n">c3</span>
<span class="w"> </span><span class="n">Node</span><span class="o">/</span><span class="n">s</span><span class="p">:</span><span class="w"> </span><span class="k">All</span><span class="w"> </span><span class="n">datanodes</span>
<span class="w"> </span><span class="o">-&gt;</span><span class="w"> </span><span class="k">Foreign</span><span class="w"> </span><span class="n">Scan</span><span class="w"> </span><span class="k">on</span><span class="w"> </span><span class="n">ca_schema</span><span class="p">.</span><span class="n">t1</span>
<span class="w"> </span><span class="k">Output</span><span class="p">:</span><span class="w"> </span><span class="n">c1</span><span class="p">,</span><span class="w"> </span><span class="n">c2</span><span class="p">,</span><span class="w"> </span><span class="n">c3</span>
<span class="w"> </span><span class="n">Filter</span><span class="p">:</span><span class="w"> </span><span class="p">((</span><span class="n">now</span><span class="p">()</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="s1">'2023-01-01 00:00:00-08'</span><span class="p">::</span><span class="k">timestamp</span><span class="w"> </span><span class="k">with</span><span class="w"> </span><span class="k">time</span><span class="w"> </span><span class="k">zone</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="p">(</span><span class="n">t1</span><span class="p">.</span><span class="n">c3</span><span class="p">)::</span><span class="nb">interval</span><span class="p">)</span>
<span class="w"> </span><span class="n">Remote</span><span class="w"> </span><span class="k">SQL</span><span class="p">:</span><span class="w"> </span><span class="k">SELECT</span><span class="w"> </span><span class="n">c1</span><span class="p">,</span><span class="w"> </span><span class="n">c2</span><span class="p">,</span><span class="w"> </span><span class="n">c3</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">ca_schema</span><span class="p">.</span><span class="n">t1</span><span class="w"> </span><span class="k">WHERE</span><span class="w"> </span><span class="p">((</span><span class="n">c1</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">3</span><span class="p">))</span><span class="w"> </span><span class="k">AND</span><span class="w"> </span><span class="p">((</span><span class="n">c2</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">100</span><span class="p">))</span>
<span class="p">(</span><span class="mi">7</span><span class="w"> </span><span class="k">rows</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p1999595313368">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p59951653133610">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p5995253103613">MySQL</p>
<p id="EN-US_TOPIC_0000001510522261__p1195172054817"></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row17541026124819"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p2037910242483">ignore_unshipped_concurrent_update</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p2065613451326">Determines whether to ignore new tuples when the <strong id="EN-US_TOPIC_0000001510522261__b3842141133820">UPDATE</strong> or <strong id="EN-US_TOPIC_0000001510522261__b2842614384">DELETE</strong> statement is executed in the current session if the statement is not pushed down and the tuples are updated by other sessions. By default, new tuples are not processed. (This parameter is supported only by clusters of version 8.2.1 or later.)</p>
<ul id="EN-US_TOPIC_0000001510522261__ul1946955617212"><li id="EN-US_TOPIC_0000001510522261__li1047014561221">If this parameter is specified, new tuples are ignored when the <strong id="EN-US_TOPIC_0000001510522261__b666413162388">UPDATE</strong> or <strong id="EN-US_TOPIC_0000001510522261__b1066461663811">DELETE</strong> statement is executed in the current session. If the <strong id="EN-US_TOPIC_0000001510522261__b2664716133816">UPDATE</strong> or <strong id="EN-US_TOPIC_0000001510522261__b7664151653812">DELETE</strong> statement is successfully executed, data inconsistency occurs in concurrent update scenarios. This behavior is compatible with the behavior in versions earlier than 8.2.1.</li><li id="EN-US_TOPIC_0000001510522261__li947011566220">If this parameter is not set and the <strong id="EN-US_TOPIC_0000001510522261__b1879615232382">UPDATE</strong> or <strong id="EN-US_TOPIC_0000001510522261__b1479712317383">DELETE</strong> statement executed in the current session detects that tuples have been updated, the <strong id="EN-US_TOPIC_0000001510522261__b187971323113820">UPDATE</strong> or <strong id="EN-US_TOPIC_0000001510522261__b18797132373810">DELETE</strong> statement of the current session will be re-executed to ensure data consistency. The number of statement execution retries is controlled by the <a href="dws_04_0932.html#EN-US_TOPIC_0000001510522549__sc9cd4d1562654b6ebb842765d3e398e4">max_query_retry_times</a> parameter.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p1238214242489">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p1338212484816">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p10382192414489">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row155190193212"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p0958151123216">disable_set_global_var_on_datanode</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p416812261981">Controls whether the <strong id="EN-US_TOPIC_0000001510522261__b136368423518">set_config</strong> function can be used to set global variables on DNs. (This parameter is supported only by clusters of version 8.2.1 or later.)</p>
<ul id="EN-US_TOPIC_0000001510522261__ul109851236387"><li id="EN-US_TOPIC_0000001510522261__li1285914446816">When this parameter is set, the <strong id="EN-US_TOPIC_0000001510522261__b19101320133512">set_config</strong> function cannot be used to set global variables on DNs. By default, this behavior is compatible with the behavior in versions earlier than 8.2.1.</li><li id="EN-US_TOPIC_0000001510522261__li49858365811">If this parameter is not set, the <strong id="EN-US_TOPIC_0000001510522261__b15771432133517">set_config</strong> function can set global variables on DNs. As a result, the global variable values on CNs and DNs are inconsistent, and errors may occur when the <strong id="EN-US_TOPIC_0000001510522261__b7578173233518">read_global_var</strong> function is pushed down.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p75795167378">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p1757981623714">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p95791816183712">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row146037501480"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p756513915135">variadic_null_check</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p197512212920">Whether <strong id="EN-US_TOPIC_0000001510522261__b1269714314362">variadic</strong> can transfer the <strong id="EN-US_TOPIC_0000001510522261__b86982313367">NULL</strong> parameter. This function is disabled by default. (This parameter is supported only by clusters of version 8.2.1.300 or later.)</p>
<ul id="EN-US_TOPIC_0000001510522261__ul0975521192"><li id="EN-US_TOPIC_0000001510522261__li1097562113916">When this parameter is set, the <strong id="EN-US_TOPIC_0000001510522261__b98742314211">NULL</strong> parameter cannot be transferred to <strong id="EN-US_TOPIC_0000001510522261__b587512334217">variadic</strong>. Otherwise, an error is reported.<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510522261__screen201991355121"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SET</span><span class="w"> </span><span class="n">behavior_compat_options</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s1">'variadic_null_check'</span><span class="p">;</span>
<span class="k">SELECT</span><span class="w"> </span><span class="n">format</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="s1">'array'</span><span class="p">,</span><span class="w"> </span><span class="n">VARIADIC</span><span class="w"> </span><span class="k">NULL</span><span class="p">);</span>
<span class="n">ERROR</span><span class="p">:</span><span class="w"> </span><span class="n">VARIADIC</span><span class="w"> </span><span class="k">parameter</span><span class="w"> </span><span class="n">must</span><span class="w"> </span><span class="n">be</span><span class="w"> </span><span class="n">an</span><span class="w"> </span><span class="nb">array</span>
</pre></div></td></tr></table></div>
</div>
<div class="note" id="EN-US_TOPIC_0000001510522261__note795982225512"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="EN-US_TOPIC_0000001510522261__p795982295515">To be compatible with MySQL, enabling <strong id="EN-US_TOPIC_0000001510522261__b5410013164213">compat_concat_variadic</strong> does not take effect for the <strong id="EN-US_TOPIC_0000001510522261__b1410161313425">concat</strong> and <strong id="EN-US_TOPIC_0000001510522261__b18411161314424">concat_ws</strong> functions, and the <strong id="EN-US_TOPIC_0000001510522261__b144111213154215">NULL</strong> parameter can still be transferred.</p>
</div></div>
</li><li id="EN-US_TOPIC_0000001510522261__li1597513211899">If this parameter is not set, the <strong id="EN-US_TOPIC_0000001510522261__b8973519124214">NULL</strong> parameter can be transferred to <strong id="EN-US_TOPIC_0000001510522261__b1797451918423">variadic</strong>.<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510522261__screen6350417838"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span>
<span class="normal">5</span>
<span class="normal">6</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SET</span><span class="w"> </span><span class="n">behavior_compat_options</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s1">''</span><span class="p">;</span>
<span class="k">SELECT</span><span class="w"> </span><span class="n">format</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="s1">'array'</span><span class="p">,</span><span class="w"> </span><span class="n">VARIADIC</span><span class="w"> </span><span class="k">NULL</span><span class="p">);</span>
<span class="w"> </span><span class="n">format</span>
<span class="c1">--------</span>
<span class="w"> </span><span class="nb">array</span>
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p1068981195511">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p7689131155511">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p3690191165513">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row201588360116"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p171581364118">enable_use_syscol_in_replicate_table</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p151582036151119">Whether <strong id="EN-US_TOPIC_0000001510522261__b285123617422">oid</strong>, <strong id="EN-US_TOPIC_0000001510522261__b188521036184220">ctid</strong>, <strong id="EN-US_TOPIC_0000001510522261__b2852136184213">tableoid</strong>, or <strong id="EN-US_TOPIC_0000001510522261__b1185219367425">xc_node_id</strong> can be used as filter, join, or having conditions when the <strong id="EN-US_TOPIC_0000001510522261__b168527365428">INSERT</strong>, <strong id="EN-US_TOPIC_0000001510522261__b11852103613426">UPDATE</strong>, <strong id="EN-US_TOPIC_0000001510522261__b178524368422">MERGE INTO</strong>, and <strong id="EN-US_TOPIC_0000001510522261__b14853736184213">DELETE</strong> statements are executed on replication tables. This parameter is not set by default. <span id="EN-US_TOPIC_0000001510522261__ph133620914417">This parameter is supported only by clusters of version 8.2.1.200 or later.</span></p>
<ul id="EN-US_TOPIC_0000001510522261__ul1750391141518"><li id="EN-US_TOPIC_0000001510522261__li1050301171515">If this parameter is not set and <strong id="EN-US_TOPIC_0000001510522261__b1764261810449">oid</strong>, <strong id="EN-US_TOPIC_0000001510522261__b20643151814441">ctid</strong>, <strong id="EN-US_TOPIC_0000001510522261__b166433187446">tableoid</strong>, or <strong id="EN-US_TOPIC_0000001510522261__b66434184444">xc_node_id</strong> is used as filter, join, or having conditions when the <strong id="EN-US_TOPIC_0000001510522261__b126431183444">INSERT</strong>, <strong id="EN-US_TOPIC_0000001510522261__b166431518144413">UPDATE</strong>, <strong id="EN-US_TOPIC_0000001510522261__b26431518154420">MERGE INTO</strong>, or <strong id="EN-US_TOPIC_0000001510522261__b1643121815442">DELETE</strong> statements are executed on replication tables, the following error is reported:<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen19525114631710">ERROR: Can not use system column oid/ctid/tableoid/xc_node_id in Replication Table.</pre>
</li><li id="EN-US_TOPIC_0000001510522261__li154019717160">When this parameter is set, the <strong id="EN-US_TOPIC_0000001510522261__b1898313444417">INSERT</strong>, <strong id="EN-US_TOPIC_0000001510522261__b13983934114413">UPDATE</strong>, <strong id="EN-US_TOPIC_0000001510522261__b189831834154416">MERGE INTO</strong>, and <strong id="EN-US_TOPIC_0000001510522261__b49831345449">DELETE</strong> statements can be executed on replication tables using the system column <strong id="EN-US_TOPIC_0000001510522261__b15984203494416">id</strong>, <strong id="EN-US_TOPIC_0000001510522261__b898418346441">ctid</strong>, <strong id="EN-US_TOPIC_0000001510522261__b198413349447">tableoid</strong>, or <strong id="EN-US_TOPIC_0000001510522261__b398473413445">xc_node_id</strong>.<div class="caution" id="EN-US_TOPIC_0000001510522261__note941622819220"><span class="cautiontitle"> CAUTION: </span><div class="cautionbody"><p id="EN-US_TOPIC_0000001510522261__p1941672882217">If <strong id="EN-US_TOPIC_0000001510522261__b18810144444418">oid</strong>, <strong id="EN-US_TOPIC_0000001510522261__b4811164418449">ctid</strong>, <strong id="EN-US_TOPIC_0000001510522261__b13811344154415">tableoid</strong>, or <strong id="EN-US_TOPIC_0000001510522261__b581184418445">xc_node_id</strong> is used as filter, join, and having conditions when the <strong id="EN-US_TOPIC_0000001510522261__b68111244194410">INSERT</strong>, <strong id="EN-US_TOPIC_0000001510522261__b1881218442445">UPDATE</strong>, <strong id="EN-US_TOPIC_0000001510522261__b8812844194420">MERGE INTO</strong>, or <strong id="EN-US_TOPIC_0000001510522261__b18812744184419">DELETE</strong> statements are executed on partition tables, the statement may result in cluster core dumps. In this case, exercise caution when setting this parameter.</p>
</div></div>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p1415983641120">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p2400142319173">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p948414255173">MYSQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row14271559020"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p14271555803">enable_force_add_batch</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p1851152412119">Determines whether GaussDB(DWS) receives U packets in addbatch mode when <strong id="EN-US_TOPIC_0000001510522261__b2641145054417">support_batch_bind</strong> is set to <strong id="EN-US_TOPIC_0000001510522261__b9641135044418">on</strong> and <strong id="EN-US_TOPIC_0000001510522261__b7641155017443">enable_fast_query_shipping</strong> and <strong id="EN-US_TOPIC_0000001510522261__b564215508442">enable_light_proxy</strong> are both set to <strong id="EN-US_TOPIC_0000001510522261__b1664285024414">off</strong>. This parameter is not set by default. This parameter is supported only by clusters of version <span id="EN-US_TOPIC_0000001510522261__ph103401527456">8.2.1.200</span> or later.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul113058426217"><li id="EN-US_TOPIC_0000001510522261__li630504213211">If this parameter is not set, <strong id="EN-US_TOPIC_0000001510522261__b107819774517">support_batch_bind</strong> is set to <strong id="EN-US_TOPIC_0000001510522261__b57823724513">on</strong>, and <strong id="EN-US_TOPIC_0000001510522261__b9782197134512">enable_fast_query_shipping</strong> and <strong id="EN-US_TOPIC_0000001510522261__b278215710458">enable_light_proxy</strong> are both set to <strong id="EN-US_TOPIC_0000001510522261__b177828704520">off</strong>, GaussDB(DWS) does not receive U packets in <strong id="EN-US_TOPIC_0000001510522261__b1978210794517">addbatch</strong> mode.</li><li id="EN-US_TOPIC_0000001510522261__li7176519740">If this parameter is set, <strong id="EN-US_TOPIC_0000001510522261__b15561613164513">support_batch_bind</strong> is set to <strong id="EN-US_TOPIC_0000001510522261__b18561213104510">on</strong>, and <strong id="EN-US_TOPIC_0000001510522261__b12561013164511">enable_fast_query_shipping</strong> and <strong id="EN-US_TOPIC_0000001510522261__b9571134459">enable_light_proxy</strong> are both set to <strong id="EN-US_TOPIC_0000001510522261__b45711313457">off</strong>, GaussDB(DWS) receives U packets in <strong id="EN-US_TOPIC_0000001510522261__b1257121312458">addbatch</strong> mode. However, packets are imported to the database slowly, which may cause insufficient memory. So, exercise caution when setting this parameter.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p96768596013">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p1467610596015">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p196768591501">MYSQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row87031658141417"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p19457931101212">disable_mergesort_without_material</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p1386509202">Controls whether the current stream segment contains materialized operators. If it is, <strong id="EN-US_TOPIC_0000001510522261__b18802172118455">merge sort</strong> is used. This parameter is supported only by clusters of version 8.2.1.100 or later.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul13184155192019"><li id="EN-US_TOPIC_0000001510522261__li1518420517206">If this parameter is enabled and the current stream segment contains materialized operators (material, sort, agg, and CteScan), <strong id="EN-US_TOPIC_0000001510522261__b5732123420479">merge sort</strong> can be used. Otherwise, merge sort cannot be used.</li><li id="EN-US_TOPIC_0000001510522261__li718425152018">If this parameter is unset, there is no need to verify whether the current stream segment contains materialized operators to determine whether to use <strong id="EN-US_TOPIC_0000001510522261__b7764694710">merge sort</strong>.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p514271103112">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p18142151143115">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p51424112317">MYSQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row187476971516"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p10193181821516">enable_pushdown_groupingset_subquery</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p1319313182152">Specifies whether conditions from the outer query that are only related to a subquery can be pushed down to the subquery when the subquery contains a grouping set. This parameter is supported only by clusters of version 8.2.1.100 or later.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul519317184159"><li id="EN-US_TOPIC_0000001510522261__li2193141815158">If the subquery contains grouping sets and this parameter is set, the conditions in the outer query cannot be pushed down to the subquery.</li><li id="EN-US_TOPIC_0000001510522261__li119319182155">If the subquery contains grouping sets and this parameter is not set, the conditions in the outer query can be pushed down to the subquery.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p17954115993017">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p129549596303">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p1395515913301">MYSQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row163909720300"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p43915719308">enable_int_division_by_truncate</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p2039116719306">Controls whether the integer division behavior result set returns integers or floating point numbers and the option is compatible with PG or ORA behaviors.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul55451333173117"><li id="EN-US_TOPIC_0000001510522261__li195451833183111">If this option is enabled, the integer division result is an integer, the decimal places are truncated and this option is compatible with PG behaviors.<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen144091834193310">SET behavior_compat_options = 'enable_int_division_by_truncate';
SELECT 8::int8 / 3::int8, 8::int4 / 3::int4, 8::int2 / 3::int2, 8::int1 / 3::int1;
?column? | ?column? | ?column? | ?column?
----------+----------+----------+----------
2 | 2 | 2 | 2
(1 row)</pre>
</li></ul>
<ul id="EN-US_TOPIC_0000001510522261__ul195451133113110"><li id="EN-US_TOPIC_0000001510522261__li14545833193110">If this option is disabled, the integer division result returns a floating point number, including decimal places, and this option is compatible with ORA behaviors.<pre class="screen" id="EN-US_TOPIC_0000001510522261__screen2299174053314">SET behavior_compat_options = '';
SELECT 8::int8 / 3::int8, 8::int4 / 3::int4, 8::int2 / 3::int2, 8::int1 / 3::int1;
?column? | ?column? | ?column? | ?column?
------------------+------------------+------------------+------------------
2.66666666666667 | 2.66666666666667 | 2.66666666666667 | 2.66666666666667
(1 row)</pre>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p3587112410307">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p1587122416308">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p35871324193018">MYSQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row87921135184717"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p546710413269">normalize_negative_zero</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p846774122617">Controls whether the <strong id="EN-US_TOPIC_0000001510522261__b7262182404419">ceil()</strong> and <strong id="EN-US_TOPIC_0000001510522261__b42631124174413">round()</strong> functions will produce a negative zero when dealing with certain float values. This parameter is supported only by clusters of version 8.1.3.333 and later.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul1435605345614"><li id="EN-US_TOPIC_0000001510522261__li158091420185212">When this parameter is set, <strong id="EN-US_TOPIC_0000001510522261__b22332327446">ceil()</strong> processes <strong id="EN-US_TOPIC_0000001510522261__b22341832104414">(-1,0)</strong> and <strong id="EN-US_TOPIC_0000001510522261__b8234832194414">round()</strong> processes <strong id="EN-US_TOPIC_0000001510522261__b19234132204411">[-0.5, 0)</strong>. The return value is <strong id="EN-US_TOPIC_0000001510522261__b1123443224418">0</strong>.<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510522261__screen1632211236531"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
<span class="normal"> 2</span>
<span class="normal"> 3</span>
<span class="normal"> 4</span>
<span class="normal"> 5</span>
<span class="normal"> 6</span>
<span class="normal"> 7</span>
<span class="normal"> 8</span>
<span class="normal"> 9</span>
<span class="normal">10</span>
<span class="normal">11</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SET</span><span class="w"> </span><span class="n">behavior_compat_options</span><span class="o">=</span><span class="s1">'normalize_negative_zero'</span><span class="p">;</span>
<span class="k">SELECT</span><span class="w"> </span><span class="n">ceil</span><span class="p">(</span><span class="k">cast</span><span class="p">(</span><span class="o">-</span><span class="mi">0</span><span class="p">.</span><span class="mi">1</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nb">float</span><span class="p">));</span>
<span class="w"> </span><span class="n">ceil</span>
<span class="c1">------</span>
<span class="w"> </span><span class="mi">0</span>
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
<span class="k">SELECT</span><span class="w"> </span><span class="n">round</span><span class="p">(</span><span class="k">cast</span><span class="p">(</span><span class="o">-</span><span class="mi">0</span><span class="p">.</span><span class="mi">1</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nb">FLOAT</span><span class="p">));</span>
<span class="w"> </span><span class="n">round</span>
<span class="c1">-------</span>
<span class="w"> </span><span class="mi">0</span>
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</li></ul>
<ul id="EN-US_TOPIC_0000001510522261__ul108081420175210"><li id="EN-US_TOPIC_0000001510522261__li7808820205215">If this parameter is not set, <strong id="EN-US_TOPIC_0000001510522261__b185431336174418">-0</strong> is returned when <strong id="EN-US_TOPIC_0000001510522261__b1054316362440">ceil()</strong> processes <strong id="EN-US_TOPIC_0000001510522261__b2544193617440">(-1,0)</strong> and <strong id="EN-US_TOPIC_0000001510522261__b8544163617448">round()</strong> processes <strong id="EN-US_TOPIC_0000001510522261__b5544113634417">[-0.5, 0)</strong>.<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510522261__screen863715502525"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
<span class="normal"> 2</span>
<span class="normal"> 3</span>
<span class="normal"> 4</span>
<span class="normal"> 5</span>
<span class="normal"> 6</span>
<span class="normal"> 7</span>
<span class="normal"> 8</span>
<span class="normal"> 9</span>
<span class="normal">10</span>
<span class="normal">11</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SET</span><span class="w"> </span><span class="n">behavior_compat_options</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s1">''</span><span class="p">;</span>
<span class="k">SELECT</span><span class="w"> </span><span class="n">ceil</span><span class="p">(</span><span class="k">cast</span><span class="p">(</span><span class="o">-</span><span class="mi">0</span><span class="p">.</span><span class="mi">1</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nb">FLOAT</span><span class="p">));</span>
<span class="w"> </span><span class="n">ceil</span><span class="w"> </span>
<span class="c1">------</span>
<span class="w"> </span><span class="o">-</span><span class="mi">0</span><span class="w"> </span>
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
<span class="k">SELECT</span><span class="w"> </span><span class="n">round</span><span class="p">(</span><span class="k">cast</span><span class="p">(</span><span class="o">-</span><span class="mi">0</span><span class="p">.</span><span class="mi">1</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nb">FLOAT</span><span class="p">));</span>
<span class="w"> </span><span class="n">round</span>
<span class="c1">-------</span>
<span class="w"> </span><span class="o">-</span><span class="mi">0</span>
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p846724112618">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p13519749142517">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p017855112258">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row178303403471"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p1092813311315">disable_client_detection_commit</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p8928143301316">Specifies whether to verify the client connection before committing each transaction. If the connection is not present, an error will be reported, and the transaction will be rolled back to prevent duplicate data delivery due to disconnection. This parameter is supported only in 8.1.3.333, 8.2.1.230, and later cluster versions.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul10798104961619"><li id="EN-US_TOPIC_0000001510522261__li1579864931614">If this parameter is not set, the system will verify the client connection before committing each transaction.</li><li id="EN-US_TOPIC_0000001510522261__li1080162191715">If this parameter is set, the system will not verify the client connection before committing each transaction.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p08851808162">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p17885100101618">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p10885110151614">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510522261__row203146408156"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510522261__p63148403157">gds_fill_multi_missing_fields</p>
</td>
<td class="cellrowborder" valign="top" width="59.95%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510522261__p133143407157">This parameter controls the behavior when the GDS foreign table fault tolerance parameter <strong id="EN-US_TOPIC_0000001510522261__b71367447362">fill_missing_fields</strong> is set to <strong id="EN-US_TOPIC_0000001510522261__b913764413615">true</strong> or <strong id="EN-US_TOPIC_0000001510522261__b0137204412369">on</strong>. In 8.2.1.230 and later versions, when <strong id="EN-US_TOPIC_0000001510522261__b143177545369">fill_missing_fields</strong> is set to true or on for the GDS foreign table, the last columns in a row of the data source file can be missing. In this case, these columns are set to <strong id="EN-US_TOPIC_0000001510522261__b2101131103715">NULL</strong>. Before this, only the last column in a row of the data source file can be missing. Otherwise, an error is reported.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul1214022383018"><li id="EN-US_TOPIC_0000001510522261__li1814016238305">If this option is specified, the GDS foreign table allows the loss of multiple last columns in a row of the source data file.</li><li id="EN-US_TOPIC_0000001510522261__li14140142311303">If this option is not specified, the loss of the last column in a row of the data source file is allowed in the GDS foreign table. This parameter compatible with historical behavior.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15.049999999999999%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510522261__p8471105994911">ORA</p>
<p id="EN-US_TOPIC_0000001510522261__p847185934916">TD</p>
<p id="EN-US_TOPIC_0000001510522261__p174711059134918">MySQL</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001510522261__section572011222317"><h4 class="sectiontitle">internal_compat_options</h4><p id="EN-US_TOPIC_0000001510522261__p97172022933"><strong id="EN-US_TOPIC_0000001510522261__b8556131134616">Parameter description</strong>: Specifies database compatibility behavior. Multiple items are separated by commas (,). This parameter is supported only by clusters of version 8.1.3.333 and later.</p>
<p id="EN-US_TOPIC_0000001510522261__p771710226313"><strong id="EN-US_TOPIC_0000001510522261__b138151119461">Type</strong>: SIGHUP</p>
<p id="EN-US_TOPIC_0000001510522261__p071732217319"><strong id="EN-US_TOPIC_0000001510522261__b4201181513464">Value range</strong>: a string</p>
<p id="EN-US_TOPIC_0000001510522261__p17175221433"><strong id="EN-US_TOPIC_0000001510522261__b1773121714461">Default value</strong>: In upgrade scenarios, the default value of this parameter is the same as that in the cluster before the upgrade. In a cluster installation scenario, the default value of this parameter is empty.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001510522261__table137201722134" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Compatibility configuration items</caption><thead align="left"><tr id="EN-US_TOPIC_0000001510522261__row20717922332"><th align="left" class="cellrowborder" valign="top" width="27.68%" id="mcps1.3.5.6.2.3.1.1"><p id="EN-US_TOPIC_0000001510522261__p10717162216315"><strong id="EN-US_TOPIC_0000001510522261__b312815283464">Configuration Item</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="72.32%" id="mcps1.3.5.6.2.3.1.2"><p id="EN-US_TOPIC_0000001510522261__p1971722215320"><strong id="EN-US_TOPIC_0000001510522261__b102665303464">Behavior</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001510522261__row15719922732"><td class="cellrowborder" valign="top" width="27.68%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001510522261__p15717182217316">light_proxy_permission_compat</p>
</td>
<td class="cellrowborder" valign="top" width="72.32%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001510522261__p17717102214319">Nested query permission configuration item in the light proxy scenario.</p>
<ul id="EN-US_TOPIC_0000001510522261__ul14719122835"><li id="EN-US_TOPIC_0000001510522261__li571942217319">If this parameter is not set, you must have the query permission for nested queries in the light proxy scenario.</li><li id="EN-US_TOPIC_0000001510522261__li2071922216316">Enabling this parameter allows for nested queries in the light proxy scenario, regardless of permissions.</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0929.html">Version and Platform Compatibility</a></div>
</div>
</div>