Skip to content

Conversation

@chaozwn
Copy link
Member

@chaozwn chaozwn commented Aug 31, 2022

Purpose of this pull request

Which issue you fix

Fixes # (issue).

Checklist:

  • I have executed the 'mvn spotless:apply' command to format my code.
  • I have a meaningful commit message (including the issue id, the template of commit message is '[label-type-#issue-id][fixed-module] a meaningful commit message.')
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • I have checked my code and corrected any misspellings.
  • My commit is only one. (If there are multiple commits, you can use 'git squash' to compress multiple commits into one.)

@chaozwn chaozwn requested a review from FlechazoW August 31, 2022 03:22
@FlechazoW FlechazoW linked an issue Aug 31, 2022 that may be closed by this pull request
3 tasks
@FlechazoW FlechazoW added the test label Aug 31, 2022
@chaozwn chaozwn requested a review from yanghuaiGit August 31, 2022 03:26
@chaozwn chaozwn self-assigned this Aug 31, 2022
public LaunchCommandBuilder withAddJar(List<String> path) {
commands.add("-addjar");
commands.add(GsonUtil.GSON.toJson(path));
commands.add(new GsonBuilder().create().toJson(path));
Copy link
Member

Choose a reason for hiding this comment

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

Why use new Gson rather than GsonUtil.GSON?

Copy link
Member Author

Choose a reason for hiding this comment

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

At this time, because GsonUtil uses prettyjson by default, when using the shell to submit, we cannot appear \r\n json data.

Copy link
Member Author

Choose a reason for hiding this comment

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

The json we use must be one line of data.

public LaunchCommandBuilder withFlinkCustomConf(Map<String, Object> properties) {
commands.add("-confProp");
commands.add(GsonUtil.GSON.toJson(properties));
commands.add(new GsonBuilder().create().toJson(properties));
Copy link
Member

Choose a reason for hiding this comment

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

Why use new Gson rather than GsonUtil.GSON?

Copy link
Member Author

Choose a reason for hiding this comment

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

ablove.

@FlechazoW FlechazoW merged commit 49f612a into DTStack:master Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature][E2e] Add Oracle Logminer E2E Test.

2 participants