Commit Graph

12777 Commits

Author SHA1 Message Date
Andy Arthur 2e7a81437b added new encodings for year and date 2022-05-24 15:49:36 -07:00
Andy Arthur 3263672122 refactored tuple desc construction 2022-05-24 09:37:00 -07:00
AndyA 14e54ed631 Merge pull request #3475 from dolthub/andy/value-store-validation
[no-release-notes] Fix chunk corruption for keyless tables
2022-05-23 16:45:56 -07:00
Andy Arthur f848a963a1 fix chunker overwrite for keyless tables, add valuestore validate to enginetests 2022-05-23 15:51:29 -07:00
Andy Arthur b16182bb9a added hash validation to NewTestNodeStore 2022-05-23 15:27:27 -07:00
Maximilian Hoffman 4a994d31c6 Read replica update working set fixes (#3471)
* Read replica update working set fixes

Read replica pull updates the session working set after pulling a
filtered set of branches from the tracking database. The original
(buggy) implementation updates the working set to the branch specified
at server-start time. The identity of that branch was fixed for the
duration of the server, so dolt_checkout would (appear to) have no
effect on the new branch's working set. What actually happened was more
pernicious: the working set was updated to the value of the
incorrect branch.

The fix no longer statically sets the active branch for a read replica
database. The active branch is pulled from the `*sql.Context`, so the
correct working set will be updated.

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* add test

* todos

* delete extraeneous line

Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>
2022-05-23 15:00:11 -07:00
Andy Arthur d7f477656e added value store validation 2022-05-23 14:53:46 -07:00
James Cor a98e4a58ee Merge pull request #3464 from dolthub/JCOR11599-e432fd42
[auto-bump] [no-release-notes] dependency by JCOR11599
2022-05-23 13:22:07 -07:00
Daylon Wilkins 079ab06a38 Added indexing for keyless tables + keyless foreign keys 2022-05-23 06:28:03 -07:00
JCOR11599 fdf04b228f [ga-bump-dep] Bump dependency in Dolt by JCOR11599 2022-05-20 21:55:37 +00:00
Andy Arthur ae2fd4ec4f Merge branch 'main' of github.com:dolthub/dolt into main 2022-05-20 11:02:44 -07:00
Andy Arthur 3b1212fa20 update test names 2022-05-20 11:02:36 -07:00
Dustin Brown 6dc63afcf8 [ga-bump-dep] Bump dependency in Dolt by max-hoffman (#3461)
Co-authored-by: max-hoffman <maximilian.wolfgang1@gmail.com>
Co-authored-by: Max Hoffman <max@dolthub.com>
2022-05-20 08:34:14 -07:00
Maximilian Hoffman 8a7bc85bf8 [no-release-notes] New enginetest harness (#3452)
* [no-release-notes] New enginetest harness

* touch ups

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* missing dep

* fix new storage engine tests

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* missing go.sum

* refactor setup package

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* refactor setup package again

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>
2022-05-19 20:07:00 -07:00
Aaron Son ae2ca28611 Merge pull request #3456 from dolthub/aaron/flatbuffers-no-write-buffering
[no-release-notes] store/types: value_store.go: Disable write buffering locality optimization in value store when using __DOLT_* formats.
2022-05-19 14:25:03 -07:00
Jason Fulghum a2522edbdf Merge pull request #3444 from dolthub/fulghum/multi-db-test-fix
[no-release-notes] Changing Dolt Harness to track a MultiRepoEnv
2022-05-19 13:32:04 -07:00
Jason Fulghum 504cd47e82 Adding a new function to create a test environment with configuration params separate from other test environments and using that new function for creating databases in Dolt Harness. 2022-05-19 11:49:22 -07:00
Aaron Son bb05f7e8b4 store/types: value_store.go: Disable write buffering locality optimization in value store when using __DOLT_* formats. 2022-05-19 11:07:54 -07:00
Jason Fulghum 57c5e293e1 Minor tweaks to tidy up a little more 2022-05-19 11:07:06 -07:00
Aaron Son 4784b51cb3 store/types: value_store.go: Remove panics on err in bufferChunk; just return errors. 2022-05-19 10:43:05 -07:00
Dhruv Sringari fefb7d9683 go/store/types: add types.UnionMaps (#3448)
* add types.UnionMaps

* caller can choose value when key collision occurs

* fix comment
2022-05-19 09:19:20 -07:00
Zach Musgrave c1d21f1e3a Merge pull request #3455 from dolthub/zachmu/db-drop-panic
[no-release-notes] Additional tests for drop database panic
2022-05-19 08:55:12 -07:00
Zach Musgrave 43fd1404b5 Skipped drop test failing on windows: 2022-05-19 08:07:33 -07:00
zachmu 14a751c2e0 [ga-bump-release] Update Dolt version to 0.40.4 and release v0.40.4 v0.40.4 go/v0.40.4 2022-05-19 04:16:55 +00:00
Zach Musgrave 40c7f67dd0 Merge pull request #3454 from dolthub/zachmu/db-drop-panic
Fixed panic when dropping a database with active branches in use
2022-05-18 21:04:17 -07:00
Zach Musgrave 8934137ebc Added skipped tests for case sensitivity in db connection strings 2022-05-18 19:42:49 -07:00
Zach Musgrave 837a9f6ac8 Added test for dropping a branch-qualified DB 2022-05-18 19:24:55 -07:00
Zach Musgrave 964dfc361b Skipping new test on new format 2022-05-18 19:02:21 -07:00
AndyA 70e9b0dc6b Merge pull request #3449 from dolthub/andy/fix-diff-table-time
[no-release-notes] Maybe deref commit time value
2022-05-18 18:24:21 -07:00
AndyA 622eecb9ce Merge pull request #3408 from dolthub/andy/nbf-gate
[no-release-notes] Gate some CLI commands for `__DOLT_1__`
2022-05-18 18:23:49 -07:00
Zach Musgrave c491e777a0 Fixed panic when dropping a database with active branches in use 2022-05-18 18:17:25 -07:00
Zach Musgrave 6c938e61fa Merge pull request #3447 from dolthub/zachmu/ddl3
[no-release-notes] Always rewrite tables with the new code path on drop column
2022-05-18 16:28:54 -07:00
Zach Musgrave 6ff2892dbc Removed test that dropping columns on a keyless table doesn't work 2022-05-18 16:26:44 -07:00
Andy Arthur 0705398333 nil check ddb 2022-05-18 16:18:46 -07:00
Andy Arthur 814b8a58aa maybe deref commit time value 2022-05-18 15:59:00 -07:00
Aaron Son 4c37410e54 Merge pull request #3443 from dolthub/aaron/fix-racey-pipeline-finalization
[no-release-notes] go/libraries/utils/pipeline: Fix racey finalization of a pipeline.
2022-05-18 15:41:37 -07:00
Andy Arthur bcbb7378de . 2022-05-18 15:16:30 -07:00
Zach Musgrave 64364cf9ed Merge main 2022-05-18 15:05:13 -07:00
Zach Musgrave 5aa3a5aed4 Upgrade gms 2022-05-18 15:03:31 -07:00
Zach Musgrave 39ed416515 Always rewrite tables on drop column 2022-05-18 15:01:37 -07:00
Aaron Son edf0485148 go/libraries/utils/pipeline/stage.go: Fix how we finalize a stage so that every consumer can still see nil in the success case. 2022-05-18 14:31:09 -07:00
Andy Arthur 805f6a8a8e skip new bats 2022-05-18 14:26:20 -07:00
Andy Arthur 6d28deda12 Merge remote-tracking branch 'origin/main' into andy/nbf-gate 2022-05-18 14:25:23 -07:00
Aaron Son ec7af0c507 go/libraries/utils/pipeline: Fix unit test for new semantics. 2022-05-18 14:07:14 -07:00
Andy Arthur 5c012c820a gate config reset 2022-05-18 14:02:43 -07:00
Andy Arthur 8a4b22a6f0 maybe skip failing bats 2022-05-18 13:58:52 -07:00
Jason Fulghum 69957b7171 Changing Dolt Harness to track a MultiRepoEnv instead of DoltEnv to fix multi database support. 2022-05-18 13:21:25 -07:00
Aaron Son a8f5e44786 go/libraries/utils/pipeline: stage.go: Another pass at finalization strategy. 2022-05-18 12:17:35 -07:00
Aaron Son 2e27bcdafc Merge pull request #3441 from dolthub/aaron/dolt_backup-stored-procedure
go/libraries/doltcore/sqle/dfunctions: dolt_backup.go: Implement dolt_backup("sync", ...).
2022-05-18 10:19:49 -07:00
Aaron Son f4b6b6fe50 go/libraries/utils/pipeline: Fix racey finalization of a pipeline.
Before this change, when an initial stage function returned a non-nil err, it
would return non-nil, resulting in closing its output channel and leaving the
errgroup responsible for canceling the egCtx.

The next transform stage would read `nil, false` on its inCh. That stage would
forward the `nil` down the transform pipeline. If the inCh selects all resolved
down the transform pipeline before any of the `<- ctx.Done()` selects, then the
pipeline would see the exact same behavior for the error case as it would see
for an `io.EOF` being reached in the first stage.

Instead, transform stages in the pipeline should abort without forwarding data
if they see a closed input channel. In turn, input stages should forward one
last `nil` sentinel value to their output channel when the see an `io.EOF`
before they close the channel.
2022-05-18 10:11:27 -07:00