You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trino encounters an issue when querying a MongoDB collection that contains fields with identical names, differing only in their case sensitivity. Any attempt to execute a select query on this collection results in an error message: Multiple entries with same key: abc=abC:varchar and abc=abc:varchar
Trino Query: select * from testCollection limit 1;
Trino Output: Query 20230905_092521_00632_gxv5w failed: Multiple entries with same key: abc=abC:varchar and abc=abc:varchar
The text was updated successfully, but these errors were encountered:
rahulr35
changed the title
mongoDb : SELECT fails with "Multiple entries with same key"
mongoDb : SELECT query fails with "Multiple entries with same key"
Sep 5, 2023
Trino encounters an issue when querying a MongoDB collection that contains fields with identical names, differing only in their case sensitivity. Any attempt to execute a select query on this collection results in an error message:
Multiple entries with same key: abc=abC:varchar and abc=abc:varchar
Field | Datatype
"abc" | varchar
"abC" | varchar
Sample collection to reproduce issue:
db.createCollection("testCollection")
db.testCollection.insertOne({ abc: "string_1", abC: "string_2" })
Trino Query:
select * from testCollection limit 1;
Trino Output:
Query 20230905_092521_00632_gxv5w failed: Multiple entries with same key: abc=abC:varchar and abc=abc:varchar
The text was updated successfully, but these errors were encountered: