[SPARK-3412][SQL]add missing row api

@chenghao-intel assigned this to me, check PR #2284 for previous discussion
And I'm sorry for going back again.  I should have said `boxed` instead of `value` in my previous comment.