Skip to content

Commit

Permalink
Fix nullable check.
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-alhuang committed Jul 25, 2024
1 parent d599cb6 commit 3325c1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ static ParquetBufferValue parseColumnValueToParquet(
}

if (value == null) {
if (!type.isRepetition(Repetition.REQUIRED)) {
if (type.isRepetition(Repetition.REQUIRED)) {
throw new SFException(
ErrorCode.INVALID_FORMAT_ROW, type.getName(), "Passed null to non nullable field");
}
Expand Down

0 comments on commit 3325c1d

Please sign in to comment.