Commit Graph

5832 Commits

Author SHA1 Message Date
Zach Musgrave 248492da58 Merge pull request #213 from liquidata-inc/zachmu/sql-performance
Update version of go-mysql-server and sqllogictest, and make dolt use the insert / update / delete interfaces. This results in much better performance (and better correctness) for insert / update / delete statements that involve multiple values. Originally turned indexing back on, but discovered that it leads to incorrect test results when I do so, so hid it behind an env var again.
2019-11-13 13:50:17 -08:00
Andy Arthur fc3a4c06bd fixing description of sql flag 2019-11-13 13:42:00 -08:00
Zach Musgrave a16919bc5b Turning indexes off yet again because another query misbehaves with them on
Signed-off-by: Zach Musgrave <zach@liquidata.co>
2019-11-13 13:32:19 -08:00
Andy Arthur a85224ad1d table add/drop working, add+insert not working 2019-11-13 12:58:41 -08:00
Zach Musgrave 2be5f962d9 Fixed format
Signed-off-by: Zach Musgrave <zach@liquidata.co>
2019-11-13 12:38:29 -08:00
Zach Musgrave 6f5a17ddb6 Fixed bug in update for primary keys. Updated several SQL tests to not expect errors on go-mysql-server
Signed-off-by: Zach Musgrave <zach@liquidata.co>
2019-11-13 12:28:25 -08:00
Andy Arthur 423ad16c6d refactored diffSchemas 2019-11-13 11:25:12 -08:00
Andy Arthur 3ffda7ff40 diff sql supports col renames 2019-11-13 11:13:51 -08:00
Andy Arthur 45901e1318 removed tests for sql diff features that will not be implemented 2019-11-13 11:01:41 -08:00
Zach Musgrave fdd7ebb4f3 Fix merge markers and formatting
Signed-off-by: Zach Musgrave <zach@liquidata.co>
2019-11-13 11:01:17 -08:00
Andy Arthur 350c40c604 fixed add/drop col sql output 2019-11-13 11:00:36 -08:00
Zach Musgrave 8a233a7c99 Merged in zachmu/sql-indexes2, which includes a fix for failing datetime tests
Signed-off-by: Zach Musgrave <zach@liquidata.co>
2019-11-13 10:59:37 -08:00
Zach Musgrave 203136a105 Renamed recievers for tableEditor and fixed a (presumed) but in update
Signed-off-by: Zach Musgrave <zach@liquidata.co>
2019-11-13 10:43:17 -08:00
Zach Musgrave 32347d66c3 Changed DoltHarness to conform to updated interface of logictest.Harness. Pretty sure I already put this on another branch but yolo
Signed-off-by: Zach Musgrave <zach@liquidata.co>
2019-11-13 10:43:17 -08:00
Zach Musgrave 2e36176db8 Updated dependencies for go-mysql-server and sqllogictest, ran go mod tidy
Signed-off-by: Zach Musgrave <zach@liquidata.co>
2019-11-13 10:43:17 -08:00
Zach Musgrave f3e247683d Changed dolt table implementation to use the new insert / update / delete interfaces from https://github.com/liquidata-inc/go-mysql-server/pull/28. This won't build until updating go.mod.
Signed-off-by: Zach Musgrave <zach@liquidata.co>
2019-11-13 10:43:17 -08:00
Zach Musgrave 9b1eacd519 Make dolt sqle implementation use the new batch insert / update / delete interfaces
Signed-off-by: Zach Musgrave <zach@liquidata.co>
2019-11-13 10:43:17 -08:00
Andy Arthur 4619cceee7 added changes from sqldiffs PR 2019-11-13 08:51:50 -08:00
Andy Arthur 535dce9708 Merge branch 'master' into andy/sqlschemadiffs 2019-11-13 08:46:30 -08:00
Andy Arthur bf1a958ac0 fixing whitespace in tests 2019-11-12 17:13:41 -08:00
Zach Musgrave 8e957bcd5f Re-enabled index lookups for dolt SQL. Updated dependencies for sqllogictest and go-mysql-server.
Added time to the handled cases in DATETIME & changed tests (originally @hydrocharged, squashed)

