Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5b262d98cc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if self.graph.has_strict_metric_scope() || aggregate_plan::is_osi_model_calculation(metric) | ||
| { | ||
| return self.strict_graph_metric_owners(reference, metric, visiting); |
There was a problem hiding this comment.
Preserve ownership for column-free OSI calculations
For a wrapped 0.1.1 model containing a single dataset and a metric such as COUNT(*) + 1, this new strict-owner path rejects a previously executable query with metric.graph_scope.<name>. The OSI reader imports that expression as a derived metric with sql_is_complete = false, so logical_constant_owner() cannot supply its population; the aggregate planner also cannot bind the column-free count and falls back here. Previously, the non-strict path inferred the sole model as owner. Preserve that unambiguous single-dataset fallback for these imported calculations.
Useful? React with 👍 / 👎.
Load wrapped Ossie 0.1.1 and the flat 0.3.0.dev0 logical draft directly into a persistent DuckDB semantic catalog. The native draft importer validates against Apache revision d27a6be and retains dataset measure ownership across reopen.
Ordinary SELECT can query global metrics through FROM metrics. Physical tables and CTEs keep their existing name resolution. Acceptance cases load the unchanged upstream TPC-DS files, exercise joins, filters, cross-dataset metrics and scoped measures, and repeat the queries after a read-only reopen.
The draft requires named windowed model metrics to return E_DEFERRED_WINDOWED_METRIC. The extension guide includes runnable SQL for cumulative sales, brand rank within each store, and monthly sales change using the model's total_sales metric.