[spark] Resolve the tables of a Paimon view in the namespace of the view #11462
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 236 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.327
Real PR Conversation Timeline
1 comments
"Review active on #11462"
general
weight: 0.35
LuciferYang
Purpose
close #11461
Paimon view bodies resolved in the reader's namespace:
USE db1; CREATE VIEW v AS SELECT FROM orders; USE db2; SELECT FROM db1.vreaddb2.orders.CREATE VIEWstores the propertyspark.view.resolve-in-view-namespace=trueunless set. ThenPaimonViewRelations.qualifyadds the view's catalog and namespace to one-part names, and its catalog to other names without one. As in Spark's persistent views, temporary views are not read;CREATE VIEWrejects them. File reads like `parquet.pathstay unless a catalog Spark or Paimon looks them up in has them. Older or Flink views resolve as before.For a body with names resolved later in analysis, CREATE VIEW
storesfalse: a CTE kept by the LEGACY CTE policy, anIDENTIFIER(...)clause the parser does not fold, or the table argument of Paimon's table-valued functions. So does a Spark 3.2CREATE TEMPORARY VIEWreading a temporary view: Paimon persists it withoutTBLPROPERTIES.Tests
In PaimonViewTestBase
:,jdbc,orctables and aparquetpath read from another catalog; after a drop, reads directly and through a temporary view fail.