Variable: toInfer
consttoInfer: typeoftoInfer
Defined in: packages/core/src/visitors/index.ts:87
Some languages have grammars which require additional pass to fully resolve the schema of each plan operator. Because language switches are usually processed during the first pass, the nested languages may not receive full context (and they may need to be processed to infer the full context in the first place). They may instead receive this symbol as a context key, which means that the referenced item/tuple source schema should be inferred.
Example
`select (
lang xquery
for $y in $ys
return $foo:a/b
) ls
from foo`
// xquery logical plan builder should receive the following context:
{foo.toInfer}
// and should return the following inferred context:
{foo.a}