Skip to content

Commit 9894aca

Browse files
Clare Zheng (Shanghai Wicresoft Co Ltd)Clare Zheng (Shanghai Wicresoft Co Ltd)
authored andcommitted
Update doc according to comments
1 parent e28362b commit 9894aca

File tree

2 files changed

+5
-21
lines changed

2 files changed

+5
-21
lines changed

articles/data-factory/connector-mongodb.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -256,23 +256,7 @@ To copy data from MongoDB to tabular sink or reversed, refer to [schema mapping]
256256
Here are steps that help you upgrade your linked service and related queries:
257257

258258
1. Create a new MongoDB linked service and configure it by referring to [Linked service properties](#linked-service-properties).
259-
1. If you use SQL queries in your pipelines that refer to the old MongoDB linked service, replace them with the equivalent MongoDB queries. See the following table for the replacement rules:
260-
261-
| SQL query | Equivalent MongoDB query |
262-
|:--- |:--- |
263-
| *Query pattern*||
264-
| SQL multiple joins queries |MongoDB aggregate queries with multiple `$lookup`|
265-
| `SELECT FROM` | `find` with projection <br>e.g. `db.users.find({}, { name: 1, email: 1 })` |
266-
| `SELECT FROM JOIN` |`$lookup` (aggregation) |
267-
| `EMPTY` | `db.table.find({})`|
268-
| `SELECT * FROM` |`db.table.find({})` |
269-
| *Keywords* ||
270-
| `CASE WHEN` |`$switch` aggregation |
271-
| `CONCAT` |`$concat` |
272-
| `AS` | `$project` |
273-
| SQL queries of datetime related functions | MongoDB queries of datetime related functions |
274-
275-
Here are some query examples that help you transfer from SQL queries to MongoDB queries.
259+
1. If you use SQL queries in your pipelines that refer to the old MongoDB linked service, replace them with the equivalent MongoDB queries. See the following table for the replacement examples:
276260

277261
| SQL query | Equivalent MongoDB query |
278262
|:--- |:--- |

articles/data-factory/connector-troubleshoot-mongodb.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ This article provides suggestions to troubleshoot common problems with the Mongo
2828

2929
- **Resolution**: In the MongoDB connection string, add the *uuidRepresentation=standard* option. For more information, see [MongoDB connection string](connector-mongodb.md#linked-service-properties).
3030

31-
## Error code: DeprecatedMongoDbOdbcConnector
31+
## Migrate to the new version of MongoDB Connector
3232

3333
- **Message**:
34-
`The MongoDB ODBC connector has been deprecated. To ensure continued functionality, please create a new MongoDB linked service. Detailed instructions can be found in this official Microsoft Azure guide: https://learn.microsoft.com/en-us/azure/data-factory/connector-mongodb?tabs=data-factory`
34+
`The legacy MongoDB connector has been deprecated. To ensure your pipeline works, please create a new MongoDB linked service. Detailed instructions can be found in this documentation: https://learn.microsoft.com/en-us/azure/data-factory/connector-mongodb?tabs=data-factory#upgrade-the-mongodb-linked-service-to-the-latest-version`
3535

3636
- **Cause**:
37-
If you meet this error message, you need to migrate to a new version of MongoDB linked service.
37+
Your pipeline is still running on a legacy MongoDB connector that causes the error.
3838

3939
- **Resolution**:
40-
Refer to this [article](connector-mongodb.md#upgrade-the-mongodb-linked-service-to-the-latest-version) to upgrade your MongoDB linked service to the latest version.
40+
Upgrade your MongoDB linked service to the latest version. Refer to this [article](connector-mongodb.md#upgrade-the-mongodb-linked-service-to-the-latest-version).
4141

4242
## Next steps
4343

0 commit comments

Comments
 (0)