EnterpriseDB: The Enterprise Postgres Company Postgres Plus Forums: The PostgreSQL Open Source Database from EnterpriseDB
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 

Group By: Interval  XML

Forum Index » GridSQL - General
Author Message
Jon_K

Member

Joined: 19 Jun 2008 13:00:13
Messages: 28
Offline

Gridsql seems to have an issue when grouping by a interval on a partitioned table;



SQL


Replicated tables do aggregate correctly however.


SQL


Thanks for looking into this.

-Jon
sam_jass

Member

Joined: 22 Oct 2009 01:22:55
Messages: 41
Offline

O/P of replicated table

GridSQL -> execute direct on all 'select age(payment_date), count(*) from test GROUP BY 1;'
+-------------------------------+
| age | count | Node |
+-------------------------------+
| 2 mons 27 days | 4 | 1 |
| 2 mons 27 days | 4 | 2 |
| 2 mons 27 days | 4 | 3 |
| 2 mons 27 days | 4 | 4 |
+-------------------------------+

O/P of partitioning table

GridSQL -> execute direct on all 'select age(payment_date), count(*) from test GROUP BY 1;'
+-------------------------------+
| age | count | Node |
+-------------------------------+
| 2 mons 27 days | 2 | 1 |
| 2 mons 27 days | 1 | 2 |
| 2 mons 27 days | 1 | 4 |
+-------------------------------+
3 row(s).


Replicated tables appear on all nodes, with each node containing the exact same data, while in
case of parititioning table data not appear on all nodes.

May be mason/andrei will shade more lights on this.


--
Thanks
Sam


Andrei_M

Senior member

Joined: 19 Dec 2008 01:37:13
Messages: 116
Offline

Hi Jon,

This is a bug with the interval data type, thanks for reporting it.
We are working on the fix, it will be available soon.
As a temporary workaround you may try and typecast the result of age() function:



Thanks
Andrei

Thanks
Andrei
Andrei_M

Senior member

Joined: 19 Dec 2008 01:37:13
Messages: 116
Offline

Hi Jon,

The bug has been fixed and fix is checked in to the CVS.

Andrei

Thanks
Andrei
 
Forum Index » GridSQL - General
Go to:   
Powered by JForum 2.1.8 © JForum Team