Commit Graph

3861 Commits

Author SHA1 Message Date
AndyA
fd02a6fd4c Merge pull request #3493 from dolthub/andy/prolly-enum-set-bit-encodings
[no-release-notes] Prolly Encodings for `Enum`, `Set` and `Bit`
2022-05-31 14:31:06 -07:00
Dhruv Sringari
8b00e78e64 go/libraries/doltcore/merge: allow merges in an inconsistent state (#3460)
* add bats test to check that merges can succeed in a conflicted state


fix tests

* add skipped bats for merges that violate check constraints post-merge

* add types.UnionMaps

* caller can choose value when key collision occurs

* fix comment

* allow merges when conflicts or violations are committed

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

* skip bats on new format

* enginetest -> queries

* last bats fix

* more bats

* missing run in bats

* pr edits

Co-authored-by: druvv <druvv@users.noreply.github.com>
2022-05-31 13:19:52 -07:00
Andy Arthur
a8dab572b0 fix time test 2022-05-31 12:07:26 -07:00
Andy Arthur
9b4e2e5b3e fix decimal normalization, revert sql time normalization 2022-05-31 11:02:16 -07:00
andrew-wm-arthur
f05aa5611a [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2022-05-26 22:37:11 +00:00
Andy Arthur
ec5c7e665e fix prolly field tests 2022-05-26 15:35:33 -07:00
Andy Arthur
8798f1010b threaded sql schemas to de/normaize rows 2022-05-26 15:08:09 -07:00
Andy Arthur
dff4b98668 skip typestable for new format 2022-05-26 12:11:50 -07:00
Andy Arthur
80a5de15a0 unskip typestable enginetests 2022-05-26 11:59:38 -07:00
Andy Arthur
cfd74ab17d unskip typestable enginetests 2022-05-26 11:56:55 -07:00
Andy Arthur
8a6530f148 added enum and set encodings 2022-05-26 11:52:38 -07:00
Andy Arthur
8e45698e3d Merge remote-tracking branch 'origin/main' into andy/prolly-decimal-encoding 2022-05-25 13:56:15 -07:00
AndyA
a55ec2b016 Merge pull request #3479 from dolthub/andy/prolly-encodings
[no-release-notes] New format encodings for `Year`, `Date` and `Time`
2022-05-25 13:26:39 -07:00
Andy Arthur
9ee8773b83 added encoding for decimal.Decimal 2022-05-25 12:29:12 -07:00
Zach Musgrave
8f1c3ed5e9 Merge pull request #3466 from dolthub/zachmu/ddl3
Support for adding / dropping primary keys on new storage format
2022-05-25 12:25:48 -07:00
Andy Arthur
03972c9e4c fix prolly_fields_test 2022-05-25 12:18:20 -07:00
Zach Musgrave
d671c177f5 Fixed bug adding primary key, not null constraint wasn't getting applied in some cases 2022-05-25 11:01:06 -07:00
Maximilian Hoffman
93945d94d3 Log and diff tables use topo sorted iterator (#3480)
* Topologically sort commit traversal

* docstring

* aaron's comments

* delete old
2022-05-25 09:59:21 -07:00
Andy Arthur
b1203d02d5 fix prolly_fields_test 2022-05-24 16:18:32 -07:00
Andy Arthur
c878a26694 added new encoding for Time 2022-05-24 16:14:15 -07:00
Andy Arthur
2e7a81437b added new encodings for year and date 2022-05-24 15:49:36 -07:00
Zach Musgrave
58b2ba2c14 Merge branch 'main' into zachmu/ddl3 2022-05-24 14:57:47 -07:00
zachmu
72b67b575a [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2022-05-24 21:41:24 +00:00
Zach Musgrave
d46920ef37 Fixed bug in table rewrites during primary key change: always flush new working set to disk even if we didn't write any rows. This matters when we've rewritten a table with no rows, but still need to persist the schema change. 2022-05-24 14:39:35 -07:00
Zach Musgrave
4f822170ef Change the order of operations on insert: first primary index, then secondaries 2022-05-24 14:04:48 -07:00
JCOR11599
388ae91c2f [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2022-05-24 19:30:55 +00:00
James Cor
a6f70d46d1 no more grants please 2022-05-24 12:29:24 -07:00
James Cor
247eb019d6 Merge branch 'main' into james/mysql 2022-05-24 12:22:04 -07:00
Maximilian Hoffman
a22adf4d33 [no-release-notes] old harness refactors (#3474)
* [no-release-notes] refactor harness setup

* remove local GMS

* fix unscoped diff table panic

* try to make NewEngine look respectable
2022-05-24 11:59:40 -07:00
Zach Musgrave
76ea2f1885 Fix tests to make them actually drain iterators 2022-05-24 11:49:59 -07:00
Zach Musgrave
7c21057d9d Fixed test with new error 2022-05-24 11:06:05 -07:00
Zach Musgrave
f1f93c19d0 Removing a debug print message, fixing noms show output 2022-05-24 11:01:05 -07:00
James Cor
ffa6ac9df3 feedback + testing if unskippable on windows 2022-05-24 10:25:00 -07:00
Zach Musgrave
da6169b173 Removed debug print statements 2022-05-24 10:10:29 -07:00
James Cor
e5c15a2933 Merge branch 'main' into james/mysql 2022-05-24 10:07:50 -07:00
Zach Musgrave
bf350af9cc Merge main 2022-05-24 10:04:08 -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
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
James Cor
42a7f497a3 Merge branch 'main' into james/mysql 2022-05-23 13:23:46 -07:00
Daylon Wilkins
079ab06a38 Added indexing for keyless tables + keyless foreign keys 2022-05-23 06:28:03 -07:00
James Cor
d60d309d18 ignore loading privileges from non-existent file 2022-05-21 22:56:52 -07:00
James Cor
d0c130d215 starting expect, got file behavior correct 2022-05-20 16:41:27 -07:00
Zach Musgrave
e0627b4b9c More debug messages 2022-05-20 16:28:56 -07:00
James Cor
5ded1a3110 Merge branch 'main' into james/mysql 2022-05-20 14:27:47 -07:00
James Cor
0e032556a3 only load privs sometimes, and always persist mysql.db 2022-05-20 14:25: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
Zach Musgrave
8817a8baef Debug printing and debug printing bug fixes 2022-05-19 17:02:11 -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
James Cor
5931e86b3c Merge branch 'main' into james/mysql 2022-05-19 11:49:58 -07:00