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-3805] Remove redundant values in table t_flink_app insert statement #3807

Merged
merged 2 commits into from
Jun 27, 2024

Conversation

zzzk1
Copy link
Contributor

@zzzk1 zzzk1 commented Jun 25, 2024

What changes were proposed in this pull request

The dml of table t_flink_app in existing H2, MySQL, PGSQL does not match the dll struct.

Issue Number: close #3805

Brief change log

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

Does this pull request potentially affect one of the following parts

  • Dependencies (does it add or upgrade a dependency): (no)

@@ -30,7 +30,12 @@ insert into `t_team` values (100000, 'default', null, now(), now());
-- ----------------------------
-- Records of t_flink_app
-- ----------------------------
insert into `t_flink_app` values (100000, 100000, 2, 4, null, null, 'Flink SQL Demo', null, null, null, null, null, null , null, 100000, null, 1, null, null, null, null, null, null, null, null, 0, 0, null, null, null, null, null, null, 'Flink SQL Demo', 0, null, null, null, null, null, null, null, 0, 0, now(), now(), null, 1, 1, null, null, null, null, null, null, 0, null, null, null, 'streampark,test', 0, null);
Copy link
Member

Choose a reason for hiding this comment

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

I suggest using insert table $table($column1,$column2,$column3) values(...) instead of insert into $table values(...) it is a better solution

@zzzk1 zzzk1 force-pushed the Fix-3805-data-script branch 2 times, most recently from 64b5f06 to 733dd38 Compare June 26, 2024 14:51
`id`, `team_id`, `job_type`, `execution_mode`, `job_name`, `user_id`, `app_type`, `state`, `restart_size`,
`description`,`resolve_order`,`option_state`,`tracking`,`create_time`, `modify_time`,`release`, `build`,
`k8s_hadoop_integration`,`tags`, `hadoop_user`
) VALUES (100000, 100000, 2, 4, 'Flink SQL Demo', 100000, 1, 0, 0, 'Flink SQL Demo', 0, 0, 0, now(), now(), 1, 1, 0, 'streampark,test', 0);
Copy link
Member

Choose a reason for hiding this comment

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

hadoop_user : 0 ?

Copy link
Member

@wolfboys wolfboys left a comment

Choose a reason for hiding this comment

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

LGTM

@wolfboys wolfboys merged commit 44f6736 into apache:dev Jun 27, 2024
30 checks passed
@zzzk1 zzzk1 deleted the Fix-3805-data-script branch June 28, 2024 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Value Count Mismatch in INSERT Statement for t_flink_app Table in MySQL Initialization Script
2 participants