Skip to content

[Fix-3240][worker] Cannot find a (Map) Key deserializer for type#3245

Merged
lenboo merged 21 commits intoapache:devfrom
CycloneBoy:dev
Jul 21, 2020
Merged

[Fix-3240][worker] Cannot find a (Map) Key deserializer for type#3245
lenboo merged 21 commits intoapache:devfrom
CycloneBoy:dev

Conversation

@CycloneBoy
Copy link
Copy Markdown
Contributor

Tips

What is the purpose of the pull request

fix the bug #3240 [Bug][worker] Cannot find a (Map) Key deserializer for type #3240

Brief change log

  • add UdfFuncDeserializer.java for Deserializer of the entity UdfFunc
  • modify SQLTaskExecutionContext.java for add @JsonDeserialize to udfFuncTenantCodeMap
  • add SQLTaskExecutionContextTest for test Deserializer of the entity SQLTaskExecutionContext
  • modify th pom.xml of the root to add test of maven-surefire-plugin

Verify this pull request

This change added tests and can be verified as follows:

  • Added SQLTaskExecutionContextTest to verify the change.

@davidzollo davidzollo linked an issue Jul 19, 2020 that may be closed by this pull request
- fix the sonarcloud merge error, Swap these 2 arguments so they are in the correct order: expected value, actual value.

This closes apache#3245
import com.fasterxml.jackson.databind.KeyDeserializer;
import java.io.IOException;

public class UdfFuncDeserializer extends KeyDeserializer {
Copy link
Copy Markdown
Contributor

@yangyichao-mango yangyichao-mango Jul 20, 2020

Choose a reason for hiding this comment

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

Hi,

Good job.
Because UdfFuncDeserializer is not used by a entity class, and just for UdfFunc KeyDeserializer, is it better to move this file as a static class in UdfFunc.java?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

en . I have moved this file as a static class in UdfFunc.java.

@yangyichao-mango
Copy link
Copy Markdown
Contributor

Hi,

Very good work. Thx a lot for your contribution.

@CycloneBoy
Copy link
Copy Markdown
Contributor Author

CycloneBoy commented Jul 20, 2020 via email

move the class UdfFuncDeserializer.java to UdfFunc.java

This closes apache#3245
add the unit test of UdfFunc.java

This closes apache#3245
remove the UdfFuncTest.java from maven-surefire-plugin list

This closes apache#3245
add the UdfFuncTest to the root pom maven-surefire-plugin

This closes apache#3245
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@yangyichao-mango
Copy link
Copy Markdown
Contributor

LGTM.

Copy link
Copy Markdown
Contributor

@lenboo lenboo left a comment

Choose a reason for hiding this comment

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

+1

@lenboo lenboo merged commit 6f2667b into apache:dev Jul 21, 2020
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.

[Bug][worker] Cannot find a (Map) Key deserializer for type

4 participants