public interface SupportsReplaceView
extends org.apache.spark.sql.connector.catalog.ViewCatalog
| Modifier and Type | Method and Description |
|---|---|
org.apache.spark.sql.connector.catalog.View |
replaceView(org.apache.spark.sql.connector.catalog.Identifier ident,
java.lang.String sql,
java.lang.String currentCatalog,
java.lang.String[] currentNamespace,
org.apache.spark.sql.types.StructType schema,
java.lang.String[] queryColumnNames,
java.lang.String[] columnAliases,
java.lang.String[] columnComments,
java.util.Map<java.lang.String,java.lang.String> properties)
Replace a view in the catalog
|
org.apache.spark.sql.connector.catalog.View replaceView(org.apache.spark.sql.connector.catalog.Identifier ident,
java.lang.String sql,
java.lang.String currentCatalog,
java.lang.String[] currentNamespace,
org.apache.spark.sql.types.StructType schema,
java.lang.String[] queryColumnNames,
java.lang.String[] columnAliases,
java.lang.String[] columnComments,
java.util.Map<java.lang.String,java.lang.String> properties)
throws org.apache.spark.sql.catalyst.analysis.NoSuchViewException,
org.apache.spark.sql.catalyst.analysis.NoSuchNamespaceException
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 propertiesorg.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)