Skip to content

Commit a29e1f8

Browse files
authored
12700 snowflake cases - add DS (#359)
* add snowflake datasource
1 parent f2ebfbc commit a29e1f8

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

iterate_snowflake/datasources/fixtures/.gitkeep

Whitespace-only changes.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
SCHEMA >
2+
`date` Date,
3+
`symbol` String,
4+
`open` Float32,
5+
`high` Float32,
6+
`low` Float32,
7+
`close` Float32,
8+
`volume` Float32,
9+
`split_coefficient` Float32
10+
11+
ENGINE "MergeTree"
12+
ENGINE_PARTITION_KEY "toDate(date)"
13+
ENGINE_SORTING_KEY "date"
14+
15+
IMPORT_SERVICE 'snowflake'
16+
IMPORT_CONNECTION_NAME 'sf_conn'
17+
IMPORT_EXTERNAL_DATASOURCE 'tinybird.samples.stock_prices'
18+
IMPORT_STRATEGY 'replace'
19+
IMPORT_QUERY 'SELECT date, symbol, open, high, low, close, volume, split_coefficient from tinybird.samples.stock_prices'
20+
IMPORT_SCHEDULE '@on-demand'

iterate_snowflake/tests/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)