Joinutility seperatorLogin utility separator Infobright.com
   
 
tpch1
Posted: 29 November 2012 09:21 AM   Ignore ]  
Newbie
Rank
Total Posts:  16
Joined  2012-11-27

hi,

i run the query:

select
      l_returnflag,
      l_linestatus,
      sum(l_quantity) as sum_qty,
      sum(l_extendedprice) as sum_base_price,
      sum(l_extendedprice*(1-l_discount)) as sum_disc_price,
      sum(l_extendedprice*(1-l_discount)*(1+l_tax)) as sum_charge,
      avg(l_quantity) as avg_qty,
      avg(l_extendedprice) as avg_price,
      avg(l_discount) as avg_disc,
      count(*) as count_order
from
      lineitem
where
      l_shipdate <= date ‘1998-12-01’
group by
      l_returnflag,
      l_linestatus
order by
      l_returnflag,
      l_linestatus;

and got the following error:
ERROR 5 (HY000): The query includes syntax that is not supported by the Infobri
ht Optimizer. Either restructure the query with supported syntax, or enable the
MySQL Query Path in the brighthouse.ini file to execute the query with reduced
erformance.

can you advise what is not supported?

Profile
 
Posted: 29 November 2012 10:43 AM   Ignore ]   [ # 1 ]  
Super Duper Member
Avatar
RankRankRankRankRank
Total Posts:  1057
Joined  2008-08-18

Hi !

instead of

l_shipdate <= date ‘1998-12-01’ 

use

l_shipdate <= '1998-12-01' 

In such a version this query works for me. What ICE version do you use?

J.

Profile
 
Posted: 29 November 2012 01:59 PM   Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  16
Joined  2012-11-27

thanks, check it now! smile

Profile
 
Posted: 29 November 2012 02:14 PM   Ignore ]   [ # 3 ]  
Newbie
Rank
Total Posts:  16
Joined  2012-11-27

i tried your suggesytion, same error, i am using the latest ice on your website: 4.03

Profile
 
Posted: 29 November 2012 02:29 PM   Ignore ]   [ # 4 ]  
Administrator
RankRankRank
Total Posts:  352
Joined  2012-01-18

4.0.7 should be the latest version

http://www.infobright.org/Download/ICE/

And the query works just fine for me with 4.0.7

Signature 

Craig Trombly
Community Manager
60 Hazelwood Dr Champaign,  IL 61820
(JavaScript must be enabled to view this email address)

Profile
 
Posted: 29 November 2012 02:33 PM   Ignore ]   [ # 5 ]  
Newbie
Rank
Total Posts:  16
Joined  2012-11-27

you are correct - i am running 4.0.7. i will try to check again the code.

Profile