presto-thrift-api/src/main/java/io/prestosql/plugin/thrift/api/PrestoThriftPageResult.java/PrestoThriftPageResult/checkAllColumnsAreOfExpectedSize
class PrestoThriftPageResult:    private static void checkAllColumnsAreOfExpectedSize(List<PrestoThriftBlock> columnBlocks, int expectedNumberOfRows)
    {
        for (int i = 0; i < columnBlocks.size(); i++) {
            checkArgument(columnBlocks.get(i).numberOfRecords() == expectedNumberOfRows,
                    "Incorrect number of records for column with index %s: expected %s, got %s",
                    i, expectedNumberOfRows, columnBlocks.get(i).numberOfRecords());
        }
    }