run(sparkSession: SparkSession): Seq[Row]
RunnableCommand — Generic Logical Command with Side Effects
RunnableCommand
is the generic logical command that is executed for its side effects.
RunnableCommand
defines one abstract method run
that computes a collection of Row records with the side effect, i.e. the result of executing a command.
Note
|
RunnableCommand logical operator is translated to ExecutedCommandExec physical operator in BasicOperators strategy.
|
Note
|
|
RunnableCommand | Description | ||||
---|---|---|---|---|---|
AddFileCommand |
|||||
AddJarCommand |
|||||
AlterDatabasePropertiesCommand |
|||||
AlterTableAddPartitionCommand |
|||||
AlterTableChangeColumnCommand |
|||||
AlterTableDropPartitionCommand |
|||||
AlterTableRecoverPartitionsCommand |
|||||
AlterTableRenameCommand |
|||||
AlterTableRenamePartitionCommand |
|||||
AlterTableSerDePropertiesCommand |
|||||
AlterTableSetLocationCommand |
|||||
AlterTableSetPropertiesCommand |
|||||
AlterTableUnsetPropertiesCommand |
|||||
AlterViewAsCommand |
|||||
AnalyzeColumnCommand |
|||||
AnalyzeTableCommand |
|||||
When executed,
If the caching is not
|
|||||
ClearCacheCommand |
|||||
CreateDatabaseCommand |
|||||
Used exclusively when DataSourceAnalysis evaluation rule resolves |
|||||
CreateFunctionCommand |
|||||
CreateHiveTableAsSelectCommand |
|||||
CreateTableCommand |
|||||
CreateTableLikeCommand |
|||||
CreateTempViewUsing |
|||||
CreateViewCommand |
|||||
DescribeDatabaseCommand |
|||||
DescribeFunctionCommand |
|||||
DropDatabaseCommand |
|||||
DropFunctionCommand |
|||||
DropTableCommand |
|||||
ExplainCommand |
|||||
InsertIntoDataSourceCommand |
|||||
InsertIntoHadoopFsRelationCommand |
|||||
InsertIntoHiveTable |
|||||
ListFilesCommand |
|||||
ListJarsCommand |
|||||
LoadDataCommand |
|||||
RefreshResource |
|||||
RefreshTable |
|||||
ResetCommand |
|||||
When executed, requests Used exclusively when |
|||||
SetDatabaseCommand |
|||||
ShowColumnsCommand |
|||||
ShowCreateTableCommand |
|||||
ShowDatabasesCommand |
|||||
ShowFunctionsCommand |
|||||
ShowPartitionsCommand |
|||||
ShowTablePropertiesCommand |
|||||
ShowTablesCommand |
|||||
StreamingExplainCommand |
|||||
TruncateTableCommand |
|||||
UncacheTableCommand |