Skip to content

Expose Apache Ossie across public workflows - #331

Open
nicosuave wants to merge 1 commit into
ossie-interchangefrom
ossie-public-integration
Open

Expose Apache Ossie across public workflows#331
nicosuave wants to merge 1 commit into
ossie-interchangefrom
ossie-public-integration

Conversation

@nicosuave

Copy link
Copy Markdown
Member

Stack created with GitHub Stacks CLIGive Feedback 💬

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3093e7b008

ℹ️ 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".

Comment thread sidemantic/loaders.py
Comment on lines +442 to +445
adapter = OssieAdapter(
target_dialect=layer.dialect or "duckdb",
consumer_profile=consumer_profile,
scope_id=ossie_scope_id,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Resolve auto-discovered Ossie files as one catalog

When an auto-discovered directory contains multiple one-scope Ossie files, this creates and parses an adapter separately for each file, after which the generic loader merges their graphs with _merge_models. That bypasses OssieAdapter.parse_catalog(directory), so isolated namespaces are flattened and a same-named dataset becomes last-writer-wins; supplying --ossie-scope is also applied to every file independently and fails as soon as a document lacks that scope. Collect the detected documents into one qualified catalog before resolving the requested scope.

AGENTS.md reference: AGENTS.md:L7-L9

Useful? React with 👍 / 👎.

Comment thread sidemantic/cli.py
use_preaggregations: bool = False,
engine: str | None = None,
fallback: bool | None = None,
ossie_scope: str | None = None,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Expose scope selection in rewrite and explain

For a multi-scope Ossie document, the canonical adapter raises an ambiguity error unless this new helper argument is supplied. I checked the rewrite and explain_sql_command call sites: neither command exposes --ossie-scope nor passes a value here, so these public query-planning workflows cannot use a supported multi-scope source even though query can. Add and thread the selector through both commands.

AGENTS.md reference: AGENTS.md:L7-L9

Useful? React with 👍 / 👎.

Comment thread sidemantic/cli.py
Comment on lines +1549 to +1550
if ossie_permissive:
source_adapter_options["import_policy"] = "permissive"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Make permissive conversion return a permissive result

When --ossie-permissive is used on the invalid input it is intended for, this option reaches OssieAdapter.parse(), which still unconditionally raises whenever any lowering has valid == False. Consequently the conversion never returns the independently safe constructs or a preserved document, while valid inputs behave identically to strict mode. Route this mode through the document/catalog migration API, or reject/remove the CLI option rather than advertising behavior it cannot provide.

AGENTS.md reference: AGENTS.md:L7-L9

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant