Skip to content

Commit

Permalink
Update error messages in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyuandong-db committed Nov 1, 2024
1 parent 83f3b1e commit 7d7032e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@ public static KernelException invalidConfigurationValueException(
}

public static KernelException domainMetadataUnsupported() {
String message = "Found DomainMetadata action(s) but table feature 'domainMetadata' is not supported on this table.";
String message =
"Found DomainMetadata action(s) but table feature 'domainMetadata' "
+ "is not supported on this table.";
return new KernelException(message);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ class DomainMetadataSuite extends DeltaTableWriteSuiteBase with ParquetSuiteBase
} catch {
case e: KernelException =>
assert(expectedConflict)
assert(e.getMessage.contains("Concurrent domainMetadata actions detected"))
assert(
e.getMessage.contains(
"A concurrent writer added a domainMetadata action for the same domain"
)
)
}
}

Expand Down Expand Up @@ -177,7 +181,10 @@ class DomainMetadataSuite extends DeltaTableWriteSuiteBase with ParquetSuiteBase
}
assert(
e.getMessage
.contains("Found DomainMetadata action(s) but DomainMetadata feature is not supported")
.contains(
"Found DomainMetadata action(s) but table feature 'domainMetadata' "
+ "is not supported on this table."
)
)

// Set writer version and writer feature to support domain metadata
Expand Down

0 comments on commit 7d7032e

Please sign in to comment.