Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Apr 7, 2025

Cherry-picked from #49036

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 #37039
@github-actions github-actions bot requested a review from yiguolei as a code owner April 7, 2025 07:14
@Thearas
Copy link
Contributor

Thearas commented Apr 7, 2025

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@dataroaring dataroaring closed this Apr 7, 2025
@dataroaring dataroaring reopened this Apr 7, 2025
@Thearas
Copy link
Contributor

Thearas commented Apr 7, 2025

run buildall

@doris-robot
Copy link

BE UT Coverage Report

Increment line coverage 22.86% (8/35) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 38.18% (10061/26353)
Line Coverage 29.20% (82919/283937)
Region Coverage 27.87% (42620/152938)
Branch Coverage 24.48% (21589/88206)

@yiguolei yiguolei merged commit ba1ad12 into branch-2.1 Apr 11, 2025
18 of 19 checks passed
@github-actions github-actions bot deleted the auto-pick-49036-branch-2.1 branch April 11, 2025 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants