sorry if this is a silly question.. i'm trying to sample a percentage of a
table. from
https://www.monetdb.org/Documentation/Cookbooks/SQLrecipes/Sampling it
looks like these should work, but i must be making a mistake in my syntax
somewhere? thanks!!
create table test ( a int , b double precision );
insert into test values( 1 , 3.3 );
insert into test values( 13 , 2.3 );
insert into test values( 3 , 0.3 );
select * from test sample 0.1 ;
TypeException:user.s12_1[9]:'sample.subuniform' undefined in: _18:any :=
sample.
subuniform(_15:bat[:oid,:int], _16:dbl)
program contains errors
select * from test uniform sample 0.1 ;
TypeException:user.s13_1[9]:'sample.subuniform' undefined in: _18:any :=
sample.
subuniform(_15:bat[:oid,:int], _16:dbl)
program contains errors
# MonetDB 5 server v11.17.21 "Jan2014-SP3"
# Serving database 'demo', using 8 threads
# Compiled for x86_64-pc-winnt/64bit with 64bit OIDs dynamically linked
# Found 7.860 GiB available main-memory.
# Copyright (c) 1993-July 2008 CWI.
# Copyright (c) August 2008-2014 MonetDB B.V., all rights reserved
# Visit http://www.monetdb.org/ for further information
# Listening for connection requests on mapi:monetdb://127.0.0.1:50000/
# MonetDB/JAQL module loaded
# MonetDB/SQL module loaded
>
Hi,
just a quick question regarding to MEDIAN:
with x as (select 1.0 as a union all select 2.0 as a)
select sys.median(a) as result
from x
returns result=1
i would expect result=1.5 though
any suggestion?
thanks
milan
Hello everyone,
I'm looking for the mysql show create table equivalent.
I need this as a query to get the result in a php script.
(I already found how to do this with mclient and msqldumq)
I found this query that need to be parsed to recreate the "CREATE TABLE".
SELECT * FROM SYS.tables tbl INNER JOIN SYS.columns col ON
(tbl.id=col.table_id)
WHERE tbl.name='exemple';
But i still miss the table's constraints (primary key, unique key)
Could you tell me where to find this information ?
Thank you for helping.
Guillaume BASSOT
Web Developer
+33 (0)1 55 48 02 82
gbassot(a)inbox.fr
30, rue Vincent Moris
92240 Malakoff - France
Fax : +33 (0)1 55 48 02 79
Hello,
i want to know how much disk space each table uses. How can i find out
to which table each of the files in the database directory belong?
Thanks in advance,
Christian
Hi.
I'm currently evaluating MonetDB for an upcoming project, and am having some problems when using date criteria in the where clause.
I have a very simple table:
Create table negs (id varchar(50) not null, xdate date not null, market int, product int, notional double)
Id and xdate form a composite primary key, and I have indices on xdate, market and product.
If I run the following query:
Select * from negs where xdate = current_date
the client crashes. Similarly if I run the same query over a JDBC connection from java, the connection is lost.
Looking in the log file, it says that the database was killed due to a SIGSEGV.
Am I doing something wrong?
I am running on Ubuntu 14.04, and built MonetDB from the latest source tarball, 11.17.21.
Thanks,
Nick
www.digiterre.com
_________________
Privileged or confidential information may be contained in this message. If you are not the addressee of this message please notify the sender by return and thereafter delete the message, and you may not use, copy, disclose or rely on the information contained in it. Internet e-mail may be susceptible to data corruption, interception and unauthorised amendment for which Digiterre does not accept liability. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachments have been swept for viruses, Digiterre does not accept liability for any damage sustained as a result of viruses. Statements in this message that do not relate to the business of Digiterre are neither given nor endorsed by the company or its directors.
Hello,
I'm writing a back end for Database Supported Haskell (DSH) to target
MonetDB.
Can I please get some help with running my generated MAL-code though an
optimizer?
I do not really understand the concept behind this:
https://www.monetdb.org/Documentation/Manuals/MonetDB/Optimizers
Do I have to generate optimizer code at the appropriate places in my code?
Are the optimizer instructions woven into the MAL-Program?
Isn't there a optimizer function `a la: optimize :: MalCode -> MalCode?
Please be so kind and give me a little bit of futher explaination.
Hello:
I wonder whether the index will give monetdb query more performance or not.
For example, like tpc-h queries, if I put index on the particular fields,
then the query on over those fields will faster?
Thanks & Regards.
hi:
I am trying to measure query performance of monetdb, but not sure about the
time output by using option -ims includes the query results printing time,
or it is just the query time.
Is there some way to silence the output of queries?
Thanks.
Dear all,
as a part of my project, i have to check the performance of monetdb
column-store database. I am very new to this technology, so i dont know
where the monetdb caches its previous query results..
I want to know how can i take results for cold runs on monetdb ( i have
tried closing monetdb client and server every time i fire a query , but
doesnt seem to clear the cache and i always get hot runs result)
so please can anyone help me regarding these....
suggestions are appreciated..
thanks in advance..
Prashant Rajkotiya
M.tech. (ICT)
DA-IICT ,Gandhinagar