Using the HiveFederatedCatalogFactory

This HiveFederatedCatalogFactory module is an independent compilation unit and will be built into the Polaris binary only when the following flag is set in the gradle.properties file:

NonRESTCatalogs=HIVE,<alternates>

The other option is to pass it as an argument to the gradle JVM as follows:

./gradlew build -DNonRESTCatalogs=HIVE

Without this flag, the Hive factory won't be compiled into Polaris and therefore Polaris will not load the class at runtime, throwing an unsupported exception for federated catalog calls.