Skip to content

fix(ddl): honour collection flags in CREATE COLLECTION column list - #516

Open
amrsorne wants to merge 1 commit into
NodeDB-Lab:mainfrom
amrsorne:fix/454-column-list-collection-flags
Open

amrsorne wants to merge 1 commit into
NodeDB-Lab:mainfrom
amrsorne:fix/454-column-list-collection-flags

Conversation

@amrsorne

Copy link
Copy Markdown
  • I have signed the Contributor Assignment Agreement.

What

Fixes #454.

CREATE COLLECTION (...) treated bare modifier tokens in the column list as empty column definitions and dropped them. Recognised flags (APPEND_ONLY, HASH_CHAIN, BITEMPORAL, SIGNED_DELTAS) now feed the same flags path as trailing keywords and WITH options. Other bare identifiers without a type are rejected at parse time.

Why

Legacy / docs-style DDL used (id TEXT, …, BITEMPORAL); collections were created without bitemporal or append-only semantics despite successful DDL.

How tested

  • cargo test -p nodedb-sql ddl_ast::parse::collection::column_list
  • cargo test -p nodedb-sql ddl_ast::parse::collection::body

(Full cargo nextest run --all-features on Linux per CONTRIBUTING before merge.)

Notes

Column named append_only with an explicit type still declares a column (unchanged). Parser-only; no wire/storage version bump.

…odeDB-Lab#454)

Bare APPEND_ONLY, BITEMPORAL, HASH_CHAIN, and SIGNED_DELTAS tokens in the
parenthesised column list were dropped when they had no type. Treat them like
trailing modifier flags and reject other bare tokens without a type.

This branch has not been deployed

No deployments
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.

CREATE COLLECTION silently discards bare column-list tokens: BITEMPORAL and APPEND_ONLY have no effect

1 participant