<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:05:41 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>[KAFKA-143] int64 datatype converted into nested $numberLong json</title>
                <link>https://jira.mongodb.org/browse/KAFKA-143</link>
                <project id="16285" key="KAFKA">Kafka Connector</project>
                    <description>&lt;p&gt;The source connector generates a (schemaless) payload based on a database collection.&lt;/p&gt;

&lt;p&gt;All document data types work as one would expect, except Int64.&lt;/p&gt;

&lt;p&gt;A MongoDb document field &apos;level&apos; of data type Int32 is translated into&#160;&lt;/p&gt;

&lt;p&gt;&quot;level&quot;: 3&lt;/p&gt;

&lt;p&gt;That looks good. Now, when the data type of field &apos;level&apos; is Int64, the&#160;output is&#160;&lt;/p&gt;

&lt;p&gt;&quot;level&quot;: &lt;/p&gt;
{
&#160; &#160;&quot;$numberLong&quot;: &quot;3&quot;
 }

&lt;p&gt;The nested $numberLong element and the number represented as a string/varchar indicate a bug? I&apos;d expect just &quot;level&quot;: 3 to be the output again.&lt;/p&gt;

&lt;p&gt;When sinking data into a collection, the default MongoDb data type for integers is Int64. Sourcing from the same collection results in this unexpected output.&lt;/p&gt;

&lt;p&gt;Bug or expected though mysterious behavior?&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1437659">KAFKA-143</key>
            <summary>int64 datatype converted into nested $numberLong json</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</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="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="jeffrey.vanhelden@thewarehouse.co.nz">J vH</reporter>
                        <labels>
                    </labels>
                <created>Tue, 11 Aug 2020 02:21:40 +0000</created>
                <updated>Fri, 27 Oct 2023 11:54:15 +0000</updated>
                            <resolved>Tue, 11 Aug 2020 08:21:54 +0000</resolved>
                                                                    <component>Source</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3332045" author="ross@10gen.com" created="Tue, 11 Aug 2020 08:21:54 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jeffrey.vanhelden%40thewarehouse.co.nz&quot; class=&quot;user-hover&quot; rel=&quot;jeffrey.vanhelden@thewarehouse.co.nz&quot;&gt;jeffrey.vanhelden@thewarehouse.co.nz&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for the ticket.  MongoDB supports more types than JSON does, as such to keep type fidelity there is a &lt;a href=&quot;https://docs.mongodb.com/manual/reference/mongodb-extended-json/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;MongoDB Extended Json Specification&lt;/a&gt;.  This is the output you are seeing, which ensures that bson types can be round tripped.&lt;/p&gt;

&lt;p&gt;There is a change in &lt;a href=&quot;https://jira.mongodb.org/issues/?jql=project%20%3D%20KAFKA%20AND%20fixVersion%20%3D%201.3.0&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;1.3.0&lt;/a&gt;, specifically &lt;a href=&quot;https://jira.mongodb.org/browse/KAFKA-99&quot; title=&quot;Support relaxed Json format in the source connector&quot; class=&quot;issue-link&quot; data-issue-key=&quot;KAFKA-99&quot;&gt;&lt;del&gt;KAFKA-99&lt;/del&gt;&lt;/a&gt; which allows configuration of Json output via the connector.&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxmclz:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>