Skip to content

[FLINK-22233][Table SQL / API]Modified the spelling error of word "constant" in source code #15656

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

Merged
merged 1 commit into from
May 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ private void validateTableConstraint(SqlTableConstraint constraint) {
if (constraint.isEnforced()) {
throw new ValidationException(
"Flink doesn't support ENFORCED mode for "
+ "PRIMARY KEY constaint. ENFORCED/NOT ENFORCED controls if the constraint "
+ "PRIMARY KEY constraint. ENFORCED/NOT ENFORCED controls if the constraint "
+ "checks are performed on the incoming/outgoing data. "
+ "Flink does not own the data therefore the only supported mode "
+ "is the NOT ENFORCED mode");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ public void testCreateTableWithPrimaryKeyEnforced() {
thrown.expect(ValidationException.class);
thrown.expectMessage(
"Flink doesn't support ENFORCED mode for PRIMARY KEY "
+ "constaint. ENFORCED/NOT ENFORCED controls if the constraint "
+ "constraint. ENFORCED/NOT ENFORCED controls if the constraint "
+ "checks are performed on the incoming/outgoing data. "
+ "Flink does not own the data therefore the only supported mode is the NOT ENFORCED mode");
parse(sql, planner, parser);
Expand Down Expand Up @@ -1230,7 +1230,7 @@ public void testAlterTableAddPkConstraintEnforced() throws Exception {
// Test alter table add enforced
thrown.expect(ValidationException.class);
thrown.expectMessage(
"Flink doesn't support ENFORCED mode for PRIMARY KEY constaint. "
"Flink doesn't support ENFORCED mode for PRIMARY KEY constraint. "
+ "ENFORCED/NOT ENFORCED controls if the constraint checks are performed on the "
+ "incoming/outgoing data. Flink does not own the data therefore the "
+ "only supported mode is the NOT ENFORCED mode");
Expand Down