Uh oh!
There was an error while loading. Please reload this page.
[Branch3.0](Serde) Support hive compatible output format - #50469
Conversation
Problem Summary:
The output format of complex data types are different between Hive and
Doris, such as array, map and struct.
When user migrate from Hive to Doris, they expect the same format so
that they don't need to modify their business code.
This PR mainly changes:
Add a new option to session variable `serde_dialect`: If set to hive,
the output format returned to MySQL client of some datatypes will be
changed:
Array
Doris: ["abc", "def", "", null, 1]
Hive: ["abc","def","",null,true]
Map
Doris: {"k1":null, "k2":"v3"}
Hive: {"k1":null,"k2":"v3"}
Struct
Doris: {"s_id":100, "s_name":"abc , "", "s_address":null}
Hive: {"s_id":100,"s_name":"abc ,"","s_address":null}
Related apache#37039Thearas
commented
Apr 27, 2025
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
morningman
commented
Apr 28, 2025
run buildall |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
doris-robot
commented
Apr 28, 2025
TeamCity cloud ut coverage result: |
doris-robot
commented
Apr 28, 2025
TPC-H: Total hot run time: 40445 ms |
doris-robot
commented
Apr 28, 2025
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
doris-robot
commented
Apr 28, 2025
TPC-DS: Total hot run time: 197864 ms |
doris-robot
commented
Apr 28, 2025
ClickBench: Total hot run time: 32.91 s |
picked from: #49036