maomaodev commented on PR #7718: URL: https://github.com/apache/kyuubi/pull/7718#issuecomment-7106761422
Thanks for another round of professional review, and especially for verifying the probe on Spark 4.1.0 yourself — that forwarder case is exactly what the suite was missing, and it is now covered (item 3). All items are addressed; point-by-point: **1. [Major] GetColumns only half adopts case-insensitive matching** Done. `getColumnsByCatalog` now compiles the table pattern with `compilePattern` as well, so schema and table patterns behave consistently for `spark_catalog` (case-insensitive), while non-session catalogs and the column pattern are unchanged, as on the v1 path. Covered in the uppercase-pattern section of `IcebergMetadataTests#get tables and views`: `getColumns(cg, "DB_TYPE", "TABLE%", "%")` returns the column row for `table_type`. **2. [Minor] implementsListTableSummaries catches only NonFatal** Done. The probe now runs inside `attempt` and returns false on failure, so a `NoClassDefFoundError` from a member signature referencing an absent optional dependency degrades to the `listTables` path instead of failing GetTables where it used to just call `listTables`. **3. [Test] Nothing in the suite covers the forwarder case** Done — asserted as suggested: `!implementsListTableSummaries(new V2SessionCatalog(spark.sessionState.catalog))` in `SparkCatalogUtilsSuite`. On Spark 3.5/4.0 the interface method does not exist and the probe returns false trivially, so no version gating is needed; on 4.1+ the forwarder is present and the assertion becomes the discriminating case. **4. [Nit] ignoreTableProperties doc** Done — adopted the suggested wording verbatim and regenerated `docs/configuration/settings.md` accordingly. **5. [Hygiene] PR description** Done. The description now reflects the final state: batched v1 lookup with per-table fallback, the `listTableSummaries` fast path, case-insensitive matching for `spark_catalog` (`GetColumns` included), temp views labeled `spark_catalog`, and the doc change. The `get tables with ignoreTableProperties` entry was rewritten to describe what it actually exercises — the session catalog there (Iceberg 1.11.0) does not implement `listTableSummaries`, so all entries come back as `TABLE` — with the fast path's `tableTypes` filtering attributed to `SummariesCatalogUtilsSuite`. -- 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]
