Drop a semantic view and remove its metadata from the catalog.
Description
Drops an existing semantic view. All metadata associated with the view is
deleted from the catalog. Because semantic views hold no physical data, dropping
a semantic view only removes the metadata; no base-table data is affected.
Syntax
DROP SEMANTIC VIEW [IF EXISTS] [<db>.]<view_name>
Parameters
Parameter
Required
Description
IF EXISTS
No
Suppresses an error when the semantic view does not exist.
db
No
Database containing the semantic view. Defaults to the current database.
view_name
Yes
Name of the semantic view to drop.
Examples
-- Drop a semantic view; error if it does not existDROP SEMANTIC VIEW order_metrics;-- Drop without error if it does not existDROP SEMANTIC VIEW IF EXISTS sales_db.order_metrics;