Skip to content

feat(format): add more constraint metadata to GetObjects#4008

Open
lidavidm wants to merge 3 commits intoapache:spec-1.2.0from
lidavidm:gh-3987
Open

feat(format): add more constraint metadata to GetObjects#4008
lidavidm wants to merge 3 commits intoapache:spec-1.2.0from
lidavidm:gh-3987

Conversation

@lidavidm
Copy link
Member

@lidavidm lidavidm commented Feb 19, 2026

  • Add constraint_expression
  • Add various fields for foreign keys

Closes #3987.
Closes #3989.

@lidavidm lidavidm requested a review from amoeba February 19, 2026 04:51
@lidavidm lidavidm changed the title feat(format): add constraint_expression to GetObjects feat(format): add more constraint metadata to GetObjects Feb 19, 2026
@lidavidm lidavidm marked this pull request as ready for review February 19, 2026 07:28
@lidavidm lidavidm requested a review from zeroshade as a code owner February 19, 2026 07:28
@lidavidm lidavidm requested a review from zeroshade February 23, 2026 01:34
Copy link
Member

@paleolimbot paleolimbot left a comment

Choose a reason for hiding this comment

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

I can't speak to the constants but the update to the schema seems reasonable/seems like it won't break existing clients.

Comment on lines +639 to +643
/// \brief This foreign key allows any of the foreign key columns to be NULL;
/// if so, no match is required in the referenced table.
///
/// \see AdbcConnectionGetObjects
#define ADBC_CONSTRAINT_MATCH_SIMPLE 0
Copy link
Member

Choose a reason for hiding this comment

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

Do the ADBC_CONSTRAINT_MATCH_* constants have JDBC sources or some other citation as to why they're needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

They are technically part of ANSI SQL and are somewhat supported in PostgreSQL, but only for SIMPLE and FULL. Unfortunately ANSI SQL isn't publicly available...

JDBC does not surface this information. Match type was requested in point 12 here: #3971 (GitHub apparently doesn't support linking to subheadings)

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.

5 participants