RE: HASH GROUP BY

From: Rob Dempsey <Rob.Dempsey_at_5one.co.uk>
Date: Fri, 25 Apr 2008 16:51:28 +0100
Message-ID: <C9BAD64468971546A037D29F0031F0279E458A@ENET6.5one.co.uk>


Hi  

Thanks for the replies and apologies I was rather vague in my email.  

I am aware that HASH GROUP BY would not return the results in the correct order and that you need to use ORDER BY (not use the output of SORT GROUP BY)   I was more concerned with the bugs returning incorrect answer (Bug 4604970) , so examples  

At the moment I have explicity set _gby_hash_aggregation_enabled=FALSE.  

Rob  

Ps there is another bug in 10.2.0.1 and 10.2.0.2 Bug number 6471770  

From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Elliott, Patrick
Sent: 23 April 2008 22:08
To: david_at_david-aldridge.com; oracle-l_at_freelists.org Subject: RE: HASH GROUP BY  

I stand corrected. These are some serious bugs!  

Pat    


From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of David Aldridge
Sent: Wednesday, April 23, 2008 3:38 PM
To: oracle-l_at_freelists.org
Subject: Re: HASH GROUP BY

There have also been a few genuine bugs as well -- I'm using it in 10.2.0.2 and haven't seen any issues though.  

Searching the metalink bug database for
_gby_hash_aggregation_enabled=false generally shows them.

  • Original Message ---- From: "Elliott, Patrick" <patrick.elliott_at_medtronic.com> To: "Elliott, Patrick" <patrick.elliott_at_medtronic.com>; "Rob.Dempsey_at_5one.co.uk" <Rob.Dempsey_at_5one.co.uk>; "oracle-l_at_freelists.org" <oracle-l_at_freelists.org> Sent: Wednesday, April 23, 2008 3:20:58 PM Subject: RE: HASH GROUP BY

Now I understand what you mean by buggy. It no longer sorts the rows. If you have code that relies on a group by being in sorted order, then the code will no longer work. If you have had to disable this in the past to get correct results, then you will need to continue disabling it indefinitely. The only way to fix it and reenable the hashing group by is to change the code.  

select column_a, column_b, count(column_c)

from table_abc

group by column_a, column_b

order by column_a, column_b  

You need to add the order by above to your code where you just had the "group by" alone before.  

Pat    


From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Elliott, Patrick
Sent: Wednesday, April 23, 2008 1:44 PM
To: Rob.Dempsey_at_5one.co.uk; oracle-l_at_freelists.org Subject: RE: HASH GROUP BY

This is enabled by default in version 9.2.0.5 and up. Are you explicitly disabling it in your environment?  

Pat    


From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Rob Dempsey
Sent: Wednesday, April 23, 2008 12:08 PM To: oracle-l_at_freelists.org
Subject: HASH GROUP BY

Hi  

Our current Oracle version -> 10.2.0.1  

Does anyone know what version this feature has been fixed in. I would like to enable the feature, but it seems to have been very buggy (especially with wrong results)  

Rob

[CONFIDENTIALITY AND PRIVACY NOTICE] Information transmitted by this
email is proprietary to Medtronic and is intended for use only by the individual or entity to which it is addressed, and may contain information that is private, privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please delete this mail from your records. To view this notice in other languages you can either select the following link or manually copy and paste the link into the address bar of a web browser: http://emaildisclaimer.medtronic.com
<http://emaildisclaimer.medtronic.com/>  

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Apr 25 2008 - 10:51:28 CDT

Original text of this message