[COMPASS-6020] CSV export missing fields when depth > 1 Created: 16/Aug/22  Updated: 29/Oct/23  Resolved: 08/May/23

Status: Closed
Project: Compass
Component/s: Import/Export
Affects Version/s: None
Fix Version/s: 1.37.0

Type: Bug Priority: Major - P3
Reporter: Maurizio Casimirri Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS:
node.js / npm versions:
Additional info:


Issue Links:
Depends
depends on COMPASS-6428 exportCSV() export function and tests Closed
depends on COMPASS-6582 Remove new export feature flag, remov... Closed
Duplicate
Epic Link: COMPASS-5576
Documentation Changes: Not Needed

 Description   

Steps to reproduce:

  • create an empty collection
  • insert the document

    {"a": {"b": {"c": 1}}}
    

  • export to CSV

The result will look something like this:

_id,a.b
62fb64b8936c42092807675f,

The field selection only shows "a.b" which is ok with JSON cause the projection would effectively export the entire content of `a.b`, with CSV the content is not serialized unless is an Array, and the value is lost.


Generated at Wed Feb 07 22:41:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.