featurebase/sql3/test/defs
Travis Turner 468461fbcf
Add Drop Database and Drop Table support (#2208)
* Support Drop Table in serverless (include Snapshotter, Writelogger)

* Finish Database methods

Things like:
- `Databases`
- `DatabaseByID`
- `DatabaseByName`
- `DropDatabase`

* Change Poller to use NodeService instead of its own map

Instead of the Poller maintaining its own map of Addresses to poll, this
commit changes the Poller to use the NodeService interface to get all
known nodes from the Controller.

The next commit needs to:
Next, the logic in the boltdb NodeService implementation was moved to
the boltdb Balancer implementation. That way, the Balancer can be the
source of truth for all things nodes/workers/jobs.

* Move NodeService from Controller to Balancer

This commit moves the implementation of the NodeService into the
Balancer, and aligns `Balancer.AddWorker` with `NodeService.CreateNode`
so that they stay in sync. (Same for `Balancer.RemoveWorker` and
`NodeService.DeleteNode`).

* fix import of private repo

* Fix go vet issues

* Fix bug in DeregisterNode

We need to remove the node from the NodeService even if it's not
assigned to a database. The logic had a bug in it.

This also adds some no-op implementations for SnapshotService and
WriteloggerService. If a directory was not configured for that, then the
computer node would panic on trying to read from the Snapshotter upon
receiving a Directive.

* queryer response content-type: json

* Add support for NULL to WriteloggerDir and SnapshotterDir configs

This commit changes the way WriteLoggerDir and SnapshotterDir are
handled.
If value is empty `""`, an error will be returned on computer startup.
If value is `"NULL"`, a no-op implementation of the service will be
used. This would be for a case that wanted to run serverless on-prem
with no durable storage.
Finally, any other value will be used as the directory to use.

Some things which aren't considered here and may result in unexpected
behavior:
- a value with spaces `" "`
- any "null" which is not "NULL"... like lowercase.

* Finish the DropTable test

* Change "disable service" value to case-insensitive "off"

This commit also removes an unnecessary sleep in the tests.

* Fix docker-compose variables for IDK test

Co-authored-by: Matthew Jaffee <jaffee@pilosa.com>
2023-01-23 19:59:47 -06:00
..
defs.go implement CREATE/ALTER/DROP VIEW (fb-1592) (#2408) 2023-01-19 21:51:16 +00:00
defs_aggregate.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
defs_between.go implemented extract ddl; tightened up type related stuff (#2329) 2022-12-12 09:01:20 -08:00
defs_binops.go implemented extract ddl; tightened up type related stuff (#2329) 2022-12-12 09:01:20 -08:00
defs_bool.go Introduce ServiceManager and Refactor DAX Integration tests (#2320) 2022-12-12 09:01:20 -08: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_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 enforce int min/max constraints on insert (fb-1772) (#2325) 2022-12-12 09:01:20 -08:00
defs_join.go implement left join (fb-1888) (#2420) 2023-01-19 22:10:15 +00: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 Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08: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 1876 : Implement Replicate() func (#2410) 2023-01-19 22:10:15 +00:00
defs_subquery.go fix sum aggregate (fb-1874) (#2404) 2023-01-12 00:49:58 +00:00
defs_timequantum.go implemented extract ddl; tightened up type related stuff (#2329) 2022-12-12 09:01:20 -08: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