Skip to content

Commit

Permalink
fix IcebergStrucuredIT
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-alhuang committed Nov 8, 2024
1 parent bb26539 commit 727d184
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ public void testStructuredDataType() throws Exception {
}))
.isInstanceOf(SFException.class)
.hasMessage(
"The given row cannot be converted to the internal format: VALUE.key_value.key. "
+ "Passed null to non nullable field, rowIndex:0, column:VALUE.key_value.key")
"The given row cannot be converted to the internal format: Invalid row 0."
+ " missingNotNullColNames=null, extraColNames=null,"
+ " nullValueForNotNullColNames=[VALUE.key_value.key]")
.extracting("vendorCode")
.isEqualTo(ErrorCode.INVALID_FORMAT_ROW.getMessageCode());

Expand All @@ -91,8 +92,9 @@ public void testStructuredDataType() throws Exception {
assertStructuredDataType("object(a int, b string)", "{\"a\": 1, \"c\": \"test\"}"))
.isInstanceOf(SFException.class)
.hasMessage(
"The given row cannot be converted to the internal format: Extra fields: [c]. "
+ "Fields not present in the struct VALUE shouldn't be specified, rowIndex:0")
"The given row cannot be converted to the internal format: Invalid row 0."
+ " missingNotNullColNames=null, extraColNames=[VALUE.c],"
+ " nullValueForNotNullColNames=null")
.extracting("vendorCode")
.isEqualTo(ErrorCode.INVALID_FORMAT_ROW.getMessageCode());

Expand Down

0 comments on commit 727d184

Please sign in to comment.