"Table %s doesn't exist" error when trying to test a query
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Random Query Generator |
Invalid
|
Undecided
|
Unassigned |
Bug Description
OS: Ubuntu 14.04.1 LTS
Perl v5.18.2
DBD::mysql version: 4.025
mysql version: 5.6.22
Hi, I'm new to using RQG, and while using gentest with one of the example grammars,
perl ~/project/
--queries=1 \
--threads=1 \
--seed=10 \
I got the following error in the query:
# 2015-02-20T23:00:27 Starting: /home/calli/
# 2015-02-20T23:00:27 -------
# 2015-02-20T23:00:27 Configuration
# 2015-02-20T23:00:27 debug_server => ['']
# 2015-02-20T23:00:27 dsn => ['dbi:mysql:
# 2015-02-20T23:00:27 duration => 3600
# 2015-02-20T23:00:27 generator => FromGrammar
# 2015-02-20T23:00:27 grammar => conf/optimizer/
# 2015-02-20T23:00:27 queries => 1
# 2015-02-20T23:00:27 reporters => ['']
# 2015-02-20T23:00:27 seed => 10
# 2015-02-20T23:00:27 threads => 1
# 2015-02-20T23:00:27 transformers => ['']
# 2015-02-20T23:00:27 validators => ['']
# 2015-02-20T23:00:27 views => ['', '']
# 2015-02-20T23:00:27 Reporters: (none)
# 2015-02-20T23:00:27 Validators: ErrorMessageCor
# 2015-02-20T23:00:27 Caching schema metadata for dbi:mysql:
# 2015-02-20T23:00:27 Starting 1 processes, 1 queries each, duration 3600 seconds.
# 2015-02-20T23:00:27 GenTest:
# 2015-02-20T23:00:27 Loading Validator GenTest:
SELECT DISTINCT SUM( alias2 . `col_varchar_key` ) AS field1 FROM ( B AS alias1 , ( view_CC AS alias2 , A AS alias3 ) ) WHERE alias2 . `pk` = alias1 . `pk` ORDER BY field1 , alias1 . `col_date_key` ASC
# 2015-02-20T23:00:27 Child worker process completed successfully.
# 2015-02-20T23:00:27 Query: SELECT DISTINCT SUM( alias2 . `col_varchar_key` ) AS field1 FROM ( B AS alias1 , ( view_CC AS alias2 , A AS alias3 ) ) WHERE alias2 . `pk` = alias1 . `pk` ORDER BY field1 , alias1 . `col_date_key` ASC failed: 1146 Table '%s' doesn't exist. Further errors of this kind will be suppressed.
# 2015-02-20T23:00:27 Started periodic reporting process...
# 2015-02-20T23:00:28 Killing periodic reporting process with pid 27208...
# 2015-02-20T23:00:28 Kill GenTest:
# 2015-02-20T23:00:28 Test completed successfully.
I'm using the database generated by runall.pl.
The error message says table '%s' rather than a specific table. Is that supposed to happen? If it is, how should I resolve the error?
Thanks!
You must also invoke the random data generator, either before the test, or as a part of the call to runall.pl (which I do not see in the examples you have provided): /path/to/ mysql/basedir \ conf/example. zz \ #<--- specifying which file gendata (the data generator) should use to prep for the test conf/example. yy
$ perl runall.pl \
--basedir=
--gendata=
--grammar=
Most test grammars are designed to run with a specific gendata file / test bed. The files are usually named or contain comments to indicate which files go together
https:/ /github. com/RQG/ RQG-Documentati on/wiki/ RandomDataGener ator
I hope this helps.