Skip to content

Add strict Rust Ossie import parity - #332

Open
nicosuave wants to merge 1 commit into
ossie-public-integrationfrom
ossie-rust-support
Open

Add strict Rust Ossie import parity#332
nicosuave wants to merge 1 commit into
ossie-public-integrationfrom
ossie-rust-support

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

ℹ️ 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 on lines +1197 to +1199
.filter_map(Value::as_str)
.filter_map(|name| field_names.get(&normalize_identifier(name)).cloned())
.collect::<Vec<_>>()

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 Reject unresolved declared-key columns

When a declared primary or unique key contains an unknown field, this filter silently removes that component instead of producing a diagnostic. For example, primary_key: [tenant_id, typo] compiles as [tenant_id], falsely changing a composite key into a single-column key and potentially corrupting distinct-count or symmetric-aggregation results. The strict importer should reject unknown, duplicate, or empty declared-key columns rather than lowering a modified key.

Useful? React with 👍 / 👎.

Comment on lines +1300 to +1303
let is_query = source_is_query(&source, target);
let model = Model {
name: name.clone(),
table: (!is_query).then_some(source.clone()),

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 Reject sources that are neither queries nor table references

Any source that is not recognized as a query is assigned directly as a table, even when it is invalid SQL or another statement type. Thus inputs such as source: DROP TABLE orders pass inspection and compile as executable scopes, only producing malformed or unsafe FROM clauses later. Source classification needs a separate validated-table outcome and must diagnose values that are neither table references nor supported queries.

Useful? React with 👍 / 👎.

Comment on lines +883 to +890
&[
"version",
"name",
"description",
"ai_context",
"ontology",
"ontology_mappings",
],

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 Include requires in allowed ontology fields

The pinned Ossie 0.2.0.dev0 ontology schema defines requires as a valid root property, but this allowlist omits it. Consequently, a schema-valid ontology document that declares dependencies is rejected with ossie.schema.additional_properties, preventing the new validator from accepting supported upstream documents.

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