Skip to content

Add validation for dynamic struct type compatibility#3755

Draft
arnaud-lacurie wants to merge 2 commits intoFoundationDB:mainfrom
arnaud-lacurie:struct_type_metadata_fix_2
Draft

Add validation for dynamic struct type compatibility#3755
arnaud-lacurie wants to merge 2 commits intoFoundationDB:mainfrom
arnaud-lacurie:struct_type_metadata_fix_2

Conversation

@arnaud-lacurie
Copy link
Collaborator

@arnaud-lacurie arnaud-lacurie commented Nov 16, 2025

Implements validation when creating named structs inline (e.g., STRUCT STRUCT_1(...))
to ensure compatibility with schema-defined types. The validation:

  1. Searches through schema tables to find struct type definitions
  2. Validates field count matches between inline construction and schema definition
  3. Validates each field type is compatible with the schema
  4. Throws CANNOT_CONVERT_TYPE error for type mismatches

This is built on top of #3753

@arnaud-lacurie arnaud-lacurie added the bug fix Change that fixes a bug label Nov 16, 2025
@arnaud-lacurie arnaud-lacurie force-pushed the struct_type_metadata_fix_2 branch from 3bef78b to 45fbdb1 Compare February 7, 2026 12:17
@arnaud-lacurie arnaud-lacurie force-pushed the struct_type_metadata_fix_2 branch from 45fbdb1 to e20f02e Compare February 7, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix Change that fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant