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 itemIdent
sβ use of a specifiedIdent
.
FunctionsΒ§
- ambiguous_
err π - create_
stmt_ rename - Changes the
name
used in an itemβsCREATE
statement. To complete a rename operation, you must also callcreate_stmt_rename_refs
on all dependent items. - create_
stmt_ rename_ refs - Updates all references of
from_name
increate_stmt
toto_name
or errors if request is ambiguous. - create_
stmt_ rename_ schema_ refs - Given a
Statement
rewrites all references of the schema namecur_schema_name
tonew_schema_name
. - create_
stmt_ replace_ ids - Updates all
CatalogItemId
s from the keys ofids
to the values ofids
withincreate_stmt
. - rewrite_
query π - Rewrites
query
βs references offrom
toto
or errors if too ambiguous.