Issue Description
Date announced: November 6, 2026
We have identified a critical issue affecting the SQL Interface (Atlas and Enterprise Advanced). The issue can produce incorrect results for SQL queries with a LEFT or RIGHT JOIN when the join keys may evaluate to UNKNOWN.
This issue affects the following tools and products:
SQL Interface (Atlas and Enterprise Advanced)
JDBC 3.0.8 and earlier versions
ODBC 2.0.10 and earlier versions
MongoSQL versions between 1.1.0 and 1.8.7 (deployed on Atlas Data Federation)
Customers using the legacy BI Connector are not impacted.
What Is the Impact?
When a query meets the criteria below, qualifying rows may be omitted from its results. This can lead to incorrect result sets for SQL queries.
Am I Impacted by This Issue?
This issue only occurs for a query if ALL the following are true:
The query contains a
LEFTorRIGHT JOINwith a single equality comparison condition between a field from the left datasource and a field from the right datasource.For
LEFT JOIN, the right datasource must be a collection.For
RIGHT JOIN, the left datasource must be a collection.
The schema indicates that both fields in the condition may be
UNKNOWN(NULLorMISSING).The left datasource (for
LEFT JOIN) or the right datasource (forRIGHT JOIN) contains rows where the join key's value (field in the condition) isUNKNOWN.
Rows for which the above conditions are met will be omitted from the result set.
How Do I Remediate the Issue?
MongoDB Atlas Customers with Federated Databases
MongoDB has already upgraded the Atlas SQL Interface and quickstart SQL deployment to a version that addresses the issue. No further action is required.
Enterprise Advanced and Dedicated Atlas SQL Customers
The MongoDB JDBC driver version 4.0.0 and the MongoDB ODBC driver version 3.0.0 are available now and address the issue.
If your use case meets the criteria above, MongoDB recommends:
EA SQL and Dedicated Atlas SQL Interface users only
Upgrade to the latest version of the JDBC or ODBC driver with the fix using the Installation instructions.
All users
Refresh impacted dashboards.
Update results by re-executing impacted SQL queries.
Additionally, MongoDB recommends that if customers are uncertain whether they meet all issue criteria, they should apply the same steps for any dashboard or SQL query using a LEFT or RIGHT JOIN.
For more information, see SQL-3465. If you have any questions, open a support case or start a chat with the MongoDB Support team.