Implement native query without parameters

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Native query is harder for the query is provided by user without internal AST translation (so we know everything semantically). On top of that, Mongo is schema-less (Hibernate native query feature relies heavily on schema, e.g. auto-discovery mechanism), so our support of native MQL might be compromised a lot, with at least the following restrictions:

      • we might only support aggregate command (with its $project stage)
      • we might only provide limited metadata (e.g. `ResultSetMetadata` returned from `ResultSet`)
      • we might support limited query options (e.g. fetch size, limit, query timeout)

       

      This ticket is the first step to implement basic native query, excluding a well-known parameter marker issue from the scope. The scope includes:

      • when a valid aggregate native MQL is provided, it could return results as expected
      • when limit info is provided by query option (not embedded in MQL command), they should take effect by inserting $skip and $limit aggregate stages internally
      • when a valid DML (insert, update and delete) MQL is issued, it will work as expected

            Assignee:
            Unassigned
            Reporter:
            Nathan Xu
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: