Repository navigation
Conversation
|
Need to sign a CLA. |
|
^ |
|
@alexey-milovidov In fact, this issue is that clickhouse output csv in format such like |
|
@shuai-xu, It looks like the |
Yes, it looks like CustomSeparated, but not fully supported since map has to in the '{}', and so do array/tuple. |
There was a problem hiding this comment.
Old tests should not be modified.
alexey-milovidov
left a comment
There was a problem hiding this comment.
Maybe better to add it as a new format? What is the name for it?
Maybe HiveTextOutputFormat? |
|
I added the HiveTextRowOutputFormat to support write as hive |
|
@alexey-milovidov can you help to review this pr? |
|
This is an automated comment for commit 8f7ab97 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
c5b1266 to
c6b5119
Compare
|
@alexey-milovidov Tests have passed, the failed one seems not related to this pr. |
ec2ba89 to
6711dec
Compare
1c806e6 to
64ee317
Compare
|
Dear @alexey-milovidov, this PR hasn't been updated for a while. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself. |
|
|
||
| void SerializationVariant::serializeTextHive(const IColumn & /*column*/, size_t /*row_num*/, WriteBuffer & /*ostr*/, const FormatSettings & /*settings*/) const | ||
| { | ||
| throw Exception(ErrorCodes::NOT_IMPLEMENTED, "Method serializeTextHive is not implemented for Variant"); |
|
@shuai-xu, please allow edits in your branch. |
|
Continued in #107582 |
Add the HiveText output format, mirroring Apache Hive's LazySimpleSerDe text
serialization. Each row is written without quoting; top-level fields are
separated by the fields delimiter ('\001' by default) and rows by the rows
delimiter ('\n', configurable via the new format_hive_text_rows_delimiter
setting). Values of nested types (Array, Map, Tuple) are written without
brackets, separated by a delimiter derived from the fields delimiter by their
nesting level, the same way Hive does it.
Implemented via a new ISerialization::serializeTextHive() method (whose default
throws for types that Hive does not support) and a new HiveTextRowOutputFormat.
Reimplements ClickHouse#60737.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Add the HiveText output format, mirroring Apache Hive's LazySimpleSerDe text
serialization. Each row is written without quoting; top-level fields are
separated by the fields delimiter ('\001' by default) and rows by the rows
delimiter ('\n', configurable via the new format_hive_text_rows_delimiter
setting). Values of nested types (Array, Map, Tuple) are written without
brackets, separated by a delimiter derived from the fields delimiter by their
nesting level, the same way Hive does it.
Implemented via a new ISerialization::serializeTextHive() method (whose default
throws for types that Hive does not support) and a new HiveTextRowOutputFormat.
Reimplements ClickHouse#60737.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Add a config to control whether write string in quote for CSV format
Documentation entry for user-facing changes
This pr add a config to control whether write string in quote for CSV format. Now CSV will write string in quote, this is conflicing with hive, and we hope it is configurable.