mc table view exists
The mc table view exists command checks if an Iceberg view exists in the catalog on an AIStor cluster.
Parameters
ALIAS
Required
The alias of an AIStor cluster.
NAMESPACE
Required
The name of the namespace to check.
VIEW
Required
The name of the view to check for existence.
WAREHOUSE
Required
The name of the warehouse containing the namespace.
Global flags
This command supports any of the global flags.
Examples
Check if a view exists
Use mc table view exists to check for a view:
mc table view exists ALIAS WAREHOUSE NAMESPACE VIEW
- Replace
ALIASwith the alias of the AIStor cluster. - Replace
WAREHOUSEwith the name of the warehouse. - Replace
NAMESPACEwith the name of the namespace. - Replace
VIEWwith the name of the view to check.
Check with JSON output
Use the --json global flag to output the results in JSON format:
mc table view exists myaistor analytics prod monthly_sales_view --json