thswlsqls opened a new issue, #17083:
URL: https://github.com/apache/iceberg/issues/17083

   **Apache Iceberg version**
   main @ 49b89a8c5
   
   **Query engine**
   None (Java API / JDBC catalog)
   
   **Please describe the bug**
   The JDBC catalog Java API example in `docs/docs/jdbc.md` (line 68) assigns 
the result of `CatalogUtil.buildIcebergCatalog("test_jdbc_catalog", properties, 
hadoopConf)` directly to a `JdbcCatalog` variable. 
`CatalogUtil.buildIcebergCatalog(String, Map<String, String>, Object)` 
(`core/src/main/java/org/apache/iceberg/CatalogUtil.java` line 312) returns 
`Catalog`, its only declared return type, not `JdbcCatalog`. Assigning 
`Catalog` to a `JdbcCatalog` variable without an explicit cast is an 
"incompatible types" compile error.
   
   **Steps to reproduce**
   Copy the code block from `docs/docs/jdbc.md` line 60-68 into a Java file and 
compile: fails with `incompatible types: Catalog cannot be converted to 
JdbcCatalog`.
   
   **Additional context**
   N/A.
   
   


-- 
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]

Reply via email to