Uh oh!
There was an error while loading. Please reload this page.
branch-3.0: [Fix](Serde) Support hive compatible output format #49036 - #49830
branch-3.0: [Fix](Serde) Support hive compatible output format #49036#49830github-actions[bot] wants to merge 1 commit into
Conversation
Thearas
commented
Apr 7, 2025
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Thearas
commented
Apr 7, 2025
run buildall |
doris-robot
commented
Apr 7, 2025
TeamCity cloud ut coverage result: |
doris-robot
commented
Apr 7, 2025
TPC-H: Total hot run time: 40399 ms |
doris-robot
commented
Apr 7, 2025
TPC-DS: Total hot run time: 191061 ms |
doris-robot
commented
Apr 7, 2025
ClickBench: Total hot run time: 32.01 s |
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 #37039b5d4c6b to
dab8723Comparedataroaring
commented
Apr 30, 2025
run buildall |
doris-robot
commented
Apr 30, 2025
TeamCity cloud ut coverage result: |
doris-robot
commented
Apr 30, 2025
TPC-H: Total hot run time: 40691 ms |
doris-robot
commented
Apr 30, 2025
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
doris-robot
commented
Apr 30, 2025
TPC-DS: Total hot run time: 197477 ms |
doris-robot
commented
Apr 30, 2025
ClickBench: Total hot run time: 32.92 s |
Cherry-picked from #49036