Files
doc-exports/docs/dataartsstudio/umn/dataartsstudio_01_0055.html
chenxiaoxiong f9e2808b7c DataArts UMN 20250810 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: chenxiaoxiong <chenxiaoxiong@huawei.com>
Co-committed-by: chenxiaoxiong <chenxiaoxiong@huawei.com>
2025-09-02 10:44:13 +00:00

55 lines
6.9 KiB
HTML

<a name="dataartsstudio_01_0055"></a><a name="dataartsstudio_01_0055"></a>
<h1 class="topictitle1">From MongoDB/DDS</h1>
<div id="body8662426"><p id="dataartsstudio_01_0055__en-us_topic_0108275308_p1284319256319">When you migrate MongoDB or DDS data, CDM reads the first row of the collection as an example of the field list. If the first row of data does not contain all fields of the collection, you need to manually add fields.</p>
<div class="p" id="dataartsstudio_01_0055__en-us_topic_0108275308_p6222841216210">If the source link of a job is a <a href="dataartsstudio_01_0030.html">MongoDB link</a>, that is, if data is exported from an on-premises MongoDB or DDS, configure the source job parameters based on <a href="#dataartsstudio_01_0055__en-us_topic_0108275308_table31823995163953">Table 1</a>.
<div class="tablenoborder"><a name="dataartsstudio_01_0055__en-us_topic_0108275308_table31823995163953"></a><a name="en-us_topic_0108275308_table31823995163953"></a><table cellpadding="4" cellspacing="0" summary="" id="dataartsstudio_01_0055__en-us_topic_0108275308_table31823995163953" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="dataartsstudio_01_0055__en-us_topic_0108275308_row18653487163953"><th align="left" class="cellrowborder" valign="top" width="13.270000000000001%" id="mcps1.3.2.3.2.5.1.1"><p id="dataartsstudio_01_0055__en-us_topic_0108275308_p1492113294471">Category</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.479999999999999%" id="mcps1.3.2.3.2.5.1.2"><p id="dataartsstudio_01_0055__en-us_topic_0108275308_p15314298163953">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="53.21%" id="mcps1.3.2.3.2.5.1.3"><p id="dataartsstudio_01_0055__en-us_topic_0108275308_p32498630163953">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="18.04%" id="mcps1.3.2.3.2.5.1.4"><p id="dataartsstudio_01_0055__en-us_topic_0108275308_p15143370163953">Example Value</p>
</th>
</tr>
</thead>
<tbody><tr id="dataartsstudio_01_0055__en-us_topic_0108275308_row2052684816261"><td class="cellrowborder" rowspan="2" valign="top" width="13.270000000000001%" headers="mcps1.3.2.3.2.5.1.1 "><p id="dataartsstudio_01_0055__en-us_topic_0108275308_p5921112914712">Basic parameters</p>
</td>
<td class="cellrowborder" valign="top" width="15.479999999999999%" headers="mcps1.3.2.3.2.5.1.2 "><p id="dataartsstudio_01_0055__en-us_topic_0108275308_p175265482261">Database Name</p>
</td>
<td class="cellrowborder" valign="top" width="53.21%" headers="mcps1.3.2.3.2.5.1.3 "><p id="dataartsstudio_01_0055__en-us_topic_0108275308_p145261848192619">Name of the database from which data will be migrated</p>
</td>
<td class="cellrowborder" valign="top" width="18.04%" headers="mcps1.3.2.3.2.5.1.4 "><p id="dataartsstudio_01_0055__en-us_topic_0108275308_p452664812616">mongodb</p>
</td>
</tr>
<tr id="dataartsstudio_01_0055__en-us_topic_0108275308_row34313000163953"><td class="cellrowborder" valign="top" headers="mcps1.3.2.3.2.5.1.1 "><p id="dataartsstudio_01_0055__en-us_topic_0108275308_p46804376161524">Collection Name</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.3.2.5.1.2 "><p id="dataartsstudio_01_0055__en-us_topic_0108275308_p6187019816562">Collection name, similar to the table name of a relational database. Click the icon next to the text box to go to the page for selecting the collection or directly enter a collection name.</p>
<p id="dataartsstudio_01_0055__en-us_topic_0108275308_p49990086164128">If the desired table is not displayed, check whether the table exists or whether the login account has the permission to query metadata.</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.3.2.5.1.3 "><p id="dataartsstudio_01_0055__en-us_topic_0108275308_p41020337163953">COLLECTION</p>
</td>
</tr>
<tr id="dataartsstudio_01_0055__en-us_topic_0108275308_row13417032753"><td class="cellrowborder" valign="top" width="13.270000000000001%" headers="mcps1.3.2.3.2.5.1.1 "><p id="dataartsstudio_01_0055__en-us_topic_0108275308_p6922122919473">Advanced attributes</p>
</td>
<td class="cellrowborder" valign="top" width="15.479999999999999%" headers="mcps1.3.2.3.2.5.1.2 "><p id="dataartsstudio_01_0055__en-us_topic_0108275308_p16417163215510">Filter Condition</p>
</td>
<td class="cellrowborder" valign="top" width="53.21%" headers="mcps1.3.2.3.2.5.1.3 "><div class="p" id="dataartsstudio_01_0055__en-us_topic_0108275308_p241710321259">Conditions for filtering documents. CDM migrates only the data that meets the filter conditions. The examples are as follows:<ol id="dataartsstudio_01_0055__en-us_topic_0108275308_ol6793125415558"><li id="dataartsstudio_01_0055__en-us_topic_0108275308_li3793145420559">Filter by expression: <strong id="dataartsstudio_01_0055__en-us_topic_0108275308_b154602013234">{'last_name': 'Smith'}</strong> indicates that all files whose <span class="parmname" id="dataartsstudio_01_0055__en-us_topic_0108275308_parmname19476140182313"><b>last_name</b></span> value is <span class="parmvalue" id="dataartsstudio_01_0055__en-us_topic_0108275308_parmvalue184765082318"><b>Smith</b></span> are queried.</li><li id="dataartsstudio_01_0055__en-us_topic_0108275308_li1068119241604">Filter by parameter: <strong id="dataartsstudio_01_0055__en-us_topic_0108275308_b1052351015233">{ x : "john" }, { z : 1 }</strong> indicates that all <strong id="dataartsstudio_01_0055__en-us_topic_0108275308_b8538310132319">z</strong> fields whose <strong id="dataartsstudio_01_0055__en-us_topic_0108275308_b953814106239">x</strong> is <strong id="dataartsstudio_01_0055__en-us_topic_0108275308_b13538110152311">john</strong> are queried.</li><li id="dataartsstudio_01_0055__en-us_topic_0108275308_li192512481730">Filter by condition: <strong id="dataartsstudio_01_0055__en-us_topic_0108275308_b14366812132310">{ "field" : { $gt: 5 } }</strong> indicates that the <strong id="dataartsstudio_01_0055__en-us_topic_0108275308_b03661812172315">field</strong> values greater than 5 are queried.</li><li id="dataartsstudio_01_0055__en-us_topic_0108275308_li10803310153216">Filter by time macro: <p id="dataartsstudio_01_0055__en-us_topic_0108275308_p1011414116580"><a name="dataartsstudio_01_0055__en-us_topic_0108275308_li10803310153216"></a><a name="en-us_topic_0108275308_li10803310153216"></a>{"ts":{$gte:ISODate("${dateformat(yyyy-MM-dd'T'HH:mm:ss.SSS'Z',-1,HOUR)}")}} indicates that the values greater than those after time macro conversion in the <strong id="dataartsstudio_01_0055__en-us_topic_0108275308_b89518525334">ts</strong> field are queried.</p>
</li></ol>
</div>
</td>
<td class="cellrowborder" valign="top" width="18.04%" headers="mcps1.3.2.3.2.5.1.4 "><p id="dataartsstudio_01_0055__en-us_topic_0108275308_p18417203211519">{'last_name': 'Smith'}</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dataartsstudio_01_0047.html">Configuring CDM Source Job Parameters</a></div>
</div>
</div>