apavlo / py-tpcc

Python implementation of TPC-C
142 stars 91 forks source link

Wrong arguments on the ORDERS table loading for Redis and Cassandra driver #16

Open JRafaelSoares opened 3 years ago

JRafaelSoares commented 3 years ago

On the Redis and Cassandra driver, when loading the ORDERS table, it creates the 'O_C_ID' atribute with the 4th position of the tuple it receives (row[3]). However, in the generateOrder function of the loader.py, the 'o_c_id' attribute is in the 2nd position of the tuple, so it seems to be inserting the values incorrectly.

Note that I have not been able to test its correctness, as I found this when debuging my own driver based on the redis implementation, so take it with a grain of salt, but it seems to be an issue.