Skip to content

Expose semantic models through standard database catalogs - #407

Merged
nicosuave merged 1 commit into
mainfrom
semantic-catalog-discovery
Oct 5, 2026
Merged

nicosuave merged 1 commit into
mainfrom
semantic-catalog-discovery

Conversation

@nicosuave

Copy link
Copy Markdown
Member

Expose loaded semantic models as virtual views in the current database's semantic schema so SQL clients can discover dimensions and metrics through information_schema and pg_catalog, then query them with ordinary qualified SELECTs. Bind field types against the source, preserve physical relation precedence, and respect transaction visibility without creating persistent mirror views.

Package immutable DuckDB 1.5.6 extension releases for Linux and macOS on AMD64 and ARM64, with checksums and verification that the release tag identifies the built commit. Make the optional ADBC regression tests skip correctly when the driver manager is absent.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-05T04:38:21.501576Z 63fd11e PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: 63fd11e642

ℹ️ 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 +191 to +197
case LogicalTypeId::TINYINT: bits = 8; break;
case LogicalTypeId::SMALLINT: bits = 16; break;
case LogicalTypeId::INTEGER: bits = 32; break;
case LogicalTypeId::BIGINT: bits = 64; break;
case LogicalTypeId::HUGEINT: bits = 128; break;
case LogicalTypeId::FLOAT: bits = 24; break;
case LogicalTypeId::DOUBLE: bits = 53; break;

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 Populate numeric metadata for unsigned types

When a semantic dimension binds to UTINYINT, USMALLINT, UINTEGER, UBIGINT, or UHUGEINT, this switch falls through without setting precision, radix, or scale. Consequently, information_schema.columns exposes NULL numeric metadata for these virtual columns even though the corresponding physical DuckDB columns report bit precision, radix 2, and scale 0; this also makes the newly added unsigned cases in test_standard_catalog_numeric_metadata_matches_host fail.

Useful? React with 👍 / 👎.

@nicosuave
nicosuave merged commit 058cfd7 into main Oct 5, 2026
32 checks passed
@nicosuave
nicosuave deleted the semantic-catalog-discovery branch October 5, 2026 04:38
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