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
Registers a [MaterializedView](MaterializedView.md) dataset and the corresponding `Flow` in a pipeline.
195
+
196
+
For the `MaterializedView`, `materialized_view` sends a `DefineDataset` pipeline command for execution (to [PipelinesHandler](PipelinesHandler.md#DefineDataset) on a Spark Connect server).
197
+
198
+
* `dataset_type` is `MATERIALIZED_VIEW`.
199
+
200
+
For the `Flow`, `materialized_view` sends a `DefineFlow` pipeline command for execution (to [PipelinesHandler](PipelinesHandler.md#DefineFlow) on a Spark Connect server).
Registers a `StreamingTable` dataset and the corresponding `Flow` in a pipeline.
219
+
220
+
For the `StreamingTable`, `table` sends a `DefineDataset` pipeline command for execution (to [PipelinesHandler](PipelinesHandler.md#DefineDataset) on a Spark Connect server).
221
+
222
+
`dataset_type`is `TABLE`.
223
+
224
+
For the `Flow`, `table` sends a `DefineFlow` pipeline command for execution (to [PipelinesHandler](PipelinesHandler.md#DefineFlow) on a Spark Connect server).
225
+
166
226
### @dp.temporary_view { #temporary_view }
167
227
228
+
```py
229
+
temporary_view(
230
+
query_function: Optional[QueryFunction] = None,
231
+
*,
232
+
name: Optional[str] = None,
233
+
comment: Optional[str] = None,
234
+
spark_conf: Optional[Dict[str, str]] = None,
235
+
) -> Union[Callable[[QueryFunction], None], None]
236
+
```
237
+
168
238
[Registers](GraphElementRegistry.md#register_dataset) a `TemporaryView` dataset and a [Flow](Flow.md) in the [GraphElementRegistry](GraphElementRegistry.md#register_flow).
169
239
240
+
For the `TemporaryView`, `temporary_view` sends a `DefineDataset` pipeline command for execution (to [PipelinesHandler](PipelinesHandler.md#DefineDataset) on a Spark Connect server).
241
+
242
+
`dataset_type`is `TEMPORARY_VIEW`.
243
+
244
+
For the `Flow`, `temporary_view` sends a `DefineFlow` pipeline command for execution (to [PipelinesHandler](PipelinesHandler.md#DefineFlow) on a Spark Connect server).
245
+
170
246
## SQL
171
247
172
248
Spark Declarative Pipelines supports SQL language to define data processing pipelines.
0 commit comments