Commit Graph

18799 Commits

Author SHA1 Message Date
coffeegoddd 365926dc1a [ga-bump-release] Update Dolt version to 1.57.3 and release v1.57.3 2025-07-28 23:09:59 +00:00
Jason Fulghum 9ef9e7877c Merge pull request #9587 from dolthub/fulghum/bug-fix-merge
Bug fix: Update secondary index correctly during a merge with a schema change
2025-07-28 15:35:28 -07:00
angelamayxie 46d421d1bf [ga-bump-dep] Bump dependency in Dolt by angelamayxie 2025-07-28 20:38:41 +00:00
Jason Fulghum c453ba5fb5 Bug fix for updating secondary indexes during a merge when the schema has changed from the ancestor 2025-07-28 12:23:05 -07:00
Aaron Son 8fbbea3e3d Merge pull request #9583 from dolthub/aaron/external-eventsapi-repository
[no-release-notes] go,proto: Move eventsapi proto definitions and pb.go files into a separate repository.
2025-07-28 13:12:52 -04:00
Aaron Son b8d7bb4637 go/utils/repofmt/check_fmt.sh: Fix to consider eventsapi_schema local. 2025-07-26 11:43:18 -07:00
Elian 9417bb38e3 Merge pull request #9584 from dolthub/elianddb-7bc2294a
[auto-bump] [no-release-notes] dependency by elianddb
2025-07-25 14:41:08 -07:00
Elian b67b1e39da Merge pull request #9551 from dolthub/elianddb/9530-fix-auto-increment-overflow
dolthub/dolt#9530 - Fix auto-increment display for SHOW CREATE TABLE
2025-07-25 14:37:14 -07:00
elianddb 38418ef446 [ga-bump-dep] Bump dependency in Dolt by elianddb 2025-07-25 20:43:29 +00:00
reltuk e613f6e2c9 [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2025-07-25 20:42:49 +00:00
Aaron Son 5c443badf3 go: gen/proto/github.com: Remove unneeded symlink. 2025-07-25 13:24:08 -07:00
Aaron Son f19ebfd1df go,proto: Move eventsapi schema into a separate repository.
This results in less weird contortions and less opportunity for dependency drift from consumers of Dolt.
2025-07-25 13:04:22 -07:00
angelamayxie c0338aaa7b [ga-bump-dep] Bump dependency in Dolt by angelamayxie 2025-07-25 18:10:10 +00:00
Taylor Bantle 0707c41bf2 Merge pull request #9574 from dolthub/taylor/conflicts-doltgres
Fix dolt_preview_merge_conflicts for doltgres
2025-07-25 12:04:42 +00:00
Neil Macneale IV 337c90246c Remove broken symlink (#9577) 2025-07-24 17:36:35 -07:00
coffeegoddd c65f0869e3 [ga-bump-release] Update Dolt version to 1.57.2 and release v1.57.2 2025-07-24 21:03:32 +00:00
Dustin Brown 39b169359c [ga-bump-dep] Bump dependency in Dolt by jycor (#9573)
Co-authored-by: jycor <jcor@ucsd.edu>
2025-07-24 10:33:17 -07:00
Taylor Bantle 9f443d3850 Fix dolt_preview_merge_conflicts for doltgres 2025-07-24 09:09:16 -07:00
James Cor 484447baf8 implement reversed merge_joins (#9553) 2025-07-23 21:18:44 -07:00
angelamayxie a15a4a5dc6 Merge pull request #9568 from dolthub/angela/timetest
added TestTimeQueries
2025-07-23 13:30:50 -07:00
Angela Xie 9f5ffc0bdd added TestTimeQueries 2025-07-23 13:27:55 -07:00
angelamayxie b18631f484 [ga-bump-dep] Bump dependency in Dolt by angelamayxie 2025-07-23 20:24:48 +00:00
angelamayxie fb52d5eae9 [ga-bump-dep] Bump dependency in Dolt by angelamayxie 2025-07-23 19:36:52 +00:00
elianddb 0f33583099 Clarify why missing auto-increment column returns true with detailed reasoning
Expanded the comment for the \!ok case to explain the specific reasons why
we fail-open when no auto-increment column is found:
1. Table transitional state during ALTER TABLE operations
2. Cannot determine overflow risk without target column type
3. Better to allow increment and let higher-level validation handle issues
4. Prevents breaking legitimate ALTER TABLE ADD auto-increment operations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-23 18:31:17 +00:00
elianddb e91e486bbc Rename canIncrementAutoIncVal to incrementAutoIncVal
Remove "can" from function name to follow naming conventions.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-23 18:31:17 +00:00
elianddb 5171b45b09 Add comprehensive overflow protection tests for all integer types
- Test overflow protection for TINYINT, SMALLINT, MEDIUMINT, INT, and BIGINT
- Verify correct AUTO_INCREMENT value display at maximum values
- Verify proper duplicate key error (not overflow error) at boundaries
- Covers Issue #9530 comprehensively across all supported integer types
2025-07-23 18:31:17 +00:00
elianddb c1ac1dddef Fix auto-increment error handling logic and add overflow test
- Correct canIncrementAutoIncVal to return false when no auto-increment column exists
- Add comprehensive bats test for TINYINT overflow scenario (Issue #9530)
- Test verifies correct AUTO_INCREMENT value display and duplicate key error behavior
- Matches MySQL behavior exactly
2025-07-23 18:31:17 +00:00
elianddb 83ce7b8af3 Fix auto-increment display for SHOW CREATE TABLE at type maximums
Added inline bounds checking in autoincrement_tracker.go Next() method:
- Prevents incrementing AUTO_INCREMENT beyond TINYINT(127), SMALLINT(32767), MEDIUMINT(8388607), INT(2147483647)
- Ensures SHOW CREATE TABLE displays correct AUTO_INCREMENT values matching MySQL behavior
- Inlined logic without helper functions to avoid unnecessary modularization

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-23 18:31:17 +00:00
elianddb b027c26956 Remove unnecessary modularization from auto-increment overflow fix
Inlined bounds checking logic directly where used instead of helper function:
- Removed canIncrementAutoIncVal() helper function from table.go
- Inlined logic in table_editor.go Insert method (2 locations)
- Inlined logic in table.go AddColumn method (1 location)
- Used existing colType.Convert() pattern for type checking

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-23 18:31:17 +00:00
Elian 97d2946dbb Merge pull request #9564 from dolthub/elianddb/9556-fix-json-quoted-paths
dolthub/dolt#9556 - Fix JSON path parsing for unnecessarily quoted field names
2025-07-23 11:10:13 -07:00
elianddb e8167be7df Fix JSON path parsing for unnecessarily quoted field names
Fixes dolthub/dolt#9556

The issue was in dolt's JSON path parser where unnecessarily quoted
simple field names like $."a" were being rejected, despite MySQL
accepting them. This caused compatibility issues with Django's
compile_json_path() function which always quotes keys.

Changes:
- Fixed lexer in json_location.go to properly handle quoted field names
- Adjusted token position when encountering opening quotes
- Corrected empty string detection logic for quoted keys
- Added comprehensive tests matching the customer's use case

The fix ensures MySQL compatibility for:
- $.a (unquoted field names)
- $."a" (unnecessarily quoted simple field names)
- $."a key" (necessarily quoted field names with spaces)
- $."a"."b" (nested quoted field names)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-23 17:08:09 +00:00
Aaron Son a69cbc85d1 Merge pull request #9562 from dolthub/aaron/auto-gc-ergonomics
go: sqle: auto_gc.go: Add some simple ergonomics to Auto GC.
2025-07-23 12:52:56 -04:00
reltuk a98ce8f125 [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2025-07-22 22:51:53 +00:00
coffeegoddd 8eca9c72b8 [ga-bump-release] Update Dolt version to 1.57.1 and release v1.57.1 2025-07-22 22:37:01 +00:00
Aaron Son 6b876655f4 go: sqle: auto_gc.go: Add some simple ergonomics to Auto GC.
Previously auto gc would run anytime the store had grown 128MB. This change adds some simple heuristics which are used to keep auto gc from running when it is unlikely to collect much relative to the amount of work it will need to do.

In particular, the heuristics added are:

1) After GC has run, we will not run another GC until as much time as elapsed since the end of the GC as it took to run the GC itself.

2) After GC has run, we will not run another GC until the store has grown in size by at least as many bytes as the new gen contained at the end of the last successful GC run.
2025-07-22 15:32:55 -07:00
Aaron Son dbb0b777f5 go: statspro: Ensure we Close() the DoltDB associated used for stats storage when we rotate storage.
Dolt previously leaked a file descriptor on certain platforms every time stats was garbage collected. By closing the DoltDB, we no longer leak the descriptor.

Closing is currently best effort, since certain in-flight file operations can actually cause closing to fail.
2025-07-22 12:46:36 -07:00
angelamayxie 8133af8372 Merge pull request #9552 from dolthub/angelamayxie-e4d9d0a6
[auto-bump] [no-release-notes] dependency by angelamayxie
2025-07-21 14:01:00 -07:00
angelamayxie 430ebbbafc [ga-bump-dep] Bump dependency in Dolt by angelamayxie 2025-07-21 19:26:43 +00:00
Aaron Son 9eb70ae365 go: env/grpc_dial_provider.go,sqle/cluster/controller.go: Use TLS credentails with ALPN disabled for now. 2025-07-21 11:07:46 -07:00
Aaron Son 6f2fe8d160 Merge remote-tracking branch 'origin/main' into aaron/bump-proto-third_party 2025-07-21 10:14:23 -07:00
Elian 84fec89016 Merge pull request #9514 from dolthub/elianddb/9508-fix-dolt-log-prepared-statement
#9508 - Fix dolt_log table function to support bind variables in prepared statements
2025-07-18 10:41:42 -07:00
jennifersp 73f5f79a2e Merge pull request #9549 from dolthub/jennifersp-9ae1a2f0
[auto-bump] [no-release-notes] dependency by jennifersp
2025-07-18 09:56:14 -07:00
angelamayxie c708eac7b9 Merge pull request #9547 from dolthub/angela/tuples
Fix off-by-one error in deciding whether to match keys or prefixes
2025-07-17 16:48:57 -07:00
jennifersp d19e0dd234 [ga-bump-dep] Bump dependency in Dolt by jennifersp 2025-07-17 23:23:36 +00:00
Elian b238ab910e Update go/libraries/doltcore/sqle/dtablefunctions/dolt_log.go
Co-authored-by: Jason Fulghum <jason@dolthub.com>
2025-07-17 16:19:23 -07:00
Angela Xie 1814476bb2 fix off by one error for prefix/key matching 2025-07-17 16:11:40 -07:00
Angela Xie 94808d8e9e remove serverconfig.go 2025-07-17 15:37:40 -07:00
Angela Xie 34ba4898af allow for comparing tuple prefixes 2025-07-17 15:33:11 -07:00
Dustin Brown e777f8b9f4 [ga-bump-dep] Bump dependency in Dolt by jycor (#9545)
Co-authored-by: jycor <jcor@ucsd.edu>
2025-07-17 15:11:54 -07:00
Nathan Gabrielson 58a99440f7 Merge pull request #9542 from dolthub/nathan/ciView
Dolt ci view
2025-07-17 12:22:16 -07:00