Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.37.0
-
None
-
None
Description
MongoAdapter should use MongoDB builders[1] instead of constructing queries from strings to reduce the number of mistakes, such as quoting errors[2].
[1] - https://www.mongodb.com/docs/drivers/java/sync/v4.3/fundamentals/builders/
[2] - https://issues.apache.org/jira/browse/CALCITE-6509
Attachments
Attachments
Issue Links
- relates to
-
CALCITE-6509 MongoAdapter throws 'Invalid JSON Number' exception if first character of field name is number
- In Progress
I very much agree that we should use builders. However, should we use MongoDB's builders or our own? I would require that MongoDB's builders are stable (i.e. don't change between releases, even major releases) and have a convenient API for our purposes. My inclination is to use MongoDB's builders. But please assure me that they are fit for purpose.