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
`assertFlowIdentifierIsUnique` throws an `AnalysisException` if the given [UnresolvedFlow](UnresolvedFlow.md)'s identifier is used by multiple flows (among the given `flows`):
59
+
60
+
```text
61
+
Flow [flow_name] was found in multiple datasets: [dataset_names]
62
+
```
63
+
38
64
## Tables { #tables }
39
65
40
66
`GraphRegistrationContext` creates an empty registry of [Table](Table.md)s when [created](#creating-instance).
@@ -78,9 +104,9 @@ registerFlow(
78
104
`registerFlow` is used when:
79
105
80
106
*`PipelinesHandler` is requested to [define a flow](PipelinesHandler.md#defineFlow)
81
-
*`SqlGraphRegistrationContext` is requested to [process the following SQL commands](SqlGraphRegistrationContext.md#processSqlQuery):
`defineFlow` is used to handle [DEFINE_FLOW](#DEFINE_FLOW).
166
+
156
167
`defineFlow` looks up the [GraphRegistrationContext](DataflowGraphRegistry.md#getDataflowGraphOrThrow) for the given `flow` (or throws a `SparkException` if not found).
157
168
158
169
!!! note "Implicit Flows"
@@ -164,3 +175,4 @@ defineFlow(
164
175
`defineFlow` reports an `AnalysisException` if the given `flow` is not an implicit flow, but is defined with a multi-part identifier.
165
176
166
177
In the end, `defineFlow`[registers a flow](GraphRegistrationContext.md#registerFlow).
Copy file name to clipboardExpand all lines: docs/declarative-pipelines/UnresolvedFlow.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,17 @@
1
+
---
2
+
hide:
3
+
- toc
4
+
---
5
+
1
6
# UnresolvedFlow
2
7
3
-
`UnresolvedFlow` is a [Flow](Flow.md).
8
+
`UnresolvedFlow` is a [Flow](Flow.md) that represents flows in the following Python and SQL transformations in [Spark Declarative Pipelines](index.md):
9
+
10
+
*[register_flow](GraphElementRegistry.md#register_flow) in PySpark's decorators
11
+
*[CREATE FLOW ... AS INSERT INTO ... BY NAME](../logical-operators/CreateFlowCommand.md)
*[CREATE VIEW](../logical-operators/CreateView.md) and the other variants of [CREATE VIEW](../logical-operators/CreateViewCommand.md)
4
15
5
16
`UnresolvedFlow` is registered to a [GraphRegistrationContext](GraphRegistrationContext.md) with [registerFlow](GraphRegistrationContext.md#registerFlow).
6
17
@@ -23,7 +34,7 @@
23
34
`UnresolvedFlow` is created when:
24
35
25
36
*`PipelinesHandler` is requested to [define a flow](PipelinesHandler.md#defineFlow)
26
-
*`SqlGraphRegistrationContext` is requested to [handle the following pipeline commands](SqlGraphRegistrationContext.md#processSqlQuery):
37
+
*`SqlGraphRegistrationContext` is requested to [handle the following logical commands](SqlGraphRegistrationContext.md#processSqlQuery):
0 commit comments