<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:50:53 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>[SERVER-39055] Error: expected PlanStage for table DBname.t4, got &lt;nil&gt; SQLState: HY000 ErrorCode: 1105, MongoDB 2.6 server</title>
                <link>https://jira.mongodb.org/browse/SERVER-39055</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;SELECT&lt;br/&gt;
`t1`.`col1` AS `C1`,&lt;br/&gt;
`t1`.`col2` AS `C2`,&lt;br/&gt;
`t1`.`col3` AS `C3`&lt;br/&gt;
FROM&lt;br/&gt;
`dbName`.`Table1` `t2`,&lt;br/&gt;
`dbName`.`Table1` `t3`,&lt;br/&gt;
(&lt;br/&gt;
SELECT&lt;br/&gt;
`col2`,&lt;br/&gt;
1 AS `c2`&lt;br/&gt;
FROM&lt;br/&gt;
`dbName`.`Table1`&lt;br/&gt;
WHERE&lt;br/&gt;
`col2` IN (&lt;br/&gt;
&apos;P1&apos;,&lt;br/&gt;
&apos;c&apos; )&lt;br/&gt;
) `t4`,&lt;br/&gt;
(&lt;br/&gt;
SELECT&lt;br/&gt;
`col1`,&lt;br/&gt;
`col2`,&lt;br/&gt;
`col3`&lt;br/&gt;
FROM&lt;br/&gt;
`dbName`.`Table2`&lt;br/&gt;
WHERE&lt;br/&gt;
`col1` = &apos;S1&apos; AND&lt;br/&gt;
`col2` = &apos;P1&apos;&lt;br/&gt;
) `t1`&lt;br/&gt;
WHERE&lt;br/&gt;
`t2`.`col2` = `t1`.`col2` AND&lt;br/&gt;
`t2`.`col2` = `t4`.`col2` AND&lt;br/&gt;
`t2`.`col2` = `t3`.`col2` AND&lt;br/&gt;
`t2`.`col2` IN (&lt;br/&gt;
&apos;P1&apos;,&lt;br/&gt;
&apos;a&apos; ) AND&lt;br/&gt;
`t3`.`col2` IN (&lt;br/&gt;
&apos;P1&apos;,&lt;br/&gt;
&apos;b&apos; )&lt;br/&gt;
ORDER BY&lt;br/&gt;
`C3` ASC&lt;/p&gt;</description>
                <environment></environment>
        <key id="673653">SERVER-39055</key>
            <summary>Error: expected PlanStage for table DBname.t4, got &lt;nil&gt; SQLState: HY000 ErrorCode: 1105, MongoDB 2.6 server</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="9">Done</resolution>
                                        <assignee username="daniel.hatcher@mongodb.com">Danny Hatcher</assignee>
                                    <reporter username="adarshdeep.cheema">Adarshdeep Cheema</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Jan 2019 22:18:03 +0000</created>
                <updated>Wed, 16 Jan 2019 22:21:33 +0000</updated>
                            <resolved>Wed, 16 Jan 2019 22:21:20 +0000</resolved>
                                    <version>4.0.2</version>
                                                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="2117693" author="daniel.hatcher" created="Wed, 16 Jan 2019 22:21:02 +0000"  >&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Thanks for your report. Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the &lt;a href=&quot;https://groups.google.com/group/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user group&lt;/a&gt; or &lt;a href=&quot;https://stackoverflow.com/questions/tagged/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Stack Overflow with the &lt;tt&gt;mongodb&lt;/tt&gt; tag&lt;/a&gt;. A question like this involving more discussion would be best posted on the mongodb-user group. BI Connector Support from MongoDB engineers is included in our &lt;a href=&quot;https://www.mongodb.com/products/mongodb-enterprise-advanced&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Enterprise Advanced&lt;/a&gt; package. &lt;/p&gt;

&lt;p&gt;Please note that we recommend using the latest edition of BI Connector which is currently 2.9.0.&lt;/p&gt;

&lt;p&gt;Thank you,&lt;/p&gt;

&lt;p&gt;Danny&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="673651">SERVER-39054</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 16 Jan 2019 22:21:02 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 4 weeks 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_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>daniel.hatcher@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 4 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>adarshdeep.cheema</customfieldvalue>
            <customfieldvalue>daniel.hatcher@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hujirr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hu9hbr:</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_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;This issue is specific to MONGO 2.6 server.&lt;/p&gt;

&lt;p&gt;When we try to run the following query against&#160;&lt;b&gt;MongoDB BI Connector 2.6 on MongoDB 4.0.2&lt;/b&gt;&#160;server then it throws the ERROR: error cross join optimizer: expected PlanStage for table dbcert.t4, got &amp;lt;nil&amp;gt;&lt;br/&gt;
SQLState: HY000&lt;br/&gt;
ErrorCode: 1105&lt;/p&gt;

&lt;p&gt;PLEASE NOTE: This issue does not occur when we use the same query against MongoDB BI Connector 2.7 on MongoDB 4.0.3 and MongoDB BI Connector 2.8 on MongoDB 4.0.5&lt;/p&gt;

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

&lt;p&gt;QUERY:&lt;/p&gt;

&lt;p&gt;SELECT&lt;br/&gt;
`t1`.`col1` AS `C1`,&lt;br/&gt;
`t1`.`col2` AS `C2`,&lt;br/&gt;
`t1`.`col3` AS `C3`&lt;br/&gt;
FROM&lt;br/&gt;
`dbName`.`Table1` `t2`,&lt;br/&gt;
`dbName`.`Table1` `t3`,&lt;br/&gt;
(&lt;br/&gt;
SELECT&lt;br/&gt;
`col2`,&lt;br/&gt;
1 AS `c2`&lt;br/&gt;
FROM&lt;br/&gt;
`dbName`.`Table1`&lt;br/&gt;
WHERE&lt;br/&gt;
`col2` IN (&lt;br/&gt;
&apos;P1&apos;,&lt;br/&gt;
&apos;c&apos; )&lt;br/&gt;
) `t4`,&lt;br/&gt;
(&lt;br/&gt;
SELECT&lt;br/&gt;
`col1`,&lt;br/&gt;
`col2`,&lt;br/&gt;
`col3`&lt;br/&gt;
FROM&lt;br/&gt;
`dbName`.`Table2`&lt;br/&gt;
WHERE&lt;br/&gt;
`col1` = &apos;S1&apos; AND&lt;br/&gt;
`col2` = &apos;P1&apos;&lt;br/&gt;
) `t1`&lt;br/&gt;
WHERE&lt;br/&gt;
`t2`.`col2` = `t1`.`col2` AND&lt;br/&gt;
`t2`.`col2` = `t4`.`col2` AND&lt;br/&gt;
`t2`.`col2` = `t3`.`col2` AND&lt;br/&gt;
`t2`.`col2` IN (&lt;br/&gt;
&apos;P1&apos;,&lt;br/&gt;
&apos;a&apos; ) AND&lt;br/&gt;
`t3`.`col2` IN (&lt;br/&gt;
&apos;P1&apos;,&lt;br/&gt;
&apos;b&apos; )&lt;br/&gt;
ORDER BY&lt;br/&gt;
`C3` ASC&lt;/p&gt;</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_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|huj513:</customfieldvalue>

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