| Input | Output | Alias |
|---|---|---|
| ✔ | ✗ |
Description
Similar to the RowBinary format, but with an extra byte before each column that indicates if the default value should be used.
Example usage
Examples:
SELECT * FROM FORMAT('RowBinaryWithDefaults', 'x UInt32 default 42, y UInt32', x'010001000000')┌──x─┬─y─┐
│ 42 │ 1 │
└────┴───┘- For column
xthere is only one byte01that indicates that default value should be used and no other data after this byte is provided. - For column
ydata starts with byte00that indicates that column has actual value that should be read from the subsequent data01000000.