Hello,
Running the same query on the same data leeds to different results
between postgresql and monetdb.
I have not been able to get a simple example to reproduce the problem.
So here is what I observe:
the query:
select temps_mois.rfoperdmo as c1,
sum((case when dwhinv.dwhinv___rfodomide = 'RH' and
dwhinv.dwhinv___rfoindide = 'tech_rh_effectif_rem_reel' then
dwhinv.dwhinvqte else 0 end)) as m0
from rfoper_temps_mois as temps_mois,
dwhinv as dwhinv,
rfovsn as rfovsn_0,
rrhamv as rrhamv_1,
rrhcov as rrhcov_2,
rfoadv as rfoadv_3
where temps_mois.rfoper___rforefide = 'HPLUS'
and dwhinv.dwhinv___rforefide = 'HPLUS'
and dwhinv.dwhinv___rfodomide = 'RH'
and dwhinv.dwhinv___rfoindide = 'tech_rh_effectif_rem_reel'
and dwhinv.dwhinvdtd = temps_mois.rfoperdtd
and temps_mois.rfoperyea = '2011'
and rfovsn___rforefide = 'HPLUS'
and dwhinv.dwhinv___rfovsnide = rfovsn_0.rfovsnide
and rfovsn_0.rfovsnide = '201111_reel'
and rrhamv_1.rrhamv___rrhvemide='GRACOR'
AND rrhamv_1.rrhamvrvs=1
AND rrhamv_1.rrhamv___rforefide= 'HPLUS'
and dwhinv.dwhinv___rrhempide = rrhamv_1.rrhamvinf
and rrhamv_1.rrhamvsup = 'CEMP'
and rrhcov_2.rrhcov___rrhvcoide='CONTRATS'
AND rrhcov_2.rrhcovrvs=1
AND rrhcov_2.rrhcov___rforefide= 'HPLUS'
and dwhinv.dwhinv___rrhcntide = rrhcov_2.rrhcovinf
and rrhcov_2.rrhcovsup = 'CONTRATS'
and rfoadv_3.rfoadv___rfovdeide='STRC'
AND rfoadv_3.rfoadvrvs=1
AND rfoadv_3.rfoadv___rforefide= 'HPLUS'
and dwhinv.dwhinv_p2rfodstide = rfoadv_3.rfoadvinf
and rfoadv_3.rfoadvsup = 'HPLUS'
group by c1
order by c1
Postgresql result:
c1 | m0
----+-----------------
01 | 7111.5376967750
02 | 7100.9108821426
03 | 7150.2597967742
04 | 7151.4283666667
05 | 7109.1641451610
06 | 6976.2108421239
07 | 6329.7404193564
08 | 6302.9823032247
09 | 6426.9459633351
10 | 6519.6889580648
11 | 6549.5235033402
12 | 6492.5477161292
(12 lignes)
Monetdb result:
+------+----------------------+
| c1 | m0 |
+======+======================+
| 12 | 1.000000 |
| 11 | 1.000000 |
| 10 | 2.000000 |
| 09 | 0.366667 |
| 08 | 1.000000 |
| 07 | 1.000000 |
| 06 | 1.000000 |
| 05 | 3.000000 |
| 04 | 4.000000 |
| 03 | 15.000000 |
| 02 | 9.964286 |
| 01 | 1.000000 |
+------+----------------------+
12 tuples (212.346ms)
As you see, all "m0" values are very different.
I have no idea of what is causing this but if I modify the query in
order to simplify the CASE...WHEN...ELSE part of the select, it produce
the expected result:
replacing sum((case when dwhinv.dwhinv___rfodomide = 'RH' and
dwhinv.dwhinv___rfoindide = 'tech_rh_effectif_rem_reel' then
dwhinv.dwhinvqte else 0 end)) as m0
by sum((case when dwhinv.dwhinv___rfoindide =
'tech_rh_effectif_rem_reel' then dwhinv.dwhinvqte else 0 end)) as m0
Its not exactly the same query but it must leeds to the same result due
to my test datas (its the case in postgres)
I join to this email two files with the TRACES, respectively for the
request with bad/correct result (ko.txt/ok.txt)
Config:
Ubuntu Server 11.04 x64
MonetDB v11.7.9 (Dec2011-SP2), MonetDB Database Server v1.6
(Dec2011-SP2), MonetDB Database Server Toolkit v1.0 (Dec2011-SP2)
Thank you very much for your help!!
--
*Matthieu Guamis*
*Logo Axège <http://www.axege.com/>* /Axège//
23,rue Saint-Simon
63000 Clermont-Ferrand/
Tél: +33 (0)4 63 05 95 40
Fax: +33 (0)4.73.70.65.29
Email: matthieu.guamis(a)axege.com <mailto:matthieu.guamis@axege.com>
Sorry if it was asked before, I can't find a comprehensive list of
functions available.
Is it possible to somehow implement something like this:
SELECT IF(col1>0,'Negative','Positive') as Sign, IFNULL(col2,'Empty',col2)
as col2 FROM table;
// it's just an example, not the exact query :)
Thanx!
hi,
I want to see mserver5 configure for example dbfarm,dbname. I don't
know the command and hwo i set the gdk-vmtrim =no .I don't know hwo to set
the GDK PARAMETERS .Can you guys help me?
best reguards,
guangliang
Hi,
I have a question, i need comparison the execution query times between
MonetDB and SQL 2008 in Data Warehouse (applying a different orientations
database systems). But i have a problem, i used the AdventureWorkR2 2008 but
i don't know how i can migrate the information to MonetDB.
To compare the same data.
Someone help me? Please. It's very important.
Thanks,
Raquel
--
View this message in context: http://old.nabble.com/Migration-DW-to-MonetDB-tp34348184p34348184.html
Sent from the monetdb-users mailing list archive at Nabble.com.
hi ,
when I ran some queries on monetdb,I found that the memory was
automatically released by monetdb.And it needs extra time to load data into
memory again.I don't know why and if there are some triggers in monetdb?
Thank you for helps.
best reguards,
guangliang
Hi Folks,
I've seen that you re-implemented the grouping functions.
Will it have effect on performance (on non-ordered columns)?
Right now we're running MonetDB on a 1billion data set, mostly for grouping
and aggregating, we're very happy with the performance, but of-course, any
improvement is highly welcome :).
If it does affect performance, we'll be the first to test and report.
you guys rock!, keep up the great work.
--
View this message in context: http://old.nabble.com/New-Grouping-Implementation-tp34348175p34348175.html
Sent from the monetdb-users mailing list archive at Nabble.com.
Hi:
does anybody know what's the problem with the copy into of locked?
we want to use concurrent copy into to a table, seems montdb not good at
this. some body says add locked, we try, but the database crached.
we just test like this
copy 200 OFFSET 1 RECORDS into f_activity from 'd:\bcp.txt' USING
DELIMITERS '|','\n' NULL AS '' LOCKED
seems need single user mode, but how to set single user mode?
Lixiaohua
Shanghai,China
hello,
can I use mserver5 to control loading data into memory or removing data
from memory ? I don't know how to configure or the command.I am fresh new
about Monetdb so please forgive my unknowing.Thank you very much for the
commands.
best regards,
guangliang
The MonetDB team at CWI/MonetDB BV is pleased to announce the
Jul2012-SP1 bugfix release of the MonetDB suite of programs.
More information about MonetDB can be found on our website at
<http://www.monetdb.org/>.
For details on this release, please see the release notes at
<http://www.monetdb.org/Downloads/ReleaseNotes>.
As usual, the download location is <http://dev.monetdb.org/downloads/>.
Jul 2012-SP1 bugfix release
Java Module * Fixed adaptive cache size used when retrieving
results, not to cause divide by zero errors when
memory gets short, bug #3119.
Client Package * mclient no longer prints the SQLSTATE at the start of
each error returned by the SQL-server.
MonetDB5 Server * The server now distinguishes between starting and
started states, such that monetdbd can wait for it to
finish starting.
Merovingian * Starting a server now waits for as long as the server
needs to possibly recover, bug #3134. In case of a
long wait, the monetdbd logfile gives extra
information on what the server is doing to recover.
* Fixed a crash of monetdbd when local databases were
unshared, bug #3135
* Resolved a problem where automatic starting of a
database initiated by multiple clients at the same
time could cause failed starts. Bug #3107
Bug Fixes * 3075: inconsistent declaration of algebra.markH with 3
input arguments
* 3090: crashed if using single identifier for where
condition
* 3093: sql fail if use scalar subquery with alias
* 3107: concurrent connections to the same stopped
database yield in multiple mserver5 starts by monetdbd
* 3119: MonetConnection$ResultSetResponse throws
java.lang.ArithmeticException: divide by zero
* 3132: test/BugTracker-2011/func_iter_vs_bulk.Bug-2826
fails
* 3134: Database gets killed by timeout during startup
* 3135: monetdbd crash while creating & loading database
Does MonetDB has some parameter to modify the case insensitive option?
when end user write sql, usually we want to case insensitive.
lixiaohua
Shanghai,China