Refer apache/spark#50849
With this change SQL package was updated to use the OneRowRelationExec which is mostly a replacement of RDDScanExec.
I saw instances of usages of RDDScanExec. This should be investigated to make sure that we are backward compatible