Skip to content

Commit ec187e4

Browse files
author
Jose Alberto Calvo Vargas
committed
Add readme
1 parent c0abb4e commit ec187e4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Tinybird Versions - Alter DEFAULT value in a column of the landing Data Source
2+
3+
[Pull Request](https://github.com/tinybirdco/use-case-examples/pull/338/files)
4+
5+
- Just a add the default values to the desired columns. If the event is not sending the value or it is null, the default value will be applied.
6+
7+
8+
```diff
9+
SCHEMA >
10+
+ `timestamp` DateTime `json:$.timestamp` DEFAULT now(),
11+
+ `session_id` String `json:$.session_id` DEFAULT '',
12+
+ `action` LowCardinality(String) `json:$.action` DEFAULT 'None',
13+
+ `version` LowCardinality(String) `json:$.version` DEFAULT '1.0',
14+
+ `payload` String `json:$.payload` DEFAULT '{}',
15+
- `timestamp` DateTime `json:$.timestamp`,
16+
- `session_id` String `json:$.session_id`,
17+
- `action` LowCardinality(String) `json:$.action`,
18+
- `version` LowCardinality(String) `json:$.version`,
19+
- `payload` String `json:$.payload`
20+
```

0 commit comments

Comments
 (0)