<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:46:45 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[COMPASS-7498] Export arrays creates multiple columns</title>
                <link>https://jira.mongodb.org/browse/COMPASS-7498</link>
                <project id="13182" key="COMPASS">Compass </project>
                    <description>&lt;h3&gt;&lt;a name=&quot;ProblemStatement%2FRationale&quot;&gt;&lt;/a&gt;&lt;b&gt;Problem Statement/Rationale&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;What is going wrong? What action would you like the Engineering team to take?&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Please be sure to attach relevant logs &lt;em&gt;with any sensitive data redacted&lt;/em&gt;.&lt;/b&gt;&lt;br/&gt;
&lt;em&gt;How to retrieve logs for: &lt;a href=&quot;https://www.mongodb.com/docs/compass/current/troubleshooting/logs/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Compass&lt;/a&gt;; &lt;a href=&quot;https://www.mongodb.com/docs/mongodb-shell/logs/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Shell&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;StepstoReproduce&quot;&gt;&lt;/a&gt;&lt;b&gt;Steps to Reproduce&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;How could an engineer replicate the issue you&#8217;re reporting?&lt;/font&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;ExpectedResults&quot;&gt;&lt;/a&gt;&lt;b&gt;Expected Results&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;What do you expect to happen?&lt;/font&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;ActualResults&quot;&gt;&lt;/a&gt;&lt;b&gt;Actual Results&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;What do you observe is happening?&lt;/font&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;AdditionalNotes&quot;&gt;&lt;/a&gt;&lt;b&gt;Additional Notes&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;Any additional information that may be useful to include.&lt;/font&gt;&lt;/p&gt;</description>
                <environment>OS:&lt;br/&gt;
node.js / npm versions:&lt;br/&gt;
Additional info:&lt;br/&gt;
</environment>
        <key id="2514205">COMPASS-7498</key>
            <summary>Export arrays creates multiple columns</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13202">Works as Designed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="tibo53@netcourrier.com">Mark Fallous</reporter>
                        <labels>
                    </labels>
                <created>Fri, 1 Dec 2023 16:51:48 +0000</created>
                <updated>Fri, 8 Dec 2023 16:12:58 +0000</updated>
                            <resolved>Tue, 5 Dec 2023 15:22:30 +0000</resolved>
                                    <version>1.40.3</version>
                                    <fixVersion>No version</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="5936223" author="rhys.howell" created="Fri, 8 Dec 2023 16:12:58 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tibo53%40netcourrier.com&quot; class=&quot;user-hover&quot; rel=&quot;tibo53@netcourrier.com&quot;&gt;tibo53@netcourrier.com&lt;/a&gt; I was thinking of using a string field, that might not be the format you&apos;re looking for as it&apos;ll have `&quot;` characters leading and trailing.&lt;br/&gt;
Another alternative could be using `mongoexport`: &lt;a href=&quot;https://www.mongodb.com/docs/database-tools/mongoexport/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.mongodb.com/docs/database-tools/mongoexport/&lt;/a&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="5926797" author="JIRAUSER1271568" created="Tue, 5 Dec 2023 16:34:45 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=rhys.howell%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;rhys.howell@mongodb.com&quot;&gt;rhys.howell@mongodb.com&lt;/a&gt; well, I keep thinking this behavior is undesirable because of the variable number of columns it produces. Could you be more precise about the aggregation pipeline? How would you transform the array column, would you convert it to a string?&lt;/p&gt;</comment>
                            <comment id="5926476" author="rhys.howell" created="Tue, 5 Dec 2023 15:22:08 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tibo53%40netcourrier.com&quot; class=&quot;user-hover&quot; rel=&quot;tibo53@netcourrier.com&quot;&gt;tibo53@netcourrier.com&lt;/a&gt;, the existing csv export array field format (col&lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt;, col&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;) is how the csv export in Compass was intentionally designed. As an alternative if you want it in that specific format you could create a pipeline aggregation to create a field on the document in the desired format. We also recommend using JSON as the primary means of importing/exporting. Thanks for creating the ticket, please do let us know if other things come up!&lt;/p&gt;</comment>
                            <comment id="5922687" author="JIRAUSER1271568" created="Mon, 4 Dec 2023 11:30:57 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=rhys.howell%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;rhys.howell@mongodb.com&quot;&gt;rhys.howell@mongodb.com&lt;/a&gt;, well, the problem is the following: when you export a MongoDB table as a CSV, if a field is stored an an array, multiple columns are generated in the output file (i.e. col&lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt;, col&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;, etc), which is highly undesirable. One of the sought advantages of a tabular file is to have a fixed number of columns. When a field is an array, it should be better to keep it as is (i.e. &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;val1&amp;quot;, &amp;quot;val2&amp;quot;, ...&amp;#93;&lt;/span&gt;).&lt;/p&gt;</comment>
                            <comment id="5920826" author="rhys.howell" created="Sat, 2 Dec 2023 19:15:14 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tibo53%40netcourrier.com&quot; class=&quot;user-hover&quot; rel=&quot;tibo53@netcourrier.com&quot;&gt;tibo53@netcourrier.com&lt;/a&gt; Let me know the information about the issue, I can recreate the ticket or edit this one for you. I&apos;ll close the ticket for now. Thanks, interested to hear if this a bug we can fix.&lt;/p&gt;</comment>
                            <comment id="5918696" author="JIRAUSER1271568" created="Fri, 1 Dec 2023 16:54:03 +0000"  >&lt;p&gt;Sorry, there was an issue creating the JIRA, but I can&apos;t manage to edit it not delete it.&lt;/p&gt;</comment>
                            <comment id="5918689" author="dbeng-pm-bot" created="Fri, 1 Dec 2023 16:51:50 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tibo53%40netcourrier.com&quot; class=&quot;user-hover&quot; rel=&quot;tibo53@netcourrier.com&quot;&gt;tibo53@netcourrier.com&lt;/a&gt;, thank you for reaching out to us! The team will review your issue and get back to you soon as soon as possible. &lt;/p&gt;

&lt;p&gt;Please review your issue to ensure you&apos;ve included your environment details and have attached relevant logs (with any sensitive data redacted), so that we&apos;re best able to provide you a timely and thorough response. Thanks again!&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 1 Dec 2023 16:51:50 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>rhys.howell@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>tibo53@netcourrier.com</customfieldvalue>
            <customfieldvalue>dbeng-pm-bot</customfieldvalue>
            <customfieldvalue>rhys.howell@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i32txr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i2kmdo:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i32g33:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>