**How to reproduce** ``` CREATE TABLE defaults (i Int8, n UInt8 DEFAULT 42, s String DEFAULT concat('test', CAST(n, 'String'))) ENGINE=Memory INSERT INTO defaults FORMAT JSONEachRow {"i":0, "n": 0} SELECT * FROM defaults ┌─i─┬─n─┬─s──────┐ │ 0 │ 0 │ test42 │ └───┴───┴────────┘ ``` (it works this way for all formats) **Expected behavior** ``` ┌─i─┬─n─┬─s──────┐ │ 0 │ 0 │ test0 │ └───┴───┴────────┘ ```
Activity
filimonov commentedon Feb 21, 2020
Related to bug #2283
alesapin commentedon Mar 3, 2020
Trying to fix here #9489