adiranjan25 commented on PR #19077: URL: https://github.com/apache/iceberg/pull/19077#issuecomment-7204690042
I investigated the catalog-level behavior further and found that the existing VARIANT integration tests in `CatalogTests` were being skipped by `TestHiveCatalog` because the inherited `supportsVariant()` capability defaults to false. With the `binary` placeholder change, I enabled the existing VARIANT catalog tests and verified the following: **Before the fix:** - Creating a V3 table with VARIANT columns failed with `Internal error parsing position 0 of 'unknown'`. - Adding a VARIANT column to an existing V3 table failed with `Invalid column type: unknown`. **After the fix:** - V3 table creation with top-level and nested VARIANT columns passes. - Adding a VARIANT column to an existing V3 table passes. - Rejection of VARIANT columns in V2 tables passes. - The logical VARIANT schema is preserved when loading the table through HiveCatalog. I also rebased against upstream main and completed validation of `TestHiveCatalog` and `TestHiveSchemaUtil`: 164 tests, 146 passed, 18 skipped, zero failures and zero errors. All four VARIANT-related tests executed successfully without skips. Spotless and Checkstyle checks also passed. The integration tests use the repository's Hive 2.3.10 test dependency. Standalone HMS 3.0 compatibility remains to be verified. @mrendi29, the reported `UnsupportedOperationException: variant is not supported` may originate from a separate conversion path. I found matching exceptions in the ORC schema visitors, although the full stack trace would be needed to confirm whether that is related to your environment. Happy to investigate further once the additional details are available. -- 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]
