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/SessionCatalog.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -325,3 +325,25 @@ getTableMetadata(
325
325
326
326
!!! note "`CharType` and `VarcharType` Unsupported"
327
327
The Spark SQL query engine does not support char/varchar types yet.
328
+
329
+
## getRelation { #getRelation }
330
+
331
+
```scala
332
+
getRelation(
333
+
metadata: CatalogTable,
334
+
options: CaseInsensitiveStringMap):LogicalPlan
335
+
```
336
+
337
+
`getRelation` creates a [LogicalPlan](logical-operators/LogicalPlan.md) with a [SubqueryAlias](logical-operators/SubqueryAlias.md) logical operator with a child logical operator based on the [table type](CatalogTable.md#tableType) of the given [CatalogTable](CatalogTable.md) metadata:
338
+
339
+
Table Type | Child Logical Operator
340
+
-|-
341
+
`VIEW` | [fromCatalogTable](#fromCatalogTable)
342
+
`EXTERNAL` or `MANAGED` | [UnresolvedCatalogRelation](logical-operators/UnresolvedCatalogRelation.md)
343
+
344
+
---
345
+
346
+
`getRelation` is used when:
347
+
348
+
*[ResolveRelations](logical-analysis-rules/ResolveRelations.md) logical analysis rule is executed
349
+
*`SessionCatalog` is requested to [lookupRelation](#lookupRelation)
Copy file name to clipboardExpand all lines: docs/logical-operators/UnresolvedTable.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,9 @@ title: UnresolvedTable
6
6
7
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
+
??? note "UnresolvedCatalogRelation"
10
+
[UnresolvedCatalogRelation](UnresolvedCatalogRelation.md) leaf logical operator looks very similar.
11
+
9
12
## Creating Instance
10
13
11
14
`UnresolvedTable` takes the following to be created:
0 commit comments