Build a relation group for notifying the deletion of the given objects.
check_connection_name_duplicate
checks whether the connection name is already used in the target namespace.
check_database_name_duplicate
checks whether the database name is already used in the cluster.
check_function_signature_duplicate
checks whether the function name and its signature is already used in the target namespace.
check_relation_name_duplicate
checks whether the relation name is already used in the target namespace.
check_schema_name_duplicate
checks whether the schema name is already used in the target database.
Check if create a sink with given dependent objects into the target table will cause a cycle, return true if it will.
check_user_name_duplicate
checks whether the user is already existed in the cluster.
This function will construct a query using recursive cte to find all objects[(id, obj_type
)] that are used by the given object.
construct_privilege_dependency_query
constructs a query to find all privileges that are dependent on the given one.
This function will construct a query using recursive cte to find if dependent objects are already relying on the target table.
ensure_object_id
ensures the existence of target object in the cluster.
ensure_object_not_refer
ensures that object are not used by any other ones except indexes.
ensure_privileges_not_referred
ensures that the privileges are not granted to any other users.
ensure_schema_empty
ensures that the schema is empty, used by DROP SCHEMA
.
ensure_user_id
ensures the existence of target user in the cluster.
Find the external stream source info inside the stream node, if any.
get_fragment_actor_ids
returns the fragment actor ids of the given fragments.
get_fragment_mappings
returns the fragment vnode mappings of the given job.
get_object_owner
returns the owner of the given object.
List all objects that are using the given one.
List all objects that are using the given one in a cascade way. It runs a recursive CTE to find all the dependencies.
get_user_privilege
returns the privileges of the given user.
list_user_info_by_ids
lists all users’ info by their ids.
rename_relation
renames the target relation and its definition,
it commits the changes to the transaction and returns the updated relations and the old name.
rename_relation_refer
updates the definition of relations that refer to the target one,
it commits the changes to the transaction and returns all the updated relations.
Resolve fragment list that are subscribing to sources and actor lists.