hubgeter opened a new pull request, #71353:
URL: https://github.com/apache/doris/pull/71353

   ### Background
   
   An Iceberg catalog lists persistent views separately from its base tables. 
Doris supports SHOW VIEWS filters over relation metadata and lists only objects 
visible to the caller.
   
   ### What problem does this PR solve?
   
   Issue Number: None
   Related PR: #70370 (saved default namespace and split plan)
   PR Type: Bugfix
   
   Problem Summary:
   
   A persistent Iceberg view can be queried by name but be omitted by SHOW 
VIEWS. Use the Iceberg view inventory for explicit SHOW VIEWS commands, 
including LIKE, FULL and WHERE.
   
   ### Details
   
   - **Change map:** 264 lines of explicit SHOW handling, connector opt-in and 
API versioning. 169 lines test the listing and stock Spark/REST path.
   - **Frequency:** Affected on Iceberg namespaces containing persistent views 
when Doris uses generic table engine display to decide which entries count as 
views.
   - **Root cause:** The generic SHOW path filters object engine names and the 
WHERE path queries information_schema in a separate scan. That path can omit 
Iceberg view names and lacks the delegated credentials used by the client 
session.
   - **Why existing tests missed it:** SHOW tests focused on base tables and 
the existing Spark view suite was disabled. The new tests check caller-session 
forwarding, access filtering, cancellation and failures, plus plain and 
filtered inventory on Spark/REST.
   - **Fix:** Opt into the existing complete view-name listing for Iceberg. 
Invoke it once in the caller's FE session. Apply SHOW access filtering before 
reading per-view fields and execute the SQL predicate against typed view rows 
in a child SHOW context. Report a failed view inventory as an error.
   - **Other paths and branches:** This path activates for explicit SHOW VIEWS 
in opted-in plugin databases. Hive, SHOW TABLES, generic information_schema 
status and Flight SQL continue through their existing paths. Release branches 
were not verified. The connector API version is allocated against the target 
master snapshot and will be synchronized if the namespace PR merges first.
   - **Behavior change:** Explicit Iceberg SHOW VIEWS lists visible persistent 
views and applies the existing LIKE and SQL WHERE filters.
   
   ### Testing
   
   - Checkstyle 9.3, both connector architecture checks, the diff check, and 
Groovy syntax parsing passed. The targeted FE unit command stopped before 
execution because `protoc` is unavailable. Stock Spark/REST runtime 
verification, including a configured delegated REST session, is pending.
   
   ### Notes for Reviewers
   
   This is the explicit listing part of the three-PR split. The WHERE input 
retains the information_schema.tables column names and types. Only fields 
referenced by the predicate or output require per-view status metadata.
   
   ### Release note
   
   SHOW VIEWS can list Iceberg persistent views and filter them with LIKE or 
WHERE. Connector plugins must use the connector API version shipped by the FE.
   
   ### Check List (For Author)
   
   - Behavior changed: Yes (see Details)
   - Does this need documentation: No
   - Pre-submission status: Partially verified: FE unit execution and 
Spark/REST runtime regression pending.
   
   ### AI Disclosure
   
   - Tool: Codex.
   - Generated: Code, tests and description.
   - Human review: Not stated.
   


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