Skip to content

Commit

Permalink
Add an error message to append precondition
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-stec authored and raunaqmorarka committed Jun 13, 2023
1 parent c208ad8 commit 858af73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void append(IntArrayList positions, Block source)
{
// RleAwarePositionsAppender should be used with UnnestingPositionsAppender that makes sure
// append is called only with flat block
checkArgument(!(source instanceof RunLengthEncodedBlock));
checkArgument(!(source instanceof RunLengthEncodedBlock), "Append should be called with flat block but got %s", source);
switchToFlat();
delegate.append(positions, source);
}
Expand Down

0 comments on commit 858af73

Please sign in to comment.