featurebase/sql3/test/defs
Seebs 5dffbccdff add test coverage, fix bugs caught by added test coverage
Note: We now skip a test because we can't pass it but fixing
it is presently beyond my understanding. In parser_test.go,
we skip
	SELECT * FROM X INNER JOIN Y ON true INNER JOIN Z ON false
because if we stringify it, we put the "ON true" in the wrong
place, and end up with something we can't parse.

The main change here is modifying AssertParseStatement and
AssertStatementStringer (and the corresponding Expression
functions) to also verify that they can clone and round-trip,
and that we can walk expressions. This gives us a ton
more coverage of Clone and conversions to string, and caught
a number of subtle typos and missing type switch cases.

Some of the changes are mostly cosmetic, such as only
including optional words when stringifying expressions
or statements if those optional words were present originally,
as shown by the Pos value stored for those words.

We also drop a lot of trailing apostrophes from some of the
parse test cases, which appear to be harmless but won't be
reproduced when converting back to strings.

We also add a number of additional test cases, or add
clauses to existing test cases, to improve coverage of a
lot of error testing. For instance, we added a decimal
field to the tests of show table, and added cases
using KEYPARTITIONS. (Although it doesn't *do* anything.)

Similarly, whenever we create a statement, we check
the behavior of requesting a list of sources from it, to
verify that source finding code at least runs.
2023-02-15 14:34:51 -06:00
..
defs.go added test for inserts with timestamp + constraints (#2244) 2023-02-13 16:15:59 -06:00
defs_aggregate.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
defs_between.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
defs_binops.go add test coverage, fix bugs caught by added test coverage 2023-02-15 14:34:51 -06:00
defs_bool.go Introduce ServiceManager and Refactor DAX Integration tests (#2320) 2022-12-12 09:01:20 -08:00
defs_bulkinsert.go timestamp fixes (#2224) 2023-01-25 14:07:15 -06:00
defs_cast.go you should be able to cast an id as a string (#2334) 2022-12-12 09:01:20 -08:00
defs_create_table.go SHOW CREATE TABLE issues (fb-1810) (#2365) 2023-01-10 23:22:58 +00:00
defs_date_functions.go implemented extract ddl; tightened up type related stuff (#2329) 2022-12-12 09:01:20 -08:00
defs_delete.go Implement DELETE (fb 1557) (#2382) 2023-01-10 23:25:08 +00:00
defs_distinct.go fix import paths 2023-01-11 18:59:24 +00:00
defs_filterpredicates.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
defs_groupby.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
defs_having.go implement having; create view experiment (#2357) 2023-01-10 23:20:15 +00:00
defs_in.go Move SQL3 test definitions into sql3/test/defs package (#2289) 2022-11-15 11:33:35 -08:00
defs_inserts.go added test for inserts with timestamp + constraints (#2244) 2023-02-13 16:15:59 -06:00
defs_join.go hand comma version of inner join (#2221) 2023-01-25 13:37:05 -06:00
defs_keyed.go Introduce ServiceManager and Refactor DAX Integration tests (#2320) 2022-12-12 09:01:20 -08:00
defs_keyed_insert.go Introduce ServiceManager and Refactor DAX Integration tests (#2320) 2022-12-12 09:01:20 -08:00
defs_like.go implemented extract ddl; tightened up type related stuff (#2329) 2022-12-12 09:01:20 -08:00
defs_minmaxnegative.go Move SQL3 test definitions into sql3/test/defs package (#2289) 2022-11-15 11:33:35 -08:00
defs_null.go Implement DELETE (fb 1557) (#2382) 2023-01-10 23:25:08 +00:00
defs_orderby.go implemented extract ddl; tightened up type related stuff (#2329) 2022-12-12 09:01:20 -08:00
defs_select.go add test coverage, fix bugs caught by added test coverage 2023-02-15 14:34:51 -06:00
defs_set_functions.go implemented extract ddl; tightened up type related stuff (#2329) 2022-12-12 09:01:20 -08:00
defs_string_functions.go FB-1862: Implement Str() scalar string function (#2215) 2023-02-14 15:58:36 -05:00
defs_subquery.go fix sum aggregate (fb-1874) (#2404) 2023-01-12 00:49:58 +00:00
defs_timequantum.go hand comma version of inner join (#2221) 2023-01-25 13:37:05 -06:00
defs_timestamp_literals.go Introduce ServiceManager and Refactor DAX Integration tests (#2320) 2022-12-12 09:01:20 -08:00
defs_top.go (fb-1779) make optimizer smarter with top operators and aggregate queries (#2323) 2022-12-12 09:01:20 -08:00
defs_unkeyed.go Add Drop Database and Drop Table support (#2208) 2023-01-23 19:59:47 -06:00
defs_unops.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
defs_views.go implement CREATE/ALTER/DROP VIEW (fb-1592) (#2408) 2023-01-19 21:51:16 +00:00
types.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00