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

FindDataSourceTable

FindDataSourceTable Logical Evaluation Rule for Resolving UnresolvedCatalogRelations

FindDataSourceTable is a Catalyst rule that the default and Hive-specific logical query plan analyzers use for resolving UnresolvedCatalogRelations in a logical plan for the following cases:

  • InsertIntoTables with UnresolvedCatalogRelation (for datasource and hive tables)

  • “Standalone” UnresolvedCatalogRelations

Note
UnresolvedCatalogRelation leaf logical operator is a placeholder that ResolveRelations logical evaluation rule adds to a logical plan while resolving UnresolvedRelations leaf logical operators.

FindDataSourceTable is part of additional rules in Resolution fixed-point batch of rules.

Applying FindDataSourceTable Rule to Logical Plan (and Resolving UnresolvedCatalogRelations in Logical Plan) — apply Method

Note
apply is part of Rule Contract to apply a rule to a logical plan.

apply…​FIXME

readHiveTable Internal Method

readHiveTable simply creates a HiveTableRelation for the input CatalogTable.

Note
readHiveTable is used when FindDataSourceTable is requested to resolving UnresolvedCatalogRelations in a logical plan.

readDataSourceTable Internal Method

readDataSourceTable…​FIXME

Note
readDataSourceTable is used exclusively when FindDataSourceTable logical evaluation rule is executed (for data source tables).
赞(0) 打赏
未经允许不得转载:spark技术分享 » FindDataSourceTable
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

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

支付宝扫一扫打赏

微信扫一扫打赏