You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/logical-operators/UnresolvedTable.md
+8-13
Original file line number
Diff line number
Diff line change
@@ -4,29 +4,24 @@ title: UnresolvedTable
4
4
5
5
# UnresolvedTable Leaf Logical Operator
6
6
7
-
`UnresolvedTable` is a [leaf logical operator](LeafNode.md).
7
+
`UnresolvedTable` is an unresolved [leaf logical operator](LeafNode.md) (`UnresolvedLeafNode`) that represents a table that has yet to be looked up in a catalog.
8
8
9
9
## Creating Instance
10
10
11
11
`UnresolvedTable` takes the following to be created:
*`AstBuilder` is requested to [visitLoadData](../sql/AstBuilder.md#visitLoadData), [visitTruncateTable](../sql/AstBuilder.md#visitTruncateTable), [visitShowPartitions](../sql/AstBuilder.md#visitShowPartitions), [visitAddTablePartition](../sql/AstBuilder.md#visitAddTablePartition), [visitDropTablePartitions](../sql/AstBuilder.md#visitDropTablePartitions), [visitCommentTable](../sql/AstBuilder.md#visitCommentTable)
19
-
20
-
## <spanid="resolved"> resolved
21
-
22
-
```scala
23
-
resolved:Boolean
24
-
```
25
-
26
-
`resolved` is part of the [LogicalPlan](LogicalPlan.md#resolved) abstraction.
27
-
28
-
`resolved` is `false`.
19
+
*`AstBuilder` is requested to [create an UnresolvedTable](../sql/AstBuilder.md#createUnresolvedTable)
20
+
*`CatalogImpl` is requested to [recover partitions](../CatalogImpl.md#recoverPartitions)
29
21
30
22
## Logical Analysis
31
23
32
-
`UnresolvedTable` is resolved to a [ResolvedTable](ResolvedTable.md) by `ResolveTables` logical resolution rule.
24
+
`UnresolvedTable` is resolved by [ResolveRelations](../logical-analysis-rules/ResolveRelations.md) logical resolution rule.
25
+
26
+
??? note "CheckAnalysis and AnalysisException"
27
+
[CheckAnalysis](../CheckAnalysis.md#checkAnalysis0) reports an `AnalysisException` (`TABLE_OR_VIEW_NOT_FOUND`) when there are any `UnresolvedTable`s left in a logical query plan after logical analysis.
0 commit comments