Package org.apache.iceberg.spark
Interface SupportsReplaceView
- All Superinterfaces:
org.apache.spark.sql.connector.catalog.CatalogPlugin,org.apache.spark.sql.connector.catalog.ViewCatalog
- All Known Implementing Classes:
SparkCatalog
public interface SupportsReplaceView
extends org.apache.spark.sql.connector.catalog.ViewCatalog
-
Field Summary
Fields inherited from interface org.apache.spark.sql.connector.catalog.ViewCatalog
PROP_COMMENT, PROP_CREATE_ENGINE_VERSION, PROP_ENGINE_VERSION, PROP_OWNER, RESERVED_PROPERTIES -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.spark.sql.connector.catalog.ViewreplaceView(org.apache.spark.sql.connector.catalog.Identifier ident, String sql, String currentCatalog, String[] currentNamespace, org.apache.spark.sql.types.StructType schema, String[] queryColumnNames, String[] columnAliases, String[] columnComments, Map<String, String> properties) Replace a view in the catalogMethods inherited from interface org.apache.spark.sql.connector.catalog.CatalogPlugin
defaultNamespace, initialize, nameMethods inherited from interface org.apache.spark.sql.connector.catalog.ViewCatalog
alterView, createView, dropView, invalidateView, listViews, loadView, renameView, viewExists
-
Method Details
-
replaceView
org.apache.spark.sql.connector.catalog.View replaceView(org.apache.spark.sql.connector.catalog.Identifier ident, String sql, String currentCatalog, String[] currentNamespace, org.apache.spark.sql.types.StructType schema, String[] queryColumnNames, String[] columnAliases, String[] columnComments, Map<String, String> properties) throws org.apache.spark.sql.catalyst.analysis.NoSuchViewException, org.apache.spark.sql.catalyst.analysis.NoSuchNamespaceExceptionReplace a view in the catalog- Parameters:
ident- a view identifiersql- the SQL text that defines the viewcurrentCatalog- the current catalogcurrentNamespace- the current namespaceschema- the view query output schemaqueryColumnNames- the query column namescolumnAliases- the column aliasescolumnComments- the column commentsproperties- the view properties- Throws:
org.apache.spark.sql.catalyst.analysis.NoSuchViewException- If the view doesn't exist or is a tableorg.apache.spark.sql.catalyst.analysis.NoSuchNamespaceException- If the identifier namespace does not exist (optional)
-