[HUDI-3398] Fix TableSchemaResolver for all file formats and metadata table (#4782)