Issue dolthub#1361 reported that SELECT DOLT_CLEAN() with no arguments failed
with "function dolt_clean() does not exist". This was fixed in PR dolthub#1763
which added Function0 registration for all Dolt procedures, but the
corresponding tests in dolt_functions_test.go remained skipped.
Note: PR dolthub#1373 (referenced by issue dolthub#1361) also added skipped tests in
prepared_statement_test.go, but those were already unskipped in commit
62569c7 ("finished removing custom expr type").
List of changes below:
- Remove Skip: true from zero-argument DOLT_CLEAN() tests
- Reorder test assertions so DOLT_CLEAN('t1') runs before DOLT_CLEAN()
- Add table recreation step between test cases to verify both work
Refs: dolthub#1361
This adds a lot of testing for Dolt functions. Most of these tests involve different constructs (generated columns, triggers, functions, etc.), which have exhibited failure points even if they seem relatively unrelated to the function being called. Many of these errors have been fixed in this PR and the accompanying Dolt PR, but there are still quite a few outstanding (all labeled with
TODOs). These are outside of the known deficiencies due to logic that we just haven't implemented yet.Requires: