Commit Graph

26954 Commits

Author SHA1 Message Date
NathanGabrielson
f515cefdba [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2025-06-27 18:19:16 +00:00
Nathan Gabrielson
47cacd79b3 More tests, better FK handling 2025-06-27 11:11:00 -07:00
Nathan Gabrielson
97b6a84092 Neil changes + many edge cases 2025-06-27 11:11:00 -07:00
NathanGabrielson
ac820ba945 [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2025-06-27 11:11:00 -07:00
Nathan Gabrielson
220e9a123d working basic dolt rm procedure 2025-06-27 11:11:00 -07:00
Nathan Gabrielson
8063ad830b First rm stuff 2025-06-27 11:11:00 -07:00
Jason Fulghum
a7bbe9b377 Merge pull request #9406 from dolthub/fulghum/fix-it
[no-release-notes] Fix merge errors
2025-06-27 10:58:16 -07:00
Jason Fulghum
20c5da65c4 Fixing merge error 2025-06-27 10:19:34 -07:00
Jason Fulghum
414b37bce6 Removing duplicate struct definition 2025-06-27 10:07:59 -07:00
Elian
629d0c6a96 Merge pull request #9402 from dolthub/elianddb/fix-9390-max1Row-itr-gt-1-ret
Fixes #9391
Add dolt_commit_ancestors table query test
2025-06-26 12:07:38 -07:00
Tim Sehn
f33fd3e14d Merge pull request #9396 from dolthub/tim/dolt_diff_dolt_procedures
Implement `dolt_diff_dolt_procedures`
2025-06-26 12:06:34 -07:00
Tim Sehn
4cf3b08a29 Merge branch 'main' into tim/dolt_diff_dolt_procedures 2025-06-26 12:06:26 -07:00
Tim Sehn
a4be2be571 Merge pull request #9395 from dolthub/tim/dolt_history_dolt_procedures
Implement `dolt_history_dolt_procedures`
2025-06-26 12:05:46 -07:00
Neil Macneale IV
282698a3ae Merge pull request #9401 from dolthub/macneale4-claude/issue-8039
Renaming default branch results in updating local config.
2025-06-26 11:12:21 -07:00
Elian
211f6555fa add msg check 2025-06-26 11:09:38 -07:00
Elian
789030cec4 add dolt_commit_ancestors query test 2025-06-26 11:00:29 -07:00
Neil Macneale IV
a8da9839a8 Merge pull request #9387 from dolthub/macneale4/archive-3
archive format 3. Supporting larger indexes
2025-06-26 10:30:14 -07:00
Elian
5e8f0f334e Merge pull request #9400 from dolthub/elianddb/fix-9390-max1Row-itr-gt-1-ret
Fixes #9390
Fixes #9391
Dolt history table indexes are never marked as unique, regardless of the underlying table’s index properties: prevents unique constraints from being incorrectly reported or exported for history tables
2025-06-26 10:02:40 -07:00
Neil Macneale IV
54e985e4c9 Fix init.defaultbranch config sync when renaming default branch
Update the dolt_branch stored procedure to automatically update the
init.defaultbranch configuration when renaming the default branch.

The fix checks if the branch being renamed matches the current
init.defaultbranch config value, and if so, updates it to the new
branch name. This ensures configuration stays synchronized when the
default branch is renamed via SQL.

Only affects the config when renaming the actual default branch -
renaming other branches leaves the configuration unchanged.

Fixes: https://github.com/dolthub/dolt/issues/8039

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-26 16:54:47 +00:00
Neil Macneale IV
db767c8aae Add tests for branch rename configuration synchronization
Add two bats tests to demonstrate and verify behavior of init.defaultbranch
configuration when renaming branches:

1. Test that renaming the default branch should update init.defaultbranch config
   (currently fails, demonstrating https://github.com/dolthub/dolt/issues/8039)
2. Test that renaming a non-default branch should not affect init.defaultbranch config
   (passes, showing correct behavior for non-default branches)

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-26 16:43:26 +00:00
Aaron Son
62c04e7893 Merge pull request #9399 from dolthub/aaron/remotestorage-refresh-url-fix
go/libraries/doltcore/remotestorage: chunk_store.go: Fix a bug where we did not refresh expired table file URLs appropriately.
2025-06-25 19:43:34 -07:00
Elian
e2a4d1fb9a fix misplaced commas 2025-06-25 18:02:01 -07:00
Elian
b1e631fb4b add test for max1row err 2025-06-25 17:27:41 -07:00
Elian
92dad9cc3c mark non-unique indices 2025-06-25 17:27:41 -07:00
Aaron Son
dc23af78af go/libraries/doltcore/remotestorage: chunk_store.go: Fix a bug where we did not refresh expired table file URLs appropriately. 2025-06-25 16:29:23 -07:00
coffeegoddd
cadf01b6c1 [ga-bump-release] Update Dolt version to 1.55.3 and release v1.55.3 v1.55.3 2025-06-25 22:59:05 +00:00
James Cor
77b406fc9c test bump (#9397)
Co-authored-by: James Cor <james@dolthub.com>
2025-06-25 15:01:09 -07:00
Neil Macneale IV
a90508a76b PR Feedback for fmt.Errorf 2025-06-25 14:51:22 -07:00
Tim Sehn
689f5de5fb Fix bats test for real 2025-06-25 12:30:28 -07:00
timsehn
68a20575c2 [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2025-06-25 19:15:28 +00:00
Tim Sehn
9fa5513d23 more test fixing 2025-06-25 12:06:39 -07:00
Tim Sehn
196db77879 Merge branch 'tim/dolt_history_dolt_procedures' of github.com:dolthub/dolt into tim/dolt_history_dolt_procedures 2025-06-25 11:58:47 -07:00
Tim Sehn
f1f63d679e Fixed tests 2025-06-25 11:58:38 -07:00
timsehn
ebaa769f95 [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2025-06-25 18:56:18 +00:00
Tim Sehn
4df448c1f6 Missed adding a new file 2025-06-25 11:47:32 -07:00
Tim Sehn
4ed0ad4c4c Implement dolt_diff_dolt_procedures 2025-06-25 11:47:09 -07:00
timsehn
658c8b9d4e [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2025-06-25 18:45:20 +00:00
Tim Sehn
62fa01efc0 Implement dolt_history_dolt_procedures 2025-06-25 11:35:39 -07:00
Tim Sehn
7c3542a8ca Merge pull request #9361 from dolthub/tim/history-tables-dolt-schemas
Implemented `dolt_history_dolt_schemas` and `dolt_diff_dolt_schemas`
2025-06-25 10:52:35 -07:00
timsehn
2510316f95 [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2025-06-25 17:15:07 +00:00
Elian
e43ad09636 Merge pull request #9393 from dolthub/elianddb/fix-483-unable-to-checkout-table-branch
Fixes #483
Removed extra bats test
2025-06-25 10:14:50 -07:00
Tim Sehn
6cae5ef853 Merge branch 'tim/history-tables-dolt-schemas' of github.com:dolthub/dolt into tim/history-tables-dolt-schemas 2025-06-25 10:06:52 -07:00
Tim Sehn
186dc75c23 Addressed constants feedback. Made a number of new constants and used them 2025-06-25 10:06:42 -07:00
Elian
05843c704c rm already covered bats 2025-06-25 09:47:17 -07:00
Elian
af8a3f728a Merge pull request #9371 from dolthub/elianddb/fix-483-unable-to-checkout-table-branch
Fixes: #483
Local/remote refs take priority in Do What I Mean (DWIM) scenarios where dolt has to interpret ambiguous input in checkout.
If a table and tracking branch share the same name, but local does not exist an error will occur.
-- can now be used to clear up ambiguity.
case 1: dolt checkout <ref> -- [<tables>]
<ref> must be a singular valid tree, everything else after '--' must be a table.
case 2: dolt checkout -- [<tables>]
This is case 1 but without <ref>.
case 3: git checkout <something> [--]
(a) If is a commit switch to branch.
(b) If isn’t a commit, and either "--" is present or isn’t a table, no -t or -b is given, and there’s a tracking branch named on exactly one remote (or on the specified remote), then this acts as shorthand to fork local from that remote-tracking branch.
(c) Otherwise, if "--" is present, treat it like case 1.
(d) Otherwise, if a ref treat it like case 1. If a table treat like case 2. If neither fail.
case 4: git checkout <something> <tables>
The first argument must not be ambiguous. If a <ref> follow case 1, if a table follow case 2. Otherwise, fail.
2025-06-25 09:06:01 -07:00
elianddb
852f6523a5 [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2025-06-25 15:25:27 +00:00
Elian
cd81f2f2fc mv query test to dolt_queries.go, add conditional for harness UseLocalFileSystem() 2025-06-24 14:07:33 -07:00
Elian
2786c2a224 add mkdir tmp 2025-06-24 14:07:33 -07:00
Elian
b585448447 add ambiguity test inside of test func 2025-06-24 14:07:33 -07:00
Elian
71fa8d6faa use file:/// for doltgres 2025-06-24 14:07:33 -07:00