plusplusjiajia opened a new pull request, #1126: URL: https://github.com/apache/paimon-rust/pull/1126
### Purpose A temporary table or view shadows a catalog table in queries, but `SHOW CREATE TABLE` in `SQLContext` still returned the shadowed Paimon table's DDL: ```sql CREATE TEMPORARY VIEW paimon.db.t AS SELECT 1 AS id; SELECT * FROM paimon.db.t; -- reads the temporary view SHOW CREATE TABLE paimon.db.t; -- returned the Paimon table's DDL ``` Temporary objects without a catalog table were described by DataFusion through `information_schema.views`, which loads every table in the catalog, so an unrelated table that fails to load broke the statement. Flink's `SHOW CREATE TABLE` likewise resolves temporary tables before permanent ones. ### Brief change log - Look up the temporary object first, with names normalized as in queries, and return its definition directly (NULL when it has none). - Paimon tables without a temporary object keep the generated DDL. ### Tests - A temporary view or table shadowing a Paimon table returns its own definition or NULL. - Temporary object names resolve like queries: unquoted names are normalized, quoted names are kept. - A temporary object is described without loading an unrelated broken table. -- 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]
