Expand description
Provides a publicly available interface to transform our SQL ASTs.
StructsΒ§
- Create
SqlId πReplacer - Create
SqlRewrite πSchema - Create
SqlRewriter π - Query
Ident πAgg - Visits a
Query, assessing catalog itemIdentsβ use of a specifiedIdent.
FunctionsΒ§
- ambiguous_
err π - create_
stmt_ rename - Changes the
nameused in an itemβsCREATEstatement. To complete a rename operation, you must also callcreate_stmt_rename_refson all dependent items. - create_
stmt_ rename_ refs - Updates all references of
from_nameincreate_stmttoto_nameor errors if request is ambiguous. - create_
stmt_ rename_ schema_ refs - Given a
Statementrewrites all references of the schema namecur_schema_nametonew_schema_name. - create_
stmt_ replace_ ids - Updates all
CatalogItemIds from the keys ofidsto the values ofidswithincreate_stmt. - rewrite_
query π - Rewrites
queryβs references offromtotoor errors if too ambiguous.