File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
alter_default_value_in_column Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 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+ ```
You can’t perform that action at this time.
0 commit comments