MongoDB "Flat Array" functionality is not working

MongoDB "Flat Array" functionality is not working

book

Article ID: KB0081646

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization 7.0.5,7.0.6+

Description

 TDV Flatting Array is only working up to one level only and cannot flatten deeply nested object or arrays (Flatting arrays in an operation which converts nested object into columns.)

Issue/Introduction

MongoDB "Flat Array" functionality is not working

Resolution

MongodB data structure
User-added image
Mongo DB table structure after introspecting in studio. First Image is without flattening data and 2nd is with flattening data
User-added imageUser-added image

 


 

TDV Mongo DB adapter can only flatten array upto level 1 and other data is ignored.

 

We have to set below mentioned configuration to resolve issue.

 

Set:

Flatten Array = 10 <Depth of Array>

Flatten Object=TRUE

Row Scan Depth=25000 <count of rows>

Type Detection Scheme=RawScan, Recent


User-added image