Skip to content

Commit

Permalink
Merge pull request #278 from tinybirdco/add_column_snowflake_ds_102
Browse files Browse the repository at this point in the history
add column
  • Loading branch information
alrocar authored May 24, 2024
2 parents c8ecd28 + 58ca0be commit a347acc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"date": "2020-01-01", "symbol": "adevice", "open": 123, "high: 1, "low": 0, "close": 100, "volume": 123}
{"date": "2020-01-01", "symbol": "adevice", "open": 123, "high: 1, "low": 0, "close": 100, "volume": 123, "split_coefficient": 123}
5 changes: 3 additions & 2 deletions add_column_snowflake_ds/datasources/stock_prices.datasource
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ SCHEMA >
`high` Float32,
`low` Float32,
`close` Float32,
`volume` Float32
`volume` Float32,
`split_coefficient` Float32

ENGINE "MergeTree"
ENGINE_PARTITION_KEY "toDate(date)"
Expand All @@ -15,5 +16,5 @@ IMPORT_SERVICE 'snowflake'
IMPORT_CONNECTION_NAME 'tb_snowflake'
IMPORT_EXTERNAL_DATASOURCE 'tinybird.samples.stock_prices'
IMPORT_STRATEGY 'replace'
IMPORT_QUERY 'SELECT date, symbol, open, high, low, close, volume from tinybird.samples.stock_prices'
IMPORT_QUERY 'SELECT date, symbol, open, high, low, close, volume, split_coefficient from tinybird.samples.stock_prices'
IMPORT_SCHEDULE '@on-demand'

0 comments on commit a347acc

Please sign in to comment.