Same comments apply as in checkPureColumnIndex.