Repository navigation
1.5.2
Merged PRs
dolt
- 12530: Decode each side of kv joins with its own NodeStore
lookup and merge joins across databases panicked with "empty chunk returned from ChunkStore" when a row had out-of-line values, because the row joiner resolved both sides through a single NodeStore.
Fixes: dolthub/dolt#12518 - 12526: Reset table writers after materializing pending edits, not during
Rebuilding a table writer with a partial index could read the working set while pending edits were still being saved, which panicked. Writers are now rebuilt after the save finishes.
Fixes: #3877 - 12512: Merge convergently added columns that only one side changed
Merges rows cleanly when both branches add the same column and only one side changes its value.
Fixes dolthub/dolt#10909 - 12508: Keep binlog table IDs stable across transactions
Keep binlog table IDs stable for each exact database and table name, and send a fresh table map with every row transaction. Forward rotation events so CDC readers clear their cached mappings when they catch up across a Dolt restart.
Fixes #12244 - 12497: Avoid panicking when a tree is more than 16 levels deep
- 12495: add DumboRootValueFileID for dumbo databases
- 12494: reuse hash in
archive.ChunkSource.getMany - 12490: /go/store/blobstore: disable auto-maintenance on fetch
Fixes #12488
git fetchinto the git remote cache ends by starting git's automatic maintenance, which detaches and can repack and delete packs after the fetch has returned. A later read could then get a warning on stderr from agit cat-file -sthat still succeeded, and Dolt parsed the warning as the size.
This PR updatesRunner.Runto return only stdout on success, so stderr warnings can't corrupt parsed output. Failures still carry both streams. It also changesFetchRefto disable auto-maintenance (maintenance.auto=false,gc.auto=0). Dolt's own periodicgit gcand the end of the process already compacts the cache. - 12489: Add DOLT_DISABLE_VERSION_CHECKS to disable release checks via the environment
Fix #12479 - 12477: Store and enforce NULLS NOT DISTINCT for unique indexes
Stores a nulls_not_distinct flag on unique indexes and enforces it on writes, index builds, and merges.
Companion PRs: dolthub/go-mysql-server#4155, #3845 - 12476: Convert strict lookup keys of another extended type to the column's type
Fixes primary key lookups on Doltgres columns compared with a literal of another type by converting the literal to the column's type.
Companion PR: #3849 - 12470: Plan fewer foreign keys for UPDATE and DELETE
Bumps go-mysql-server to plan fewer foreign keys for UPDATE and DELETE.
Companion PRs: dolthub/go-mysql-server#4151, #3841 - 12469: Fix merges that combine a column drop and row deletion
When one branch drops a column and the other deletes a row, compare the surviving row with the ancestor using the surviving branch’s schema. Use stored column positions for type lookups and name-based column matches so virtual columns cannot shift those lookups.
Adds regression coverage for merge and preview in both directions, including a table with a virtual column.
Fixes #12274 - 12468: Make ForeignKeyCollection copy-on-write and share each root's collection
Fixes super-linear UPDATE planning cost as foreign keys referencing a table increase.
Companion PR: #3840 - 12467: Respect partial index predicates when merging secondary indexes
Fixes merges and index rebuilds adding rows that don't satisfy a partial index predicate to the index.
Companion PR: #3839 - 12466: go: sql: Visit a pending writer's root's children for GC, not the root, which is stored inline.
A table's primary index root is stored inline in the table's chunk, so asking session-aware GC to keep it by address failed the GC withdangling references requested during GC. This was the recentTestConcurrentGCfailure on macOS CI.TestGCWithPendingEditsreproduces it deterministically.
Also, disables auto GC in TestConcurrentGC's KillConnections subtests, since it forces session-aware GC. - 12463: Answer view lookups for names that aren't views from the session cache instead of rescanning dolt_schemas, and key the view cache by schema.
Answer view lookups for names that aren't views from the session cache instead of rescanning dolt_schemas, and key the view cache by schema. - 12443: Fix repeated recursive CTE rows with a schema override
A schema override can expose a join that reuses stale recursive CTE rows. Pin the GMS fix so recursive joins return the same rows with the override enabled or cleared.
Fixes #12309
Depends on: GMS #4148 - 12433: sqle, dsess: key database and revision maps with typed names
Adds doltdb.QualifiedDbName and the case-normalized DbKey, RevisionKey and QualifiedDbKey, and uses them for the provider, session, transaction and cache maps instead of ad hoc split-and-lowercase strings. This fixes the revision database cache, which never hit for mixed-case revisions because it stored lower-cased keys but looked them up with the revision's original case. - 12427: store/types: prevent lost GC admission cancellation wakeups
Fix a dropped cancellation signal in GC, because the broadcast could land before the listener registration. Guard the broadcast withgcMuas well. - 12424: Reduce the per-foreign-key cost of commits and transaction merges
Bundle of performance fixes to dramatically speed up hot path database operations when there are a large number of foreign keys. Foreign keys were being iterated on every merge regardless of whether they had changed, which happens on every concurrent transaction. Lookups by name were quadratic time. And we were copying a collection N times during a diff operation.
Also fixes unrelated bugs discovered during testing:- Fixes
ALTER TABLE ... DROP CONSTRAINTsometimes dropping another table's foreign key with the same name in Doltgres. - Fixes merges dropping foreign keys whose parent table doesn't exist yet.
Companion PRs:
dolthub/go-mysql-server#4140
#3820
- Fixes
- 12418: Add option and context parameters to store and database creation
Lets Dolt Enterprise implement encryption at rest with fewer edits to Dolt's files, so its merges of Dolt conflict less. Replaces #12350, #12351 and #12352. It includes #12429, merged into this branch, which replaced #12419.What changes
- nbs:
- Every store constructor takes a trailing
...StoreOption. AStoreOptionfills the store's options, kept in a newoptsfield, as the store is created. store_options.gohas a no-op method for each place instore.gowhere a store's options take effect, andstore.gocalls them:- manifest checks in
rebaseandupdateManifest, and a check before writes inaddChunk; - a check of added files in
updateManifestAddFiles, plus the open of added files; - the journaling store's format and table persister;
- the GC check and GC copier;
- the table file split offsets in
WriteTableFileandnewTableFile, and whetheraddTableFilesToManifestcan read added chunks to check their refs.
Enterprise replacesstore_options.gowith its own version. - The persister literals in
store.goare keyed. - Archive
getRecordRangesnames its context. - remotestorage:
NewDoltChunkStoreFromPathtakes a trailing...ChunkStoreOption. - env/actions:
EnvForCloneOftakes the source database and configure steps that run on the new environment before its database is created. A configure step's error fails the clone, and the clone cleans up as for any other failure.EnvForClonecalls it. - sqle: internally, the provider's
getRemoteDBtakes the dialer andcreateDatabasetakes load params. - CLI:
dolt cloneanddolt read-tablesuseEnvForCloneOf.dolt transfer'sresolveDatabaseChunkStorereturns theDBCacheit serves.
Dolt defines noStoreOptionorChunkStoreOption, every store hook does nothing, andgetRemoteDBandcreateDatabaseget only today's values. Existing exported signatures are kept, so other callers compile unchanged.
Changes for Dolt users
dolt_clonegives the new database the provider's load params before creating it, asCREATE DATABASEalready does, rather than after.
Size
176 changed lines in 8 existing non-test files (40 of them instore.gofor the hooks), and 80 lines in two new files.
Dolt Enterprise built on this passes its encryption tests. Weighting each hunk by how often Dolt changed its file in the past year, its risk of a merge conflict falls by 54%.Testing
- New tests in
env/actionscheck that configure steps run before the database is created, and that a failing step leaves no directory behind. - Existing tests pass, with keyed literals in one test.
🤖 Generated with Claude Code
doltgresql
- 3872: Support FILTER (WHERE ...) on aggregates
SupportsFILTER (WHERE ...)on aggregate functions.
Companion PRs: dolthub/vitess#508, dolthub/go-mysql-server#4163 - 3871: Do not cut string_agg results at 1024 characters
Removes the 1024-character limit onstring_aggresults. - 3869: Implement has_table_privilege and has_any_column_privilege
Implementshas_table_privilegeandhas_any_column_privilegeusing Doltgres table privileges, adopting #3853. - 3852: server/ast: fix panic when a string literal argument contains a double quote
Fixes #3851. - 3849: Fix primary key lookups with a literal or parameter of another type
Fixes primary key lookups with a literal or parameter of another type, which panicked.
Companion PR: dolthub/dolt#12476
Fixes #3748 - 3848: Fix ON CONFLICT DO UPDATE on tables with expression indexes
Fixes ON CONFLICT DO UPDATE writing the wrong column values on tables with expression indexes.
Fixes #3789
Companion PR: dolthub/go-mysql-server#4154 - 3846: Hash equal intervals and numeric arrays the same way
Groups equal intervals, timestamptz values, records and arrays of them together in GROUP BY, DISTINCT, IN and UNION.
Companion PR: dolthub/go-mysql-server#4152
Fixes #3709 - 3845: Implement UNIQUE NULLS NOT DISTINCT
Implements UNIQUE NULLS NOT DISTINCT for unique constraints and indexes.
Companion PRs: dolthub/go-mysql-server#4155, dolthub/dolt#12477
Fixes #3713 - 3844: Fix session errors after deleting a branch written through USE
Fixes statements failing with "branch not found" after deleting a branch the session previously wrote to through a revision database.
Fixes #3698 - 3841: Plan fewer foreign keys for UPDATE and DELETE
Bumps go-mysql-server to plan fewer foreign keys for UPDATE and DELETE.
Companion PRs: dolthub/go-mysql-server#4151, dolthub/dolt#12470 - 3840: Share each root's copy-on-write foreign key collection
Fixes super-linear UPDATE planning cost as foreign keys referencing a table increase.
Companion PR: dolthub/dolt#12468 - 3839: Tests for partial index predicates in merges
Fixes partial unique indexes reporting false duplicates after concurrent transactions or branch merges.
Companion PR: dolthub/dolt#12467
go-mysql-server
- 4176: Reuse the ValueRow allocation within ProjectIter
ProjectIter.NextValueRow has two ValueRows: one with the child schema that gets passed to it's child's WriteNextValueRow, and one with the projection schema that gets returned. The returned ValueRow is newly allocated each time, but the ValueRow that is passed to its child can be reused.
In fact, it should be reused, because we are treating the ValueRow as a set of registers that are allocated once for the entire query. The iterators for keyless tables assume that the row will retain written values from one WriteNextValueRow call to the next.
This PR adds additional query tests that fail on Dolt if this invariant is accidentally broken. - 4175: Log authenticated user and client IP on new SQL connections
Emit the existinginfo-levelNewConnectionevent after authentication and session registration. Include the authenticated SQL username and the TCP peer IP alongside the connection ID and multi-statement setting.
NewConnectionnow counts authenticated sessions. Rejected credentials continue to produce the existing authentication warning. - 4173: fix case-sensitive strings in distinct op
DISTINCTreplies on hashing, which requires type information in many cases including strings because of collations.
fixes: dolthub/dolt#12502 - 4170: sql/analyzer: scope lookup join NULL matching to the selected equality
Fix dolthub/dolt#12505
Close #4169 - 4165: Project count lookup results directly to prevent alias self-references
ProjectCOUNT(*)lookup results directly, preserving the output name supplied byTableCountLookup. This avoids giving an alias the same column ID as its child field, which would cause unbounded expansion.
Theenginetestscript runners accept optional checks on analyzer output. Aggregation scripts use them to reject self-referencing aliases after each rule. Validation remains disabled by default to avoid distorting benchmark measurements.
Fixes dolthub/dolt#12500 - 4163: Support aggregate FILTER clauses
Supports aggregateFILTER (WHERE ...)clauses set in the vitess AST.
Companion PRs: dolthub/vitess#508, #3872 - 4160: fix incorrect scale comparison for rounding decimals
apd.Decimalstoredv.Exponentas a negative value. - 4157: use stack allocated
*apd.Decimalbuffer for wire format output
Adds stack allocatedapd.Decimalbuffer for writing output to wire format, which avoids extra mallocs.
benchmarks: dolthub/dolt#12493 (comment) - 4156: CVE GO-2026-6612: Upgrade x/net to v0.61.0
- 4155: Add a nulls not distinct option for unique indexes
Adds an index option that makes unique indexes treat NULLs as equal to each other.
Companion PRs: dolthub/dolt#12477, #3845 - 4154: Compute virtual columns of the existing row for ON DUPLICATE KEY UPDATE
Fixes ON DUPLICATE KEY UPDATE reading the wrong columns of the existing row on tables with virtual columns or expression indexes.
Fixes #3789
Companion PR: #3848 - 4152: Hash equal values the same way via a Hashable interface
Hashes values that compare as equal identically, including times in different locations and slices.
Companion PR: #3846 - 4151: Plan fewer foreign keys for UPDATE and DELETE
Plans only the foreign keys an UPDATE can affect, and skips planning the foreign keys of children that a referential action only restricts.
Companion PRs: dolthub/dolt#12470, #3841 - 4149: Fix two event executor timing races
- Fixes the event executor going idle without loading an event change that was made through the EventScheduler but not yet committed.
- Fixes recurring events being skipped when the executor woke just over a polling period after they were due; the executor now wakes when the next event is due.
These made the doltevents.batstests "out-of-band event changes are detected" and "recurring event with ENDS defined" flaky.
- 4148: Prevent joins from caching recursive CTE working rows
Joins can repeat or omit rows when they cache inputs that read a recursive CTE’s working table. Skip hash join build plans and derived-table result caches that depend on those changing rows.
Part of Dolt issue #12309. - 4146: sql: Remove ContextAwareSystemVariableRegistry and AssignValuesWithContext.
SystemVariableRegistry.AssignValues replaces both; no callers remain. - 4145: sql/analyzer: Build only the triggers of the tables a statement writes
Build only triggers that match the tables being mutated, instead of building all triggers in the schema. - 4144: Prevent columns in top-most node from getting pruned
Fixes dolthub/dolt#12366
#3250 replaced SQAs that referenced entire tables with a TableAlias node, removing redundant SQA andProjectnodes; it added guards to preventTableAliasandResolvedTablenodes from getting pruned. However, it did not consider when thoseTableAliasnodes were wrapped insideLimit,Distinct, orOffsetnodes.
This PR makes sure that the columns in the schema of the top-most node are not pruned by adding them to the parent columns set. - 4143: Don't implicitly commit statements that read a view
A statement that reads a view commits the open transaction. A laterROLLBACKno longer undoes writes made before the view was read, other sessions see those writes immediately, and savepoints are lost:The same happens when the view is read byCREATE TABLE t (id INT PRIMARY KEY); CREATE VIEW v AS SELECT * FROM t; START TRANSACTION; SAVEPOINT s; INSERT INTO t VALUES (1); SELECT * FROM v; -- commits the transaction RELEASE SAVEPOINT s; -- ERROR 1105 (HY000): SAVEPOINT s does not exist ROLLBACK; SELECT * FROM t; -- returns 1; MySQL returns no rows
INSERT ... SELECT, by a subquery inUPDATEorDELETE, or by a multi-tableUPDATE. Reading the base table directly doesn't trigger it.
Cause.resolveView(sql/planbuilder/from.go) binds the view's storedCREATE VIEWstatement with the builder of the statement that reads the view.buildDDLsetsQFlagDDLon that builder's query flags, which belong to the outer statement.AddTransactionCommittingIterreadsQFlagDDLas an implicit commit (sql/rowexec/transaction_iters.go). As a result,TransactionCommittingIter.Closecommits the session's transaction and clears it, even when autocommit is off.
Fix.resolveViewrestores the outer statement'sQFlagDDLafter binding the view definition. Reading a view no longer marks the statement as DDL. A real DDL statement that reads a view, such asCREATE VIEW w AS SELECT * FROM v, keeps the flag and still commits implicitly.QFlagDDLis read only by the implicit commit check. Other flags set while binding the view body, such as the subquery and join flags, are left alone.
Tests.TestViewReferenceDoesNotSetDDLFlaginsql/planbuilder/from_test.gochecks the query flags forSELECT,INSERT ... SELECT,UPDATEandDELETEwith a view subquery, and a multi-tableUPDATEthat reads a view. None of them is DDL.CREATE VIEW ... AS SELECT ... FROM vstill is. Before the fix, the six non-DDL cases fail.- New transaction script
queries reading views are not implicitly committedinenginetest/queries/transaction_queries.go. A second client doesn't see the writes after the view reads,RELEASE SAVEPOINTstill works, andROLLBACKundoes both theINSERTand theINSERT ... SELECTfrom the view. The memory harness skips transaction scripts with setup statements, so this one runs in Dolt'sTestTransactionsandTestTransactionsPrepared. With this branch replaced into Dolt, the script fails five assertions before the fix and passes after it.
Fixes dolthub/dolt#12236
- 4140: Don't use partial indexes for lookup joins or sort replacement unless the query implies the predicate
Fixes lookup joins and ORDER BY index scans that returned too few rows by using a partial index the query does not imply.
Tests are in the linked Doltgres PR, since partial indexes can't be declared in the MySQL dialect, except for the right semi lookup join case, which those queries don't reach.
Companion PRs: dolthub/dolt#12424 #3820 - 4137: sql: keep TIMESTAMPDIFF unit a keyword in stored text
Fix dolthub/dolt#12340 - 4135: Fix MIN and MAX nullability in CREATE TABLE AS SELECT
MIN and MAX can return NULL for a group containing only NULL values or for empty input, but their generated expressions marked the result as non-nullable, causing CREATE TABLE AS SELECT to fail
Declare both aggregates nullable in the generator, add a CTAS regression for both cases, and refresh existing schema and plan expectations
Fixes dolthub/dolt#12385 - 4134: Report NOT_FIXED_DEC decimals for float result columns
PHP apps readFLOATcolumns from Dolt rounded to whole numbers: a stored4.2comes back as4. Laravel uses server-side prepared statements, and over the binary protocol PHP's mysqlnd roundsFLOATvalues to the column's reporteddecimals. Dolt reports0for every float and double result column. MySQL reports31(NOT_FIXED_DEC) when there's no fixed scale.Since Dolt doesn't keep a scale on float types, this reportsrating FLOAT CAST(4.25 AS FLOAT) MySQL 8.0 (decimals) 4.2 (2) 4.25 (31) Dolt (decimals) 4 (0) 4 (0)31for all float32/float64 result columns, as MySQL does for unscaled floats.TestSchemaToFieldsis updated, and with the patch the PDO prepared-statement values above match MySQL.
Created with Claude Opus 5.5 in Claude Code. - 4133: Add ST_DISTANCE_SPHERE
- 4124: Use every ORDER BY key for RANGE CURRENT ROW peer groups
RANGE BETWEEN CURRENT ROW AND CURRENT ROWandRANGE BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWINGboth go throughrangeFramerBase, which only takes the first ORDER BY expression. So withORDER BY k, id, rows that sharekbut have differentidwere treated as peers. The repro in the issue returnsc = 2for the first two rows; MySQL returns 1.
UNBOUNDED PRECEDING AND CURRENT ROWalready moved toPeerGroupFramerin 8dbc053 ("Fix implicit window peer frames"), and that framer compares every ORDER BY key. I did the same for the two remaining CURRENT ROW-only range frames:CURRENT ROW AND CURRENT ROWnow usesNewPeerGroupFramerdirectly.CURRENT ROW AND UNBOUNDED FOLLOWINGuses a newNewPeerGroupToUnboundedFollowingFramer, which is the peer-group framer with the end pinned to the partition end. I added apeerEndfield so it still knows where the current peer group ends even thoughframeEndis the partition end.
The change is inframer_gen.go, andwindow_framer.og.gowas regenerated withgo generate. Frames with numeric offsets still require a single ORDER BY key, same as before.
While testing I also saw thatORDER BY k DESC, g DESC RANGE BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWINGreturned the whole partition for every row before this change. The new tests cover that case too.
Testing:- added a script test to
enginetest/queries/window_functions_queries.gocovering the issue's query, ties on the full key, DESC ordering, and a partitioned case go test ./enginetest/ -run 'TestWindow|TestNamedWindows'go test ./sql/expression/function/aggregation/
The new assertions fail on main and pass with this change.
Fixes dolthub/dolt#11423
- 4120: sql/expression: range-check unsigned DIV results
A signed valueDIVan unsigned value previously went through the decimal path, which returned the truncated quotient as an int64 even thoughIntDivreports aBIGINT UNSIGNEDtype, soSELECT -1 DIV CAST(1 AS UNSIGNED)returned 18446744073709551615 instead of MySQL's error 1690, andCAST(18446744073709551615 AS UNSIGNED) DIV 1errored. When the result type is unsigned, that path now checks the truncated quotient the way MySQL does: a negative result returnssql.ErrIntegerOutOfRange(the error from #3823 for dolthub/dolt#11411), a truncated zero like-1 DIV CAST(2 AS UNSIGNED)still returns 0, and results up to max uint64 come back as uint64. Results past max uint64 keep the existingErrIntDivDataOutOfRange, so thediv 0.1error queries inqueries.goare unchanged. The script test after the #11411 case innumeric_queries.gocovers the regression.
Mixed signed and unsigned operands now use native integer division when their evaluated Go values match their SQL types. The synthetic 16-level mixedDIVbenchmark dropped from 256 to 32 allocations per evaluation. The full Go suite passed.
Fixes dolthub/dolt#12311 - 4055: Create ValueRowWriter interface for safer, faster plan evaluation
Dolt PR: dolthub/dolt#12190
Traditionally, we evaluate a plan by constructing a tree of iterators. This has turned out to be a common source of bugs:- In order to resolve references in expressions, we must compute the offset within a given iterator where the resolved column is expected to appear. The logic for this appears in the
assignExecIndexesand is extremely difficult to get correct. Getting it wrong results in incorrect plans. - The is no obvious way in the nested iterator model to make columns from other scopes visible, which has resulted in hacks like the
PrependNodeiterator type that gets injected into the plan tree. This is also a source of bugs, especially when combined withassignExecIndexes.
To avoid these issues, this PR introduces an alternate interface for resolving queries calledValueRowWriter. It has the following interface:
The ValueRow passed intotype ValueRowWriter interface { RowIter // WriteNextValueRow produces the next row by writing its values into the provided ValueRow. // It will return io.EOF if it's the last ValueRow. // After retrieving the last ValueRow, Close will be automatically called. WriteNextValueRow(ctx *Context, rows ValueRow) error // IsValueRowWriter checks whether this implementor and all its children support ValueRowWriter. IsValueRowWriter(ctx *Context) bool // Columns is the set of ColumnIds represented by this iterator's output schema Columns() ColSet Closer }WriteNextValueRowcontains an element for every columnId in the whole query. All values, both inner and outer scopes, both reads and writes, are accessed by using columnIds as indexes. This eliminates the need for calculating indexes for field accesses. This ValueRow can also be reused for every iteration, eliminating allocations.
The server Handler checks if the top level iterator is a ValueRowWriter, and if it is, copies only the selected columns into an output ValueRow.
Currently this exists alongside ValueRowIter, since not every node that implements ValueRowIter is currently capable of implementing ValueRowWriter. But it should be possible to migrate all remaining uses to the new interface.
This PR more than doubles the number ofQueryTeststhat use ValueRow from 50 to 110. Queries matching these tests should see a speedup because they no longer need to deserialize-then-box all database values.
Follow-up tasks:- The implementation of ColSet.Max
- The name
ValueRowWriteronly makes sense in the context of theValueRowtype, which is an alternative to theRowtype. None of these names are very clear. We may want to rename these types to make their purpose more obvious. - We should remove the remaining implementations of ValueRowIter to have them use ValueRowWriter instead. To do this, ProjectIter and prollyRowIter need a way to know the ColumnIds of their output schema. This must be able to handle cases where the order of the columns changes in the projection (example:
SELECT a, b FROM (SELECT b, a ...) - Subqueries always allocate a new ValueRow for their child. This is currently necessary because the child might be a ProjectIter with projections, and because in the case of views or common table expressions with multiple references in the same query, each of those references might re-use the same ColumnIds. We can do more work to detect when this is actually necessary, and make it necessary in fewer situations.
- When we must allocate a separate ValueRow for a subquery, we may be able to allocate a smaller one than currently. Currently, if the child query has a max ColumnId of N, we allocate a ValueRow with N columns. Instead, we could also look at the minimum ColumnId and only create a backing array for the range min...max.
- In order to resolve references in expressions, we must compute the offset within a given iterator where the resolved column is expected to appear. The logic for this appears in the
vitess
- 508: Add Filter to aggregate expression nodes
Adds aFilterfield for aggregateFILTER (WHERE ...)clauses toFuncExpr,GroupConcatExprandOrderedInjectedExpr.
Companion PRs: dolthub/go-mysql-server#4163, #3872 - 506: sqlparser: accept boolean expressions in generated columns
Accept full expressions in generated-column definitions soAS (value < 8)works without an extra pair of parentheses. Preserve the outerParenExprneeded for DDL formatting and the original regression coverage across CREATE/ALTER, abbreviated/full syntax, and virtual/stored columns.
Supersedes dolthub/vitess#503 by @sciyoshi, preserving the original commit authorship. Applied on current main and regeneratedsql.goto resolve the generated-parser merge conflict.
The fullsqlparsertest suite andtools/check_make_parser.shpass. Parser generation reports zero shift/reduce and zero reduce/reduce conflicts.
Fixes dolthub/dolt#12343.
Closed Issues
- 3877: 1.5.1 regression: "pending edits ... were read while being materialized" panic on INSERT/UPDATE into a table with a partial index on a varchar column
- 3789: ON CONFLICT DO UPDATE writes another column's value when the table has an expression index (silent corruption)
- 3713: UNIQUE NULLS NOT DISTINCT is accepted but not enforced
- 3690:
setvalis ignored bynextval, and nextval state survivesdrop sequence - 2435: INSERT INTO dolt_branch_control fails with "non-Doltgres type found in destination
- 2462: PostgreSQL Compatibility:
SET TIME ZONE '<offset>'fails with invalid value parameter error - 2693: panic: index out of range in SequencePrivileges.deserialize after GRANT ALL PRIVILEGES ON ALL FUNCTIONS/ROUTINES
- 3748: Unknown-typed parameter compared with a numeric primary key panics (interface {} is string, not *apd.Decimal)
- 2622: Bump github.com/jackc/pgx/v5 to ≥ v5.9.0 to address CVE-2026-33816
- 3851: Panic (slice bounds out of range) when a string literal containing a double quote is passed to a function
- 3709: GROUP BY, DISTINCT and IN (subquery) treat equal intervals as different values
- 2240: support for
xminand other hidden system columns - 3698: Statements fail but still apply after deleting a branch written through
USE - 3722: A recursive CTE drops a reachable row when its recursive arm joins a second table and filters with
ORinWHERE - 3813: ORDER BY on the columns of a partial index returns only the rows in the index
- 3812: Lookup joins through a partial index lose rows (JOIN, LEFT JOIN, EXISTS, NOT EXISTS) - follow-up to #3100
- 12518: Cross-database lookup join panics: "empty chunk returned from ChunkStore" when left table has out-of-line JSON
- 12500: Filter on a derived table with a bare COUNT(*) crashes the sql-server (stack overflow in exprsToTableFilters)
- 12502: EXISTS self semi-join duplicates outer rows under
utf8mb4_0900_ai_ci(COUNT 20 vs 10) - 11027: dolt push to git+ssh GitHub remote hangs on Linux/WSL2
- 12505: Unexpected Inner Join Result
- 12385: CREATE TABLE AS SELECT with MAX(CASE...) fails when aggregate group result is NULL
- 11787: Feature request : Add support for REPLICATE_WILD_DO_TABLE, REPLICATE_WILD_IGNORE_TABLE and a way to persist values between reboots.
- 12244: Frequent binlog table-ID reuse exposes stale mappings in Debezium with source filtering
- 10909: Merge: convergent ADD COLUMN flagged as conflict, silently drops DML
- 10534: Panic when using CASE with @@session.time_zone
- 10657:
ON_UPDATEcolumns should only update if other column values have actually changed - 10692: Server permanently unresponsive after client crash during CREATE/DROP DATABASE
- 10758: DELETE ... WHERE col < ? LIMIT N fails with 'column not found in scope'
- 10807: RemotesAPI push: FastForward skips working set update, causing 'target has uncommitted changes' on next push
- 10828: Parse error when comment precedes
delimiterin a.sqlfile import - 10892: AUTO_INCREMENT value lost after dolt backup restore
- 10811: Dolt clobbers
GIT_SSH_COMMANDif it already exists in the environment - 10897:
dolt sql-serverleaks onesshchild process perCALL dolt_fetchagainst anssh://remote - 11180: 3-way DOLT_MERGE fails on table with VECTOR INDEX: expected prollyIndex, found: durable.proximityIndex
- 11166: Expose go-mysql-server's server.Config.Version in dolt sql-server (advertise a MariaDB version for client compatibility)
- 11209: sql-server: DOLT_CLONE from a file:// remote fails "manifest referenced table file for which there is no chunkSource" after the remote is rewritten in the same server process
- 11230: Select from dolt_log error When clone from repository with depth 1
- 11292: dolt fsck misclassifies stash list as a commit
- 11300: ORDER BY subquery loses effect as soon as LIMIT and OFFSET become involved
- 11265: Dolt INSERT … SELECT with CTE + JSON_TABLE disconnects
- 12309: Recursive CTE returns duplicate rows when @@dolt_override_schema is set to HEAD
- 11479: Wrong results: LEFT JOIN LATERAL (...) ON TRUE drops outer rows whose lateral body yields zero rows
- 12488: git remote cache: detached auto-maintenance
repack -draces later reads ("packfile ... index unavailable", then astrconv.ParseInterror) - 12479: Request: Add the
DOLT_DISABLE_VERSION_CHECKSenvironment variable - 10365: dolt_tags system table missing index on tag_name - causes O(n) lookup
- 11205: Pre-2.1 ALTERed TEXT columns: mixed-row 'invalid hash length: 19' panics on 2.1.4; schema-encoding-drift check reports clean; rows not repairable via SQL
- 11244: Support refreshable custom gRPC metadata for remotes
- 12236: Reading a view inside a transaction commits the transaction; a later ROLLBACK does not undo earlier writes
- 12274: dolt_merge fails when one branch dropped a column and the other deleted a row
- 12241: COM_BINLOG_DUMP_GTID ignores the executed GTID set when BINLOG_THROUGH_GTID is unset
- 12340: Generated TIMESTAMPDIFF quotes its unit and leaves an unusable stored expression
- 11014: ROW_COUNT function returns 0 on INSERT statement
- 12311: signed
DIVunsigned wraps around instead of raising an out of range error - 3459: False
ErrInvalidIndexPrefixonlatin1prefix index