Skip to contents

Deletes a table constraint.

Usage

delete_table_constraint(client, full_name, constraint_name, cascade)

tableConstraintsDelete(client, full_name, constraint_name, cascade)

Arguments

client

Required. Instance of DatabricksClient()

full_name

Required. Full name of the table referenced by the constraint.

constraint_name

Required. The name of the constraint to delete.

cascade

Required. If true, try deleting all child constraints of the current constraint.

Details

For the table constraint deletion to succeed, the user must satisfy both of these conditions: - the user must have the USE_CATALOG privilege on the table's parent catalog, the USE_SCHEMA privilege on the table's parent schema, and be the owner of the table. - if cascade argument is true, the user must have the following permissions on all of the child tables: the USE_CATALOG privilege on the table's catalog, the USE_SCHEMA privilege on the table's schema, and be the owner of the table.