RowBinaryWithNames
输入 | 输出 | 别名 |
---|---|---|
✔ | ✔ |
描述
类似于 RowBinary
格式,但添加了标头
LEB128
-编码的列数 (N)。- N 个
String
,指定列名。
使用示例
格式设置
以下设置是所有 RowBinary
类型格式通用的。
设置 | 描述 | 默认值 |
---|---|---|
format_binary_max_string_size | RowBinary 格式中允许的最大字符串大小。 | 1GiB |
output_format_binary_encode_types_in_binary_format | 允许在使用 RowBinaryWithNamesAndTypes 输出格式时,使用 binary encoding 而不是带有类型名称的字符串在标头中写入类型。 | false |
input_format_binary_encode_types_in_binary_format | 允许在使用 RowBinaryWithNamesAndTypes 输入格式时,使用 binary encoding 而不是带有类型名称的字符串在标头中读取类型。 | false |
output_format_binary_write_json_as_string | 允许在 RowBinary 输出格式中,将 JSON 数据类型的值作为 JSON String 值写入。 | false |
input_format_binary_read_json_as_string | 允许在 RowBinary 输入格式中,将 JSON 数据类型的值作为 JSON String 值读取。 | false |
注意
- 如果设置了
input_format_with_names_use_header
为1
,则输入数据中的列将通过名称映射到表中的列,具有未知名称的列将被跳过。 - 如果设置了
input_format_skip_unknown_fields
为1
。否则,将跳过第一行。