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

[step2][Improve]Use flink’s checkstyle to format Sink Connector #272

Merged
merged 4 commits into from
Dec 15, 2023

Conversation

DongLiang-0
Copy link
Contributor

@DongLiang-0 DongLiang-0 commented Dec 14, 2023

Proposed changes

Formatting step two, format sink connector.
Related pr: #270

Problem Summary:

In order to format the code more conveniently, we have introduced the spotless-maven-plugin plug-in. You can perform code style checking by executing mvn spotless:check, and format the code by executing mvn spotless:apply.

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...

Comment on lines -155 to +153
obj.set(mapKey.asText(), mapValue);
obj = JSON_NODE_FACTORY.objectNode();
Copy link
Member

Choose a reason for hiding this comment

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

Is this as expected?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Due to code formatting reasons, the actual line 153 corresponds to line 164.

@@ -39,19 +39,23 @@ public class PostgresDateConverter implements CustomConverter<SchemaBuilder, Rel
private DateTimeFormatter dateFormatter = DateTimeFormatter.ISO_DATE;
private DateTimeFormatter timestampFormatter = DateTimeFormatter.ISO_DATE_TIME;

public static Properties DEFAULT_PROPS = new Properties();
public static Properties defaultProps = new Properties();
Copy link
Member

Choose a reason for hiding this comment

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

static final

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure

@JNSimba
Copy link
Member

JNSimba commented Dec 14, 2023

Thanks to @DongLiang-0 , I left some comments, PTAL

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 f60bebf into apache:master Dec 15, 2023
5 checks passed
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.

2 participants