Commit Graph

1158 Commits

Author SHA1 Message Date
Vinai Rachakonda 6a862db215 Vinai/dolt merge Part 1. Just Fast Forward Merge (#1299)
This PR adds DOLT_MERGE functionality that only works with FFs.
2021-02-10 11:19:14 -08:00
Daylon Wilkins e425ec40b5 Type change tests and bug fixes 2021-02-10 11:06:27 -08:00
Brian Hendriks 96a3fd23a1 disable query diff (#1321) 2021-02-10 10:40:28 -08:00
Daylon Wilkins 7dcc54b630 Check constraints on commit 2021-02-09 01:12:52 -08:00
Daylon Wilkins e7c1a29fc2 Added DELIMITER support to the dolt shell 2021-02-08 00:54:20 -08:00
Vinai Rachakonda 7b53ccb79f Implement SQL dolt_checkout function (#1287)
This pr adds in DOLT_CHECKOUT functionality for the sql cli.
2021-02-04 16:16:01 -08:00
Brian Hendriks 09c3c3e4ec Insertion optimizations (#1293) 2021-02-04 14:44:01 -08:00
Zach Musgrave f6bf6ec93a Merge pull request #1289 from dolthub/zachmu/debuglog-env
Added DOLT_SQL_DEBUG_LOG and DOLT_SQL_DEBUG_LOG_VERBOSE environment vars
2021-02-04 09:15:42 -08:00
AndyA d00a37fbd6 Merge pull request #1278 from dolthub/andy/auto-inc-fix
Andy/auto inc fix
2021-02-03 18:04:19 -08:00
Zach Musgrave e28e856e9c Added env vars for SQL analyzer debug printing 2021-02-03 14:26:06 -08:00
Vinai Rachakonda 68331035e4 Fix bug where batched inserts containing subqueires chose non flushing option.. (#1267)
This pr fixes a problem where subqueries in insert were not denoted as non batch insert.
2021-01-29 22:47:57 -05:00
Andy Arthur b86c8464dd copy AUTO_INCREMENT value on schema change (index/column add/drop/modify) 2021-01-29 16:14:42 -08:00
Brian Hendriks 37d58c1f46 adds ability to redirect stdin from a file (#1264) 2021-01-27 17:55:38 -08:00
Zach Musgrave f1b2e507b7 Merge master 2021-01-27 09:05:59 -08:00
Zach Musgrave fc91da34ba Removed unused error params from col_coll.go 2021-01-26 18:24:35 -08:00
Zach Musgrave 2f672c0958 NewColCollection no longer returns an error 2021-01-26 17:44:11 -08:00
Zach Musgrave 70fc8756ae Enforce valid schema in various import jobs 2021-01-26 16:41:37 -08:00
Brian Hendriks 0042732933 fix panic when key does not exist in table (#1233) 2021-01-26 09:11:38 -08:00
Timothy Sehn 647d2787c1 format_repo 2021-01-25 15:44:42 -08:00
Timothy Sehn 5bd7fe8efa Fixed merged go code to make diff --cached work 2021-01-25 15:37:38 -08:00
Zach Musgrave 4531e2eec4 Fixed duplicate tag bug in diff, add commands. Tested merge and commit as well. 2021-01-25 15:36:34 -08:00
Timothy Sehn 2ea87900bf Merged Vyas' diff --cached code and unskipped the bats tests 2021-01-25 14:42:51 -08:00
Vinai Rachakonda 3342b8d58f Vinai/refactor docs (#1210)
This pr does a massive refactor of the internal state management with docs.
2021-01-25 17:00:27 -05:00
Zach Musgrave 80f2dfbb4f Hidden command for changing the type of a column in place. Tested for integers and varchar types. 2021-01-25 12:20:38 -08:00
Remy Ochei f74d7762f6 Fixed a grammatical mistake in the man page for dolt conflicts resolve. 2021-01-22 12:25:28 -06:00
Vinai Rachakonda cf037558dd Write to root on every loop of sql shell. (#1215)
This pr fixes a problem where autocommit was not turned on for every single iteration of the shell loop.
2021-01-19 16:07:38 -05:00
Brian Hendriks f64c0286a3 cli output fix (#1221) 2021-01-19 10:26:58 -08:00
Brian Hendriks c1c6ced681 don't call iterator after it's returned eof (#1220) 2021-01-14 14:31:46 -08:00
Daylon Wilkins 7aa024554c Added binary types to dolt 2021-01-13 05:17:24 -08:00
Vinai Rachakonda 6e9fc2dd33 Vinai/dolt reset (#1166)
This PR adds in dolt_reset functionality in the sql engine. It enables the user to mock the cli `dolt reset` in the SQL engine.
2021-01-11 14:16:48 -05:00
Brian Hendriks 0873fb6643 fix compilation 2021-01-07 13:31:57 -08:00
Oscar Batori 6522dd0e47 Merge branch 'master' into v0.22.8-release 2021-01-07 12:30:59 -08:00
Aaron Son 2ed61f501f go/libraries/utils/tracing: Add pluggable context-aware Tracing function. 2021-01-07 11:59:18 -08:00
Aaron Son a1bf8b62fd repofmt: Hygiene. 2021-01-06 15:02:24 -08:00
Aaron Son a654f02e14 go/cmd/dolt: Add debugging flag to run with Jaeger span reporting to localhost.
This adds a --jaeger flag to dolt CLI which installs a Jaeger Tracer as the
global opentracing Tracer. The Tracer is configured to report to an HTTP
collector running on http://localhost:14268, which is the port that docker
image `jaegertracing/all-in-one` listens on.

Also adds some parameters in places where Dolt constructs sql.Contexts to pass
the correct Tracer through.

Also adds a few new Span points, in things like nbs.Get and
metaSequenceImpl.getChildSequence.
2021-01-06 14:50:06 -08:00
Vinai Rachakonda b171ddb55e Address escaping in longtext/json for json and csv export (#1157)
This pr addresses the linked of issue of fault exporting of json like data with prettyPrint. The solution on the csv end was opening the csv writer to the pretty print pipeline.
2021-01-04 18:18:40 -05:00
Vinai Rachakonda 16911668b3 Implement dolt status table (#1151)
This pr implements the Dolt Status Table. It is a system that enable a user in sql to determined the set of working and staged changes. It is created on demand.
2020-12-31 22:15:38 -05:00
Vinai Rachakonda 601c3e8f12 DOLT_ADD SQL Implementation (#1129)
This pr adds the DOLT_ADD to the SQL cli. It current models the behavior of `dolt add.`
2020-12-26 16:54:40 -05:00
Oscar Batori aec7a4290d Merge pull request #1118 from dolthub/release
Updated version for release of version 0.22.7
2020-12-22 11:59:35 -08:00
dolt-release-bot 85e57f40b1 Updated version for release of version 0.22.8 2020-12-22 00:35:00 +00:00
AndyA 457532f55c Merge pull request #1134 from dolthub/andy/ungate-keyless-tables
Andy/ungate keyless tables
2020-12-21 16:21:10 -08:00
Andy Arthur 6dbe7dd1c4 remove tests that error on no-pk 2020-12-21 15:57:12 -08:00
Andy Arthur 91080cbcb2 uncomment platform specific code 2020-12-21 15:33:40 -08:00
Daylon Wilkins d7499cc789 Added TRUNCATE and removed old optimized DELETE path 2020-12-21 07:04:11 -08:00
Vinai Rachakonda 3e008f5bfb Implement the docs read writer. (#1120)
This pr implements the DocsReadWriter interface. It allows both dolt cli and dolt sql commands to read and write the docs.
2020-12-18 14:38:55 -05:00
Andy Arthur 5e354c86a6 pr feedback 2020-12-17 17:46:11 -08:00
Andy Arthur 74bb15f412 fixed TableDelta.IsKeyless() 2020-12-17 13:01:12 -08:00
Andy Arthur fadf5f692e feature gates keyless sql diff 2020-12-17 11:54:00 -08:00
Andy Arthur 16955d80cc dolt_diff_ table for keyless tables 2020-12-17 11:54:00 -08:00
Andy Arthur febc6dc829 basic diffs working 2020-12-17 11:54:00 -08:00