2.4. Presto Verifier
The Presto Verifier can be used to test Presto against another database (such as MySQL), or to test two Presto clusters against each other. We use it to continuously test trunk against the previous release while developing Presto.
Create a MySQL database with the following table and load it with the queries you would like to run:
CREATE TABLE verifier_queries(
id INT NOT NULL AUTO_INCREMENT,
suite VARCHAR(256) NOT NULL,
name VARCHAR(256),
test_catalog VARCHAR(256) NOT NULL,
test_schema VARCHAR(256) NOT NULL,
test_query TEXT NOT NULL,
control_catalog VARCHAR(256) NOT NULL,
control_schema VARCHAR(256) NOT NULL,
control_query TEXT NOT NULL,
PRIMARY KEY (id)
);
Next, create a properties file to configure the verifier:
suite=my_suite
query-database=jdbc:mysql://localhost:3306/my_database?user=my_username&password=my_password
control.gateway=jdbc:presto://localhost:8080
test.gateway=jdbc:presto://localhost:8081
thread-count=1
Lastly, download presto-verifier-0.87-executable.jar, rename it to verifier, make it executable with chmod +x, then run it:
./verifier config.properties