Repository navigation
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 sameflagspath as trailing keywords andWITHoptions. 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_listcargo test -p nodedb-sql ddl_ast::parse::collection::body(Full
cargo nextest run --all-featureson Linux per CONTRIBUTING before merge.)Notes
Column named
append_onlywith an explicit type still declares a column (unchanged). Parser-only; no wire/storage version bump.