Skip to content

Conversation

@BookTraceless
Copy link
Contributor

Purpose of this pull request

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

shupan.yan added 3 commits March 8, 2025 10:04
# Conflicts:
#	seatunnel-e2e/seatunnel-connector-v2-e2e/connector-jdbc-e2e/connector-jdbc-e2e-ddl/src/test/java/org/apache/seatunnel/connectors/jdbc/SqlServerSchemaChangeIT.java
@davidzollo

This comment was marked as outdated.

davidzollo
davidzollo previously approved these changes Mar 8, 2025
Copy link
Contributor

@davidzollo davidzollo left a comment

Choose a reason for hiding this comment

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

+1
LGTM

Copy link
Member

@hailin0 hailin0 left a comment

Choose a reason for hiding this comment

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

Please refer to the changes in this PR

#8380

@hailin0
Copy link
Member

hailin0 commented Mar 8, 2025

cc @hawk9821

@BookTraceless
Copy link
Contributor Author

image
Sir, I see that the reference modification is a public class. What specific changes should be made in the code I submitted?

@hailin0
Copy link
Member

hailin0 commented Mar 8, 2025

Please update docs

@BookTraceless
Copy link
Contributor Author

OK, thank you, I see.

@BookTraceless
Copy link
Contributor Author

@hailin0
Sir, it's done

@davidzollo davidzollo requested a review from hawk9821 March 9, 2025 03:00
@hailin0
Copy link
Member

hailin0 commented Mar 10, 2025

waiting for ci passed

@Hisoka-X
Copy link
Member

Thanks @Aiden-Rose .

  1. Please do not close/reopen to re-trigger ci. It will lost ci status.
  2. Please fix failed ci in https://github.com/Aiden-Rose/seatunnel/actions/runs/13739107207/job/38426331775

StringBuilder sqlBuilder =
new StringBuilder("ALTER TABLE ")
.append(tableIdentifier(tablePath))
.append(" ALTER COLUMN ")
Copy link
Contributor

Choose a reason for hiding this comment

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

With StringBuilder repeated redundancy above, it is possible to encapsulate a common writing method

+ "AND TABLE_SCHEMA = '%s' AND TABLE_NAME = '%s' AND COLUMN_NAME = '%s';",
tablePath.getDatabaseName(),
tablePath.getSchemaName(),
tablePath.getTableName(),
Copy link
Contributor

Choose a reason for hiding this comment

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

sql concatenation as above uses a common approach to reduce redundancy

if (rs.next()) {
return rs.getString("IS_NULLABLE").equals("YES");
} else {
throw new SQLException("Column not found: " + column);
Copy link
Contributor

Choose a reason for hiding this comment

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

Print detail log

@github-actions github-actions bot added the CI&CD label Mar 10, 2025
@github-actions github-actions bot removed the CI&CD label Mar 10, 2025
@github-actions github-actions bot added the CI&CD label Mar 10, 2025
@github-actions github-actions bot removed the CI&CD label Mar 10, 2025
@BookTraceless
Copy link
Contributor Author

image
I don't know how to solve it.

@hawk9821
Copy link
Contributor

image I don't know how to solve it.

change the sqlserver image , Refer to JdbcSqlServerIT

Copy link
Contributor

@davidzollo davidzollo left a comment

Choose a reason for hiding this comment

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

+1

@davidzollo davidzollo merged commit 30aa485 into apache:dev Mar 15, 2025
2 of 3 checks passed
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.

6 participants