Skip to content
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