|
1 | | ---- |
2 | | -hide: |
3 | | - - toc |
4 | | ---- |
5 | | - |
6 | 1 | # UnresolvedFlow |
7 | 2 |
|
8 | | -`UnresolvedFlow` is a [Flow](Flow.md) that represents flows in the following Python and SQL transformations in [Spark Declarative Pipelines](index.md): |
| 3 | +`UnresolvedFlow` is a [Flow](Flow.md) that represents a flow in the Python and SQL transformations in [Spark Declarative Pipelines](index.md): |
9 | 4 |
|
10 | 5 | * [register_flow](GraphElementRegistry.md#register_flow) in PySpark's decorators |
11 | 6 | * [CREATE FLOW ... AS INSERT INTO ... BY NAME](../logical-operators/CreateFlowCommand.md) |
12 | 7 | * [CREATE MATERIALIZED VIEW](../logical-operators/CreateMaterializedViewAsSelect.md) |
13 | 8 | * [CREATE STREAMING TABLE ... AS](../logical-operators/CreateStreamingTableAsSelect.md) |
14 | 9 | * [CREATE VIEW](../logical-operators/CreateView.md) and the other variants of [CREATE VIEW](../logical-operators/CreateViewCommand.md) |
15 | 10 |
|
16 | | -`UnresolvedFlow` is registered to a [GraphRegistrationContext](GraphRegistrationContext.md) with [registerFlow](GraphRegistrationContext.md#registerFlow). |
| 11 | +`UnresolvedFlow` is registered to a [GraphRegistrationContext](GraphRegistrationContext.md) with [register a flow](GraphRegistrationContext.md#registerFlow). |
17 | 12 |
|
18 | 13 | `UnresolvedFlow` is analyzed and resolved to [ResolvedFlow](ResolvedFlow.md) (by [FlowResolver](FlowResolver.md#attemptResolveFlow) when [DataflowGraph](DataflowGraph.md) is requested to [resolve](DataflowGraph.md#resolve)). |
19 | 14 |
|
|
28 | 23 | * <span id="func"> `FlowFunction` |
29 | 24 | * <span id="queryContext"> `QueryContext` |
30 | 25 | * <span id="sqlConf"> SQL Config |
31 | | -* <span id="once"> `once` flag |
| 26 | +* [once](#once) flag |
32 | 27 | * <span id="origin"> `QueryOrigin` |
33 | 28 |
|
34 | 29 | `UnresolvedFlow` is created when: |
|
40 | 35 | * [CreateView](SqlGraphRegistrationContext.md#CreateView) |
41 | 36 | * [CreateStreamingTableAsSelect](SqlGraphRegistrationContext.md#CreateStreamingTableAsSelect) |
42 | 37 | * [CreateViewCommand](SqlGraphRegistrationContext.md#CreateViewCommand) |
| 38 | + |
| 39 | +### once Flag { #once } |
| 40 | + |
| 41 | +`UnresolvedFlow` is given the [once](Flow.md#once) flag when [created](#creating-instance). |
| 42 | + |
| 43 | +`once` flag is disabled (`false`) explicitly for the following: |
| 44 | + |
| 45 | +* [CreateFlowHandler](SqlGraphRegistrationContext.md#CreateFlowHandler) |
| 46 | +* [CreateMaterializedViewAsSelectHandler](SqlGraphRegistrationContext.md#CreateMaterializedViewAsSelectHandler) |
| 47 | +* [CreatePersistedViewCommandHandler](SqlGraphRegistrationContext.md#CreatePersistedViewCommandHandler) |
| 48 | +* [CreateStreamingTableAsSelectHandler](SqlGraphRegistrationContext.md#CreateStreamingTableAsSelectHandler) |
| 49 | +* [CreateTemporaryViewHandler](SqlGraphRegistrationContext.md#CreateTemporaryViewHandler) |
| 50 | +* `PipelinesHandler` is requested to [define a flow](PipelinesHandler.md#defineFlow) |
| 51 | + |
| 52 | +!!! note "No ONCE UnresolvedFlows" |
| 53 | + It turns out that all `UnresolvedFlow`s created are not [ONCE flows](Flow.md#once). |
0 commit comments