Skip to content

Commit 36a783b

Browse files
committed
more
1 parent 68fe17c commit 36a783b

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

docs/declarative-pipelines-programming-guide.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ SDP is designed for both batch and streaming data processing, supporting common
1515
- Data ingestion from cloud storage (Amazon S3, Azure ADLS Gen2, Google Cloud Storage)
1616
- Data ingestion from message buses (Apache Kafka, Amazon Kinesis, Google Pub/Sub, Azure EventHub)
1717
- Incremental batch and streaming transformations
18-
- Real-time stream processing
1918

2019
The key advantage of SDP is its declarative approach - you define what tables should exist and what their contents should be, and SDP handles the orchestration, compute management, and error handling automatically.
2120

@@ -315,6 +314,15 @@ CREATE MATERIALIZED VIEW basic_mv
315314
AS SELECT * FROM samples.nyctaxi.trips;
316315
```
317316

317+
### Creating a Temporary View with SQL
318+
319+
The basic syntax for creating a temporary view with SQL is:
320+
321+
```sql
322+
CREATE TEMPORARY VIEW basic_tv
323+
AS SELECT * FROM samples.nyctaxi.trips;
324+
```
325+
318326
### Creating a Streaming Table with SQL
319327

320328
When creating a streaming table, use the `STREAM` keyword to indicate streaming semantics for the source:
@@ -361,27 +369,15 @@ CREATE STREAMING TABLE customers_us;
361369
362370
-- add the first append flow
363371
CREATE FLOW append1
364-
AS INSERT INTO customers_us BY NAME
372+
AS INSERT INTO customers_us
365373
SELECT * FROM STREAM(customers_us_west);
366374
367375
-- add the second append flow
368376
CREATE FLOW append2
369-
AS INSERT INTO customers_us BY NAME
377+
AS INSERT INTO customers_us
370378
SELECT * FROM STREAM(customers_us_east);
371379
```
372380

373-
### Parameterizing Values in SQL
374-
375-
Use `SET` to specify a configuration value in a query that declares a table or view:
376-
377-
```sql
378-
SET startDate='2025-01-01';
379-
380-
CREATE MATERIALIZED VIEW filtered
381-
AS SELECT * FROM src
382-
WHERE date > ${startDate}
383-
```
384-
385381
## Important Considerations
386382

387383
### Python Considerations

0 commit comments

Comments
 (0)