Skip to content

Commit 88f940b

Browse files
DOCSP-35411 -- Add workaround for 'Mapping Potentially Null Values at Different Object Depths' to Known Issues. (#431)
* DOCSP-35411 -- Add 'Mapping Potentially Null values at Different Object Depths' to Known Issues * DOCSP-35411 -- Add 'Mapping Potentially Null values at Different Object Depths' to Known Issues * DOCSP-35411 -- Add 'Mapping Potentially Null values at Different Object Depths' to Known Issues * DOCSP-35411 -- Add 'Mapping Potentially Null values at Different Object Depths' to Known Issues * DOCSP-35411 -- Copy review revisions * DOCSP-35411 -- remove vscode config * DOCSP-35411 -- remove reference to documents * DOCSP-35411 -- fix typo * DOCSP-35411 -- fix typo * DOCSP-35411 -- tech review revision
1 parent 33f4340 commit 88f940b

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"esbonio.sphinx.confDir": ""
3+
}

source/reference.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ Reference
1313
/reference/type-conversion
1414
/reference/user-authorization
1515
/reference/system-variables
16+
/reference/known-issues
1617
/supported-operations

source/reference/known-issues.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,25 @@ Given the exact same |sql| query, the |bi-short| does not return
6868
GROUP BY class;
6969

7070
Empty set (0.00 sec)
71+
72+
73+
BI Connector Returns ``NULL`` Values Due to Mapping Error
74+
----------------------------------------------------------
75+
76+
A known mapping error can occur that causes |bi-short| to return all ``NULL``
77+
values. This error occurs when you query a collection that
78+
contains an array field that can be ``NULL``, and the same array contains
79+
an additional field that can also be ``NULL``. A workaround for this error is to
80+
create a view with the ``$match`` filter that only returns documents in which
81+
the field ``$type`` is ``array`` with the ``createView`` method.
82+
83+
84+
.. example::
85+
86+
For a collection named ``nextDeparture`` with an array field named
87+
``response.schedule`` that is sometimes ``NULL``, you can create
88+
the following view:
89+
90+
.. code-block:: javascript
91+
92+
db.createView('nonullsched', '"nextDeparture"', [{'$match': {'response.schedule': {'$type': 'array'}}}])

0 commit comments

Comments
 (0)