featurebase/dax
pokeeffe-molecula aaf963c9bd (fb-1779) make optimizer smarter with top operators and aggregate queries (#2323)
* updated optimizer to be smarter when trying to push a top operator down; added test coverage

* skip a dax sql test that keeps failing

(cherry picked from commit e0d6b292bc)
2022-12-12 09:01:20 -08:00
..
boltdb rename shard partition field (#2302) 2022-12-12 09:01:20 -08:00
computer Prepend header bytes to WriteLog messages for backward compatibility (#2309) 2022-12-12 09:01:20 -08:00
http Add DAX - full list of squashed commits below 2022-12-12 09:01:20 -08:00
inmem rename shard partition field (#2302) 2022-12-12 09:01:20 -08:00
mds Fix formatting in CLI results with custom SQLResonse.UnmarshalJSON (#2305) 2022-12-12 09:01:20 -08:00
queryer Fix more of the SQL tests in dax (#2310) 2022-12-12 09:01:20 -08:00
server FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-12-12 09:01:20 -08:00
snapshotter Add DAX - full list of squashed commits below 2022-12-12 09:01:20 -08:00
test (fb-1779) make optimizer smarter with top operators and aggregate queries (#2323) 2022-12-12 09:01:20 -08:00
writelogger Add DAX - full list of squashed commits below 2022-12-12 09:01:20 -08:00
address.go Add DAX - full list of squashed commits below 2022-12-12 09:01:20 -08:00
address_test.go Add DAX - full list of squashed commits below 2022-12-12 09:01:20 -08:00
dax.go Add DAX - full list of squashed commits below 2022-12-12 09:01:20 -08:00
directive.go rename shard partition field (#2302) 2022-12-12 09:01:20 -08:00
docker-compose.yml Add DAX - full list of squashed commits below 2022-12-12 09:01:20 -08:00
errors.go Add DAX - full list of squashed commits below 2022-12-12 09:01:20 -08:00
Makefile Prepend header bytes to WriteLog messages for backward compatibility (#2309) 2022-12-12 09:01:20 -08:00
node.go Add DAX - full list of squashed commits below 2022-12-12 09:01:20 -08:00
README.md Add DAX - full list of squashed commits below 2022-12-12 09:01:20 -08:00
role.go rename shard partition field (#2302) 2022-12-12 09:01:20 -08:00
snapshot.go Add DAX - full list of squashed commits below 2022-12-12 09:01:20 -08:00
table.go Fix formatting in CLI results with custom SQLResonse.UnmarshalJSON (#2305) 2022-12-12 09:01:20 -08:00
table_test.go Fix formatting in CLI results with custom SQLResonse.UnmarshalJSON (#2305) 2022-12-12 09:01:20 -08:00
time.go Add DAX - full list of squashed commits below 2022-12-12 09:01:20 -08:00
versioned_field.go rename shard partition field (#2302) 2022-12-12 09:01:20 -08:00
versioned_partition.go rename shard partition field (#2302) 2022-12-12 09:01:20 -08:00
versioned_shard.go rename shard partition field (#2302) 2022-12-12 09:01:20 -08:00
versionstore.go rename shard partition field (#2302) 2022-12-12 09:01:20 -08:00
workerjob.go Add DAX - full list of squashed commits below 2022-12-12 09:01:20 -08:00
workerjob_test.go Add DAX - full list of squashed commits below 2022-12-12 09:01:20 -08:00

DAX

DAX encapsulates anything which covers all of the services which make up the "disaggregation of storage and compute" project. Initially, this will include integration tests which pull in things like Metadata Services (MDS), including the Controller, as well as FeatureBase and IDK-based ingesters.

Setting up the tests

The DAX test currently requires docker images for: featurebase and datagen.

If at any point you run into problems with go mod failing to reference a private repo, make sure that you have gitlab.com/molecula in your GOPRIVATE environment variable.

Note that during the docker image build step, go mod vendor is run, which creates a vendor directory in the root directory, and copies that to docker during the build stage. Just be aware of this; you may want to remove that vendor directory after you're done building docker images.

Possible Configuruation

The following were relevent when the dax code was in a separate repository. These may no longer be relevant.

I needed to but this in my ~/.profile file:

export GOPRIVATE=github.com/molecula,gitlab.com/molecula

And this in my ~/.gitconfig

[url "ssh://git@github.com/"]
	insteadOf = https://github.com/
[url "ssh://git@gitlab.com/"]
	insteadOf = https://gitlab.com/

Then make docker ran successfully.

Build the FeatureBase docker image

  • Check out the dax branch of the featurebase repository.
  • Run make docker-image-featurebase to build the docker image
  • You should now have an image in docker named dax/featurebase with the tag latest.

Build the Datagen docker image

  • cd <featurebase_repo_root>/idk
  • Run make docker-image-datagen to build the docker image
  • You should now have an image in docker named dax/datagen with the tag latest.

Running the tests

  • Check out the dax branch of the featurebase repository.
  • Change into the dax directory: cd dax
  • Run make test-integration.