Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: add stub exec.Factory for opt-driven distsql planning
This commit adds a stub implementation of `exec.Factory` interface that will be creating DistSQL processor specs directly from `opt.Tree`, sidestepping intermediate `planNode` phase. It also introduces a new private cluster setting "sql.defaults.experimental_distsql_planning" as well as a session variable "experimental_distsql_planning" which determine whether the new factory is used, set to `off` by default (other options are `on` and `always` - the latter is only for the session variable). `Off` planning mode means using the old code path, `on` means attempting to use the new code path but falling back to the old one if we encounter an error, and `always` means using only the new code path and do not fallback in case of an error. Currently the fallback doesn't occur with `always` only for SELECT statements (so that we could run other statements types, like SET). Release note: None
- Loading branch information