Skip to content

Commit c796fb8

Browse files
committed
more
1 parent 68fe17c commit c796fb8

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

docs/declarative-pipelines-programming-guide.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,15 @@ CREATE MATERIALIZED VIEW basic_mv
315315
AS SELECT * FROM samples.nyctaxi.trips;
316316
```
317317

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

320329
When creating a streaming table, use the `STREAM` keyword to indicate streaming semantics for the source:
@@ -361,27 +370,15 @@ CREATE STREAMING TABLE customers_us;
361370
362371
-- add the first append flow
363372
CREATE FLOW append1
364-
AS INSERT INTO customers_us BY NAME
373+
AS INSERT INTO customers_us
365374
SELECT * FROM STREAM(customers_us_west);
366375
367376
-- add the second append flow
368377
CREATE FLOW append2
369-
AS INSERT INTO customers_us BY NAME
378+
AS INSERT INTO customers_us
370379
SELECT * FROM STREAM(customers_us_east);
371380
```
372381

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-
385382
## Important Considerations
386383

387384
### Python Considerations

0 commit comments

Comments
 (0)