RunnableCommand Contract — Generic Logical Command with Side Effects
RunnableCommand is the generic logical command that is executed eagerly 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.
|
1 2 3 4 5 |
run(sparkSession: SparkSession): Seq[Row] |
|
Note
|
RunnableCommand logical operator is resolved to ExecutedCommandExec physical operator in BasicOperators execution planning strategy.
|
|
Note
|
|
| RunnableCommand | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
|
AddFileCommand |
|||||||||
|
AddJarCommand |
|||||||||
|
AlterDatabasePropertiesCommand |
|||||||||
|
AlterTableAddPartitionCommand |
|||||||||
|
AlterTableChangeColumnCommand |
|||||||||
|
AlterTableDropPartitionCommand |
|||||||||
|
AlterTableRecoverPartitionsCommand |
|||||||||
|
AlterTableRenameCommand |
|||||||||
|
AlterTableRenamePartitionCommand |
|||||||||
|
AlterTableSerDePropertiesCommand |
|||||||||
|
AlterTableSetLocationCommand |
|||||||||
|
AlterTableSetPropertiesCommand |
|||||||||
|
AlterTableUnsetPropertiesCommand |
|||||||||
|
AlterViewAsCommand |
|||||||||
|
CacheTableCommand |
When executed,
If the caching is not
|
||||||||
|
ClearCacheCommand |
|||||||||
|
CreateDatabaseCommand |
|||||||||
|
When executed, …FIXME Used exclusively when DataSourceAnalysis posthoc logical resolution rule resolves a CreateTable logical operator with queries using non-Hive table providers (which is when |
|||||||||
|
CreateFunctionCommand |
|||||||||
|
CreateHiveTableAsSelectCommand |
|||||||||
|
CreateTableLikeCommand |
|||||||||
|
DescribeDatabaseCommand |
|||||||||
|
DescribeFunctionCommand |
|||||||||
|
DropDatabaseCommand |
|||||||||
|
DropFunctionCommand |
|||||||||
|
DropTableCommand |
|||||||||
|
ExplainCommand |
|||||||||
|
ListFilesCommand |
|||||||||
|
ListJarsCommand |
|||||||||
|
LoadDataCommand |
|||||||||
|
RefreshResource |
|||||||||
|
RefreshTable |
|||||||||
|
ResetCommand |
|||||||||
|
SaveIntoDataSourceCommand |
When executed, requests Used exclusively when |
||||||||
|
SetCommand |
|||||||||
|
SetDatabaseCommand |
|||||||||
|
ShowColumnsCommand |
|||||||||
|
ShowDatabasesCommand |
|||||||||
|
ShowFunctionsCommand |
|||||||||
|
ShowPartitionsCommand |
|||||||||
|
ShowTablePropertiesCommand |
|||||||||
|
StreamingExplainCommand |
|||||||||
|
TruncateTableCommand |
|||||||||
|
UncacheTableCommand |
spark技术分享