• Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Add two query knobs which would toggle type inference for a query:

      • Disable the schema type use for the query (ExpCtx::getSchemaTypeForNss)

          Makes the schema type be treated as any.

      • disable the pipeline type use for the query (disables $match narrowing / branch on forEachPossiblyNarrowingStage, and in the future also computed field type info)

          Makes the $match type narrowing not apply in the graph. The arrayness we had before the type inference project should still be encoded in the Type, but no type inference. For example if PathArrayness says 'a' is not array, getType should still say "~array" (not array).

      A query with both knobs disables will not be able to use type inference to decide a field is not array, but will still be able to use index metadata (PathArrayness), and this will continue to be encoded in the graph->getType API, such that callers using getType will still use PathArrayness.

            Assignee:
            Henri Nikku
            Reporter:
            Vesko Karaganev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: