Ditto. There is no null case. Should return `x.asInstanceOf[Int] % 2` directly. Btw, should it be `% 3` to have three partitions? Or you want to test with an empty partition?