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

   ### What problem does this PR solve?
   
   Issue Number: DORIS-28321
   
   Problem Summary:
   `information_schema.view_dependency` re-parses each view definition to 
collect
   its base tables. When a view references a table that no longer exists
   (dangling view), the parse throws an exception and the whole metadata query
   fails instead of skipping the bad view.
   
   For example, after `CREATE VIEW v1 AS SELECT * FROM t1; DROP TABLE t1;`,
   `SELECT * FROM information_schema.view_dependency` fails with
   `Table [t1] does not exist in database [xxx]`.
   
   ### How to test this PR?
   
   1. Create a database, a base table, and a view on top of it.
   2. Drop the base table (the view becomes dangling).
   3. Query `information_schema.view_dependency`: before the fix the query fails
      entirely; after the fix it succeeds, the dangling view is skipped with a
      WARN log, and normal views are still returned.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


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