Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mongoDb : SELECT query fails with "Multiple entries with same key" #18925

Closed
rahulr35 opened this issue Sep 5, 2023 · 2 comments
Closed

mongoDb : SELECT query fails with "Multiple entries with same key" #18925

rahulr35 opened this issue Sep 5, 2023 · 2 comments

Comments

@rahulr35
Copy link

rahulr35 commented 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

@rahulr35 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
@ebyhr
Copy link
Member

ebyhr commented Sep 5, 2023

Closing as we can't handle such fields because of #17

@ebyhr ebyhr closed this as not planned Won't fix, can't repro, duplicate, stale Sep 5, 2023
@rahulr35
Copy link
Author

rahulr35 commented Sep 5, 2023

@ebyhr Will this be addressed within the scope of issue #17, or are there no proposed solutions for this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants