@@ -315,6 +315,15 @@ CREATE MATERIALIZED VIEW basic_mv
315
315
AS SELECT * FROM samples.nyctaxi.trips;
316
316
` ` `
317
317
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
+
318
327
# ## Creating a Streaming Table with SQL
319
328
320
329
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;
361
370
362
371
-- add the first append flow
363
372
CREATE FLOW append1
364
- AS INSERT INTO customers_us BY NAME
373
+ AS INSERT INTO customers_us
365
374
SELECT * FROM STREAM(customers_us_west);
366
375
367
376
-- add the second append flow
368
377
CREATE FLOW append2
369
- AS INSERT INTO customers_us BY NAME
378
+ AS INSERT INTO customers_us
370
379
SELECT * FROM STREAM(customers_us_east);
371
380
` ` `
372
381
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
-
385
382
# # Important Considerations
386
383
387
384
# ## Python Considerations
0 commit comments