When count is converted to direct scan (case when statistics or table metadata are available and there is no need to perform count operation), MetadataDirectGroupScan is used. Proposed MetadataDirectGroupScan enhancements:
1. Show table selection root instead listing all table files. If table has lots of files, query plan gets polluted with all files enumeration. Since files are not used for calculation (only metadata), they are not relevant and can be excluded from the plan.
For Hive tables which were scanned directly, selection root is not available thus will be omitted.
2. Submission of physical plan which contains MetadataDirectGroupScan fails with deserialization errors, proper ser / de should be implemented.