table.getMetadata is degraded to use getSchema method instead because we rollback HIVE-3833