Signed-off-by: Zach Musgrave <zach@liquidata.co>
2019-11-12 17:07:36 -08:00
Andy Arthur f4f77b4da9 ran repo format 2019-11-12 17:05:10 -08:00
Andy Arthur 36805ea6db removed dead code 2019-11-12 17:01:25 -08:00
Andy Arthur 96c22e7076 Zach vacations at the library 2019-11-12 17:00:22 -08:00
Andy Arthur 811bfe38f5 added sql escaping to new sqlwriter methods 2019-11-12 16:56:41 -08:00
Andy Arthur 3b910a26d2 updated tests 2019-11-12 16:56:07 -08:00
Andy Arthur 5f7bcd7fda responding to PR comments 2019-11-12 16:28:36 -08:00
Andy Arthur 3d17020f04 added unittests for new sqlwriter methods 2019-11-12 16:26:16 -08:00
Andy Arthur 14f252a54d sorting table changes 2019-11-12 15:10:18 -08:00
Andy Arthur 5f01f234d6 added bats tests for add, drop, rename tables 2019-11-12 09:53:52 -08:00
Oscar Batori 17d14ba12e Merge pull request #210 from liquidata-inc/oscarbatori/bump-version-for-release-0.11.0
bump version and add to gitignore
v0.11.0
2019-11-12 12:38:21 -05:00
Oscar Batori 62de5395aa bump version and add to gitignore 2019-11-12 12:09:27 -05:00
Andy Arthur 7b7312b80c adding newline to fix diff 2019-11-12 09:08:46 -08:00
Andy Arthur f8c88527e9 Merge branch 'master' into andy/sqlschemadiffs 2019-11-11 17:39:32 -08:00
Andy Arthur bb31833561 updated bats tests and sql output 2019-11-11 17:08:18 -08:00
Andy Arthur ba7e921a3f column add/drop working 2019-11-11 16:16:50 -08:00
Andy Arthur e2da5df9a4 Merge branch 'master' into andy/sqldiffs 2019-11-11 15:26:15 -08:00
Aaron Son 8a163af249 Merge pull request #208 from liquidata-inc/aaron/no-n-squared-in-parse-tagged-tuple
go/libraries/doltcore/row: tagged_values.go: Fix n^2 behavior in ParseTaggedValues.
2019-11-11 15:23:20 -08:00
Aaron Son 9611b2d2ca go/libraries/doltcore/row: tagged_values.go: Fix n^2 behavior in ParseTaggedValues.
ParseTaggedValues used to call Tuple.Get(0)...Tuple.Get(n), but Tuple.Get(x)
has O(n) perf, so the function did O(n^2) decoding work to decode a tuple.

Use a TupleIterator instead.
2019-11-11 15:11:00 -08:00
Aaron Son 9de064e8e0 Merge pull request #206 from liquidata-inc/aaron/value_decoder-perf
go/store/types: Improve perf of value decoding for primitive types.
2019-11-11 14:41:59 -08:00
Andy Arthur c6a5a7702c fixed bats test for Windows 2019-11-11 14:18:25 -08:00
Aaron Son 81e406d5f3 go/store/types: Improve perf of value decoding for primitive types. 2019-11-11 14:05:18 -08:00
Andy Arthur 2e436334fb fixed bug in creating pipeline transforms 2019-11-11 12:12:33 -08:00
Andy Arthur 06e2ad1c6f ran godeps verify 2019-11-11 11:33:36 -08:00
Andy Arthur 9f92227501 added bats test to check error exit on schema change 2019-11-11 11:21:24 -08:00
Andy Arthur 15ef237795 ran formatter 2019-11-11 11:05:31 -08:00
Andy Arthur dd7e193869 added Andy Arthur to allowed committers/authors 2019-11-11 11:02:25 -08:00
Andy Arthur 3db7cb5286 merged master 2019-11-11 10:49:17 -08:00
Andy Arthur c37ce172d0 updated bats 2019-11-11 10:43:30 -08:00
Katie McCulloch a4ae351a1f Merge pull request #199 from liquidata-inc/km/redo-import-nulls
Km/redo import nulls
2019-11-11 10:14:30 -08:00