Manage Data Catalog views
You can use DDL commands to update and manage your Data Catalog views.
Update a Data Catalog view
The Lake Formation
admin or definer can use the ALTER VIEW UPDATE
DIALECT
syntax to update the view definition. The following example
modifies the view definition to select columns from the returns
table
instead of the orders
table.
ALTER VIEW orders_by_date UPDATE DIALECT AS SELECT return_date, sum(totalprice) AS price FROM returns WHERE order_city = 'SEATTLE' GROUP BY orderdate
Supported DDL actions for Amazon Glue Data Catalog views
Athena supports the following actions for Amazon Glue Data Catalog views.
Statement | Description |
---|---|
ALTER VIEW DIALECT |
Updates a Data Catalog view by either adding an engine dialect or by updating or dropping an existing engine dialect. |
CREATE PROTECTED MULTI DIALECT VIEW |
Creates a Data Catalog view from a specified The optional |
DESCRIBE VIEW |
Shows the list of columns for the named view. This allows you to examine the attributes of a complex view. |
DROP VIEW |
Deletes an existing view. The optional |
SHOW CREATE VIEW |
Shows the SQL statement that creates the specified view. |
SHOW VIEWS |
Lists the views in the specified database, or in the current
database if you omit the database name. Use the optional
|
SHOW COLUMNS |
Lists the columns in the schema for a view. |