Merged PRs
dolt
- 8910: Report auto increment changes in dolt diff and
dolt_diff_summary()
Potential fix for #8907
Previously, diffs would only look at the schema hash when determining whether or not a table had a schema change. However, the auto increment counter, which is considered part of the schema, is not stored in the schema flatbuffer and thus does not affect the schema hash.
This led to situations where a diff would detect that a table had changed (because the table hash changed), but it reported neither a data change or a schema change (because the data hash and schema hash were the same.) This was confusing.
Now,dolt_diff_summary
will correctly report a schema change when the auto increment counter has changed, anddolt diff
will show the autoincrement value in theSHOW CREATE TABLE
output. - 8905: add pager support to sql shell
Adds the\pager [on|off]
capability todolt sql
.
Fixes: #8883
Currently no tests. Would require expect, and is probably beyond the investment in time for this feature. - 8897: go: Bump to go 1.24. Fix some
vet
errors related to non-constant format strings.
go-mysql-server
- 2864: Allow SHOW CREATE to display auto increment for tables that store AutoIncrement but don't support writing it.
This is the GMS side of an issue to properly display diffs when the autoincrement counter on a table changes.
We add a new interface,AutoIncrementGetter
for tables that store AutoIncrement info, even if they can't generate autoincremented ids (because they're immutable snapshots of a table with an autoincrement column) - 2861: Added configurable options for how to quote identifiers in column defaults
- 2859: server: Add a ContextFactory parameter to the handler, giving integrators control over the *sql.Context creation.
vitess
- 399: go/mysql: conn.go: Fix read-after-recycle bug of the packet byte buffer in COM_{STMT_SEND_LONG_DATA,REGISTER_REPLICA,BINLOG_DUMP_GTID}.
Back ports vitessio/vitess@24820d8 - 398: Add select expressions for the Postgres
INSERT ... RETURNING
support
Postgres allowsINSERT
statements (and alsoUPDATE
andDELETE
) to specify aRETURNING
clause with select expressions and will then evaluate those expressions against the affected rows and return the results. This change adds initial support for theRETURNING
select expressions so that they can be represented in the AST. (PostgreSQL docs)
Closed Issues
- 8769:
last_insert_id
gives 0 when 0 is explicitly specified for anauto_increment
primary key in an insertion - 8883: Feature Request: Add pager support for dolt sql terminal output
Performance
Read Tests | MySQL | Dolt | Multiple |
---|---|---|---|
covering_index_scan | 1.86 | 0.62 | 0.33 |
groupby_scan | 13.22 | 17.63 | 1.33 |
index_join | 1.47 | 2.57 | 1.75 |
index_join_scan | 1.44 | 1.42 | 0.99 |
index_scan | 34.33 | 29.72 | 0.87 |
oltp_point_select | 0.18 | 0.26 | 1.44 |
oltp_read_only | 3.43 | 5.09 | 1.48 |
select_random_points | 0.33 | 0.58 | 1.76 |
select_random_ranges | 0.37 | 0.6 | 1.62 |
table_scan | 34.95 | 30.81 | 0.88 |
types_table_scan | 75.82 | 108.68 | 1.43 |
reads_mean_multiplier | 1.26 |
Write Tests | MySQL | Dolt | Multiple |
---|---|---|---|
oltp_delete_insert | 8.9 | 6.21 | 0.7 |
oltp_insert | 4.1 | 3.07 | 0.75 |
oltp_read_write | 8.9 | 11.24 | 1.26 |
oltp_update_index | 4.18 | 3.13 | 0.75 |
oltp_update_non_index | 4.18 | 3.07 | 0.73 |
oltp_write_only | 5.67 | 6.21 | 1.1 |
types_delete_insert | 8.28 | 6.55 | 0.79 |
writes_mean_multiplier | 0.87 |
TPC-C TPS Tests | MySQL | Dolt | Multiple |
---|---|---|---|
tpcc-scale-factor-1 | 96.54 | 40.01 | 2.41 |
tpcc_tps_multiplier | 2.41 |
Overall Mean Multiple | 1.51 |
---|