Hi,
I've installed monetdb on *Ubuntu 9.04 Server* with apt-get. These are
the contents of php client
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/php5-monetdb-client
/usr/share/doc/php5-monetdb-client/changelog.Debian.gz
/usr/share/doc/php5-monetdb-client/copyright
I need the moduels, where are they? Thanks. Dariusz.
Hi There,
I have some problem with the row_number() over() function.
Consider the following table:
create table "table1" ("customer" varchar(40), "product" varchar(40),
"price" double)
insert into "table1" values ('cust1', 'p1', 100)
insert into "table1" values ('cust1', 'p2', 200)
insert into "table1" values ('cust1', 'p3', 150)
insert into "table1" values ('cust2', 'p1', 300)
insert into "table1" values ('cust2', 'p3', 200)
The following query over this table:
SELECT "customer",
"product",
"sumprice",
(Row_number() OVER(PARTITION BY "customer" ORDER BY "sumprice")) as
"rank"
FROM ( SELECT "customer",
"product",
(Sum("price")) AS "sumprice"
FROM "table1"
GROUP BY "customer",
"product") AS "temp"
Returns:
Customer product sumprice rank
Cust1 p1 100 1
Cust1 p2 200 2
Cust1 p3 150 3
Cust2 p1 300 1
Cust2 p3 200 2
But doesn’t it suppose to return the following result set?:
Customer product sumprice rank
Cust1 p1 100 1
Cust1 p3 150 2
Cust1 p2 200 3
Cust2 p3 200 1
Cust2 p1 200 2
Thanks
--
Leonard Forgge
--
View this message in context: http://www.nabble.com/Possible-wrong-results-when-Querying-tp22821802p22821…
Sent from the monetdb-users mailing list archive at Nabble.com.
Hi,
Managed to work around this issue by changing the default hashing
algorithm in the configure file from SHA512 to MD.
Needed a server rebuild.
Calum
Hi,
I built monetDb from source on Centos 5.0 but get the following error
when I try to connect to the server via "mclient -lsql --time -d demo"
server requires 'SHA512' hash, but client support was not compiled in
I can't find a reference anywhere on how to resolve this, help much
appreciated!
Thanks
Calum Miller
[This is a new thread following on from "XRPC issues"]
Executing a tijah query in a module from both old and new front ends
fails. Using the old front end (\g) produces the following error:
xquery>import module namespace test="tj" at
"http://localhost:50001/export/tj.xq
";
more>execute at {"localhost"} {test:tijahSearch("Heathrow")}
more><>
doLoopLiftedRPC: error occurred at localhost:
MAPI = monetdb@localhost:50000
QUERY = import module namespace test="tj" at
"http://localhost:50001/export/tj.x
q";
ERROR = !ERROR: HTTP Error Code : 404 Bad Request
!ERROR: SOAP Fault Code : env:Sender
!ERROR: SOAP Fault Reason:
!ERROR: Error occurred during execution.
!ERROR: interpret: no matching MIL operator to
'tj_query_handler(bit, BA
T[void,BAT], BAT[oid,BAT], BAT[void,BAT], BAT[oid,oid],
BAT[oid,BAT], BAT[oid,ln
g], BAT[oid,dbl], BAT[oid,str], void)'.
!MAYBE YOU MEAN:
! tj_query_handler(bit, BAT[void,BAT], BAT[void,BAT],
BAT[void,BAT
], BAT[oid,any], BAT[oid,BAT], BAT[void,lng], BAT[void,dbl],
BAT[void,str], BAT[
void,BAT]) : BAT[void,BAT]
!
!
!ERROR: CMDhttp_post: operation failed.
MAPI = monetdb@localhost:50000
QUERY = import module namespace test="tj" at
"http://localhost:50001/export/tj.x
q";
ERROR = !ERROR: doLoopLiftedRPC: execution failed at all destinations:
!ERROR: localhost: !ERROR: HTTP Error Code : 404 Bad Request
!ERROR: SOAP Fault Code : env:Sender
!ERROR: SOAP Fault Reason:
!ERROR: Error occurred during execution.
!ERROR: interpret: no matching MIL operator to
'tj_query_handler(bit, BA
T[void,BAT], BAT[oid,BAT], BAT[void,BAT], BAT[oid,oid],
BAT[oid,BAT], BAT[oid,ln
g], BAT[oid,dbl], BAT[oid,str], void)'.
!MAYBE YOU MEAN:
! tj_query_handler(bit, BAT[void,BAT], BAT[void,BAT],
BAT[void,BAT
], BAT[oid,any], BAT[oid,BAT], BAT[void,lng], BAT[void,dbl],
BAT[void,str], BAT[
void,BAT]) : BAT[void,BAT]
!
!
!ERROR: CMDhttp_post: operation failed.
!ERROR:
!ERROR:
xquery>
Has anyone succeeded in executing a tijah query from within a module?
-- Roy
I added this information as a comment to bug *2825243* but I'm not sure if
it's the same so I thought I'd post it here also to see about getting some
feedback:
I am experiencing widespread data corruption when restarting the
May2009-SP1 MonetDB release also, but mine is much simpler.
On 64-bit ubuntu:
Linux dsvm01 2.6.24-23-server #1 SMP Wed Apr 1 22:14:30 UTC 2009 x86_64
GNU/Linux
With a table defined as follows:
CREATE TABLE "tablespace"."test_table" (
"col1" varchar(50),
"col2" varchar(50),
"col3" varchar(50),
"col4" varchar(50),
"col5" varchar(50),
"col6" int,
"col7" timestamp(7),
"col8" int,
"col9" int,
"col10" int
);
I imported 20998687 records into this table with all columns populated and
ran a couple of queries to check the data:
select count(*) from test_table ;
[ 20998687 ]
select count(*) from test_table where col1 = '' or col2 = '' or col3 = '';
[ 0 ]
select max(col7), min(col7) from test_table ;
[ 2009-07-25 14:17:15.538000, 2009-07-24 15:29:12.524000 ]
During the time I loaded the data and ran these queries I did not restart
the database, it had been up for about 3 days I then issued:
monetdb stop db
and
monetdb start db
and re-ran the queries:
select count(*) from raw_plays ;
[ 20998687 ]
select count(*) from raw_plays where col1 = '' or col2 = '' or col3 = '';
[ 20852061 ]
select max(col7), min(col7) from test_table ;
[ 2009-07-25 14:17:15.538000, -1-01-01 00:00:00.000000 ]
This is some serious data corruption, I've lost data in the vast majority
of these records!
73,
Matthew W. Jones (KI4ZIB)
http://matburt.net
Hi,
We had such a weird issue here, we are using Feb2009-SuperBall package,
we managed get our data into monetdb, but some how when we try to delete
data, it reappears under single user or readonly mode.
Here is what we did, we put database in normal mode without
gdk_single_user and gdk_readonly in monetdb5.conf. Issue a delete sql
statement in mclient, now we query the data, seem the data is gone, and
then we stop the database server, and start it in readonly mode. Then
query the data again, the data come back!!!
Seems to us the monetdb did not sync the memory with disk.
Any ideas?
Allen