关注 spark技术分享,
撸spark源码 玩spark最佳实践

CreateDataSourceTableCommand

CreateDataSourceTableCommand Logical Command

CreateDataSourceTableCommand is a logical command that creates a new table (in a session-scoped SessionCatalog).

CreateDataSourceTableCommand is created exclusively when DataSourceAnalysis posthoc logical resolution rule resolves a CreateTable logical operator for a non-Hive table provider with no query.

CreateDataSourceTableCommand takes a table metadata and ignoreIfExists flag.

Executing Logical Command — run Method

Note
run is part of RunnableCommand Contract to execute (run) a logical command.

run creates a new table in a session-scoped SessionCatalog.

Note
run uses the input SparkSession to access SessionState that in turn is used to access the current SessionCatalog.

Internally, run creates a BaseRelation to access the table’s schema.

Caution
FIXME
Note
run accepts tables only (not views) with the provider defined.
赞(0) 打赏
未经允许不得转载:spark技术分享 » CreateDataSourceTableCommand
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