Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Fix map type mapping to doris type error #267

Merged
merged 24 commits into from
Dec 21, 2023

Conversation

vinlee19
Copy link
Contributor

Proposed changes

  1. When you map the flink Map<date, date> type to map<date, date> or map<string, string> in Doris, this will cause the key to be null and the result to be incorrect respectively. Therefore, it can be solved by converting the key in Map into Date.
    R0gX8LS44L

  2. second, it solves the problem of converting Map<TIMESTAMP_LTZ,TIMESTAMP_LTZ> into MAP<STRING,STRING> without time zone information.

  3. We add a unit test for map type.
    Issue Number: close #xxx

Problem Summary:

Describe the overview of changes.

Checklist(Required)

  1. Does it affect the original behavior: (Yes/No/I Don't know)
  2. Has unit tests been added: (Yes/No/No Need)
  3. Has document been added or modified: (Yes/No/No Need)
  4. Does it need to update dependencies: (Yes/No)
  5. Are there any changes that cannot be rolled back: (Yes/No)

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@JNSimba
Copy link
Member

JNSimba commented Dec 14, 2023

It is recommended to add map type coverage in DorisRowConverterTest

@vinlee19
Copy link
Contributor Author

It is recommended to add map type coverage in DorisRowConverterTest

Ok !!!

Copy link
Member

@JNSimba JNSimba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JNSimba JNSimba merged commit 7565540 into apache:master Dec 21, 2023
7 checks passed
@JNSimba JNSimba mentioned this pull request Jan 3, 2024
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.

4 participants