maomaodev commented on PR #7718:
URL: https://github.com/apache/kyuubi/pull/7718#issuecomment-7150187329
@pan3793 @wangzhigang1999 Thanks for the careful reviews and for verifying
the fix empirically. The latest commits address the remaining feedback, in
short:
- Pattern round-trip: a single `toV1Pattern` helper (`regex.replace(".*",
"*")`) now fronts every v1 catalog call —
GetSchemas/GetTables/GetColumns/GetFunctions and both temp-view paths — so a
trailing `%` matches zero characters again; covered by the schema,
table/temp-view, and function "whose names equal the pattern prefix" tests.
- Naming convention: `spark_catalog` returns and matches raw unquoted names
uniformly across getSchemas → getTables → getColumns, covered by `get tables
and columns with names needing quotes`.
- Fallback view probe: runs only when the batched `getTablesByName` fails,
and only for single-level identifiers; the batch failure is logged once per
namespace at warn, and the batch-vs-fallback types and comments are pinned
equal by a test.
- Builtin GetColumns: the branch is reachable again (moved first behind the
`!hasCustomSessionCatalog` guard), batches `getTablesByName`, skips
empty-namespace identifiers; `namespaces` is now lazy.
- Temp view columns are read from the stored view metadata instead of the
view plan — a view stored as SQL text resolves to an unanalyzed plan with no
readable schema, so global temp view columns were silently empty before. The
interval test expectations now derive from the runtime type, and the temp-view
listing test lives in SparkOperationSuite, where one connection maps to one
session.
The two non-blocking follow-ups are left for follow-up PRs, as suggested.
The failing jobs (`BatchesV2ResourceSuite`) look unrelated to this PR, which
does not touch the batch code paths.
--
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]