Query on 100scale TPCH crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
InfiniDB Community |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hardware: Q8200 8G Memeory 1T HardDisk
OS: CentOS 5.6 x86_64
InfiniDB: 2.2.2 x86_64
TPC-H 100scale Data
-------
select count(1) from lineitem;
+-----------+
| count(1) |
+-----------+
| 600037902 |
+-----------+
1 row in set (15.34 sec)
-------
-------
mysql> select l_returnflag,
ERROR 122 (HY000): There was an internal error encountered in the Calpont Engine while processing this query. The query was cancelled. You may resubmit it if you like. The error was aggregation data overflow.
-------
Calpont.xml in attach
Changed in infinidb: | |
status: | New → Fix Released |
The error you are getting is an aggregation error.
The 90 day interval will run with decimal scale of 3. See below...
You can find more information on the decimal scale setting in Chapter 6
of the Syntax Guide.
mysql> set infinidb_ use_decimal_ scale = 1; decimal_ scale=3;
Query OK, 0 rows affected (0.00 sec)
mysql> set infinidb_
Query OK, 0 rows affected (0.00 sec)
mysql> show variables like '%infinidb%'; ------- ------- ------- -----+- ------+ ------- ------- ------- -----+- ------+ compression_ type | 1 | decimal_ scale | 3 | ordered_ only | OFF | string_ scan_threshold | 10 | use_decimal_ scale | ON | vtable_ mode | 1 | ------- ------- ------- -----+- ------+
+------
| Variable_name | Value |
+------
| infinidb_
| infinidb_
| infinidb_
| infinidb_
| infinidb_
| infinidb_
+------
6 rows in set (0.00 sec)
mysql> SELECT L_RETURNFLAG, L_LINESTATUS, SUM(L_QUANTITY) AS SUM_QTY, SUM(L_EXTENDEDP RICE) AS SUM_BASE_PRICE, SUM(L_EXTENDEDP RICE*(1- L_DISCOUNT) ) AS SUM_DISC_PRICE, SUM(L_EXTENDEDP RICE*(1- L_DISCOUNT) *(1+L_TAX) ) AS SUM_CHARGE, AVG(L_QUANTITY) AS AVG_QTY, AVG(L_EXTENDEDP RICE) AS AVG_PRICE, AVG(L_DISCOUNT) AS AVG_DISC, COUNT(*) AS COUNT_ORDER FROM LINEITEM WHERE L_SHIPDATE <= date '1998-12-01' - interval '90' day GROUP BY L_RETURNFLAG, L_LINESTATUS ORDER BY L_RETURNFLAG, L_LINESTATUS; ------- -+----- ------- --+---- ------- ----+-- ------- ------- ---+--- ------- ------- ----+-- ------- ------- ------- +------ -----+- ------- ------+ ------- ---+--- ------- ---+ ------- -+----- ------- --+---- ------- ----+-- ------- ------- ---+--- ------- ------- ----+-- ------- ------- ------- +------ -----+- ------- ------+ ------- ---+--- ------- ---+ 483000 | 25.499000 | 38236.117000 | 0.050000 | 148047881 | 305000 | 25.500000 | 38237.228000 | 0.050000 | 291619617 | 719000 | 25.500000 | 38236.697000 | 0.050000 | 148067261 | ------- -+----- ------- --+---- ------- ----+-- ------- ------- ---+--- ------- ------- ----+-- ------- ------- ------- +------ -----+- ------- ------+ ------- ---+--- ------- ---+
+------
| L_RETURNFLAG | L_LINESTATUS | SUM_QTY | SUM_BASE_PRICE | SUM_DISC_PRICE | SUM_CHARGE | AVG_QTY | AVG_PRICE | AVG_DISC | COUNT_ORDER |
+------
| A | F | 3775127758.00 | 5660776097194.45 | 5377736402290.3890 | 5592847435349.
| N | F | 98553062.00 | 147771098385.98 | 140384966071.7980 | 145999793184.472000 | 25.502000 | 38237.199000 | 0.050000 | 3864590 |
| N | O | 7436302976.00 | 11150725681373.59 | 10593195316317.2250 | 11016932259657.
| R | F | 3775724970.00 | 5661603032745.34 | 5378513568019.4760 | 5593662258498.
+------
4 rows in set (2 min 1.60 sec)