Description
SPARK-39902 introduced `Scan#name()` API to expose the name of the TableScan in the `BatchScan` node in SparkUI.
However, a better suggestion was to use the `Table#name()`. Furthermore, we can also extract other useful information `Table` thus revert SPARK-39902 and use `Table` to fetch relevant information.