ajantha-bhat commented on a change in pull request #3162:
URL: https://github.com/apache/iceberg/pull/3162#discussion_r726722481
##########
File path: core/src/test/java/org/apache/iceberg/TestCatalogUtil.java
##########
@@ -159,6 +159,18 @@ public void loadCustomFileIO_badClass() {
() -> CatalogUtil.loadFileIO(TestFileIONotImpl.class.getName(),
Maps.newHashMap(), null));
}
+ @Test
+ public void buildCustomCatalog_withTypeSet() {
+ Map<String, String> options = new HashMap<>();
+ options.put(CatalogProperties.CATALOG_IMPL, "CustomCatalog");
+ options.put(CatalogUtil.ICEBERG_CATALOG_TYPE, "hive");
+ Configuration hadoopConf = new Configuration();
+ String name = "custom";
+
+ AssertHelpers.assertThrows("Should complain about both configs being set",
IllegalArgumentException.class,
Review comment:
Loading a custom catalog¶
The above document says for spark engine, we are ignoring the `type` when
both `type` and `impl` is set.
But if we change this behaviour for hive, I think it is better to make same
behaviour for all the engines and update the document accordingly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]