Open pervazea opened 6 years ago
Running oltpbench epinions fails in a very similar manner. Adding output here, on the assumption it may be the same cause. If it is not, we can create a separate issue.
13:22:50,869 (DBWorkload.java:260) INFO - ======================================================================
13:22:50,883 (DBWorkload.java:512) INFO - Creating new EPINIONS database...
Error executing: CREATE TABLE review_rating ( u_id int NOT NULL REFERENCES useracct (u_id), a_id int NOT NULL, rating int NOT NULL, status int NOT NULL, creation_date datetime DEFAULT NULL, last_mod_date datetime DEFAULT NULL, type int DEFAULT NULL, vertical_id int DEFAULT NULL )
Exception in thread "main" java.lang.RuntimeException: Unexpected error when trying to create the epinions database
DATETIME
is a MySQL-specifc type. Try renaming the postgres DDL file to make it a peloton one:
cp src/com/oltpbenchmark/benchmarks/epinions/ddls/epinions-postgres-ddl.sql src/com/oltpbenchmark/benchmarks/epinions/ddls/epinions-peloton-ddl.sql
For twitter, after switching to the postgres ddl file, we fail creating the databse, because we don't support datatype "serial". One alternative would be bigint with auto_increment. Do we support auto_increment?
Error information below: Error executing: CREATE TABLE "added_tweets" ( id serial, uid int NOT NULL REFERENCES "user_profiles" (uid), text char(140) NOT NULL, createdate timestamp DEFAULT NULL, PRIMARY KEY (id) )
We don't support SERIAL (aka SEQUENCES). We will add this next semester.
Let's skip this benchmark for now.
When trying to run oltpbench twitter, it cannot create the database.
benchmark output:
Nothing useful from Peloton:
Configuration file attached, as created by benchmark.py twitter_config.xml.txt
Ran manually. Configuration: