issue_owner_repo
listlengths
2
2
issue_body
stringlengths
0
261k
issue_title
stringlengths
1
925
issue_comments_url
stringlengths
56
81
issue_comments_count
int64
0
2.5k
issue_created_at
stringlengths
20
20
issue_updated_at
stringlengths
20
20
issue_html_url
stringlengths
37
62
issue_github_id
int64
387k
2.46B
issue_number
int64
1
127k
[ "MonetDB", "MonetDB" ]
Date: 2011-05-13 20:52:57 +0200 From: Holger &lt;<holger.pirk>&gt; To: SQL devs &lt;<bugs-sql>&gt; Version: -- development CC: @njnes Last updated: 2011-05-31 13:59:27 +0200 ## Comment 15805 Date: 2011-05-13 20:52:57 +0200 From: Holger &lt;<holger.pirk>&gt; User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-us) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1 Build Identifier: Binary copy of variable sized data doesn't work. This is, however, only checked when actually importing into the variable sized column. All files that were imported in the same statement but before the variable sized column import are moved from their original position in the file system. Reproducible: Always ### Steps to Reproduce: 1. Create a table with one fixed width and one variable width column 2. Do a copy into with binary data. 3. ### Actual Results: mclient output: ERROR: BATattach: bad tail type (varsized) File with fixed width data is gone ### Expected Results: mclient output: ERROR: BATattach: bad tail type (varsized) File with fixed width data is not gone ## Comment 15807 Date: 2011-05-16 21:40:32 +0200 From: @njnes could you add an sql example ## Comment 15808 Date: 2011-05-16 21:50:36 +0200 From: @njnes fixed by checking first if we may load variable sized types. (if we fail for another reason, we still won't move the files back (ie be carefull when using this feature)
Copy into should rollback correctly (i.e. restore the files) on a failure
https://api.github.com/repos/MonetDB/MonetDB/issues/2810/comments
0
2020-11-30T11:42:25Z
2024-06-27T11:51:55Z
https://github.com/MonetDB/MonetDB/issues/2810
753,406,176
2,810
[ "MonetDB", "MonetDB" ]
Date: 2011-05-09 15:18:31 +0200 From: @grobian To: SQL devs &lt;<bugs-sql>&gt; Version: 11.3.1 (Apr2011) [obsolete] CC: @njnes Blocker for: #2781 Last updated: 2011-05-10 23:05:58 +0200 ## Comment 15789 Date: 2011-05-09 15:18:31 +0200 From: @grobian sql>select now(); +----------------------------------+ | current_timestamp | +==================================+ | 2011-05-09 13:06:40.000000+00:00 | +----------------------------------+ 1 tuple (0.603ms) sql>set time zone interval '+02:00' hour to minute; sql>select now(); +----------------------------------+ | current_timestamp | +==================================+ | 2011-05-09 15:07:22.000000+02:00 | +----------------------------------+ all well sofar sql>create table t (ts timestamp, tz timestamp with time zone); operation successful sql>insert into t values (timestamp '2011-05-09 15:07:22.000000', timestamp '2011-05-09 15:07:22.000000'); 1 affected row (0.927ms) sql>select * from t; +----------------------------+----------------------------------+ | ts | tz | +============================+==================================+ | 2011-05-09 15:07:22.000000 | 2011-05-09 17:07:22.000000+02:00 | +----------------------------+----------------------------------+ 1 tuple (1.050ms) sql> I expected the tz field to show '2011-05-09 15:07:22.000000+02:00' as I expected the insert into to use the default time zone set. Apparently it assumes +00:00 instead: sql>set time zone interval '+00:00' hour to minute; sql>insert into t values (timestamp '2011-05-09 15:07:22.000000', timestamp '2011-05-09 15:07:22.000000'); 1 affected row (0.875ms) sql>select * from t; +----------------------------+----------------------------------+ | ts | tz | +============================+==================================+ | 2011-05-09 15:07:22.000000 | 2011-05-09 15:07:22.000000+00:00 | | 2011-05-09 15:07:22.000000 | 2011-05-09 15:07:22.000000+00:00 | +----------------------------+----------------------------------+ 2 tuples (1.146ms) sql> ## Comment 15791 Date: 2011-05-10 23:05:04 +0200 From: @njnes this is expected behaviour. SQL requires you to specify a timezone in the string. If its not given GMT is used. ## Comment 15792 Date: 2011-05-10 23:05:58 +0200 From: @njnes others (postgres) has the same results
time zone not respected when inserting
https://api.github.com/repos/MonetDB/MonetDB/issues/2809/comments
0
2020-11-30T11:42:22Z
2024-06-28T07:23:12Z
https://github.com/MonetDB/MonetDB/issues/2809
753,406,133
2,809
[ "MonetDB", "MonetDB" ]
Date: 2011-05-05 17:04:17 +0200 From: Daniel Boesswetter &lt;<daniel.boesswetter>&gt; To: SQL devs &lt;<bugs-sql>&gt; Version: 11.3.1 (Apr2011) [obsolete] CC: @njnes Last updated: 2011-05-31 13:59:29 +0200 ## Comment 15788 Date: 2011-05-05 17:04:17 +0200 From: Daniel Boesswetter &lt;<daniel.boesswetter>&gt; User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110422 Ubuntu/9.10 (karmic) Firefox/3.6.17 Build Identifier: When counting the number of values in a column and the number of distinct values in the same column in the same query, the result is wrong. Reproducible: Always ### Steps to Reproduce: sql>select count(name) from tables; +------+ | L17 | +======+ | 37 | +------+ 1 tuple (3.446ms) sql>select count(distinct name) from tables; +------+ | L20 | +======+ | 31 | +------+ 1 tuple (4.475ms) sql>select count(name) , count(distinct name) from tables; +------+------+ | L21 | L22 | +======+======+ | 37 | 37 | +------+------+ ### Actual Results: 37 / 37 ### Expected Results: 37 / 31 ## Comment 15793 Date: 2011-05-10 23:13:06 +0200 From: @njnes Changeset [aad21c635125](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=aad21c635125) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=aad21c635125](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=aad21c635125) Changeset description: fix bug #2808 wrong results for count()/count(distinct) on the same attribute (todo at test) ## Comment 15795 Date: 2011-05-11 16:44:42 +0200 From: @njnes Changeset [73af4e753888](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=73af4e753888) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=73af4e753888](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=73af4e753888) Changeset description: fix bug #2808 wrong results for count()/count(distinct) on the same attribute (todo at test) (transplanted from aad21c6351253c566c3f63f0121141097ff2713b) ## Comment 15796 Date: 2011-05-13 11:16:59 +0200 From: @njnes Changeset [c12f78cc0965](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c12f78cc0965) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=c12f78cc0965](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=c12f78cc0965) Changeset description: added test for bug #2808 ## Comment 15798 Date: 2011-05-13 15:28:18 +0200 From: @njnes fixed by properly comparing aggr expressions (including flag indicating distinct) ## Comment 15804 Date: 2011-05-13 16:01:23 +0200 From: @njnes Changeset [4eb2498ec8e7](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=4eb2498ec8e7) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=4eb2498ec8e7](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=4eb2498ec8e7) Changeset description: added test for bug #2808 (transplanted from c12f78cc0965b60bdffeda0f2bf1c853de1f232f) ## Comment 15810 Date: 2011-05-16 21:50:58 +0200 From: @njnes Changeset [f169139660d8](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f169139660d8) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=f169139660d8](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=f169139660d8) Changeset description: add test for count-count-distinct bug #2808 check variable sized types on binary copy into (solves bug #2010). ## Comment 15962 Date: 2011-07-17 19:50:46 +0200 From: @drstmane Changeset [74e5863a3248](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=74e5863a3248) made by Stefan Manegold <Stefan.Manegold@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=74e5863a3248](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=74e5863a3248) Changeset description: moved test count-count-distinct.Bug-2808 to be first in directory, such that its output is independent of other tests
wrong results for count()/count(distinct) on the same attribute
https://api.github.com/repos/MonetDB/MonetDB/issues/2808/comments
0
2020-11-30T11:42:20Z
2024-06-27T11:51:53Z
https://github.com/MonetDB/MonetDB/issues/2808
753,406,107
2,808
[ "MonetDB", "MonetDB" ]
Date: 2011-05-05 16:34:58 +0200 From: Daniel Boesswetter &lt;<daniel.boesswetter>&gt; To: SQL devs &lt;<bugs-sql>&gt; Version: 2.40.1 (Oct2010) [obsolete] CC: @njnes Last updated: 2011-05-31 13:59:26 +0200 ## Comment 15787 Date: 2011-05-05 16:34:58 +0200 From: Daniel Boesswetter &lt;<daniel.boesswetter>&gt; User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110422 Ubuntu/9.10 (karmic) Firefox/3.6.17 Build Identifier: Attached you will find a SQL script which creates 4 tables, inserts a few tuples and then queries them twice: the first query produces too few rows, but after dropping a primary key on one of the tables (it matters which one), the second query returns the correct results. Looks like the optimizer optimizes a little too eagerly in the presence of primary keys. Reproducible: Always ### Steps to Reproduce: --drop table facts; create table facts (a_id bigint, b_id bigint); insert into facts values(1,1); insert into facts values(2,1); insert into facts values(3,1); insert into facts values(4,1); insert into facts values(5,1); insert into facts values(6,1); insert into facts values(1,2); insert into facts values(2,2); insert into facts values(3,2); insert into facts values(4,2); insert into facts values(5,2); insert into facts values(6,2); insert into facts values(1,3); insert into facts values(2,3); insert into facts values(3,3); insert into facts values(4,3); insert into facts values(5,3); insert into facts values(6,3); --drop table a; create table a (id bigint not null primary key, c_id bigint); insert into a values(1,1); insert into a values(2,1); insert into a values(3,2); insert into a values(4,2); insert into a values(5,3); insert into a values(6,3); --drop table b; create table b (id bigint not null primary key, name varchar(20)); insert into b values(1,'b1'); insert into b values(2,'b2'); insert into b values(3,'b3'); --drop table c; create table c (id bigint not null primary key, name varchar(20)); insert into c values(1,'c1'); insert into c values(2,'c2'); insert into c values(3,'c3'); -- produces a wrong result: select b.name, c.id, c.name from facts left join a on a_id = a.id left join b on b_id = b.id left join c on c_id = c.id group by b.name, c.name, c.id; alter table c drop constraint c_id_pkey; -- produces correct result: select b.name, c.id, c.name from facts left join a on a_id = a.id left join b on b_id = b.id left join c on c_id = c.id group by b.name, c.name, c.id; ### Actual Results: +------+------+------+ | name | id | name | +======+======+======+ | b1 | 1 | c1 | | b1 | 2 | c2 | | b1 | 3 | c3 | +------+------+------+ ### Expected Results: +------+------+------+ | name | id | name | +======+======+======+ | b1 | 1 | c1 | | b1 | 2 | c2 | | b1 | 3 | c3 | | b2 | 1 | c1 | | b2 | 2 | c2 | | b2 | 3 | c3 | | b3 | 1 | c1 | | b3 | 2 | c2 | | b3 | 3 | c3 | +------+------+------+ Michael Sioutis has reproduced the bug with the "latest development release" which he reported to monetdb-users on 09.04.2011. ## Comment 15797 Date: 2011-05-13 15:27:23 +0200 From: @njnes fixed (was a bug in exp_find_name). Added test to BugTracker-2011 ## Comment 15801 Date: 2011-05-13 15:54:47 +0200 From: @njnes Changeset [7316fbd4e9d2](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7316fbd4e9d2) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=7316fbd4e9d2](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=7316fbd4e9d2) Changeset description: fix bug #2798 (use correct old project list) fixed bug #2807 (aggr on with primary key problems). Properly find column using an expression. ## Comment 15802 Date: 2011-05-13 15:54:49 +0200 From: @njnes Changeset [f1da207efb5c](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f1da207efb5c) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=f1da207efb5c](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=f1da207efb5c) Changeset description: added test for bug #2807
wrong results for group by queries in the presence of primary keys
https://api.github.com/repos/MonetDB/MonetDB/issues/2807/comments
0
2020-11-30T11:42:17Z
2024-06-27T11:51:52Z
https://github.com/MonetDB/MonetDB/issues/2807
753,406,076
2,807
[ "MonetDB", "MonetDB" ]
Date: 2011-05-04 15:47:31 +0200 From: Milena Ivanova &lt;<M.Ivanova>&gt; To: SQL devs &lt;<bugs-sql>&gt; Version: -- development CC: @njnes Last updated: 2011-05-31 13:59:27 +0200 ## Comment 15785 Date: 2011-05-04 15:47:31 +0200 From: Milena Ivanova &lt;<M.Ivanova>&gt; The problem appears in a specific case of queries over views. If the view is defined with an open-interval predicate over a column X, a subsequent query over the view containing a predicate over the same column X gives wrong results. Attached file reproduces the bug. A view defined with a closed-interval predicate behaves correctly. ## Comment 15786 Date: 2011-05-04 15:49:24 +0200 From: Milena Ivanova &lt;<M.Ivanova>&gt; Created attachment 61 reproduce viw predicate bug > Attached file: [bug.sql](https://github.com/MonetDB/monetdb-issues-attachments/blob/master/issue_2806_bug.sql_61) (application/octet-stream, 401 bytes) > Description: reproduce viw predicate bug ## Comment 15799 Date: 2011-05-13 15:40:30 +0200 From: @njnes this seems unrelated to views, ie also sql>plan select id,ival from xx where ival >=2 and ival <5 and ival between 2 and 5; +------------------------------------------------------------------------------+ | rel | +==============================================================================+ | project ( | | | select ( | | | | table(sys.xx) [ xx.id NOT NULL, xx.ival, xx.%TID% NOT NULL, xx.%xx_id_pk | : ey NOT NULL ] : | | ) [ convert(2 from tinyint to int) <= xx.ival < convert(2 from tinyint to | : int) ] : | ) [ xx.id NOT NULL, xx.ival ] | +------------------------------------------------------------------------------+ ## Comment 15803 Date: 2011-05-13 15:54:50 +0200 From: @njnes Changeset [03602986e015](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=03602986e015) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=03602986e015](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=03602986e015) Changeset description: fixed bug in merging of single (theta expressions) into range expressions. (fixes bug #2806)
Wrong logic in predicates over views defined with an open-interval predicate
https://api.github.com/repos/MonetDB/MonetDB/issues/2806/comments
0
2020-11-30T11:42:15Z
2024-06-27T11:51:51Z
https://github.com/MonetDB/MonetDB/issues/2806
753,406,058
2,806
[ "MonetDB", "MonetDB" ]
Date: 2011-04-27 16:11:41 +0200 From: monetdb To: SQL devs &lt;<bugs-sql>&gt; Version: 11.13.3 (Oct2012) CC: @njnes, @elpetrak Last updated: 2013-01-22 09:29:20 +0100 ## Comment 15743 Date: 2011-04-27 16:11:41 +0200 From: monetdb User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) Build Identifier: row_number() may fail with the following error: MALException:algebra.leftfetchjoin:GDK reported error. ERROR: BATfetchjoin: head column of right input must be dense See repro for an example. Reproducible: Always ### Steps to Reproduce: (Table schema available inside additional information) The following query works: with Raw as ( select origin_state, "month", day_of_month, count(*) as value from ontime where "year" = 2010 and cancelled = 0 group by origin_state, "month", day_of_month ) select Raw.*, rank() over (partition by origin_state order by value desc) as rn from Raw; But replace rank() with row_number() and the query fails. ### Actual Results: MALException:algebra.leftfetchjoin:GDK reported error. ERROR: BATfetchjoin: head column of right input must be dense ### Expected Results: The query should return a result set similar to the one with rank or dense_rank (but it should break ties). Table DDL: CREATE TABLE \"sys\".\"ontime\" ( \"year\" INTEGER, \"quarter\" INTEGER, \"month\" INTEGER, \"day_of_month\" INTEGER, \"day_of_week\" INTEGER, \"flight_date\" DATE, \"unique_carrier\" CHAR(7), \"carrier\" CHAR(2), \"origin\" CHAR(5), \"origin_state\" CHAR(2), \"dest\" CHAR(5), \"dest_state\" CHAR(5), \"dep_time\" INTEGER, \"dep_delay\" INTEGER, \"arr_time\" INTEGER, \"arr_delay\" INTEGER, \"cancelled\" INTEGER, \"cancellation_code\" CHAR(1) ); ## Comment 15811 Date: 2011-05-16 22:13:31 +0200 From: @njnes without data the query seems to work just fine, ie do you have some data on which it fails? ## Comment 18202 Date: 2012-11-28 13:45:39 +0100 From: @elpetrak Changeset [b5e2f5647000](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b5e2f5647000) made by Eleni Petraki <petraki@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=b5e2f5647000](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=b5e2f5647000) Changeset description: Bug #2805: row_number doesn't work in complex query. ## Comment 18387 Date: 2013-01-22 09:29:20 +0100 From: @sjoerdmullender Oct2012-SP3 has been released.
row_number doesn't work in complex query
https://api.github.com/repos/MonetDB/MonetDB/issues/2805/comments
0
2020-11-30T11:42:12Z
2024-06-27T11:51:50Z
https://github.com/MonetDB/MonetDB/issues/2805
753,406,030
2,805
[ "MonetDB", "MonetDB" ]
Date: 2011-04-14 18:23:30 +0200 From: @drstmane To: SQL devs &lt;<bugs-sql>&gt; Version: -- development CC: ccummins, renalkoclok, @yzchang Last updated: 2020-06-03 09:20:49 +0200 ## Comment 15735 Date: 2011-04-14 18:23:30 +0200 From: @drstmane For fixed-width (numerical, non-string) data, we already have the COPY [ <int_val> RECORDS ] INTO <table_name> FROM <list_of_filenames> aka. "attach", that uses the given (properly formatted) binary files as-is as column representations in MonetDB. This should be matched with a COPY <subquery> INTO <list_of_filenames> aka. "export", that stores the columns of the <subqueries>'s result as-is in binary format into the given files. ## Comment 17677 Date: 2012-08-24 14:55:55 +0200 From: @sjoerdmullender Jul2012-SP1 has been released. ## Comment 18119 Date: 2012-11-27 15:28:43 +0100 From: @yzchang No test for feature request ## Comment 20677 Date: 2015-02-26 09:23:56 +0100 From: Clint Cummins &lt;<ccummins>&gt; Sjoerd Mullender's Comment 1 in 2012 might suggest that this feature has been implemented and released in Jul2012-SP2. I tried it on the Windows64 Jan2014-SP2 version, and it does not appear to be available. COPY fd562 INTO ('path-to-col1', 'path-to=col2', ...); yields syntax error, unexpected IDENT , expecting BINARY or INTO in: "COPY fd562" I wasn't entirely surprised, since I was not sure how this syntax without the BINARY keyword would handle a single column table (would it be a binary file or a CSV?). The reason I'm interested in such an enhancement would be for a BINARY DUMP/RESTORE . It seems that the frequent Feature Releases may require DUMP/RESTORE for existing databases. Doing DUMP/RESTORE in BINARY would seem to speed up this process, which would be very helpful for the large databases which MonetDB works so well on. Even better than Stefan Manegold's proposed syntax would be an option to specify a single path to an output FOLDER. Then users would not have to specify all the output column names and prepend the folder path to each. E.g. COPY BINARY subquery INTO 'path-to-folder'; or \D 'path-to-folder' for a binary dump of all tables in database. Similarly, COPY BINARY INTO tablename could use a FOLDER and default all the filenames within it to the column names: COPY BINARY INTO tablename FROM 'path-to-folder'; ## Comment 20678 Date: 2015-02-26 10:22:31 +0100 From: @sjoerdmullender (In reply to comment 3) > Sjoerd Mullender's Comment 1 in 2012 might suggest that this feature has > been implemented and released in Jul2012-SP2. If it did, then that was not the purpose of the comment. I merely changed the applicable version number of the bug report. As in, now that Jul20120-SP2 has been released and this wasn't in there, the report applies to the next version. ## Comment 27778 Date: 2020-06-03 09:20:49 +0200 From: @sjoerdmullender The content of attachment 679 has been deleted for the following reason: spam
binary "export": COPY <subquery> INTO <list_of_binary_files_one_per_column>
https://api.github.com/repos/MonetDB/MonetDB/issues/2804/comments
0
2020-11-30T11:42:10Z
2024-06-28T13:40:45Z
https://github.com/MonetDB/MonetDB/issues/2804
753,406,002
2,804
[ "MonetDB", "MonetDB" ]
Date: 2011-04-11 16:52:54 +0200 From: Vladimir Vlach &lt;<vlach>&gt; To: MonetDB5 devs &lt;<bugs-monetdb5>&gt; Version: -- development CC: @mlkersten, risc Last updated: 2015-10-02 08:59:26 +0200 ## Comment 15731 Date: 2011-04-11 16:52:54 +0200 From: Vladimir Vlach &lt;<vlach>&gt; User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16 Build Identifier: I have a table with 3000+ columns and about 20.000 rows. To fill the table with test data I execute following SQL query in Python followed by COMMIT. Once I update 30-40 tables the server will crash. Once there is no more available swap space the server will crash. Sample Script loop: ------------------- for i in range(3000): sql = "UPDATE reportdata_2010 SET column_float_type_%s=RAND() WHERE column_float_type_%s IS NULL" % (i, i) cursorUpdate.execute(sql) connection.commit() +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- root@monetdb:~ uname -a Linux monetdb 2.6.32-5-amd64 1 SMP Mon Mar 7 21:35:22 UTC 2011 x86_64 GNU/Linux root@monetdb:~ free total used free shared buffers cached Mem: 3803280 542080 3261200 0 61628 212028 -/+ buffers/cache: 268424 3534856 Swap: 8835708 0 8835708 Reproducible: Always Log file error: Apr 8 09:28:25 monetdb kernel: [106708.744036] mserver5[6398]: segfault at 28 ip 00007f53cddfa0c8 sp 00007f531652da80 error 4 in lib_sql.so[7f53cdd5e000+146000] Apr 8 12:10:20 monetdb kernel: [116423.607958] mserver5 invoked oom-killer: gfp_mask=0x280da, order=0, oom_adj=0 Apr 8 12:10:20 monetdb kernel: [116423.607963] mserver5 cpuset=/ mems_allowed=0 Apr 8 12:10:20 monetdb kernel: [116423.607966] Pid: 7030, comm: mserver5 Not tainted 2.6.32-5-amd64 1 Apr 8 12:10:20 monetdb kernel: [116423.607968] Call Trace: Apr 8 12:10:20 monetdb kernel: [116423.607975] [<ffffffff810b60e8>] ? oom_kill_process+0x7f/0x23f Apr 8 12:10:20 monetdb kernel: [116423.607978] [<ffffffff810b660c>] ? __out_of_memory+0x12a/0x141 Apr 8 12:10:20 monetdb kernel: [116423.607980] [<ffffffff810b6763>] ? out_of_memory+0x140/0x172 Apr 8 12:10:20 monetdb kernel: [116423.607984] [<ffffffff810ba4c1>] ? __alloc_pages_nodemask+0x4e5/0x5f4 Apr 8 12:10:20 monetdb kernel: [116423.607988] [<ffffffff810bc479>] ? ____pagevec_lru_add+0x160/0x176 Apr 8 12:10:20 monetdb kernel: [116423.607992] [<ffffffff810cc981>] ? handle_mm_fault+0x27a/0x80f Apr 8 12:10:20 monetdb kernel: [116423.607995] [<ffffffff810d1cb4>] ? do_brk+0x227/0x307 Apr 8 12:10:20 monetdb kernel: [116423.607999] [<ffffffff812fe6b6>] ? do_page_fault+0x2e0/0x2fc Apr 8 12:10:20 monetdb kernel: [116423.608019] [<ffffffff812fc555>] ? page_fault+0x25/0x30 Apr 8 12:10:20 monetdb kernel: [116423.608022] Mem-Info: Apr 8 12:10:20 monetdb kernel: [116423.608024] Node 0 DMA per-cpu: Apr 8 12:10:20 monetdb kernel: [116423.608027] CPU 0: hi: 0, btch: 1 usd: 0 Apr 8 12:10:20 monetdb kernel: [116423.608029] CPU 1: hi: 0, btch: 1 usd: 0 Apr 8 12:10:20 monetdb kernel: [116423.608031] Node 0 DMA32 per-cpu: Apr 8 12:10:20 monetdb kernel: [116423.608033] CPU 0: hi: 186, btch: 31 usd: 30 Apr 8 12:10:20 monetdb kernel: [116423.608035] CPU 1: hi: 186, btch: 31 usd: 1 Apr 8 12:10:20 monetdb kernel: [116423.608037] Node 0 Normal per-cpu: Apr 8 12:10:20 monetdb kernel: [116423.608039] CPU 0: hi: 186, btch: 31 usd: 30 Apr 8 12:10:20 monetdb kernel: [116423.608041] CPU 1: hi: 186, btch: 31 usd: 0 Apr 8 12:10:20 monetdb kernel: [116423.608045] active_anon:666438 inactive_anon:258874 isolated_anon:32 Apr 8 12:10:20 monetdb kernel: [116423.608046] active_file:24 inactive_file:79 isolated_file:0 Apr 8 12:10:20 monetdb kernel: [116423.608047] unevictable:0 dirty:0 writeback:648 unstable:0 Apr 8 12:10:20 monetdb kernel: [116423.608047] free:6690 slab_reclaimable:1478 slab_unreclaimable:2055 Apr 8 12:10:20 monetdb kernel: [116423.608048] mapped:46 shmem:1 pagetables:7198 bounce:0 Apr 8 12:10:20 monetdb kernel: [116423.608050] Node 0 DMA free:15024kB min:28kB low:32kB high:40kB active_anon:308kB inactive_anon:508kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15264kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:4kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes Apr 8 12:10:20 monetdb kernel: [116423.608058] lowmem_reserve[]: 0 2743 3753 3753 Apr 8 12:10:20 monetdb kernel: [116423.608061] Node 0 DMA32 free:9736kB min:5716kB low:7144kB high:8572kB active_anon:2170028kB inactive_anon:540708kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:2809760kB mlocked:0kB dirty:0kB writeback:1320kB mapped:120kB shmem:4kB slab_reclaimable:1464kB slab_unreclaimable:1028kB kernel_stack:64kB pagetables:15200kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes Apr 8 12:10:20 monetdb kernel: [116423.608069] lowmem_reserve[]: 0 0 1010 1010 Apr 8 12:10:20 monetdb kernel: [116423.608071] Node 0 Normal free:2000kB min:2104kB low:2628kB high:3156kB active_anon:495416kB inactive_anon:494408kB active_file:96kB inactive_file:188kB unevictable:0kB isolated(anon):0kB isolated(file):128kB present:1034240kB mlocked:0kB dirty:0kB writeback:1272kB mapped:64kB shmem:0kB slab_reclaimable:4448kB slab_unreclaimable:7192kB kernel_stack:1000kB pagetables:13588kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:266 all_unreclaimable? no Apr 8 12:10:20 monetdb kernel: [116423.608078] lowmem_reserve[]: 0 0 0 0 Apr 8 12:10:20 monetdb kernel: [116423.608080] Node 0 DMA: 2*4kB 3*8kB 3*16kB 1*32kB 3*64kB 3*128kB 0*256kB 0*512kB 2*1024kB 2*2048kB 2*4096kB = 15024kB Apr 8 12:10:20 monetdb kernel: [116423.608086] Node 0 DMA32: 1422*4kB 6*8kB 4*16kB 7*32kB 3*64kB 2*128kB 1*256kB 2*512kB 2*1024kB 0*2048kB 0*4096kB = 9800kB Apr 8 12:10:20 monetdb kernel: [116423.608092] Node 0 Normal: 104*4kB 0*8kB 1*16kB 9*32kB 9*64kB 4*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2064kB Apr 8 12:10:20 monetdb kernel: [116423.608098] 5028 total pagecache pages Apr 8 12:10:20 monetdb kernel: [116423.608099] 4888 pages in swap cache Apr 8 12:10:20 monetdb kernel: [116423.608101] Swap cache stats: add 9115342, delete 9110454, find 1415731/1861016 Apr 8 12:10:20 monetdb kernel: [116423.608102] Free swap = 0kB Apr 8 12:10:20 monetdb kernel: [116423.608103] Total swap = 7427064kB Apr 8 12:10:20 monetdb kernel: [116423.621726] 983024 pages RAM Apr 8 12:10:20 monetdb kernel: [116423.621728] 32204 pages reserved Apr 8 12:10:20 monetdb kernel: [116423.621729] 457 pages shared Apr 8 12:10:20 monetdb kernel: [116423.621730] 943744 pages non-shared Apr 8 12:10:20 monetdb kernel: [116423.662539] mserver5 invoked oom-killer: gfp_mask=0x200da, order=0, oom_adj=0 Apr 8 12:10:20 monetdb kernel: [116423.662542] mserver5 cpuset=/ mems_allowed=0 Apr 8 12:10:20 monetdb kernel: [116423.662544] Pid: 6922, comm: mserver5 Not tainted 2.6.32-5-amd64 1 Apr 8 12:10:20 monetdb kernel: [116423.662546] Call Trace: Apr 8 12:10:20 monetdb kernel: [116423.662550] [<ffffffff810b60e8>] ? oom_kill_process+0x7f/0x23f Apr 8 12:10:20 monetdb kernel: [116423.662553] [<ffffffff810b660c>] ? __out_of_memory+0x12a/0x141 Apr 8 12:10:20 monetdb kernel: [116423.662555] [<ffffffff810b6763>] ? out_of_memory+0x140/0x172 Apr 8 12:10:20 monetdb kernel: [116423.662558] [<ffffffff8119759b>] ? __bitmap_weight+0x3a/0x7e Apr 8 12:10:20 monetdb kernel: [116423.662561] [<ffffffff810ba4c1>] ? __alloc_pages_nodemask+0x4e5/0x5f4 Apr 8 12:10:20 monetdb kernel: [116423.662565] [<ffffffff810d8b60>] ? read_swap_cache_async+0x5d/0xf3 Apr 8 12:10:20 monetdb kernel: [116423.662567] [<ffffffff810d8c4d>] ? swapin_readahead+0x57/0x98 Apr 8 12:10:20 monetdb kernel: [116423.662571] [<ffffffff810ccb86>] ? handle_mm_fault+0x47f/0x80f Apr 8 12:10:20 monetdb kernel: [116423.662574] [<ffffffff81048250>] ? finish_task_switch+0x3a/0xaf Apr 8 12:10:20 monetdb kernel: [116423.662577] [<ffffffff812fae40>] ? thread_return+0x79/0xe0 Apr 8 12:10:20 monetdb kernel: [116423.662580] [<ffffffff812fe6b6>] ? do_page_fault+0x2e0/0x2fc Apr 8 12:10:20 monetdb kernel: [116423.662583] [<ffffffff812fc555>] ? page_fault+0x25/0x30 Apr 8 12:10:20 monetdb kernel: [116423.662586] [<ffffffff811957ec>] ? __get_user_8+0x1c/0x23 Apr 8 12:10:20 monetdb kernel: [116423.662589] [<ffffffff81071e18>] ? exit_robust_list+0x32/0x131 Apr 8 12:10:20 monetdb kernel: [116423.662592] [<ffffffff8104bb2b>] ? mm_release+0x20/0xe2 Apr 8 12:10:20 monetdb kernel: [116423.662594] [<ffffffff8104f780>] ? exit_mm+0x1c/0x10d Apr 8 12:10:20 monetdb kernel: [116423.662596] [<ffffffff8105128b>] ? do_exit+0x1f8/0x6c6 Apr 8 12:10:20 monetdb kernel: [116423.662598] [<ffffffff81071cb2>] ? futex_wake+0xd6/0xe7 Apr 8 12:10:20 monetdb kernel: [116423.662600] [<ffffffff810517cf>] ? do_group_exit+0x76/0x9d Apr 8 12:10:20 monetdb kernel: [116423.662603] [<ffffffff8105e05f>] ? get_signal_to_deliver+0x310/0x339 Apr 8 12:10:20 monetdb kernel: [116423.662607] [<ffffffff8101004f>] ? do_notify_resume+0x87/0x73f Apr 8 12:10:20 monetdb kernel: [116423.662609] [<ffffffff812fae40>] ? thread_return+0x79/0xe0 Apr 8 12:10:20 monetdb kernel: [116423.662611] [<ffffffff81073f3a>] ? sys_futex+0x113/0x131 Apr 8 12:10:20 monetdb kernel: [116423.662613] [<ffffffff81010e0e>] ? int_signal+0x12/0x17 Apr 8 12:10:20 monetdb kernel: [116423.662615] Mem-Info: Apr 8 12:10:20 monetdb kernel: [116423.662615] Node 0 DMA per-cpu: Apr 8 12:10:20 monetdb kernel: [116423.662617] CPU 0: hi: 0, btch: 1 usd: 0 Apr 8 12:10:20 monetdb kernel: [116423.662619] CPU 1: hi: 0, btch: 1 usd: 0 Apr 8 12:10:20 monetdb kernel: [116423.662620] Node 0 DMA32 per-cpu: Apr 8 12:10:20 monetdb kernel: [116423.662621] CPU 0: hi: 186, btch: 31 usd: 0 Apr 8 12:10:20 monetdb kernel: [116423.662623] CPU 1: hi: 186, btch: 31 usd: 1 Apr 8 12:10:20 monetdb kernel: [116423.662624] Node 0 Normal per-cpu: Apr 8 12:10:20 monetdb kernel: [116423.662625] CPU 0: hi: 186, btch: 31 usd: 22 Apr 8 12:10:20 monetdb kernel: [116423.662627] CPU 1: hi: 186, btch: 31 usd: 0 Apr 8 12:10:20 monetdb kernel: [116423.662630] active_anon:666342 inactive_anon:259002 isolated_anon:0 Apr 8 12:10:20 monetdb kernel: [116423.662630] active_file:51 inactive_file:15 isolated_file:0 Apr 8 12:10:20 monetdb kernel: [116423.662631] unevictable:0 dirty:0 writeback:648 unstable:0 Apr 8 12:10:20 monetdb kernel: [116423.662632] free:6776 slab_reclaimable:1478 slab_unreclaimable:2038 Apr 8 12:10:20 monetdb kernel: [116423.662633] mapped:46 shmem:1 pagetables:7198 bounce:0 Apr 8 12:10:20 monetdb kernel: [116423.662634] Node 0 DMA free:15024kB min:28kB low:32kB high:40kB active_anon:308kB inactive_anon:508kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15264kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:4kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no Apr 8 12:10:20 monetdb kernel: [116423.662641] lowmem_reserve[]: 0 2743 3753 3753 root@monetdb:~ vmstat 10 procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 0 0 0 2602224 76336 239256 0 203 8 243 158 206 1 0 98 1 1 0 0 2598496 76380 241692 0 0 0 320 38647 76214 51 5 44 0 1 0 0 2596496 76412 243752 0 0 0 257 38755 76387 50 6 44 0 1 0 0 2594512 76440 245752 0 0 0 290 38688 76201 51 5 44 0 1 0 0 2571432 76476 248188 0 0 0 336 38482 75848 50 5 44 0 1 0 0 2567844 76508 250248 0 0 0 294 38700 76280 51 5 44 0 1 0 0 2395484 76512 250252 0 0 0 46 3423 6628 7 1 92 0 0 2 39932 26636 308 5260 3 4242 88 4491 13848 2136 38 6 40 16 0 2 448140 26712 540 5320 3418 40757 3845 40952 6728 1966 5 4 9 82 0 1 849688 29316 712 5756 462 40339 619 40541 7160 1428 6 3 8 84 0 2 1228196 26736 744 5668 464 37982 530 38123 6406 1268 5 3 10 82 0 2 1616368 26736 752 5748 859 39076 863 39182 6446 1217 6 2 17 75 0 2 2004984 26432 700 5888 613 39099 626 39282 6564 1225 6 3 10 81 0 2 2403996 26664 628 5992 518 40035 652 40156 6518 1183 6 3 8 84 0 2 2803644 26648 484 5616 796 40316 813 40425 7077 1282 5 3 12 79 0 2 3180608 26600 612 8180 341 37814 696 37941 4132 990 5 3 16 76 1 2 3572312 26580 840 8964 594 39409 724 39672 5881 1172 5 3 10 81 0 2 3944952 26608 904 10784 1162 38094 1604 38305 7163 1453 5 3 9 83 0 2 4342100 26664 888 9400 380 39814 550 39972 6021 1401 6 3 10 81 0 2 4743236 26804 792 8256 320 40365 328 40468 4851 1135 6 3 15 76 1 0 5121668 28904 784 8588 313 38278 367 38485 4957 1142 5 3 10 82 0 2 5518504 26600 652 7752 196 39798 226 39912 6945 1250 5 3 7 84 1 1 5910744 26888 600 7148 159 39323 162 39426 6093 1138 5 3 9 83 0 1 6318432 28072 736 8012 206 40849 321 41038 5771 1236 6 3 19 72 1 1 6695616 27164 820 8252 775 38271 825 38517 4023 1299 5 3 18 74 1 0 7076896 29796 828 8256 165 38199 182 38290 4361 1052 5 3 20 73 0 2 7475872 26736 824 8104 496 40144 497 40256 5465 1326 6 3 15 77 0 2 7883740 26564 820 7968 131 40856 131 40974 4820 1122 5 3 18 74 0 1 8265376 29096 844 8284 297 38312 297 38496 5043 1146 5 3 21 71 0 2 8670368 26748 844 7996 197 40567 198 40672 5109 1191 6 3 18 74 -< crash here 0 0 108860 3685160 392 2212 194 24481 517 24686 3248 1207 3 5 41 50 ## Comment 15732 Date: 2011-04-11 17:44:07 +0200 From: Vladimir Vlach &lt;<vlach>&gt; I actually discovered: This server will crash even when table is empty. It consumers more and more memory when I run many UPDATE statements on empty dataset. UPDATE reportdata_2009 SET %s=RAND() WHERE %s IS NULL; ## Comment 17911 Date: 2012-11-07 19:48:49 +0100 From: @grobian thanks, we should test this ## Comment 18160 Date: 2012-11-27 17:26:12 +0100 From: @mlkersten Test has been added huge_table_update.Bug-2803 The test run does show eating the memory, it stabelizes after a few hundred on 180K, but the system seems killed by OS after 1200 update runs. ## Comment 19013 Date: 2013-08-16 21:27:01 +0200 From: @mlkersten Multiple runs of the script against the same server on both FEB13-SP3 and default work without problems. Consider this bug as being closed. ## Comment 21318 Date: 2015-10-02 08:59:26 +0200 From: MonetDB Mercurial Repository &lt;<hg>&gt; Changeset [6753d241bce5](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6753d241bce5) made by Stefan Manegold <Stefan.Manegold@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=6753d241bce5](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=6753d241bce5) Changeset description: extended timeout for recently activated test huge_table_update.Bug-2803 on slow machines
Server Crash after SWAP is full
https://api.github.com/repos/MonetDB/MonetDB/issues/2803/comments
0
2020-11-30T11:42:06Z
2024-06-27T11:51:48Z
https://github.com/MonetDB/MonetDB/issues/2803
753,405,959
2,803
[ "MonetDB", "MonetDB" ]
Date: 2011-04-07 08:43:24 +0200 From: @grobian To: clients devs &lt;<bugs-clients>&gt; Version: 11.5.3 (Aug2011-SP1) [obsolete] CC: charnik, gburd Last updated: 2012-01-26 15:31:59 +0100 ## Comment 15728 Date: 2011-04-07 08:43:24 +0200 From: @grobian Since Java SE 5 is EOL, and the preferred/default Java EE is also 6 these days, our JDBC driver should be updated from JDBC3 to JDBC4. We can safely require Java 6, as that is the current version which often is the only version available. We can ignore compatability with JDBC3 (Java 5), as this only excludes PowerPC based Mac OS X system, which are close to extinct as Java 5 is. ## Comment 16432 Date: 2011-10-14 14:42:52 +0200 From: @grobian Changeset [49596fdde953](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=49596fdde953) made by Fabian Groffen <fabian@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=49596fdde953](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=49596fdde953) Changeset description: jdbc: implement changes necessary for JDBC4 JDBC4 was introduced with Java 6. Adding support for this was long overdue, since Java 5 has reached its EOL for a while now. We decided not to add any backwards compatible Java 5 code path, since Java 5 should be close to extinct. See bug #2802. ## Comment 16821 Date: 2012-01-26 15:31:59 +0100 From: @sjoerdmullender The Dec2011 version has been release, so declaring this bug as FIXED.
update JDBC driver to JDBC4
https://api.github.com/repos/MonetDB/MonetDB/issues/2802/comments
0
2020-11-30T11:42:04Z
2024-06-27T11:51:47Z
https://github.com/MonetDB/MonetDB/issues/2802
753,405,934
2,802
[ "MonetDB", "MonetDB" ]
Date: 2011-04-06 15:01:31 +0200 From: Alfred Nordman &lt;<alfred.nordman>&gt; To: SQL devs &lt;<bugs-sql>&gt; Version: -- development CC: @njnes Last updated: 2011-04-28 16:25:39 +0200 ## Comment 15727 Date: 2011-04-06 15:01:31 +0200 From: Alfred Nordman &lt;<alfred.nordman>&gt; User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0 Build Identifier: WHERE expressions are disregarded when their condition involves two columns of the same table which is being JOINed with another table in a nested SELECT expression, for example: SELECT * FROM (SELECT * FROM t1 INNER JOIN t2 ON a = c) abc WHERE abc.a > abc.b; when a and b originate in t1 (or t2). However, inserting the WHERE expression inside the nested SELECT expression seems to produce the correct result. Reproducible: Always ### Steps to Reproduce: CREATE TABLE t1 (a INT, b INT); INSERT INTO t1 VALUES (1, 3); CREATE TABLE t2 (c INT, d INT); INSERT INTO t2 VALUES (1, 4); SELECT * FROM (SELECT * FROM t1 INNER JOIN t2 ON a = c) abc WHERE abc.a > abc.b; ### Actual Results: +------+------+------+------+ | a | b | c | d | +======+======+======+======+ | 1 | 3 | 1 | 4 | +------+------+------+------+ ### Expected Results: +---+---+---+---+ | a | b | c | d | +===+===+===+===+ +---+---+---+---+ MonetDB 5 server v11.1.1 (64-bit, 32-bit oids) Release Mar2011 Copyright (c) 1993-July 2008 CWI Copyright (c) August 2008-2011 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information Found 8.0GiB available memory Configured for prefix: C:\Users\sjoerd\Documents\src\MonetDB\stable\NTv64 Libraries: libpcre: 7.9 2009-04-11 openssl: OpenSSL 1.0.0a 1 Jun 2010 libxml2: 2.7.7 Compiled by: sjoerd@ALGOL (x86_64-pc-winnt) Compilation: cl -GF -W3 -wd4273 -wd4102 -MD -nologo -Ox Linking : cl -GF -W3 -wd4273 -wd4102 -MD -nologo -Ox ## Comment 15729 Date: 2011-04-08 15:48:46 +0200 From: @njnes Changeset [1f35ebc64aea](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1f35ebc64aea) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=1f35ebc64aea](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=1f35ebc64aea) Changeset description: fixed bug #2801, push select down properly. ## Comment 15730 Date: 2011-04-08 16:23:12 +0200 From: @njnes fixed by pushing select down ## Comment 15753 Date: 2011-04-28 16:25:39 +0200 From: @sjoerdmullender The Apr2011 release has been uploaded.
Nested SELECT expression with JOIN causes outer WHERE to be disregarded sometimes
https://api.github.com/repos/MonetDB/MonetDB/issues/2801/comments
0
2020-11-30T11:42:01Z
2024-06-27T11:51:46Z
https://github.com/MonetDB/MonetDB/issues/2801
753,405,905
2,801
[ "MonetDB", "MonetDB" ]
Date: 2011-04-06 14:57:28 +0200 From: @grobian To: SQL devs &lt;<bugs-sql>&gt; Version: 11.3.1 (Apr2011) [obsolete] CC: @njnes Last updated: 2011-04-28 16:25:39 +0200 ## Comment 15726 Date: 2011-04-06 14:57:28 +0200 From: @grobian see, e.g.: http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39764:8690368fe891/GNU-Darwin-powerpc/sql/mTests/jdbc/tests/Test_PStypes.out.diff.html CREATE TABLE htmtest ( htmid bigint NOT NULL, ra double , decl double , dra double , ddecl double , flux double , dflux double , freq double , bw double , type decimal(1,0), imageurl varchar(100), comment varchar(100), CONSTRAINT htmtest_htmid_pkey PRIMARY KEY (htmid) ); CREATE INDEX htmid ON htmtest (htmid); INSERT INTO HTMTEST (HTMID,RA,DECL,FLUX,COMMENT) VALUES (1, 1.2, 2.4, 3.2, 'vlabla'); -- fails: UPDATE HTMTEST set COMMENT='some update' WHERE HTMID=1; actual output: sql>UPDATE HTMTEST set COMMENT='some update' WHERE HTMID=1; SELECT: identifier 'htmid' ambiguous sql> I think sql gets confused by the equally named index here. ## Comment 15736 Date: 2011-04-20 13:24:32 +0200 From: @njnes Changeset [b4d7e8ed93d1](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b4d7e8ed93d1) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=b4d7e8ed93d1](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=b4d7e8ed93d1) Changeset description: fix bug #2800 (now idx have independent aliases during query compilation) ## Comment 15737 Date: 2011-04-20 13:30:46 +0200 From: @njnes added test to BugTracker 2011 (ambigous_idx_name.Bug-2800) fixed. Indices now have aliases in the relational algebra (prefixed by %). ## Comment 15754 Date: 2011-04-28 16:25:39 +0200 From: @sjoerdmullender The Apr2011 release has been uploaded.
Test_PStypes fails due to ambigous identifier
https://api.github.com/repos/MonetDB/MonetDB/issues/2800/comments
0
2020-11-30T11:41:58Z
2024-06-27T11:51:45Z
https://github.com/MonetDB/MonetDB/issues/2800
753,405,874
2,800
[ "MonetDB", "MonetDB" ]
Date: 2011-04-05 21:11:17 +0200 From: Sujay &lt;<316sujay>&gt; To: SQL devs &lt;<bugs-sql>&gt; Version: 11.3.3 (Apr2011-SP1) [obsolete] CC: 316sujay, @njnes Last updated: 2011-09-30 11:27:14 +0200 ## Comment 15725 Date: 2011-04-05 21:11:17 +0200 From: Sujay &lt;<316sujay>&gt; User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8; InfoPath.3) Build Identifier: The MonetDB mserver5 crashes when I try to create a view with more than 20 joins. The database that I have setup comsists of 2 big tables. The fact table is 200 million records and the one dimension is 90 million records. The other dimension tables are small. But when I use all these objects to left join with the bug fact table and create a view, The Mserver5 crashes. Then I eliminated a few joins and I was able to create the view but could not do a select * or a select count(*) as this caused the server to crash again. Please advice Reproducible: Always ### Steps to Reproduce: 1.create views with more than 20 joins involving atleast two tables with over 100 million records2. ### Actual Results: Server crashes ### Expected Results: view should be created and queries should be run against the view ## Comment 15812 Date: 2011-05-16 22:18:21 +0200 From: @njnes a crash during view creation is independent of the table size. To resolve this bug could you please give us the dll (create table) statements and query (create view statement). ## Comment 15822 Date: 2011-05-18 15:14:13 +0200 From: @njnes is this bug fixed by the 2811 bug fixes?
MonetDb Server Crashes when creating views with many joins to other views
https://api.github.com/repos/MonetDB/MonetDB/issues/2799/comments
0
2020-11-30T11:41:55Z
2024-06-27T11:51:45Z
https://github.com/MonetDB/MonetDB/issues/2799
753,405,847
2,799
[ "MonetDB", "MonetDB" ]
Date: 2011-04-05 09:01:58 +0200 From: Bas Kaptijn &lt;<b.kaptijn>&gt; To: SQL devs &lt;<bugs-sql>&gt; Version: 11.3.1 (Apr2011) [obsolete] CC: @njnes Last updated: 2019-06-06 13:57:24 +0200 ## Comment 15717 Date: 2011-04-05 09:01:58 +0200 From: Bas Kaptijn &lt;<b.kaptijn>&gt; User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8) Build Identifier: Hi, with the MAR2011 release (x64 windows through installer) (and also the release Feb2010-SP2) I get an exception running a particular query, whilst a slightly modified one with the expected result (except for the naming of a result column) does not. I narrowed the problem down to this: sql>CREATE TABLE dbg (a INT, b INT); operation successful sql>INSERT INTO dbg (a,b) VALUES (10,10); 1 affected row (32.410ms) sql>SELECT a as d, SUM(b), (2 * (SUM(b) / (SELECT 2))) as f FROM dbg GROUP BY d; +------+------+------+ | d | L451 | f | +======+======+======+ | 10 | 10 | 10 | +------+------+------+ 1 tuple (8.841ms) sql>SELECT a as d, SUM(b) as e, (2 * (SUM(b) / (SELECT 2))) as f FROM dbg GROUP BY d; sql> The second select query does not produce a result set (as stated in the SQLException I get when doing this through JDBC). The monetdb client just shows a new prompt without stating any warning/error. The query works when I remove the "as e" ... or the "select 2" but in the real case I get this problem this select does much more than just selecting the number 2. I think this is a bug. Reproducible: Always ### Steps to Reproduce: 1. sql>CREATE TABLE dbg (a INT, b INT); 2. sql>INSERT INTO dbg (a,b) VALUES (10,10); 3. sql>SELECT a as d, SUM(b) as e, (2 * (SUM(b) / (SELECT 2))) as f FROM dbg GROUP BY d; ### Actual Results: nothing ### Expected Results: 10, 10, 10 When I try this I see that the server prints: could not find (null).e dbg.d dbg.L13 L15.L15 dbg.d and with assertions enabled, in addition it says: mserver5: /home/sjoerd/src/MonetDB/candidate/sql/server/rel_bin.c:1481: rel2bin_project: Assertion `0' failed. Aborted - core dumped -- Sjoerd Mullender ## Comment 15741 Date: 2011-04-27 14:12:05 +0200 From: @grobian bug is still in Apr2011, and is not limited to windows/64-bits ## Comment 15742 Date: 2011-04-27 14:12:11 +0200 From: @grobian Changeset [d8cb04c78402](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d8cb04c78402) made by Fabian Groffen <fabian@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=d8cb04c78402](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=d8cb04c78402) Changeset description: Add test for bug #2798 ## Comment 15800 Date: 2011-05-13 15:54:47 +0200 From: @njnes Changeset [7316fbd4e9d2](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7316fbd4e9d2) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=7316fbd4e9d2](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=7316fbd4e9d2) Changeset description: fix bug #2798 (use correct old project list) fixed bug #2807 (aggr on with primary key problems). Properly find column using an expression. ## Comment 15813 Date: 2011-05-16 22:23:48 +0200 From: @njnes was fixed some time ago ## Comment 19590 Date: 2014-02-19 18:21:44 +0100 From: MonetDB Mercurial Repository &lt;<hg>&gt; Changeset [62361db70e8d](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=62361db70e8d) made by Stefan Manegold <Stefan.Manegold@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=62361db70e8d](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=62361db70e8d) Changeset description: crash_on_alias.Bug-2798: extended test with EXPLAIN to analyze/debug crash with int128 ## Comment 19591 Date: 2014-02-19 18:29:32 +0100 From: MonetDB Mercurial Repository &lt;<hg>&gt; Changeset [606511bbb995](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=606511bbb995) made by Stefan Manegold <Stefan.Manegold@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=606511bbb995](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=606511bbb995) Changeset description: crash_on_alias.Bug-2798: extended test with PLAN to analyze/debug crash with int128 ## Comment 27027 Date: 2019-06-06 13:57:24 +0200 From: MonetDB Mercurial Repository &lt;<hg>&gt; Changeset [74f63592625d](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=74f63592625d) made by Martin van Dinther <martin.van.dinther@monetdbsolutions.com> in the MonetDB repo, refers to this bug. For complete details, see [https//devmonetdborg/hg/MonetDB?cmd=changeset;node=74f63592625d](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=https//devmonetdborg/hg/MonetDB?cmd=changeset;node=74f63592625d) Changeset description: Undo the cast(... as bigint)) changes made to crash_on_alias.Bug-2798 in changeset 69345:55505094267b It appears that the plans with the cast(... as bigint)) are different on non-int128 platforms, so we need an .int128 output anyway.
Query did not produce a result set
https://api.github.com/repos/MonetDB/MonetDB/issues/2798/comments
0
2020-11-30T11:41:53Z
2024-06-27T11:51:44Z
https://github.com/MonetDB/MonetDB/issues/2798
753,405,808
2,798
[ "MonetDB", "MonetDB" ]
Date: 2011-04-04 16:19:13 +0200 From: @romulogoncalves To: GDK devs &lt;<bugs-common>&gt; Version: 11.3.3 (Apr2011-SP1) [obsolete] Last updated: 2011-07-29 10:52:37 +0200 ## Comment 15715 Date: 2011-04-04 16:19:13 +0200 From: @romulogoncalves User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.16) Gecko/20110322 Fedora/3.6.16-1.fc14 Firefox/3.6.16 Build Identifier: In case you kill your mserver and then you re-start it, if the disk is full, you get the following crash. [Thread debugging using libthread_db enabled] !FATAL: BBPinit: cannot properly process bat/BACKUP. [New Thread 0x7ffff55737b0 (LWP 4197)] Program received signal SIGSEGV, Segmentation fault. 0x0000003290007bc8 in pthread_join () from /lib64/libpthread.so.0 (gdb) up 1 0x00007ffff692488c in MT_join_thread (t=0) at /data/sn-4/home/goncalve/MonetDB/current/gdk/gdk_system.mx:640 640 return pthread_join(id, NULL); (gdb) l 635 id.p = (void *) (t - 1); 636 id.x = 0; 637 else 638 id = (pthread_t) (t - 1); 639 endif 640 return pthread_join(id, NULL); 641 } 644 int (gdb) p id $1 = 18446744073709551615 (gdb) p t $2 = 0 The problem seems to be the creation of the BACKUP directory. At <dbfarm>/bat/ I have BBP.dir and LEFTOVERS/, but not BACKUP directory. Due to the lack of space the BBPinit() fails and instead of reporting an error, it crashes. 1 0x00007ffff692488c in MT_join_thread (t=0) at /data/sn-4/home/goncalve/MonetDB/current/gdk/gdk_system.mx:640 2 0x00007ffff64c5e69 in GDKexit (status=1) at /data/sn-4/home/goncalve/MonetDB/current/gdk/gdk_utils.mx:1792 3 0x00007ffff64c6f07 in GDKfatal (format=0x7ffff6a49888 "BBPinit: cannot properly process %s.") at /data/sn-4/home/goncalve/MonetDB/current/gdk/gdk_utils.mx:2225 4 0x00007ffff63115f5 in BBPinit () at /data/sn-4/home/goncalve/MonetDB/current/gdk/gdk_bbp.mx:1121 5 0x00007ffff64c57d6 in GDKinit (set=0x616340, setlen=54) at /data/sn-4/home/goncalve/MonetDB/current/gdk/gdk_utils.mx:1684 6 0x0000000000402386 in monet_init (set=0x616340, setlen=54) at /data/sn-4/home/goncalve/MonetDB/current/monetdb5/tools/mserver5.mx:256 Reproducible: Always ### Steps to Reproduce: 1.Full disk 2.Start mserver 3. ### Actual Results: mserver crashes ### Expected Results: normal mserver initialization. ## Comment 15871 Date: 2011-07-01 16:50:10 +0200 From: @sjoerdmullender Changeset [3d3705a18147](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3d3705a18147) made by Sjoerd Mullender <sjoerd@acm.org> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=3d3705a18147](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=3d3705a18147) Changeset description: Only join to vmtrim thread if it exists. This should fix bug #2797. ## Comment 15872 Date: 2011-07-01 16:51:28 +0200 From: @sjoerdmullender Romulo, can you test and reopen if it doesn't solve the problem? Obviously, the server can't do anything when the disk is full, but it shouldn't crash. ## Comment 15994 Date: 2011-07-29 10:52:37 +0200 From: @sjoerdmullender The Apr2011-SP2 bugfix release is out.
mserver crashes at initialization when the disk is full
https://api.github.com/repos/MonetDB/MonetDB/issues/2797/comments
0
2020-11-30T11:41:50Z
2024-06-27T11:51:43Z
https://github.com/MonetDB/MonetDB/issues/2797
753,405,778
2,797
[ "MonetDB", "MonetDB" ]
Date: 2011-04-03 20:34:06 +0200 From: @drstmane To: GDK devs &lt;<bugs-common>&gt; Version: 11.1.1 (Mar2011) [obsolete] Last updated: 2011-04-28 16:25:36 +0200 ## Comment 15713 Date: 2011-04-03 20:34:06 +0200 From: @drstmane I just happened to notice this, but had no time, yet to look into the details ... The antiselect fix (cf., http://dev.monetdb.org/hg/MonetDB/rev/d7c2f5b1eafa) causes ~20 SQL tests to fail as follows. The tests fail like this on both the Mar2011 branch and the Apr2011 branch. Some of these failures, i.e., differences between stable and latest output, might be due to the stable output being wrongly approved in the first place. ERROR = !MALException:!ERROR: BATpropcheck: BAT tmpr_1426(-790)[int,void] with 2 tuples was incorrectly marked keyed! (or alike): http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39711:af22bd4fe8ff/GNU-Fedora-x86_64-propcheck-assert/sql/mTests/test/BugTracker-2009/mclient-lsql-D.err.diff.html http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39711:af22bd4fe8ff/GNU-Fedora-x86_64-propcheck-assert/sql/mTests/test/BugTracker-2009/not_equal.SF-2678502.err.diff.html http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39711:af22bd4fe8ff/GNU-Fedora-x86_64-propcheck-assert/sql/mTests/test/BugTracker-2009/name_clash_with_dump.SF-2780395.err.diff.html http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39711:af22bd4fe8ff/GNU-Fedora-x86_64-propcheck-assert/sql/mTests/test/Dump/dump-empty.err.diff.html http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39711:af22bd4fe8ff/GNU-Fedora-x86_64-propcheck-assert/sql/mTests/test/Dump/dump.err.diff.html http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39711:af22bd4fe8ff/GNU-Fedora-x86_64-propcheck-assert/sql/mTests/test/antiselect.err.diff.html http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39711:af22bd4fe8ff/GNU-Fedora-x86_64-propcheck-assert/sql/mTests/test/BugDay_2005-10-06_2.8/MapiClient-dump.SF-905851.err.diff.html http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39711:af22bd4fe8ff/GNU-Fedora-x86_64-propcheck-assert/sql/mTests/test/BugTracker/multi-column-constraint.SF-1964587.err.diff.html Different/extra output (partly possibly left-overs after/due to earlier tests failing): http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39711:af22bd4fe8ff/GNU-Fedora-x86_64-propcheck-assert/sql/mTests/test/UserDump/create.out.diff.html http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39711:af22bd4fe8ff/GNU-Fedora-x86_64-propcheck-assert/sql/mTests/test/bugs/select_not_equal.out.diff.html http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39711:af22bd4fe8ff/GNU-Fedora-x86_64-propcheck-assert/sql/mTests/test/pg_regress/char.out.diff.html http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39711:af22bd4fe8ff/GNU-Fedora-x86_64-propcheck-assert/sql/mTests/test/pg_regress/varchar.out.diff.html http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39711:af22bd4fe8ff/GNU-Fedora-x86_64-propcheck-assert/sql/mTests/benchmarks/ATIS/select_group.out.diff.html http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39711:af22bd4fe8ff/GNU-Fedora-x86_64-propcheck-assert/sql/mTests/benchmarks/tpch/16.out.diff.html http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39711:af22bd4fe8ff/GNU-Fedora-x86_64-propcheck-assert/sql/mTests/benchmarks/tpch/01-22.out.diff.html http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39711:af22bd4fe8ff/GNU-Fedora-x86_64-propcheck-assert/sql/mTests/benchmarks/tpch/LOCKED/16.out.diff.html http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39711:af22bd4fe8ff/GNU-Fedora-x86_64-propcheck-assert/sql/mTests/benchmarks/tpch/LOCKED/01-22.out.diff.html Errors / transaction aborts (possibly due to earlier tests failing): http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39711:af22bd4fe8ff/GNU-Fedora-x86_64-propcheck-assert/sql/mTests/test/Dump/reload.err.diff.html http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39711:af22bd4fe8ff/GNU-Fedora-x86_64-propcheck-assert/sql/mTests/test/Dump/test.err.diff.html ## Comment 15714 Date: 2011-04-04 10:28:46 +0200 From: @sjoerdmullender Changeset [932a58fecbde](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=932a58fecbde) made by Sjoerd Mullender <sjoerd@acm.org> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=932a58fecbde](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=932a58fecbde) Changeset description: Include boundaries in anti point select so that they get excluded by the anti part. This fixes bug #2796. ## Comment 15716 Date: 2011-04-04 19:31:53 +0200 From: @grobian This is the difference between the run before and after the commit, as well as after the fix (when it comes available, the third column will be added), which should be a visual version of the analysis given by Stefan :) http://monetdb.cwi.nl/testing/projects/monetdb/testweb/web/testgrid.php?serial=39726:4573990d7651,39711:af22bd4fe8ff,39693:809990fb1014&module=sql&targets=GNU-Fedora-x86_64-propcheck&order=platform,arch,compiler ## Comment 15718 Date: 2011-04-05 11:03:56 +0200 From: @grobian please discard comparison from comment 2, use this one instead: http://monetdb.cwi.nl/testing/projects/monetdb/testweb/web/testgrid.php?serial=39726:4573990d7651,39711:af22bd4fe8ff,39693:809990fb1014&module=sql&targets=GNU-Fedora-x86_64-dist-rpm&order=platform,arch,compiler It shows everything is back to normal again. ## Comment 15721 Date: 2011-04-05 12:43:10 +0200 From: @drstmane Indeed, the tests work fine, again. Thanks to Sjoerd for spotting and fixing the bug! Thanks to Fabian for providing a convenient and helpful interface to double-check! Closing. ## Comment 15748 Date: 2011-04-28 16:25:36 +0200 From: @sjoerdmullender The Apr2011 release has been uploaded.
latest antiselect changes cause ~20 SQL tests to fail
https://api.github.com/repos/MonetDB/MonetDB/issues/2796/comments
0
2020-11-30T11:41:47Z
2024-06-27T11:51:42Z
https://github.com/MonetDB/MonetDB/issues/2796
753,405,745
2,796
[ "MonetDB", "MonetDB" ]
Date: 2011-03-31 14:44:02 +0200 From: @yzchang To: SQL devs &lt;<bugs-sql>&gt; Version: 11.1.1 (Mar2011) [obsolete] CC: @njnes Last updated: 2011-04-28 16:25:39 +0200 ## Comment 15711 Date: 2011-03-31 14:44:02 +0200 From: @yzchang The following queries crashes mserver5 (both in Mar2011 and in default): sql>CREATE TABLE t3 (x INTEGER, y INTEGER); operation successful sql>alter table t3 add r float default sqrt(power(t3.x, 2) + power(t3.y, 2)); MAPI = monetdb@localhost:60000 ACTION= read_line QUERY = alter table t3 add r float default sqrt(power(t3.x, 2) + power(t3.y, 2)); ERROR = !Connection terminated GDB says: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffe7bab700 (LWP 26196)] 0x00007fffe8e0a593 in rel_parse_val (m=0x7fffd8005468, query=0x7fffd806d868 "select sqrt(sql_add(power((null),2),power((null),2)));\n", emode=0 '\000') at /ufs/zhang/monet/default/sql/server/rel_subquery.c:402 402 if (m->sym->token == SQL_SELECT) { If I understand the SQL:2003 grammar correctly (http://savage.net.au/SQL/sql-2003-2.bnf.html), such an expression is not allowed in de DEFAULT clause. But it is not rejected by the SQL parser. ## Comment 15719 Date: 2011-04-05 12:35:15 +0200 From: @njnes Changeset [3e42e98ee928](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3e42e98ee928) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=3e42e98ee928](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=3e42e98ee928) Changeset description: fixed bug #2795. The case that parsing the 'default' expression fails is now properly handled. ## Comment 15720 Date: 2011-04-05 12:36:20 +0200 From: @njnes added test to BugTracker-2011/alter_incorrect_syntax_crash.Bug-2795.sql Fixed bug by handling the failed parsing of the default expression. ## Comment 15755 Date: 2011-04-28 16:25:39 +0200 From: @sjoerdmullender The Apr2011 release has been uploaded.
SQL: ALTER TABLE with incorrect syntax crashes mserver5
https://api.github.com/repos/MonetDB/MonetDB/issues/2795/comments
0
2020-11-30T11:41:44Z
2024-06-27T11:51:41Z
https://github.com/MonetDB/MonetDB/issues/2795
753,405,716
2,795
[ "MonetDB", "MonetDB" ]
Date: 2011-03-30 21:54:22 +0200 From: Onno &lt;<ob>&gt; To: clients devs &lt;<bugs-clients>&gt; Version: 11.1.1 (Mar2011) [obsolete] Last updated: 2011-03-31 08:58:03 +0200 ## Comment 15706 Date: 2011-03-30 21:54:22 +0200 From: Onno &lt;<ob>&gt; Hi, I get the following error during installing (building) from the complet source code MonetDB-11.1.1: /bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -Wno-declaration-after-statement -D_REENTRANT -export-dynamic -o mclient mclient.o ReadlineTools.o libmcutil.la ../mapilib/libmapi.la ../../common/stream/libstream.la -liconv -pthread libtool: link: gcc -g -O2 -Wno-declaration-after-statement -D_REENTRANT -o .libs/mclient mclient.o ReadlineTools.o -pthread ./.libs/libmcutil.a ../mapilib/.libs/libmapi.dylib -L/opt/local/lib /Users/user/Downloads/MonetDB-11.1.1/common/stream/.libs/libstream.dylib ../../common/stream/.libs/libstream.dylib -lbz2 -lssl -lcrypto -lz /opt/local/lib/libiconv.dylib -pthread Undefined symbols for architecture x86_64: "_iconv", referenced from: _doFileByLines in mclient.o _main in mclient.o (maybe you meant: _iconv_wstream) "_iconv_open", referenced from: _main in mclient.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[5]: *** [mclient] Error 1 make[4]: *** [all] Error 2 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Kind regards, Onno ## Comment 15708 Date: 2011-03-31 08:53:43 +0200 From: @grobian what manages /opt/local for you? macports? ## Comment 15709 Date: 2011-03-31 08:56:59 +0200 From: @grobian ps, the problem is that your libiconv doesn't contain a x86_64 version of the library, hence the linking fails. Either compile for i686 (32-bits), or fix your libiconv.dylib. This is a problem beyond MonetDB. ## Comment 15710 Date: 2011-03-31 08:58:03 +0200 From: @grobian Pre-built binary for OSX x86_64 can be found here: http://dev.monetdb.org/downloads/MacOSX/Mar2011/MonetDB-11.1.1-x86_64-Darwin-bin.tar.bz2
Error during build
https://api.github.com/repos/MonetDB/MonetDB/issues/2794/comments
0
2020-11-30T11:41:42Z
2024-06-28T07:23:12Z
https://github.com/MonetDB/MonetDB/issues/2794
753,405,695
2,794
[ "MonetDB", "MonetDB" ]
Date: 2011-03-25 18:20:21 +0100 From: spamme.gs To: SQL devs &lt;<bugs-sql>&gt; Version: 11.1.1 (Mar2011) [obsolete] CC: @njnes Last updated: 2011-04-28 16:25:34 +0200 ## Comment 15612 Date: 2011-03-25 18:20:21 +0100 From: spamme.gs User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Build Identifier: EXTRACT(SECOND FROM timestamp) appears to be incorrectly implemented. It always returns 0 for the integer part. I have traced this behaviour to the way this SQL functionality was implemented. Reproducible: Always ### Steps to Reproduce: Here is a sample session: Welcome to mclient, the MonetDB/SQL interactive terminal (Oct2010-SP1) Database: MonetDB v5.22.3, 'demo' Type \q to quit, \? for a list of available commands auto commit mode: on sql> select extract(second from timestamp '2011-3-10 9:30:42.246'); ### Actual Results: +---------------------+ | second_single_value | +=====================+ | 0.246 | +---------------------+ ### Expected Results: +---------------------+ | second_single_value | +=====================+ | 42.246 | +---------------------+ We can find the source of this behaviour using EXPLAIN : sql> explain select extract(second from timestamp '2011-3-10 9:30:42.246'); function user.s2_1{autoCommit=true}():void; sql.mvc(); _4 := mtime.milliseconds(2011-03-10 09:30:42.246:timestamp); sql.exportValue(1,".","second_single_value","decimal",9,3,8,_4,""); end s2_1; mtime.milliseconds is declared (modules/atoms/mtime.mal) as follows 413 command milliseconds(d:daytime) :int 414 address MTIMEdaytime_extract_milliseconds and MTIMEdaytime_extract_milliseconds only returns the millisecond part. ## Comment 15675 Date: 2011-03-28 17:36:27 +0200 From: @sjoerdmullender The Mar2011 version has been released. ## Comment 15699 Date: 2011-03-30 11:58:25 +0200 From: @njnes Changeset [f1010cea0102](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f1010cea0102) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=f1010cea0102](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=f1010cea0102) Changeset description: fixed bug #2793, ie implemented extract( seconds) including fractional milli seconds. ## Comment 15700 Date: 2011-03-30 11:58:30 +0200 From: @njnes fixed by implementing the required seconds with fractional milliseconds. Test added extract_seconds.Bug-2793.sql ## Comment 15746 Date: 2011-04-28 16:25:34 +0200 From: @sjoerdmullender The Apr2011 release has been uploaded.
EXTRACT(SECOND FROM timestamp) always returns 0 integer seconds part.
https://api.github.com/repos/MonetDB/MonetDB/issues/2793/comments
0
2020-11-30T11:41:39Z
2024-06-27T11:51:39Z
https://github.com/MonetDB/MonetDB/issues/2793
753,405,668
2,793
[ "MonetDB", "MonetDB" ]
Date: 2011-03-16 17:35:27 +0100 From: Michael &lt;<papito.dit>&gt; To: SQL devs &lt;<bugs-sql>&gt; Version: 11.1.1 (Mar2011) [obsolete] CC: charnik Last updated: 2011-03-18 18:23:29 +0100 ## Comment 15596 Date: 2011-03-16 17:35:27 +0100 From: Michael &lt;<papito.dit>&gt; User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Ubuntu/10.10 Chromium/10.0.648.133 Chrome/10.0.648.133 Safari/534.16 Build Identifier: After properly configuring and installing monetdb from latest Mar2011 source branch with RDF support, I get an error when trying to call rdf_shred function. The rdf_shred function exists, but for some reason monetdb is unable to call it properly. Reproducible: Always ### Steps to Reproduce: 1. hg clone -r Mar2011 http://dev.monetdb.org/hg/MonetDB 2. ./bootstrap 3. .../configure --prefix=/... --disable-monetdb4 --enable-monetdb5 --enable-sql --enable-rdf --enable-geom --enable-pathfinder 4. make 5. make install 6. monetdbd 7. monetdb create myrdf 8. monetdb relase myrdf 9. mclient -u monetdb -l sql -d myrdf 10. sql>call rdf_shred('...','...','...'); ### Actual Results: SQLException:sql.rdfShred:RDF support is missing from MonetDB5 ### Expected Results: It should store my rdf file sql>\w0 sql>\| grep rdf sql>select * from functions; | 5498 | rdf_shred | -- create a proc | sql | true | false | true | 1148 tuples (17.910ms) !123 fields truncated! ================================================================================ ../configure --prefix=/home/pico/Desktop/MonetDB/installation --disable-monetdb4 --enable-monetdb5 --enable-sql --enable-rdf --enable-geom --enable-pathfinder ================================================================================ MonetDB is configured as follows: * Compilation specifics: Host: i686-pc-linux-gnu Compiler: gcc/g++ CFLAGS: -Wall -Wextra -fno-strict-aliasing -g $(X_CFLAGS) -Wno-declaration-after-statement X_CFLAGS: -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 LDFLAGS: * Enabled/disabled components: common is enabled monetdb5 is enabled sql is enabled geom is enabled monetdb4 is disabled pathfinder is enabled unixodbc is enabled java is enabled jdbc is enabled xrpc is enabled control is enabled testing is enabled * Important options: OID size: 32 bits ## Comment 15597 Date: 2011-03-16 17:40:11 +0100 From: Michael &lt;<papito.dit>&gt; Created attachment 60 my config.log > Attached file: [config.log](https://github.com/MonetDB/monetdb-issues-attachments/blob/master/issue_2792_config.log_60) (text/plain, 399465 bytes) > Description: my config.log ## Comment 15598 Date: 2011-03-17 10:13:21 +0100 From: @grobian Since rdf is not supported on any release branch, I think you should switch to development sources. Note, however, that those do not come with any warranty either. ## Comment 15599 Date: 2011-03-17 10:24:02 +0100 From: @grobian Changeset [d0ea7b2614d5](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d0ea7b2614d5) made by Fabian Groffen <fabian@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=d0ea7b2614d5](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=d0ea7b2614d5) Changeset description: rdf: define HAVE_RAPTOR when found It helps to enable the actual code paths supporting rdf usage next to installing some helper files. Should fix bug #2792. ## Comment 15600 Date: 2011-03-17 10:35:54 +0100 From: @grobian >select * from functions where name like 'rdf_shred'; &1 0 1 8 1 % sys.functions, sys.functions, sys.functions, sys.functions, sys.functions, sys.functions, sys.functions, sys.functions table_name % id, name, func, mod, sql, aggr, side_effect, schema_id name % int, varchar, varchar, varchar, boolean, boolean, boolean, int type % 4, 9, 233, 3, 5, 5, 5, 4 length [ 5498, "rdf_shred", "-- create a procudure to load an RDF document\n-- the chema string should be removed in the future and auto-fill it from\n-- the backend\ncreate procedure rdf_shred(location string, gname string, sch string)\n\texternal name sql.rdfshred;", "sql", true, false, true, 2000 ] >call rdf_shred('...','...','...'); !MALException:sql.rdfShred:schema missing seems fixed to me. ## Comment 15607 Date: 2011-03-18 18:23:29 +0100 From: Michael &lt;<papito.dit>&gt; Thank you for your replies Fabian. It worked for me too, but only after removing ";" from... [AC_DEFINE(HAVE_RAPTOR, 1, [Define if you have raptor installed]); have_raptor="yes"], ...because it gave me a syntax error in the configuration step. It was also needed to de-bootstrap and bootstrap, configure, make, make install all over again. Mike ================================================================================ Proof of concept sql>call rdf_shred('/home/pico/Desktop/MonetDB/installation/clc.nt','corine','rdf'); sql>\d sql>select count(*) from rdf.pso0; +--------+ | L7 | +========+ | 448340 | +--------+ 1 tuple (2.251ms)
"rdfShred:RDF support is missing from MonetDB5", although RDF support was properly configured
https://api.github.com/repos/MonetDB/MonetDB/issues/2792/comments
0
2020-11-30T11:41:36Z
2024-06-27T11:51:38Z
https://github.com/MonetDB/MonetDB/issues/2792
753,405,637
2,792
[ "MonetDB", "MonetDB" ]
Date: 2011-03-13 11:38:46 +0100 From: Babis &lt;<charnik>&gt; To: MonetDB5 devs &lt;<bugs-monetdb5>&gt; Version: 11.1.1 (Mar2011) [obsolete] CC: @yzchang Last updated: 2012-11-27 15:04:08 +0100 ## Comment 15565 Date: 2011-03-13 11:38:46 +0100 From: Babis &lt;<charnik>&gt; Created attachment 59 monetdbd log file $>monetdb create test $>monetdb release test $>monetdb start test starting database 'test'... FAILED start: starting 'test' failed: database 'test' has inconsistent state (sabaoth administration reports running, but process seems gone), review merovingian's logfile for any peculiarities $>monetdb status name state uptime health last crash test running 4m 52s 100%, 0s - $>mclient -d test merovingian: there are no available connections for 'test' > Attached file: [merovingian.log](https://github.com/MonetDB/monetdb-issues-attachments/blob/master/issue_2791_merovingian.log_59) (application/octet-stream, 2094 bytes) > Description: monetdbd log file ## Comment 15566 Date: 2011-03-13 11:43:47 +0100 From: Babis &lt;<charnik>&gt; ps -e | grep monet 84550 ?? 0:00.05 monetdbd 84570 ?? 0:00.09 /Users/charnik/apps/MonetDB_Mar2011_exp/bin/mserver5 --config=/Users/charnik/apps/MonetDB_Mar2011_exp/etc/monetdb5.conf --dbname=test --set merovingian_uri mapi:monetdb://charalampos-nikolaous-macbook-pro.local:50000/test --set mapi_open false --set mapi_port 0 --set mapi_usock /Users/charnik/apps/MonetDB_Mar2011_exp/var/monetdb5/dbfarm/test/.mapi.sock 84600 ttys000 0:00.00 grep --color=always monet ## Comment 15567 Date: 2011-03-13 11:48:53 +0100 From: @grobian can you run the following command manually, and report what happens? /Users/charnik/apps/MonetDB_Mar2011_exp/bin/mserver5 --config=/Users/charnik/apps/MonetDB_Mar2011_exp/etc/monetdb5.conf --dbname=test --set merovingian_uri=mapi:monetdb://charalampos-nikolaous-macbook-pro.local:50000/test --set mapi_open=false --set mapi_port=0 --set mapi_usock=/Users/charnik/apps/MonetDB_Mar2011_exp/var/monetdb5/dbfarm/test/.mapi.sock --set monet_vault_key=/Users/charnik/apps/MonetDB_Mar2011_exp/var/monetdb5/dbfarm/test/.vaultkey ## Comment 15568 Date: 2011-03-13 18:40:48 +0100 From: Babis &lt;<charnik>&gt; Here you are: $ /Users/charnik/apps/MonetDB_Mar2011_exp/bin/mserver5 --config=/Users/charnik/apps/MonetDB_Mar2011_exp/etc/monetdb5.conf --dbname=test --set merovingian_uri=mapi:monetdb://charalampos-nikolaous-macbook-pro.local:50000/test --set mapi_open=false --set mapi_port=0 --set mapi_usock=/Users/charnik/apps/MonetDB_Mar2011_exp/var/monetdb5/dbfarm/test/.mapi.sock --set monet_vault_key=/Users/charnik/apps/MonetDB_Mar2011_exp/var/monetdb5/dbfarm/test/.vaultkey MonetDB 5 server v11.1.0 Not released Serving database 'test', using 2 threads Compiled for i386-apple-darwin10.6.0/64bit with 64bit OIDs dynamically linked Found 1.649 GiB available main-memory. Copyright (c) 1993-July 2008 CWI. Copyright (c) August 2008-2011 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information WARNING: LoaderException:loadLibrary:failed to load library: dlopen(/Users/charnik/apps/MonetDB_Mar2011_exp/lib/monetdb5/lib/lib_geom.so, 10): Symbol not found: _GEOSArea Referenced from: /Users/charnik/apps/MonetDB_Mar2011_exp/lib/monetdb5/lib/lib_geom.so Expected in: flat namespace in /Users/charnik/apps/MonetDB_Mar2011_exp/lib/monetdb5/lib/lib_geom.so !SyntaxException:parseError:command tostr() :str address mbrTOSTR; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command fromstr() :mbr address mbrFROMSTR; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command hash() :int address mbrHASH; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command null() :int address mbrNULL; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command cmp() :int address mbrCOMP; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command read() address mbrREAD; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command write() address mbrWRITE; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command mbr(v:str) :mbr address mbrFromString; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command tostr() :str address wkbTOSTR; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command fromstr() :wkb address wkbFROMSTR; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command hash() :int address wkbHASH; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command null() :int address wkbNULL; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command cmp() :int address wkbCOMP; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command read() address wkbREAD; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command write() address wkbWRITE; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command put() :int address wkbPUT; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command del() :int address wkbDEL; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command length() :int address wkbLENGTH; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command heap() :int address wkbHEAP; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command wkb{unsafe}(v:str) :wkb address wkbFromString; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command FromText{unsafe}(w:str, type:int) :wkb address wkbFromText; !SyntaxException:parseError: ^<address> not found !TypeException:geom.PointFromText[1]:object code for command wkb.FromText missing !TypeException:geom.PointFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.CurveFromText[1]:object code for command wkb.FromText missing !TypeException:geom.CurveFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.LineFromText[1]:object code for command wkb.FromText missing !TypeException:geom.LineFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.SurfaceFromText[1]:object code for command wkb.FromText missing !TypeException:geom.SurfaceFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.PolyFromText[1]:object code for command wkb.FromText missing !TypeException:geom.PolyFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.MultiPointFromText[1]:object code for command wkb.FromText missing !TypeException:geom.MultiPointFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.MultiCurveFromText[1]:object code for command wkb.FromText missing !TypeException:geom.MultiCurveFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.MultiLineFromText[1]:object code for command wkb.FromText missing !TypeException:geom.MultiLineFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.MultiSurfaceFromText[1]:object code for command wkb.FromText missing !TypeException:geom.MultiSurfaceFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.MultiPolyFromText[1]:object code for command wkb.FromText missing !TypeException:geom.MultiPolyFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.GeomFromText[1]:object code for command wkb.FromText missing !TypeException:geom.GeomFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.GeomCollectionFromText[1]:object code for command wkb.FromText missing !TypeException:geom.GeomCollectionFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:calc.point[1]:object code for command wkb.FromText missing !TypeException:calc.point[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.curve[1]:object code for command wkb.FromText missing !TypeException:calc.curve[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.linestring[1]:object code for command wkb.FromText missing !TypeException:calc.linestring[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.surface[1]:object code for command wkb.FromText missing !TypeException:calc.surface[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.polygon[1]:object code for command wkb.FromText missing !TypeException:calc.polygon[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.multipoint[1]:object code for command wkb.FromText missing !TypeException:calc.multipoint[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.multicurve[1]:object code for command wkb.FromText missing !TypeException:calc.multicurve[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.multilinestring[1]:object code for command wkb.FromText missing !TypeException:calc.multilinestring[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.multisurface[1]:object code for command wkb.FromText missing !TypeException:calc.multisurface[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.multipolygon[1]:object code for command wkb.FromText missing !TypeException:calc.multipolygon[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.geometry[1]:object code for command wkb.FromText missing !TypeException:calc.geometry[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.geometrycollection[1]:object code for command wkb.FromText missing !TypeException:calc.geometrycollection[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:user.main[2415]:object code for command geom.prelude missing !TypeException:user.main[2415]:'geom.prelude' undefined in: _2415:void := geom.prelude() ## Comment 15569 Date: 2011-03-13 18:44:01 +0100 From: @grobian ah, that problem has already been fixed. You'll have to grab tomorrow's sources, or hg update. ## Comment 15570 Date: 2011-03-14 18:02:12 +0100 From: Babis &lt;<charnik>&gt; (In reply to comment 4) > ah, that problem has already been fixed. You'll have to grab tomorrow's > sources, or hg update. After hg pull -u, the same error holds. /Users/charnik/apps/MonetDB_Mar2011_exp/bin/mserver5 --config=/Users/charnik/apps/MonetDB_Mar2011_exp/etc/monetdb5.conf --dbname=test --set merovingian_uri=mapi:monetdb://charalampos-nikolaous-macbook-pro.local:50000/test --set mapi_open=false --set mapi_port=0 --set mapi_usock=/Users/charnik/apps/MonetDB_Mar2011_exp/var/monetdb5/dbfarm/test/.mapi.sock --set monet_vault_key=/Users/charnik/apps/MonetDB_Mar2011_exp/var/monetdb5/dbfarm/test/.vaultkey MonetDB 5 server v11.1.0 Not released Serving database 'test', using 2 threads Compiled for i386-apple-darwin10.6.0/64bit with 64bit OIDs dynamically linked Found 1.668 GiB available main-memory. Copyright (c) 1993-July 2008 CWI. Copyright (c) August 2008-2011 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information WARNING: LoaderException:loadLibrary:failed to load library: dlopen(/Users/charnik/apps/MonetDB_Mar2011_exp/lib/monetdb5/lib/lib_geom.so, 10): Symbol not found: _GEOSArea Referenced from: /Users/charnik/apps/MonetDB_Mar2011_exp/lib/monetdb5/lib/lib_geom.so Expected in: flat namespace in /Users/charnik/apps/MonetDB_Mar2011_exp/lib/monetdb5/lib/lib_geom.so !SyntaxException:parseError:command tostr() :str address mbrTOSTR; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command fromstr() :mbr address mbrFROMSTR; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command hash() :int address mbrHASH; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command null() :int address mbrNULL; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command cmp() :int address mbrCOMP; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command read() address mbrREAD; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command write() address mbrWRITE; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command mbr(v:str) :mbr address mbrFromString; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command tostr() :str address wkbTOSTR; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command fromstr() :wkb address wkbFROMSTR; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command hash() :int address wkbHASH; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command null() :int address wkbNULL; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command cmp() :int address wkbCOMP; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command read() address wkbREAD; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command write() address wkbWRITE; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command put() :int address wkbPUT; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command del() :int address wkbDEL; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command length() :int address wkbLENGTH; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command heap() :int address wkbHEAP; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command wkb{unsafe}(v:str) :wkb address wkbFromString; !SyntaxException:parseError: ^<address> not found !SyntaxException:parseError:command FromText{unsafe}(w:str, type:int) :wkb address wkbFromText; !SyntaxException:parseError: ^<address> not found !TypeException:geom.PointFromText[1]:object code for command wkb.FromText missing !TypeException:geom.PointFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.CurveFromText[1]:object code for command wkb.FromText missing !TypeException:geom.CurveFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.LineFromText[1]:object code for command wkb.FromText missing !TypeException:geom.LineFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.SurfaceFromText[1]:object code for command wkb.FromText missing !TypeException:geom.SurfaceFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.PolyFromText[1]:object code for command wkb.FromText missing !TypeException:geom.PolyFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.MultiPointFromText[1]:object code for command wkb.FromText missing !TypeException:geom.MultiPointFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.MultiCurveFromText[1]:object code for command wkb.FromText missing !TypeException:geom.MultiCurveFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.MultiLineFromText[1]:object code for command wkb.FromText missing !TypeException:geom.MultiLineFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.MultiSurfaceFromText[1]:object code for command wkb.FromText missing !TypeException:geom.MultiSurfaceFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.MultiPolyFromText[1]:object code for command wkb.FromText missing !TypeException:geom.MultiPolyFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.GeomFromText[1]:object code for command wkb.FromText missing !TypeException:geom.GeomFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:geom.GeomCollectionFromText[1]:object code for command wkb.FromText missing !TypeException:geom.GeomCollectionFromText[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _4:int) !TypeException:calc.point[1]:object code for command wkb.FromText missing !TypeException:calc.point[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.curve[1]:object code for command wkb.FromText missing !TypeException:calc.curve[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.linestring[1]:object code for command wkb.FromText missing !TypeException:calc.linestring[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.surface[1]:object code for command wkb.FromText missing !TypeException:calc.surface[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.polygon[1]:object code for command wkb.FromText missing !TypeException:calc.polygon[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.multipoint[1]:object code for command wkb.FromText missing !TypeException:calc.multipoint[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.multicurve[1]:object code for command wkb.FromText missing !TypeException:calc.multicurve[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.multilinestring[1]:object code for command wkb.FromText missing !TypeException:calc.multilinestring[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.multisurface[1]:object code for command wkb.FromText missing !TypeException:calc.multisurface[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.multipolygon[1]:object code for command wkb.FromText missing !TypeException:calc.multipolygon[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.geometry[1]:object code for command wkb.FromText missing !TypeException:calc.geometry[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:calc.geometrycollection[1]:object code for command wkb.FromText missing !TypeException:calc.geometrycollection[1]:'wkb.FromText' undefined in: x:wkb := wkb.FromText(wkt:str, _3:int) !TypeException:user.main[2415]:object code for command geom.prelude missing !TypeException:user.main[2415]:'geom.prelude' undefined in: _2415:void := geom.prelude() ## Comment 15571 Date: 2011-03-14 18:12:04 +0100 From: @grobian our build Mac for todays Mar2011 shows no problems like that: http://monetdb.cwi.nl/testing/projects/monetdb/testweb/web/testgrid.php?serial=39470:a318b6bc354a&targets=GNU-Darwin-x86_64,GNU-Darwin-i386 Are you sure you have updated sources? (does hg summary report no updates, etc?) ## Comment 15572 Date: 2011-03-15 00:33:18 +0100 From: Babis &lt;<charnik>&gt; Yes, I am sure. Even if i get a new copy of the current state of the branch (i.e., by running "hg clone -r Mar2011 http://dev.monetdb.org/hg/MonetDB") i have the same behavior. (In reply to comment 6) > our build Mac for todays Mar2011 shows no problems like that: > http://monetdb.cwi.nl/testing/projects/monetdb/testweb/web/testgrid.php?serial=39470:a318b6bc354a&targets=GNU-Darwin-x86_64,GNU-Darwin-i386 > > Are you sure you have updated sources? (does hg summary report no updates, > etc?) ## Comment 15573 Date: 2011-03-15 09:03:27 +0100 From: @grobian please post the output of % otool -L /Users/charnik/apps/MonetDB_Mar2011_exp/lib/monetdb5/lib/lib_geom.so ## Comment 15574 Date: 2011-03-15 13:26:16 +0100 From: Babis &lt;<charnik>&gt; (In reply to comment 8) > please post the output of > > % otool -L /Users/charnik/apps/MonetDB_Mar2011_exp/lib/monetdb5/lib/lib_geom.so The output is the following: /Users/charnik/apps/MonetDB_Mar2011_exp/lib/monetdb5/lib/lib_geom.so: /Users/charnik/apps/MonetDB_Mar2011_exp/lib/libbat.2.dylib (compatibility version 3.0.0, current version 3.0.0) /Users/charnik/apps/MonetDB_Mar2011_exp/lib/libstream.2.dylib (compatibility version 3.0.0, current version 3.0.0) /Users/charnik/apps/MonetDB_Mar2011_exp/lib/libmonetdb5.6.dylib (compatibility version 7.0.0, current version 7.0.0) /Users/charnik/apps/MonetDB_Mar2011_exp/lib/libmapi.2.dylib (compatibility version 3.0.0, current version 3.0.0) /usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.5) /usr/lib/libcurl.4.dylib (compatibility version 6.0.0, current version 6.1.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.1) /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8) /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /usr/local/Cellar/pcre/8.11/lib/libpcre.0.dylib (compatibility version 1.0.0, current version 1.1.0) /usr/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.3.0) /usr/local/Cellar/geos/3.2.2/lib/libgeos-3.2.2.dylib (compatibility version 0.0.0, current version 0.0.0) I have also compiled monet without enabling geom module and the problem still exist. Judging by the merovingian.log, it seems that the problem is somewhere else. 2011-03-15 14:20:27 MSG merovingian[10191]: Merovingian 1.3 (unreleased) starting 2011-03-15 14:20:27 MSG merovingian[10191]: monitoring dbfarm /Users/charnik/apps/MonetDB_Mar2011_exp/var/monetdb5/dbfarm 2011-03-15 14:20:27 MSG merovingian[10191]: Merovingian 1.3 stopped 2011-03-15 14:20:27 ERR merovingian[10191]: unable to unlink control socket '.merovingian_control': No such file or directory 2011-03-15 14:20:27 ERR merovingian[10191]: unable to unlink mapi socket 'mapi_socket': No such file or directory 2011-03-15 14:20:27 ERR merovingian[10191]: binding to stream socket port 50000 failed: Address already in use 2011-03-15 14:20:27 ERR merovingian[10191]: fatal startup condition encountered, aborting startup 2011-03-15 14:20:42 MSG merovingian[10195]: Merovingian 1.3 (unreleased) starting 2011-03-15 14:20:42 MSG merovingian[10195]: monitoring dbfarm /Users/charnik/apps/MonetDB_Mar2011_exp/var/monetdb5/dbfarm 2011-03-15 14:20:42 MSG merovingian[10195]: Merovingian 1.3 stopped 2011-03-15 14:20:42 ERR merovingian[10195]: unable to unlink control socket '.merovingian_control': No such file or directory 2011-03-15 14:20:42 ERR merovingian[10195]: unable to unlink mapi socket 'mapi_socket': No such file or directory 2011-03-15 14:20:42 ERR merovingian[10195]: binding to stream socket port 50000 failed: Address already in use 2011-03-15 14:20:42 ERR merovingian[10195]: fatal startup condition encountered, aborting startup 2011-03-15 14:20:58 MSG merovingian[10201]: Merovingian 1.3 (unreleased) starting 2011-03-15 14:20:58 MSG merovingian[10201]: monitoring dbfarm /Users/charnik/apps/MonetDB_Mar2011_exp/var/monetdb5/dbfarm 2011-03-15 14:20:58 MSG merovingian[10201]: accepting connections on TCP socket 0.0.0.0:50000 2011-03-15 14:20:58 MSG merovingian[10201]: accepting connections on UNIX domain socket mapi_socket 2011-03-15 14:20:58 MSG discovery[10201]: listening for UDP messages on 0.0.0.0:50000 2011-03-15 14:20:58 MSG control[10201]: accepting connections on UNIX domain socket .merovingian_control 2011-03-15 14:20:58 MSG control[10201]: accepting connections on TCP socket 0.0.0.0:50001 2011-03-15 14:21:06 MSG control[10201]: (local): served status list 2011-03-15 14:21:09 MSG control[10201]: (local): created database 'test' 2011-03-15 14:21:13 MSG control[10201]: (local): served status list 2011-03-15 14:21:13 MSG control[10201]: (local): released database 'test' 2011-03-15 14:21:13 MSG discovery[10201]: new database mapi:monetdb://charalampos-nikolaous-macbook-pro.local:50000/test (ttl=660s) 2011-03-15 14:21:17 MSG merovingian[10201]: starting database 'test', up min/avg/max: 0s/0s/0s, crash average: 0.00 0.00 0.00 (0-0=0) 2011-03-15 14:21:17 MSG control[10201]: (local): served status list 2011-03-15 14:21:17 MSG test[10210]: arguments: /Users/charnik/apps/MonetDB_Mar2011_exp/bin/mserver5 --config=/Users/charnik/apps/MonetDB_Mar2011_exp/etc/monetdb5.conf --dbname=test --set merovingian_uri=mapi:monetdb://charalampos-nikolaous-macbook-pro.local:50000/test --set mapi_open=false --set mapi_port=0 --set mapi_usock=/Users/charnik/apps/MonetDB_Mar2011_exp/var/monetdb5/dbfarm/test/.mapi.sock --set monet_vault_key=/Users/charnik/apps/MonetDB_Mar2011_exp/var/monetdb5/dbfarm/test/.vaultkey --set monet_daemon=yes 2011-03-15 14:21:27 ERR control[10201]: (local): failed to fork mserver: database 'test' has inconsistent state (sabaoth administration reports running, but process seems gone), review merovingian's logfile for any peculiarities ## Comment 15575 Date: 2011-03-15 13:29:30 +0100 From: @grobian In that case you may try to start from scratch, removing your installation and build trees, and ensuring your compile sources are clean. ## Comment 15576 Date: 2011-03-15 13:59:47 +0100 From: Babis &lt;<charnik>&gt; (In reply to comment 10) > In that case you may try to start from scratch, removing your installation and > build trees, and ensuring your compile sources are clean. Unfortunately, it doesn't work either. ## Comment 15577 Date: 2011-03-15 14:04:33 +0100 From: @grobian I affraid the problem really only is on your side. It works for me here. This distfile has run successfully on three of the four configurations we run on Mac: http://monetdb.cwi.nl/testing/projects/monetdb/testweb/web/39474:4290eda628e7/MonetDB-11.1.0.tar.gz ## Comment 15578 Date: 2011-03-15 16:30:04 +0100 From: Babis &lt;<charnik>&gt; (In reply to comment 12) > I affraid the problem really only is on your side. It works for me here. > > This distfile has run successfully on three of the four configurations we run > on Mac: > http://monetdb.cwi.nl/testing/projects/monetdb/testweb/web/39474:4290eda628e7/MonetDB-11.1.0.tar.gz Same behavior. What is this error for? "sabaoth administration reports running, but process seems gone". Is any interprocess communication taking place? Maybe, it is a MacOS specific issue regarding to interprocess communication. I am on Snow Leopard if this plays any role. ## Comment 15579 Date: 2011-03-15 16:58:02 +0100 From: @grobian what version of geos do you have installed? ## Comment 15580 Date: 2011-03-15 17:00:18 +0100 From: Babis &lt;<charnik>&gt; (In reply to comment 14) > what version of geos do you have installed? $ brew info geos geos 3.2.2 http://trac.osgeo.org/geos/ /usr/local/Cellar/geos/3.2.2 (355 files, 7.7M) http://github.com/mxcl/homebrew/commits/master/Library/Formula/geos.rb ## Comment 15581 Date: 2011-03-15 17:02:07 +0100 From: Babis &lt;<charnik>&gt; (In reply to comment 14) > what version of geos do you have installed? But, again I have to say that the geos library does not have to do with this error, because i get it even when I run configure with --disable-geos. ## Comment 15582 Date: 2011-03-15 17:03:03 +0100 From: @grobian (In reply to comment 9) > I have also compiled monet without enabling geom module and the problem still > exist. Judging by the merovingian.log, it seems that the problem is somewhere > else. Did you mean you didn't use --enable-geom, or did you actually use --disable-geom? In case you have the same behaviour when --disable-geom is given, please post mserver5 startup output for that case. ## Comment 15583 Date: 2011-03-15 17:04:14 +0100 From: @grobian yeah, ok, but configure should have informed you --disable-geos is not a valid option. ## Comment 15584 Date: 2011-03-15 18:45:21 +0100 From: Babis &lt;<charnik>&gt; (In reply to comment 18) > yeah, ok, but configure should have informed you --disable-geos is not a valid > option. No, I used explicitly --disable-geom and configure didn't complain. I re-compiled it once more without the geom module and now it works. It is very strange. So, should we open a new bug for this regarding the geom module? I summarize the behavior: 1) Compiling Mar2011 without enabling the geom module is OK. 2) Compiling Mar2011 with the geom module enabled is not OK and all the errors can be found in the current bug report. ## Comment 15585 Date: 2011-03-15 18:56:06 +0100 From: @grobian Great. Your system seems not to link to the correct library. Can you check: - your configure contains "sed 's:geos:geos_c:'" - your brew thing installs /usr/local/lib/libgeos_c.dylib - and this symlink points to libgeos_c.dylib, not libgeos.dylib ## Comment 15586 Date: 2011-03-15 19:21:58 +0100 From: Babis &lt;<charnik>&gt; (In reply to comment 20) > Great. Your system seems not to link to the correct library. > > Can you check: > - your configure contains "sed 's:geos:geos_c:'" $ grep "sed 's:geos:geos_c:'" ../MonetDB/configure GEOS_LIBS="`$GEOS_CONFIG --libs | sed 's:geos:geos_c:'`" > - your brew thing installs /usr/local/lib/libgeos_c.dylib $ locate libgeos_c.dylib /usr/local/Cellar/geos/3.2.2/lib/libgeos_c.dylib /usr/local/lib/libgeos_c.dylib > - and this symlink points to libgeos_c.dylib, not libgeos.dylib $ ls -l /usr/local/lib/libgeos_c.dylib /usr/local/lib/libgeos_c.dylib@ -> ../Cellar/geos/3.2.2/lib/libgeos_c.dylib $ ls -l /usr/local/Cellar/geos/3.2.2/lib/libgeos_c.dylib /usr/local/Cellar/geos/3.2.2/lib/libgeos_c.dylib@ -> libgeos_c.1.dylib $ ls -l /usr/local/Cellar/geos/3.2.2/lib/libgeos_c.1.dylib /usr/local/Cellar/geos/3.2.2/lib/libgeos_c.1.dylib It seems OK to me. ## Comment 15587 Date: 2011-03-15 19:29:18 +0100 From: @grobian I agree, so there must be something on your end that still links in libgeos instead of libgeos_c. What does "geos-config --libs | sed 's:geos:geos_c:'" yield in? (build-x86-macosx:~) fabian% geos-config --libs | sed 's:geos:geos_c:' -L/Volumes/scratch/gentoo/usr/lib -lgeos_c ## Comment 15588 Date: 2011-03-15 19:32:27 +0100 From: Babis &lt;<charnik>&gt; (In reply to comment 22) > I agree, so there must be something on your end that still links in libgeos > instead of libgeos_c. > > What does "geos-config --libs | sed 's:geos:geos_c:'" yield in? > > (build-x86-macosx:~) fabian% geos-config --libs | sed 's:geos:geos_c:' > -L/Volumes/scratch/gentoo/usr/lib -lgeos_c Nothing strange here: $ geos-config --libs | sed 's:geos:geos_c:' -L/usr/local/Cellar/geos_c/3.2.2/lib -lgeos ## Comment 15589 Date: 2011-03-15 19:33:39 +0100 From: @grobian apart from that the sed doesn't work :( ## Comment 15590 Date: 2011-03-15 19:35:09 +0100 From: @grobian does brew also provide sed in your case? (build-x86-macosx:~) fabian% geos-config --libs | /usr/bin/sed 's:geos:geos_c:' -L/Volumes/scratch/gentoo/usr/lib -lgeos_c ## Comment 15591 Date: 2011-03-15 19:41:59 +0100 From: Babis &lt;<charnik>&gt; (In reply to comment 25) > does brew also provide sed in your case? > > (build-x86-macosx:~) fabian% geos-config --libs | /usr/bin/sed 's:geos:geos_c:' > -L/Volumes/scratch/gentoo/usr/lib -lgeos_c Ahh, I got it. The sed does work, but in my case there are two occurences of the geos string. The sed as written changes the first occurence, but I think you want to change only the last one. Is that right? So, maybe we can use this one: sed 's:-lgeos:-lgeos_c:' What do you think? ## Comment 15592 Date: 2011-03-15 19:45:41 +0100 From: @grobian I accept that as a valid thing ## Comment 15593 Date: 2011-03-15 19:48:05 +0100 From: @grobian Changeset [224714ab00ee](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=224714ab00ee) made by Fabian Groffen <fabian@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=224714ab00ee](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=224714ab00ee) Changeset description: configure: be less error-prone in geos sed hack Some package managers repeat the name of the package they install in the actual installation path. Make sure we don't match on that path, but only on the lib. Thanks Babis in bug #2791. ## Comment 15594 Date: 2011-03-15 19:49:48 +0100 From: @grobian should be fixed now for real ## Comment 15595 Date: 2011-03-15 20:08:12 +0100 From: Babis &lt;<charnik>&gt; (In reply to comment 29) > should be fixed now for real Indeed. Thanks ## Comment 18104 Date: 2012-11-27 15:04:08 +0100 From: @yzchang Compilation issue, no need to test ## Comment 18193 Date: 2012-11-28 13:45:19 +0100 From: duc &lt;<duc>&gt; Changeset [cf4a0dd1979d](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=cf4a0dd1979d) made by Minh-Duc Pham <duc@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=cf4a0dd1979d](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=cf4a0dd1979d) Changeset description: Add test for Bug #2791 ## Comment 18194 Date: 2012-11-28 13:45:22 +0100 From: duc &lt;<duc>&gt; Changeset [986cbd852f20](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=986cbd852f20) made by Minh-Duc Pham <duc@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=986cbd852f20](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=986cbd852f20) Changeset description: Add test of Bug #2791 to the All file ## Comment 18195 Date: 2012-11-28 13:45:24 +0100 From: duc &lt;<duc>&gt; Changeset [368b8edeb43c](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=368b8edeb43c) made by Minh-Duc Pham <duc@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=368b8edeb43c](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=368b8edeb43c) Changeset description: Change the test script for Bug #2791 Remove sql file, send the sql command directly to the mclient
Problem during start of a newly created database
https://api.github.com/repos/MonetDB/MonetDB/issues/2791/comments
0
2020-11-30T11:41:32Z
2024-06-27T11:51:36Z
https://github.com/MonetDB/MonetDB/issues/2791
753,405,585
2,791
[ "MonetDB", "MonetDB" ]
Date: 2011-03-10 14:15:33 +0100 From: @bartscheers To: SQL devs &lt;<bugs-sql>&gt; Version: 2.40.1 (Oct2010) [obsolete] CC: @njnes Last updated: 2011-03-28 17:31:32 +0200 ## Comment 15562 Date: 2011-03-10 14:15:33 +0100 From: @bartscheers User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.14) Gecko/20110301 Fedora/3.6.14-1.fc14 Firefox/3.6.14 Build Identifier: This bug might be related to 2739. Using version Oct2010-SP1. When executing a query with avg(d)*avg(d) the results are correct, but when this is created within a view, the results are wrong. Reproducible: Always ### Steps to Reproduce: 1. create table t (d double); 2. insert into d values (2),(3); 3. select avg(d) as avg_d, avg(d*d) as avg_d2, avg(d)*avg(d) as avg2_d_mult from t; this gives the expected results. 4. create view tv as select avg(d) as avg_d, avg(d*d) as avg_d2, avg(d)*avg(d) as avg2_d_mult from t; this gives for avg2_d_mult the wrong results. ### Actual Results: View returns erroneous value. ### Expected Results: Correct result Tried a workaround by using power(avg(d),2) but this did also not work. 1. select avg(d) as avg_d, avg(d*d) as avg_d2, power(avg(d),2) as avg2_d_pow from t; 2. create view tv1 as select avg(d) as avg_d, avg(d*d) as avg_d2, power(avg(d),2) as avg2_d_pow from t; 3. select * from tv1; TypeException:user.s0_1[48]:'mmath.pow' undefined in: _60:any := mmath.pow(_29:wrd, _59:dbl) SQLException:SQLengine:Program contains errors ## Comment 15605 Date: 2011-03-18 16:42:53 +0100 From: @njnes added test view_avg_incorrect_result.Bug-2790.sql fixed by using unique label numbers ## Comment 15630 Date: 2011-03-28 17:31:32 +0200 From: @sjoerdmullender The Mar2011 version has been released.
View returns erroneous result for squared average function as compared to query
https://api.github.com/repos/MonetDB/MonetDB/issues/2790/comments
0
2020-11-30T11:41:29Z
2024-06-27T11:51:35Z
https://github.com/MonetDB/MonetDB/issues/2790
753,405,564
2,790
[ "MonetDB", "MonetDB" ]
Date: 2011-03-09 15:25:51 +0100 From: @grobian To: Merovingian devs &lt;<bugs-merovingian>&gt; Version: 11.5.1 (Aug2011) [obsolete] Last updated: 2011-09-30 11:08:41 +0200 ## Comment 15553 Date: 2011-03-09 15:25:51 +0100 From: @grobian In a crippled network setting (where proper nameservice for all participating nodes is NOT implemented), hostnames may be bogus, but merovingian uses it in the urls of discovered neighbours. It is probably a good idea to just check if the hostname is resolvable, and then just use the plan IP address of the originator of the message it received, if resolution fails (or points to another address). ## Comment 16023 Date: 2011-07-29 10:59:03 +0200 From: @sjoerdmullender Apr2011-SP2 has been released. ## Comment 16268 Date: 2011-09-16 15:09:52 +0200 From: @sjoerdmullender The Aug2011 version has been released. ## Comment 16357 Date: 2011-09-30 11:08:41 +0200 From: @grobian wontfixing this one. If the network config is not sane, all kinds of things may go wrong beyond the scope of merovingian
check if hostname is resolvable in neighbour discovery
https://api.github.com/repos/MonetDB/MonetDB/issues/2789/comments
0
2020-11-30T11:41:27Z
2024-06-28T13:40:44Z
https://github.com/MonetDB/MonetDB/issues/2789
753,405,530
2,789
[ "MonetDB", "MonetDB" ]
Date: 2011-03-09 15:21:03 +0100 From: @grobian To: Merovingian devs &lt;<bugs-merovingian>&gt; Version: 11.1.1 (Mar2011) [obsolete] Last updated: 2011-03-28 17:31:34 +0200 ## Comment 15552 Date: 2011-03-09 15:21:03 +0100 From: @grobian % $INSTALL_DIR/bin/monetdb stop -a stopping database 'test'... FAILED stop: database is not running: test traditionally, -a should stay quiet for databases already stopped ## Comment 15554 Date: 2011-03-09 15:41:01 +0100 From: @grobian Changeset [e126bb238f7e](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e126bb238f7e) made by Fabian Groffen <fabian@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=e126bb238f7e](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=e126bb238f7e) Changeset description: monetdb: fix logic error causing start/stop -a to misbehave Fix for bug #2788. Due to an inversed condition check, -a for start, stop and kill would needlessly show errors for already started, stopped (or crashed) servers. ## Comment 15634 Date: 2011-03-28 17:31:34 +0200 From: @sjoerdmullender The Mar2011 version has been released.
stop -a complains about already stopped databases
https://api.github.com/repos/MonetDB/MonetDB/issues/2788/comments
0
2020-11-30T11:41:24Z
2024-06-27T11:51:33Z
https://github.com/MonetDB/MonetDB/issues/2788
753,405,497
2,788
[ "MonetDB", "MonetDB" ]
Date: 2011-03-09 11:34:56 +0100 From: Milena Ivanova &lt;<M.Ivanova>&gt; To: Merovingian devs &lt;<bugs-merovingian>&gt; Version: -- development Last updated: 2011-03-10 11:43:36 +0100 ## Comment 15547 Date: 2011-03-09 11:34:56 +0100 From: Milena Ivanova &lt;<M.Ivanova>&gt; User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.14) Gecko/20110301 Fedora/3.6.14-1.fc14 Firefox/3.6.14 Build Identifier: Fresh installation of default, new database created and released cannot start: merovingian: internal error while starting mserver, please refer to the logs 2011-03-09 11:09:45 MSG merovingian[27343]: starting database 'test', up min/ avg/max: 0s/0s/0s, crash average: 0.00 0.00 0.00 (0-0=0) 2011-03-09 11:09:45 MSG test[27356]: arguments: /export/scratch1/milena/monet. DBG/bin/mserver5 --set gdk_dbfarm=. --dbname=test --set merovingian_uri=mapi: monetdb://palu.ins.cwi.nl:50000/test --set mapi_open=false --set mapi_port=0 -- set mapi_usock=./test/.mapi.sock --set monet_vault_key=./test/.vaultkey --set monet_daemon=yes 2011-03-09 11:09:45 MSG test[27356]: !GDKenvironment: wrong directory .. 2011-03-09 11:09:45 MSG merovingian[27343]: database 'test' (27356) has exited with exit status 0 2011-03-09 11:09:54 ERR merovingian[27343]: client error: database 'test' appears to shut itself down after starting, check merovingian's logfile for possible hints Reproducible: Always ### Steps to Reproduce: 1.monetdb create test 2. monetdb release test 3. monetdb status name state uptime health last crash test stopped 4. mclient -lsql -dtest merovingian: internal error while starting mserver, please refer to the logs ## Comment 15558 Date: 2011-03-10 11:43:16 +0100 From: @grobian Changeset [fa081ca22413](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=fa081ca22413) made by Fabian Groffen <fabian@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=fa081ca22413](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=fa081ca22413) Changeset description: merovingian: retrieve cwd for gdk_dbfarm GDK doesn't like a relative dbfarm ("."), so we need to pass an absolute location to it. Retrieve it, and give it to sabaoth, which in turn will give it to mserver in fork_mserver. This fixes bug #2787 ## Comment 15559 Date: 2011-03-10 11:43:36 +0100 From: @grobian thanks, fixed
merovingian: internal error while starting mserver; gdk_dbfarm set to .
https://api.github.com/repos/MonetDB/MonetDB/issues/2787/comments
0
2020-11-30T11:41:21Z
2024-06-27T11:51:32Z
https://github.com/MonetDB/MonetDB/issues/2787
753,405,466
2,787
[ "MonetDB", "MonetDB" ]
Date: 2011-03-08 15:29:20 +0100 From: manuela &lt;<m.sagona>&gt; To: SQL devs &lt;<bugs-sql>&gt; Version: 11.1.1 (Mar2011) [obsolete] CC: @njnes, steffen.hausmann Last updated: 2011-03-28 17:31:38 +0200 ## Comment 15543 Date: 2011-03-08 15:29:20 +0100 From: manuela &lt;<m.sagona>&gt; User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13 Build Identifier: When you connect to monetdb with a new user on a new db and try to display the tables (you have already loaded in), the client response is "connection lost" unless you quit, login as monetdb, quit again and login again as the new user. Reproducible: Always ### Steps to Reproduce: 1. create a new user and a new db and load the data in 2. login with such credentials 3. display tables ### Actual Results: sql>\d MAPI = (voc) /home/manuela/MyMonetDB/var/monetdb5/dbfarm/mapi_socket ACTION= mapi_query ERROR = !Connection lost MAPI = (voc) /home/manuela/MyMonetDB/var/monetdb5/dbfarm/mapi_socket ACTION= mapi_query ERROR = !Connection lost ### Expected Results: sql>\d TABLE voc.craftsmen TABLE voc.impotenten TABLE voc.invoices TABLE voc.lastvoyages TABLE voc.lastvoyages2 VIEW voc.onboard_people TABLE voc.passengers TABLE voc.seafarers TABLE voc.soldiers TABLE voc.total VIEW voc.total_onboard TABLE voc.voyages ## Comment 15544 Date: 2011-03-08 17:03:09 +0100 From: @grobian I've seen this happening, also on Stefan's laptop, but I can't reproduce it: (volund:monetdb/Mar2011/hgrepo) fabian% $INSTALL_DIR/bin/monetdb status (volund:monetdb/Mar2011/hgrepo) fabian% $INSTALL_DIR/bin/monetdb create test created database in maintenance mode: test (volund:monetdb/Mar2011/hgrepo) fabian% $INSTALL_DIR/bin/monetdb release test taken database out of maintenance mode: test (volund:monetdb/Mar2011/hgrepo) fabian% $INSTALL_DIR/bin/mclient -dtest Welcome to mclient, the MonetDB/SQL interactive terminal (Mar2011-hg) Database: MonetDB v11.1.0, 'test' Type \q to quit, \? for a list of available commands auto commit mode: on sql>CREATE USER "voc" WITH PASSWORD 'voc' NAME 'VOC Explorer' SCHEMA "sys"; operation successful sql>CREATE SCHEMA "voc" AUTHORIZATION "voc"; operation successful sql>ALTER USER "voc" SET SCHEMA "voc"; operation successful (volund:monetdb/Mar2011/hgrepo) fabian% $INSTALL_DIR/bin/mclient -dtest -uvoc password: Welcome to mclient, the MonetDB/SQL interactive terminal (Mar2011-hg) Database: MonetDB v11.1.0, 'test' Type \q to quit, \? for a list of available commands auto commit mode: on sql>\d sql> sql>\d sql> (volund:monetdb/Mar2011/hgrepo) fabian% wget "http://monetdb.cwi.nl/Assets/VOC/voc_dump.sql.bz2" -O - | bzcat | $INSTALL_DIR/bin/mclient -dtest -uvoc ... (volund:monetdb/Mar2011/hgrepo) fabian% $INSTALL_DIR/bin/mclient -dtest -uvoc password: Welcome to mclient, the MonetDB/SQL interactive terminal (Mar2011-hg) Database: MonetDB v11.1.0, 'test' Type \q to quit, \? for a list of available commands auto commit mode: on sql>\d TABLE voc.craftsmen TABLE voc.impotenten TABLE voc.invoices TABLE voc.passengers TABLE voc.seafarers TABLE voc.soldiers TABLE voc.total TABLE voc.voyages sql>\d TABLE voc.craftsmen TABLE voc.impotenten TABLE voc.invoices TABLE voc.passengers TABLE voc.seafarers TABLE voc.soldiers TABLE voc.total TABLE voc.voyages (volund:monetdb/Mar2011/hgrepo) fabian% $INSTALL_DIR/bin/monetdb status name state uptime health last crash test running 3m 24s 100%, 0s - ## Comment 15545 Date: 2011-03-08 17:05:13 +0100 From: @grobian ah... one needs to stop (and start) the mserver, then it indeed fails on each and every query that is performed: 2011-03-08 17:04:15 MSG merovingian[9866]: database 'test' (10702) was killed by signal SIGSEGV ## Comment 15546 Date: 2011-03-08 17:39:17 +0100 From: @grobian Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffe6321700 (LWP 11300)] 0x00007fffe7485755 in create_func (sql=0x7fffd8005468, qname=0x7fffd80e1288, params=0x0, res=0x7fffd80e13d8, ext_name=0x7fffd80e1418, body=0x0, is_func=1, is_aggr=0) at /ufs/fabian/scratch/monetdb/Mar2011/hgrepo/sql/server/sql_psm.c:620 620 sql_func *f = sf->func; this was introduced in commit [81293e2793a5](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=81293e2793a5) The sf was found to be NULL before, it's basically never set. Niels, I've no idea what the intended use was here. ## Comment 15549 Date: 2011-03-09 15:17:48 +0100 From: @grobian *** Bug #2785 has been marked as a duplicate of this bug. *** ## Comment 15555 Date: 2011-03-09 17:28:47 +0100 From: @njnes Changeset [895515c4cf65](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=895515c4cf65) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=895515c4cf65](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=895515c4cf65) Changeset description: fixed bug #2786 we need to instantiate functions in the proper schema context. ## Comment 15556 Date: 2011-03-09 17:29:44 +0100 From: @njnes fixed the bug, test needs to be added still. ## Comment 15601 Date: 2011-03-17 10:39:37 +0100 From: @grobian bug cannot be tested using Mtest ## Comment 15645 Date: 2011-03-28 17:31:38 +0200 From: @sjoerdmullender The Mar2011 version has been released.
crash when first connection is with another user than monetdb
https://api.github.com/repos/MonetDB/MonetDB/issues/2786/comments
0
2020-11-30T11:41:18Z
2024-06-27T11:51:31Z
https://github.com/MonetDB/MonetDB/issues/2786
753,405,443
2,786
[ "MonetDB", "MonetDB" ]
Date: 2011-03-08 11:53:32 +0100 From: Steffen Hausmann &lt;<steffen.hausmann>&gt; To: MonetDB5 devs &lt;<bugs-monetdb5>&gt; Version: 11.1.1 (Mar2011) [obsolete] Duplicates: #2786 Last updated: 2011-03-09 15:17:48 +0100 ## Comment 15540 Date: 2011-03-08 11:53:32 +0100 From: Steffen Hausmann &lt;<steffen.hausmann>&gt; User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15 Build Identifier: If the VOC dataset is loaded to a database and two mclients connect to the database the cpu usage of the mserver5 process goes up to 100%. The client that connects second does not respond either. Reproducible: Always ### Steps to Reproduce: 1. create new database 2. load voc dataset 2.1 mclient -lsql -d test < create_user.sql 2.2 mclient -lsql -d test < voc_dump.sql 3. mclient -lsql -dtest 4. mclient -lsql -dtest ### Actual Results: The cpu useage of the mserver5 process goes up to 100%. The client hangs and does not finish to connect to the database. ### Expected Results: Client connects to the database and offers a promt. ## Comment 15541 Date: 2011-03-08 11:54:14 +0100 From: Steffen Hausmann &lt;<steffen.hausmann>&gt; hausmann@wireless32-109:~$ mserver5 --version MonetDB 5 server v11.1.0 (64-bit, 64-bit oids) Not released Copyright (c) 1993-July 2008 CWI Copyright (c) August 2008-2011 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information Found 5.7GiB available memory, 2 available cpu cores Configured for prefix: /Users/hausmann/monetdb-test/ Libraries: libpcre: 8.12 2011-01-15 (compiled with 8.12) openssl: OpenSSL 0.9.8l 5 Nov 2009 (compiled with OpenSSL 0.9.8l 5 Nov 2009) libxml2: 2.7.3 (compiled with 2.7.3) Compiled by: hausmann@wireless32-109.cwi.nl (i386-apple-darwin10.6.0) Compilation: gcc -Wall -Wextra -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 Linking : /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld ## Comment 15542 Date: 2011-03-08 12:22:17 +0100 From: @grobian it hangs, doesn't crash :) ## Comment 15548 Date: 2011-03-09 15:17:48 +0100 From: @grobian this is actually the same issue as bug #2786, but on Darwin, no crash occurs, but some endless loop due to the dereference of garbage. *** This bug has been marked as a duplicate of bug #2786 ***
monetdb server hangs if multiple mclients connect simultaneously
https://api.github.com/repos/MonetDB/MonetDB/issues/2785/comments
0
2020-11-30T11:41:15Z
2024-06-28T07:23:12Z
https://github.com/MonetDB/MonetDB/issues/2785
753,405,413
2,785
[ "MonetDB", "MonetDB" ]
Date: 2011-03-07 16:17:07 +0100 From: @drstmane To: buildtools devs &lt;<bugs-buildtools>&gt; Version: 11.3.1 (Apr2011) [obsolete] Last updated: 2011-05-31 13:59:26 +0200 ## Comment 15539 Date: 2011-03-07 16:17:07 +0100 From: @drstmane User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20110103 Fedora/3.6.13-1.fc14 Firefox/3.6.13 Build Identifier: configure does not properly check for yacc/bison, or at least is does not disable SQL which requires yacc/bison for its parser. Hence, if there is no yacc/bison configure finishes successfully, but compilation of SQL eventually fails. Reproducible: Always ### Steps to Reproduce: 1. choose a system without yacc/bison 2. configure MonetDB Mar2011 sources with sql enabled (default) 3. (try to) compile ### Actual Results: make fails complaining about missing yacc/bison executable ### Expected Results: configure complains about missing yacc/bison and disables sql ## Comment 15563 Date: 2011-03-11 14:00:12 +0100 From: @sjoerdmullender I didn't realize that there was an open bug when I tried to fix this, otherwise I would have mentioned the bug number in the message. Changeset http://dev.monetdb.org/hg/MonetDB/rev/da89d88f886d should contain the fix.
configure does not (properly) check for yacc/bison
https://api.github.com/repos/MonetDB/MonetDB/issues/2784/comments
0
2020-11-30T11:41:12Z
2024-06-27T11:51:29Z
https://github.com/MonetDB/MonetDB/issues/2784
753,405,385
2,784
[ "MonetDB", "MonetDB" ]
Date: 2011-03-05 20:48:50 +0100 From: @skinkie To: MonetDB5 devs &lt;<bugs-monetdb5>&gt; Version: -- development Last updated: 2011-03-05 21:23:50 +0100 ## Comment 15522 Date: 2011-03-05 20:48:50 +0100 From: @skinkie User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.19 Safari/534.13 Build Identifier: Program received signal SIGSEGV, Segmentation fault. 0x00007fffec841f48 in rids_select (tr=0x7fffe814a508, key=0x7fffe814aa08, key_value_low=0x0, key_value_high=0x0) at bat_table.c:265 265 if (bat->dbid) I'm getting this when specifing a new dbname, that does not exist yet. Reproducible: Always ## Comment 15526 Date: 2011-03-05 21:07:04 +0100 From: @skinkie Sometimes the power of make clean is inscrutable. ## Comment 15527 Date: 2011-03-05 21:10:27 +0100 From: @skinkie After connecting the following segfault occurs... attempting if this can be fixed with a different prefix. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffebf15710 (LWP 4455)] 0x00007fffec840570 in cs_find_name (cs=0x40, name=0x7fffec861211 "name") at sql_catalog.c:26 26 return list_find_name(cs->set, name); (gdb) bt 0 0x00007fffec840570 in cs_find_name (cs=0x40, name=0x7fffec861211 "name") at sql_catalog.c:26 1 0x00007fffec840861 in find_sql_column_node (t=0x0, cname=0x7fffec861211 "name", id=-1) at sql_catalog.c:140 2 0x00007fffec8408a2 in find_sql_column (t=0x0, cname=0x7fffec861211 "name") at sql_catalog.c:148 3 0x00007fffec797eb8 in monet5_user_get_def_schema (m=0xfb0908, user=0) at sql_user.mx:469 4 0x00007fffec79936a in SQLinitClient (c=0x606898) at sql_scenario.mx:451 5 0x00007ffff6df04b2 in runPhase (c=0x606898, phase=5) at mal_scenario.mx:604 6 0x00007ffff6df0562 in runScenarioBody (c=0x606898) at mal_scenario.mx:638 7 0x00007ffff6df0871 in runScenario (c=0x606898) at mal_scenario.mx:682 8 0x00007ffff6df1868 in MSserveClient (dummy=0x606898) at mal_session.mx:486 9 0x00007ffff35c8c0a in start_thread () from /lib64/libpthread.so.0 10 0x00007ffff332da9d in clone () from /lib64/libc.so.6 ## Comment 15528 Date: 2011-03-05 21:23:50 +0100 From: @skinkie The prefix change fixed it again. So the 'invalid' is probably true.
Segfault in bat_table.c:265
https://api.github.com/repos/MonetDB/MonetDB/issues/2783/comments
0
2020-11-30T11:41:09Z
2024-06-28T07:23:11Z
https://github.com/MonetDB/MonetDB/issues/2783
753,405,349
2,783
[ "MonetDB", "MonetDB" ]
Date: 2011-03-05 16:19:30 +0100 From: @skinkie To: MonetDB5 devs &lt;<bugs-monetdb5>&gt; Version: -- development Last updated: 2011-03-05 17:21:33 +0100 ## Comment 15508 Date: 2011-03-05 16:19:30 +0100 From: @skinkie User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.19 Safari/534.13 Build Identifier: IOException:streams.open:could not open file '�L�': Operation not permitted Patch: diff -r [b17d6c4d4804](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b17d6c4d4804) monetdb5/modules/atoms/streams.mx --- a/monetdb5/modules/atoms/streams.mx Sat Mar 05 14:30:39 2011 +0100 +++ b/monetdb5/modules/atoms/streams.mx Sat Mar 05 16:17:54 2011 +0100 @@ -163,7 +163,7 @@ if (s) mnstr_destroy(s); throw(IO, "streams.open", "could not open file '%s': %s", - filename, strerror(errnr)); + *filename, strerror(errnr)); } else { *(stream**)S = s; } Reproducible: Always ## Comment 15509 Date: 2011-03-05 16:23:42 +0100 From: @grobian Thanks. If you want to get credit for this patch, submit a hg export, otherwise just say it's ok with you regardless and I'll commit it. ## Comment 15510 Date: 2011-03-05 16:50:53 +0100 From: @skinkie HG changeset patch User Stefan de Konink <stefan@konink.de> Date 1299340240 -3600 Node ID 6fdfeeb8a1dbc3a4a903c8ec4fb3e1436b829a9a Parent [b17d6c4d48046ec6554f0def08e9dbcebf25a44b](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b17d6c4d48046ec6554f0def08e9dbcebf25a44b) streams.mx: add forgotten * Fixes bug #2782 diff -r [b17d6c4d4804](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b17d6c4d4804) -r 6fdfeeb8a1db monetdb5/modules/atoms/streams.mx --- a/monetdb5/modules/atoms/streams.mx Sat Mar 05 14:30:39 2011 +0100 +++ b/monetdb5/modules/atoms/streams.mx Sat Mar 05 16:50:40 2011 +0100 @@ -163,7 +163,7 @@ if (s) mnstr_destroy(s); throw(IO, "streams.open", "could not open file '%s': %s", - filename, strerror(errnr)); + *filename, strerror(errnr)); } else { *(stream**)S = s; } ## Comment 15511 Date: 2011-03-05 16:54:34 +0100 From: @grobian I don't really want to be this picky, but tabs aren't preserved in copy/paste's, so your patch as is won't apply. Could add it as attachment or hg email it to me? ## Comment 15512 Date: 2011-03-05 17:00:29 +0100 From: @skinkie Created attachment 55 fixes stream.mx *filename issue (In reply to comment 3) > I don't really want to be this picky, but tabs aren't preserved in > copy/paste's, so your patch as is won't apply. Could add it as attachment or > hg email it to me? You refer to certain hg modules that I don't seem to have (yet). For example hg purge in de-bootstrap is also not part of what I have installed in my mercurial. Wonder where they come from... > Attached file: [streams.patch](https://github.com/MonetDB/monetdb-issues-attachments/blob/master/issue_2782_streams.patch_55) (text/plain, 663 bytes) > Description: fixes stream.mx *filename issue ## Comment 15513 Date: 2011-03-05 17:05:28 +0100 From: @grobian they are (bundled) extensions, I suggest something like this in your .hgrc: [extensions] graphlog = progress = mq = rebase = patchbomb = mq = mercurial patch queue, for easy creation, stashing and refining of patches patchbomb = email extension ## Comment 15514 Date: 2011-03-05 17:10:49 +0100 From: @skinkie Changeset [8ee8a10a29f7](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8ee8a10a29f7) made by Stefan de Konink <stefan@konink.de> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=8ee8a10a29f7](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=8ee8a10a29f7) Changeset description: modules/atom/streams: add forgotten * Fixes bug #2782 ## Comment 15515 Date: 2011-03-05 17:21:33 +0100 From: @grobian committed, thanks!
IOException error references invalid memory for filename (with patch)
https://api.github.com/repos/MonetDB/MonetDB/issues/2782/comments
0
2020-11-30T11:41:06Z
2024-06-27T11:51:27Z
https://github.com/MonetDB/MonetDB/issues/2782
753,405,314
2,782
[ "MonetDB", "MonetDB" ]
Date: 2011-02-24 11:57:40 +0100 From: Milena Ivanova &lt;<M.Ivanova>&gt; To: SQL devs &lt;<bugs-sql>&gt; Version: 11.15.11 (Feb2013-SP3) CC: duc, @mlkersten, @njnes Depends on: #2809 Last updated: 2020-05-06 10:24:43 +0200 ## Comment 15501 Date: 2011-02-24 11:57:40 +0100 From: Milena Ivanova &lt;<M.Ivanova>&gt; User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.13) Gecko/20110103 Fedora/3.6.13-1.fc14 Firefox/3.6.13 Build Identifier: select localtime(); uses internally MTIMEcurrent_timestamp that returns the GMT time. Reproducible: Always ## Comment 15744 Date: 2011-04-28 10:10:42 +0200 From: @grobian interestingly current_time() is wrong too, although it differs between mclient and JDBC (the latter sets the timezone) Even though JDBC does SET TIME ZONE INTERVAL '+02:00' HOUR TO MINUTE; the server returns a correction for just 1 hour, but not when used directly in mclient: sql>select localtime(); +-----------------+ | localtime | +=================+ | 08:09:09.000000 | +-----------------+ 1 tuple (0.579ms) sql>select current_time(); +-----------------------+ | current_time | +=======================+ | 08:09:15.000000+00:00 | +-----------------------+ 1 tuple (0.541ms) sql>SET TIME ZONE INTERVAL '+02:00' HOUR TO MINUTE; sql>select current_time(); +-----------------------+ | current_time | +=======================+ | 10:09:27.000000+02:00 | +-----------------------+ 1 tuple (0.532ms) sql> The latter seems to be a bug in JDBC? ## Comment 15794 Date: 2011-05-11 15:40:27 +0200 From: @grobian Changeset [e04ced483138](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e04ced483138) made by Fabian Groffen <fabian@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=e04ced483138](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=e04ced483138) Changeset description: JDBC: rework ResultSet timestamp/time parsing bug #2781 indicated a mismatch between what the server returned, and what Java would print by default for time values. The big issue here is working with timezones in the correct way. We now rely more on the default Java parsers to get this right. For fields with a timezone stored on the server, we can rely on the server doing the work, but for fields without, we have to do zone calculations, possibly correcting to what timezone the caller thinks the server is using. ## Comment 16319 Date: 2011-09-22 11:51:11 +0200 From: @sjoerdmullender Created attachment 76 fix for the problem The attached fixes the problem. It makes that times and timestamps are reported in the client's local timezone always. The difference between having and not having WITH TIME ZONE is that the client's timezone is reported if WITH TIME ZONE is used. However, this patch is not enough. The input should also be handled. I would expect that select cast(timestamp '2011-09-22 11:29:45' as timestamp with time zone); would then result in 2011-09-22 11:29:45+02:00 (if my timezone is +02:00). This patch doesn't do that and so is not (yet) acceptable. > Attached file: [tz.patch](https://github.com/MonetDB/monetdb-issues-attachments/blob/master/issue_2781_tz.patch_76) (text/plain, 1024 bytes) > Description: fix for the problem ## Comment 17664 Date: 2012-08-24 14:54:30 +0200 From: @sjoerdmullender Jul2012-SP1 has been released. ## Comment 18139 Date: 2012-11-27 16:04:20 +0100 From: @mlkersten sql.mx is part of SQL, redirect bug ## Comment 18196 Date: 2012-11-28 13:45:25 +0100 From: duc &lt;<duc>&gt; Changeset [b39f2769929d](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b39f2769929d) made by Minh-Duc Pham <duc@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=b39f2769929d](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=b39f2769929d) Changeset description: Test script for Bug #2781 (Replace from the wrong number, i.e., 2791) ## Comment 19071 Date: 2013-08-25 14:53:16 +0200 From: @njnes implemented new localtime/stamp functions and made sure mclient computes time zone, without the daylight saving time correction (ie plain diff in hours). ## Comment 19075 Date: 2013-08-25 16:23:38 +0200 From: MonetDB Mercurial Repository &lt;<hg>&gt; Changeset [0620e9df2003](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0620e9df2003) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=0620e9df2003](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=0620e9df2003) Changeset description: fixed bug #3232, use dayofweek, starting at Monday fixed bug #2962, convert timestamp with time zone to local time zone, when used as input to the extract functions. fixed bug #2781, use correct time zone in mclient ## Comment 19135 Date: 2013-09-06 00:26:59 +0200 From: MonetDB Mercurial Repository &lt;<hg>&gt; Changeset [c8ead4fbb1f6](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c8ead4fbb1f6) made by Stefan Manegold <Stefan.Manegold@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=c8ead4fbb1f6](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=c8ead4fbb1f6) Changeset description: (trying to) fix test currenttime.Bug-2781 on Windows: properly export SQLcurrent_daytime() & SQLcurrent_timestamp() (introduced by changeset 0620e9df2003) ## Comment 27692 Date: 2020-05-06 10:24:43 +0200 From: MonetDB Mercurial Repository &lt;<hg>&gt; Changeset [fb1d7bb740ac](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=fb1d7bb740ac) made by Pedro Ferreira <pedro.ferreira@monetdbsolutions.com> in the MonetDB repo, refers to this bug. For complete details, see [https//devmonetdborg/hg/MonetDB?cmd=changeset;node=fb1d7bb740ac](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=https//devmonetdborg/hg/MonetDB?cmd=changeset;node=fb1d7bb740ac) Changeset description: Use timestamp instead of time at bug #2781 test, so it can't never overflow if the test is performed at around midnight
SQL localtime() returns GMT time
https://api.github.com/repos/MonetDB/MonetDB/issues/2781/comments
0
2020-11-30T11:41:03Z
2024-06-27T11:51:26Z
https://github.com/MonetDB/MonetDB/issues/2781
753,405,276
2,781
[ "MonetDB", "MonetDB" ]
Date: 2011-02-23 13:43:05 +0100 From: @grobian To: GDK devs &lt;<bugs-common>&gt; Version: 11.3.1 (Apr2011) [obsolete] Last updated: 2011-05-31 14:04:51 +0200 ## Comment 15499 Date: 2011-02-23 13:43:05 +0100 From: @grobian configure should at least have a "checking whether" for the --enable-oid32 argument, and preferably also list the value to take at the end at the summary ## Comment 15564 Date: 2011-03-11 14:12:38 +0100 From: @sjoerdmullender Changeset [12e806ea4e54](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=12e806ea4e54) made by Sjoerd Mullender <sjoerd@acm.org> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=12e806ea4e54](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=12e806ea4e54) Changeset description: configure: Comment on OID size. This should fix bug #2780.
configure doesn't mention anything about --enable-oid32 argument
https://api.github.com/repos/MonetDB/MonetDB/issues/2780/comments
0
2020-11-30T11:41:00Z
2024-06-27T11:51:25Z
https://github.com/MonetDB/MonetDB/issues/2780
753,405,257
2,780
[ "MonetDB", "MonetDB" ]
Date: 2011-02-23 12:36:43 +0100 From: @grobian To: buildtools devs &lt;<bugs-buildtools>&gt; Version: -- development CC: @drstmane Last updated: 2011-04-28 16:25:38 +0200 ## Comment 15498 Date: 2011-02-23 12:36:43 +0100 From: @grobian Allow to disable building gdk, this is useful for when one only wants to build clients ## Comment 15733 Date: 2011-04-12 08:53:09 +0200 From: @drstmane Changeset [0c18a46811f1](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0c18a46811f1) made by Stefan Manegold <Stefan.Manegold@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=0c18a46811f1](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=0c18a46811f1) Changeset description: implemented "--enable-gdk" (default=auto) option for configure This fixes bug #2779, but feels more like a feature to me, hence, I implemented it in the default development branch, rather than the Apr2011 release candidate branch. ## Comment 15734 Date: 2011-04-12 08:58:32 +0200 From: @drstmane implemented in default development branch. ## Comment 15752 Date: 2011-04-28 16:25:38 +0200 From: @sjoerdmullender The Apr2011 release has been uploaded.
Make building GDK optional
https://api.github.com/repos/MonetDB/MonetDB/issues/2779/comments
0
2020-11-30T11:40:58Z
2024-06-27T11:51:24Z
https://github.com/MonetDB/MonetDB/issues/2779
753,405,226
2,779
[ "MonetDB", "MonetDB" ]
Date: 2011-02-23 08:42:53 +0100 From: @grobian To: clients devs &lt;<bugs-clients>&gt; Version: -- development Last updated: 2011-03-09 15:18:33 +0100 ## Comment 15496 Date: 2011-02-23 08:42:53 +0100 From: @grobian libtool: compile: sparc-sun-solaris2.10-gcc -DHAVE_CONFIG_H -I. -I/scratch/ufs/monet/testing/GNU-Solaris-sparc-845cdd0171ab/MonetDB/common/stream -I../.. -I/scratch/ufs/monet/testing/GNU-Solaris-sparc-845cdd0171ab/MonetDB/common/stream -I/scratch/tmp/gentoo/usr/include -I/scratch/tmp/gentoo/usr/include -I/scratch/tmp/gentoo/usr/include -DLIBSTREAM -O2 -Wall -Wextra -O2 -fomit-frame-pointer -finline-functions -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 -Wno-uninitialized -Wno-declaration-after-statement -D_REENTRANT -c /scratch/ufs/monet/testing/GNU-Solaris-sparc-845cdd0171ab/MonetDB/common/stream/stream.c -fPIC -DPIC -o .libs/libstream_la-stream.o /scratch/ufs/monet/testing/GNU-Solaris-sparc-845cdd0171ab/MonetDB/common/stream/stream.c: In function ‘ic_write’: /scratch/ufs/monet/testing/GNU-Solaris-sparc-845cdd0171ab/MonetDB/common/stream/stream.c:1868: error: implicit declaration of function ‘alloca’ cc1: warnings being treated as errors /scratch/ufs/monet/testing/GNU-Solaris-sparc-845cdd0171ab/MonetDB/common/stream/stream.c:1868: error: incompatible implicit declaration of built-in function ‘alloca’ make[5]: *** [libstream_la-stream.lo] Error 1 probably a missing include of alloca.h ## Comment 15497 Date: 2011-02-23 10:56:26 +0100 From: @sjoerdmullender Changeset [8c066bc5c326](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8c066bc5c326) made by Sjoerd Mullender <sjoerd@acm.org> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=8c066bc5c326](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=8c066bc5c326) Changeset description: Use standard blurb for alloca(). This should fix bug #2778. ## Comment 15550 Date: 2011-03-09 15:18:33 +0100 From: @grobian compiles now (at least this bit)
stream fails to compile on Solaris due to implicit alloca
https://api.github.com/repos/MonetDB/MonetDB/issues/2778/comments
0
2020-11-30T11:40:55Z
2024-06-27T11:51:23Z
https://github.com/MonetDB/MonetDB/issues/2778
753,405,204
2,778
[ "MonetDB", "MonetDB" ]
Date: 2011-02-22 11:45:46 +0100 From: Milena Ivanova &lt;<M.Ivanova>&gt; To: MonetDB5 devs &lt;<bugs-monetdb5>&gt; Version: -- development Last updated: 2011-02-22 13:42:54 +0100 ## Comment 15486 Date: 2011-02-22 11:45:46 +0100 From: Milena Ivanova &lt;<M.Ivanova>&gt; User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.13) Gecko/20110103 Fedora/3.6.13-1.fc14 Firefox/3.6.13 Build Identifier: RMTresolve is used in OCTOPUSdiscover to discover peers to which to distribute the work. Currently, it returns an empty bat, which results in local execution. The analogicous function in monetdbd shows the peers correctly: monetdb discover location palu.ins.cwi.nl:50001* mapi:monetdb://palu.ins.cwi.nl:50500/demo mapi:monetdb://palu.ins.cwi.nl:50500/head mapi:monetdb://palu.ins.cwi.nl:50500/img mapi:monetdb://palu.ins.cwi.nl:50500/qlogs mapi:monetdb://palu.ins.cwi.nl:50500/simrsm mapi:monetdb://palu.ins.cwi.nl:50500/tent1/octopus mapi:monetdb://palu.ins.cwi.nl:50500/tent2/octopus mapi:monetdb://palu.ins.cwi.nl:50500/test Reproducible: Always ### Steps to Reproduce: Below follows the octopus setup: monetdbd set port=50500 monetdbd set discoveryport=50500 monetdbd Head monetdb create head monetdb release head load TPCH cd /export/scratch1/milena/tpch mclient -lsql -dhead <create_tables.sql cat load-SF-1.sql | sed -e s+PWD+/export/scratch1/milena/tpch/SF-1+ | mclient -lsql - dhead monetdb stop head monetdb set nthreads=2 head monetdb set readonly=yes head monetdb set optpipe=inline,remap,evaluate,costModel,coercions,emptySet,aliases,mitosis, mergetable,deadcode,constants,commonTerms,joinPath,deadcode,octopus,reduce,dataflow,history,multiplex,garbageCollector head tentacles for dbname in tent1 tent2 monetdb create $dbname monetdb set shared=octopus $dbname monetdb release $dbname done mclient -lsql -dhead ** attach gdb and brake OCTOPUSdiscover select count(*) from tables; I use monetdb set readonly=yes head to generate plans without delta bats, but the problem appears also with readonly=no ## Comment 15488 Date: 2011-02-22 12:29:05 +0100 From: @grobian This is a bug in RMTresolve (M5). It has to do with the changes done in connecting to monetdbd. ## Comment 15489 Date: 2011-02-22 13:00:10 +0100 From: @grobian Changeset [7fd2f829a1db](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7fd2f829a1db) made by Fabian Groffen <fabian@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=7fd2f829a1db](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=7fd2f829a1db) Changeset description: RMTresolve: locate upstream merovingian via merovingian_uri This is a fix for bug #2777. The old approach of looking for mapi_socket in the dbfarm no longer works, since sockets are stored in /tmp (by default) nowadays to make it easier for clients to find them. Extract the port from merovingian_uri and pass that onto mapi_mapi (via mapi_resolve), which will connect to merovingian using that port either through a UNIX or TCP socket. ## Comment 15490 Date: 2011-02-22 13:00:35 +0100 From: @grobian @milena: please test the patch I just checked in ## Comment 15491 Date: 2011-02-22 13:40:26 +0100 From: Milena Ivanova &lt;<M.Ivanova>&gt; (In reply to comment 3) > @milena: please test the patch I just checked in It works now ## Comment 15492 Date: 2011-02-22 13:42:54 +0100 From: @grobian considering fixed, thanks
RMTresolve returns an empty BAT of peers
https://api.github.com/repos/MonetDB/MonetDB/issues/2777/comments
0
2020-11-30T11:40:52Z
2024-06-27T11:51:22Z
https://github.com/MonetDB/MonetDB/issues/2777
753,405,184
2,777
[ "MonetDB", "MonetDB" ]
Date: 2011-02-22 11:42:26 +0100 From: @grobian To: SQL devs &lt;<bugs-sql>&gt; Version: -- development Last updated: 2011-03-09 15:19:34 +0100 ## Comment 15484 Date: 2011-02-22 11:42:26 +0100 From: @grobian While attempting to run testing on SQL, the following error prevented testing to start: MonetDB 5 server v11.2.0 "default-5adb14259cdc" Serving database 'mTests', using 8 threads Compiled for i386-apple-darwin9.8.0/32bit with 32bit OIDs dynamically linked Found 6.000 MiB available main-memory. Copyright (c) 1993-July 2008 CWI. Copyright (c) August 2008-2011 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information!TypeException:batcalc.rank_grp[3]:object code for command sql.rank_grp missing !TypeException:batcalc.rank_grp[1]:object code for command sql.rank missing!TypeException:batcalc.dense_rank_grp[3]:object code for command sql.dense_rank_ grp missing !TypeException:batcalc.dense_rank_grp[1]:object code for command sql.dense_rank missing !TypeException:sql.zero_or_one[7]:object code for command calc.str missing WARNING: LoaderException:loadLibrary:File not found:fits WARNING: MALException:malInclude:could not open file: fits!TypeException:user.main[2362]:object code for command sql.prelude missing !TypeException:user.main[2362]:'sql.prelude' undefined in: WARNING: could not open file: /Volumes/scratch/monet/GNU-Darwin-i386-5adb14259c dc/MonetDB/sql/None MonetDB 5 server v11.2.0 "default-5adb14259cdc" Serving database 'mTests', using 8 threads Compiled for x86_64-apple-darwin9.8.0/64bit with 64bit OIDs dynamically linked Found 6.000 MiB available main-memory. Copyright (c) 1993-July 2008 CWI. Copyright (c) August 2008-2011 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information!TypeException:batcalc.rank_grp[3]:object code for command sql.rank_grp missing!TypeException:batcalc.rank_grp[1]:object code for command sql.rank missing!TypeException:batcalc.dense_rank_grp[3]:object code for command sql.dense_rank_grp missing!TypeException:batcalc.dense_rank_grp[1]:object code for command sql.dense_rank missing!TypeException:sql.zero_or_one[7]:object code for command calc.str missingWARNING: LoaderException:loadLibrary:File not found:fitsWARNING: MALException:malInclude:could not open file: fits!TypeException:user.main[2362]:object code for command sql.prelude missing!TypeException:user.main[2362]:'sql.prelude' undefined in: WARNING: could not open file: /Volumes/scratch/monet/GNU-Darwin-x86_64-5adb14259cdc/MonetDB/sql/None ## Comment 15551 Date: 2011-03-09 15:19:34 +0100 From: @grobian I fixed this problem, it couldn't find the modules stuff is in nowadays.
server fails to start on Darwin
https://api.github.com/repos/MonetDB/MonetDB/issues/2776/comments
0
2020-11-30T11:40:50Z
2024-06-27T11:51:21Z
https://github.com/MonetDB/MonetDB/issues/2776
753,405,149
2,776
[ "MonetDB", "MonetDB" ]
Date: 2011-02-22 11:19:03 +0100 From: Milena Ivanova &lt;<M.Ivanova>&gt; To: Merovingian devs &lt;<bugs-merovingian>&gt; Version: -- development Last updated: 2011-02-22 11:45:48 +0100 ## Comment 15483 Date: 2011-02-22 11:19:03 +0100 From: Milena Ivanova &lt;<M.Ivanova>&gt; User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.13) Gecko/20110103 Fedora/3.6.13-1.fc14 Firefox/3.6.13 Build Identifier: According to the documentation, discovery of the server should be disabled with: monetdbd set discoveryport=0 Starting merovingian afterwards gives the error: >monetdbd invalid discovery port number: 0, defaulting to 50000 Reproducible: Always ## Comment 15485 Date: 2011-02-22 11:45:02 +0100 From: @grobian Changeset [3aac7a03310f](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3aac7a03310f) made by Fabian Groffen <fabian@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=3aac7a03310f](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=3aac7a03310f) Changeset description: merovingian: allow discoveryport to be disabled, bug #2775 ## Comment 15487 Date: 2011-02-22 11:45:48 +0100 From: @grobian thanks, should be fixed now
Invalid setting of discoveryport
https://api.github.com/repos/MonetDB/MonetDB/issues/2775/comments
0
2020-11-30T11:40:46Z
2024-06-27T11:51:20Z
https://github.com/MonetDB/MonetDB/issues/2775
753,405,117
2,775
[ "MonetDB", "MonetDB" ]
Date: 2011-02-21 22:41:47 +0100 From: @bartscheers To: SQL devs &lt;<bugs-sql>&gt; Version: 11.5.3 (Aug2011-SP1) [obsolete] CC: @mlkersten, @njnes, @drstmane Last updated: 2011-10-26 13:22:02 +0200 ## Comment 15479 Date: 2011-02-21 22:41:47 +0100 From: @bartscheers User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 Build Identifier: Double value, f.ex., 1.0e-310, can be import via the INSERT statement, but not from within file via the COPY INTO statement. %> mclient -lsql -t -H sql>create table t1 (i1 int,d1 double,i2 int); operation successful Timer 1.585 msec sql>insert into t1 values (1,1.0e-310,1); 1 affected row (1.168ms) Timer 1.199 msec sql>insert into t1 values (1,1.0e-320,1); 1 affected row (0.833ms) Timer 0.854 msec sql>select * from t1; +------+------------------------+------+ | i1 | d1 | i2 | +======+========================+======+ | 1 | 9.9999999999999694e-31 | 1 | : : 1 : : | 1 | 9.9998886718268301e-32 | 1 | : : 1 : : +------+------------------------+------+ 2 tuples (1.340ms) Timer 1.511 msec 2 rows Then I create a t1.csv file with two rows of content: 1;1.0e-310;1 1;1.0e-320;1 and run a copy into: sql>copy 1 records into t1 from '/export/scratch1/bscheers/lsst/dbtests/tables/t1.csv' using delimiters ';','\n' null as '\\N'; SQLException:importTable:value '1.0e-310' from line 1 field 2 not inserted, expecting type double failed to import table Timer 157.493 msec Bart Reproducible: Always ### Steps to Reproduce: See details above ### Expected Results: COPY INTO should have imported the double values. ## Comment 15480 Date: 2011-02-21 23:20:01 +0100 From: @drstmane some more checks reveal: $ mclient -ls -s'create table f (f float);' operation successful $ mclient -ls -s'create table d (d double);' operation successful $ for ((i=320; i<=330; i++)) ; do echo $i ; mclient -ls -s "insert into f values (1e-$i);" ; mclient -ls -s "insert into d values (1e-$i);" ; done 320 1 affected row 1 affected row 321 1 affected row 1 affected row 322 1 affected row 1 affected row 323 1 affected row 1 affected row 324 1 affected row 1 affected row 325 1 affected row 1 affected row 326 1 affected row 1 affected row 327 1 affected row 1 affected row 328 1 affected row 1 affected row 329 1 affected row 1 affected row 330 1 affected row 1 affected row $ mclient -ls -s'select * from f;' +------------------------+ | f | +========================+ | 9.9998886718268301e-32 | : 1 : | 9.9801260459931802e-32 | : 2 : | 9.8813129168249309e-32 | : 3 : | 9.8813129168249309e-32 | : 4 : | 0 | | 0 | | 0 | | 0 | | 0 | | 0 | | 0 | +------------------------+ 11 tuples $ mclient -ls -s'select * from d;' +------------------------+ | d | +========================+ | 9.9998886718268301e-32 | : 1 : | 9.9801260459931802e-32 | : 2 : | 9.8813129168249309e-32 | : 3 : | 9.8813129168249309e-32 | : 4 : | 0 | | 0 | | 0 | | 0 | | 0 | | 0 | | 0 | +------------------------+ 11 tuples $ for ((i=300; i<=310; i++)) ; do echo "1e-$i" ; done | tee /tmp/t.csv 1e-300 1e-301 1e-302 1e-303 1e-304 1e-305 1e-306 1e-307 1e-308 1e-309 1e-310 $ mclient -ls -s "copy into f from '/tmp/t.csv' using delimiters ',','\n';" SQLException:importTable:value '1e-308' from line 9 field 1 not inserted, expecting type double failed to import table $ mclient -ls -s "copy into d from '/tmp/t.csv' using delimiters ',','\n';" SQLException:importTable:value '1e-308' from line 9 field 1 not inserted, expecting type double failed to import table ## Comment 15481 Date: 2011-02-22 09:22:02 +0100 From: @mlkersten This message comes from GDKatoms.mx dblFromStr() where the condition ERANGE is checked upon return of strtod(). Then the value is turned into dbl_nil, which is stored in the result. That check does not take place in the SQL lexical analyser. As such the error is correct; the input is invalid. Open issue, why is not the NULL value shown for doubles. ## Comment 15482 Date: 2011-02-22 09:48:53 +0100 From: @grobian (and why is the column width miscalculated) ## Comment 15603 Date: 2011-03-18 14:23:40 +0100 From: @njnes now we handle ERANGE errors equal within sql and gdk. Added a test script (bugTracker 2011/double_erange) for it. Please verify the results. ## Comment 15608 Date: 2011-03-19 08:38:04 +0100 From: @njnes Changeset [ae7e80697674](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ae7e80697674) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=ae7e80697674](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=ae7e80697674) Changeset description: added to debug output check erange errors on strtod calls added test for bug #2774 ## Comment 15961 Date: 2011-07-17 19:45:17 +0200 From: @drstmane Changeset [cc4337f7ecae](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=cc4337f7ecae) made by Stefan Manegold <Stefan.Manegold@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=cc4337f7ecae](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=cc4337f7ecae) Changeset description: bug #2774: extended test and approved (IMHO) expected output; output and test behavior need to be double checked! ## Comment 16359 Date: 2011-09-30 11:28:45 +0200 From: @sjoerdmullender Considering fixed. ## Comment 16367 Date: 2011-10-01 20:00:44 +0200 From: @drstmane re-opened as test still fails; cf., http://monetdb.cwi.nl/testweb/tests/41918:3fc14f711088/GNU-Fedora-x86_64-propcheck/sql/mTests/test/BugTracker-2011/double_erange.Bug-2774.out.diff.html http://monetdb.cwi.nl/testweb/tests/41918:3fc14f711088/GNU-Fedora-x86_64-propcheck/sql/mTests/test/BugTracker-2011/double_erange.Bug-2774.err.diff.html ## Comment 16442 Date: 2011-10-19 14:37:04 +0200 From: @sjoerdmullender Changeset [dae3337378c2](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=dae3337378c2) made by Sjoerd Mullender <sjoerd@acm.org> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=dae3337378c2](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=dae3337378c2) Changeset description: Floating point overflow is not allowed, but underflow *is* allowed. According to the SQL spec, floating point ("approximate numeric literal") overflow results in a syntax error, but underflow is treated the same as overspecification (more digits than the implementation can represent) and results in the value 0 or a value very close to 0. On underflow, the strtof and strtod functions return either 0 or an unnormalized number which is closer to zero than the smallest normalized number. In addition, the function may or may not set errno to ERANGE. On overflow, the functions return HUGE_VAL (or HUGE_VALF) and set errno to ERANGE. We now check for overflow by checking whether errno is set to ERANGE *and* the value is not "close to zero". This fixes bug #2774, the output of which is also now approved.
COPY INTO of double (~1.0e-310) cannot be imported.
https://api.github.com/repos/MonetDB/MonetDB/issues/2774/comments
0
2020-11-30T11:40:43Z
2024-06-27T11:51:19Z
https://github.com/MonetDB/MonetDB/issues/2774
753,405,081
2,774
[ "MonetDB", "MonetDB" ]
Date: 2011-02-18 12:14:00 +0100 From: Babis &lt;<charnik>&gt; To: MonetDB5 devs &lt;<bugs-monetdb5>&gt; Version: 11.1.1 (Mar2011) [obsolete] Last updated: 2011-03-28 17:31:36 +0200 ## Comment 15469 Date: 2011-02-18 12:14:00 +0100 From: Babis &lt;<charnik>&gt; start: starting 'test' failed: database 'test' has crashed after starting, manual intervention needed, check merovingian's logfile for details This is the error i get when i first tried to start a database, after a clean installation of the branch Mar2011, in MacOSX 10.6.6. The log from merovingian is the following: 2011-02-18 12:46:14 MSG merovingian[21987]: Merovingian 1.3 (unreleased) starting 2011-02-18 12:46:14 MSG merovingian[21987]: monitoring dbfarm /Users/user/apps/MonetDB/var/monetdb5/dbfarm 2011-02-18 12:46:14 MSG merovingian[21987]: accepting connections on TCP socket 0.0.0.0:50000 2011-02-18 12:46:14 MSG merovingian[21987]: accepting connections on UNIX domain socket mapi_socket 2011-02-18 12:46:14 MSG discovery[21987]: listening for UDP messages on 0.0.0.0:50000 2011-02-18 12:46:14 MSG control[21987]: accepting connections on UNIX domain socket .merovingian_control 2011-02-18 12:46:14 MSG control[21987]: accepting connections on TCP socket 0.0.0.0:50001 2011-02-18 12:46:14 MSG discovery[21987]: new neighbour mydomain (mydomain) 2011-02-18 12:46:16 MSG discovery[21987]: registered neighbour mydomain:50001 2011-02-18 12:46:39 MSG control[21987]: (local): served status list 2011-02-18 12:46:43 MSG control[21987]: (local): created database 'test' 2011-02-18 12:46:48 MSG control[21987]: (local): served status list 2011-02-18 12:46:48 MSG control[21987]: (local): released database 'test' 2011-02-18 12:46:48 MSG discovery[21987]: new database mapi:monetdb://mydomain:50000/test (ttl=660s) 2011-02-18 12:46:54 MSG control[21987]: (local): served status list 2011-02-18 12:46:54 MSG merovingian[21987]: starting database 'test', up min/avg/max: 0s/0s/0s, crash average: 0.00 0.00 0.00 (0-0=0) 2011-02-18 12:46:54 MSG test[22000]: arguments: /Users/user/apps/MonetDB/bin/mserver5 --config=/Users/user/apps/MonetDB/etc/monetdb5.conf --dbname=test --set merovingian_uri=mapi:monetdb://mydomain:50000/test --set mapi_open=false --set mapi_port=0 --set mapi_usock=/Users/user/apps/MonetDB/var/monetdb5/dbfarm/test/.mapi.sock --set monet_vault_key=/Users/user/apps/MonetDB/var/monetdb5/dbfarm/test/.vaultkey --set monet_daemon=yes 2011-02-18 12:46:54 MSG merovingian[21987]: database 'test' (22000) was killed by signal SIGSEGV 2011-02-18 12:47:04 ERR control[21987]: (local): failed to fork mserver: database 'test' has crashed after starting, manual intervention needed, check merovingian's logfile for details Running mserver5 inside gdb as follows run --dbname=test --dbinit='include tokenizer; include sql; include rdf;' i get Starting program: /Users/user/apps/MonetDB/bin/mserver5 --dbname=test --dbinit='include tokenizer; include sql; include rdf;' Reading symbols for shared libraries .++++++++++++............ done MonetDB 5 server v11.1.0 Not released Serving database 'test', using 2 threads Compiled for i386-apple-darwin10.6.0/64bit with 64bit OIDs dynamically linked Found 1.637 GiB available main-memory. Copyright (c) 1993-July 2008 CWI. Copyright (c) August 2008-2011 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information warning: please don't forget to set your vault key! (see /Users/user/apps/MonetDB/etc/monetdb5.conf) Reading symbols for shared libraries ... done !TypeException:batcalc.rank_grp[3]:object code for command sql.rank_grp missing !TypeException:batcalc.rank_grp[1]:object code for command sql.rank missing !TypeException:batcalc.dense_rank_grp[3]:object code for command sql.dense_rank_grp missing !TypeException:batcalc.dense_rank_grp[1]:object code for command sql.dense_rank missing !TypeException:sql.zero_or_one[7]:object code for command calc.str missing Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000 0x0000000000000000 in ?? () The same applies if i do not set the dbinit parameter. ## Comment 15560 Date: 2011-03-10 12:08:35 +0100 From: @grobian I fixed this problem in this commit: http://dev.monetdb.org/hg/MonetDB/rev/f85e828384eb Thanks for your report ## Comment 15640 Date: 2011-03-28 17:31:36 +0200 From: @sjoerdmullender The Mar2011 version has been released.
starting database 'test'... FAILED
https://api.github.com/repos/MonetDB/MonetDB/issues/2773/comments
0
2020-11-30T11:40:40Z
2024-06-27T11:51:18Z
https://github.com/MonetDB/MonetDB/issues/2773
753,405,046
2,773
[ "MonetDB", "MonetDB" ]
Date: 2011-02-16 17:57:32 +0100 From: Kim Nguyen &lt;<kim>&gt; To: XQuery devs &lt;<bugs-xquery>&gt; Version: 11.1.1 (Mar2011) [obsolete] CC: jan.rittinger Last updated: 2011-04-28 16:38:59 +0200 ## Comment 15456 Date: 2011-02-16 17:57:32 +0100 From: Kim Nguyen &lt;<kim>&gt; User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.21 (KHTML, like Gecko) Ubuntu/10.04 Chromium/11.0.673.0 Chrome/11.0.673.0 Safari/534.21 Build Identifier: A query containing containing following-sibling in a filter will only return the last matching node instead of all the matching ones. Reproducible: Always ### Steps to Reproduce: 1. Create a document file.xml containing <a><b/><c/><d/></e></a> 2. Run the query fn:doc("file.xml")//*[following-sibling::d] ### Actual Results: <?xml version="1.0" encoding="utf-8"?> <XQueryResult><c/></XQueryResult> ### Expected Results: <?xml version="1.0" encoding="utf-8"?> <XQueryResult><b/><c/></XQueryResult> I'm using the latest ubuntu package available. Here are additional informations about the server: MonetDB Server v4.40.3 based on GDK v1.40.3 release Oct2010-SP1 Copyright (c) 1993-July 2008, CWI. All rights reserved. Copyright (c) August 2008-2010, MonetDB B.V.. All rights reserved. Compiled for x86_64-pc-linux-gnu/64bit with 64bit OIDs; dynamically linked. Detected 3.675 GiB (3946262528 bytes) main-memory. Visit http://monetdb.cwi.nl/ for further information. PF/Tijah module v0.13.0 loaded. http://dbappl.cs.utwente.nl/pftijah MonetDB/XQuery module v0.40.3 loaded (default back-end is 'algebra') XRPC administrative console at http://127.0.0.1:50001/admin MonetDB> ## Comment 15457 Date: 2011-02-16 17:59:19 +0100 From: Kim Nguyen &lt;<kim>&gt; (In reply to comment 0) Sorry, stupid typo in the previous message the test document is of course <a><b/><c/><d/><e/></a> with a correctly formed <e/> element. ## Comment 15458 Date: 2011-02-17 11:49:22 +0100 From: Jan Rittinger &lt;<jan.rittinger>&gt; I traced that bug down to the C implementation (PFll_following_sibling) and hope that somebody with more insight in the code might have a look. As reported it seems to produce only a single row per iteration: Input ('print(iter,item)' before call to PFll_following_sibling): ------------------------- h t h name void void oid type ------------------------- [ 0@0, 0@0, 2@0 ] aka. a [ 1@0, 1@0, 3@0 ] aka. b [ 2@0, 2@0, 4@0 ] aka. c [ 3@0, 3@0, 5@0 ] aka. d [ 4@0, 4@0, 6@0 ] aka. e Output ('print(iter,item)' after call to PFll_following_sibling): ------------------------- t h h name void oid oid type ------------------------- [ 0@0, 1@0, 4@0 ] aka. c [ 1@0, 2@0, 5@0 ] aka. d [ 2@0, 3@0, 6@0 ] aka. e I would have expected the following as output: ------------------------- t h h name void oid oid type ------------------------- [ 0@0, 1@0, 4@0 ] aka. c [ 1@0, 1@0, 5@0 ] aka. d [ 2@0, 1@0, 6@0 ] aka. e [ 3@0, 2@0, 5@0 ] aka. d [ 4@0, 2@0, 6@0 ] aka. e [ 5@0, 3@0, 6@0 ] aka. e Additional note – The bug may also be triggered without an XML document: <a><b/><c/><d/><e/></a>/*[following-sibling::d] ## Comment 15772 Date: 2011-04-28 16:38:59 +0200 From: @sjoerdmullender Development on MonetDB4 and MonetDB/XQuery has ceased. It is unlikely that this bug will be fixed. The last release of MonetDB/XQuery and MonetDB4 is Mar2011.
wrong results for XPath queries with following-sibling in filters.
https://api.github.com/repos/MonetDB/MonetDB/issues/2772/comments
0
2020-11-30T11:40:37Z
2024-06-28T07:23:11Z
https://github.com/MonetDB/MonetDB/issues/2772
753,405,011
2,772
[ "MonetDB", "MonetDB" ]
Date: 2011-02-13 22:51:18 +0100 From: @sjoerdmullender To: SQL devs &lt;<bugs-sql>&gt; Version: 11.1.1 (Mar2011) [obsolete] CC: @njnes Last updated: 2011-02-27 10:42:08 +0100 ## Comment 15452 Date: 2011-02-13 22:51:18 +0100 From: @sjoerdmullender User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20110103 Fedora/3.6.13-1.fc14 Firefox/3.6.13 Build Identifier: create table a (x clob, y clob); insert into a values ('one',''); insert into a values ('two',''); create table b (x clob, y clob); insert into b values ('one','een'); insert into b values ('two','twee'); update a set y = (select y from b where a.x = b.x and a.y = '' and b.y <> ''); The update query causes an assertion to go off in the server: mserver5: /ufs/sjoerd/src/MonetDB/candidate/sql/server/rel_bin.c:1463: rel2bin_project: Assertion `0' failed. When running without assertions, the server spews an error (printed on the server console, not passed to client): could not find b.y a.%TID% L10.L10 L10.y a.%TID% Reproducible: Always ### Steps to Reproduce: 1.start server 2.start client 3.run queries ### Actual Results: assertion failure if compiled with assertions enabled, error on server console if not. In the latter case, table a is not updated. ### Expected Results: a should be updated and be the same as b. I was trying to reproduce another error with a similar update (somewhat more complicated where clause, and lots more data involved) where the table was updated but the values that were inserted where OIDs (number@0). I can reproduce that with the above test only in the Oct2010 branch. In that case, when assertions are enabled, I also get an assertion, but a different one: mserver5: /ufs/sjoerd/src/MonetDB/stable/sql/src/server/rel_select.mx:725: rel_project_add_exp: Assertion `(rel->op == op_project || rel->op == op_groupby || (rel->op == op_union || rel->op == op_inter || rel->op == op_except))' failed. with assertions disabled, I get no errors and a is updated, but the result is: sql>select * from a; +------+------+ | x | y | +======+======+ | one | 0@0 | | two | 1@0 | +------+------+ 2 tuples (1.228ms) ## Comment 15453 Date: 2011-02-14 11:24:54 +0100 From: @sjoerdmullender Changeset [3b2370c579cb](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3b2370c579cb) made by Sjoerd Mullender <sjoerd@acm.org> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=3b2370c579cb](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=3b2370c579cb) Changeset description: Added test for bug #2771. ## Comment 15504 Date: 2011-02-27 10:42:08 +0100 From: @njnes fixed, properly handle projection list in case of correlated updates
correlated update query causes assertion failure
https://api.github.com/repos/MonetDB/MonetDB/issues/2771/comments
0
2020-11-30T11:40:35Z
2024-06-27T11:51:16Z
https://github.com/MonetDB/MonetDB/issues/2771
753,404,985
2,771
[ "MonetDB", "MonetDB" ]
Date: 2011-02-12 12:12:10 +0100 From: Babis &lt;<charnik>&gt; To: buildtools devs &lt;<bugs-buildtools>&gt; Version: 11.1.1 (Mar2011) [obsolete] Last updated: 2011-03-10 12:09:30 +0100 ## Comment 15451 Date: 2011-02-12 12:12:10 +0100 From: Babis &lt;<charnik>&gt; User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4 Build Identifier: During compilation of the Mar2011 branch, i get the following error: *** Warning: Linking the shared library lib_batxml.la against the loadable module *** lib_xml.so is not portable! *** Warning: lib lib_xml.so is a module, not a shared library *** And there doesn't seem to be a static archive available *** The link will probably fail, sorry The fact is that static and dynamic libraries of libxml2 are present in my system, the directories of which have been included in the PKG_CONFIG_PATH explicitly. Judging by the error, it concerns the process of linking during execution of libtool. Reproducible: Always ### Steps to Reproduce: 1. Compile the Mar2011 branch in a Mac 10.6.6 system. libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I. -I../../mal -I./../../mal -I../../../common/options -I./../../../common/options -I../../../gdk -I./../../../gdk -I../../../common/stream -I./../../../common/stream -I/usr/local/Cellar/libxml2/2.7.7/include/libxml2 -DLIBBATXML -Wall -Wextra -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 -Wno-declaration-after-statement -D_REENTRANT -c batxml.c -fno-common -DPIC -o .libs/lib_batxml_la-batxml.o /bin/sh ../../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I. -I../../mal -I./../../mal -I../../../common/options -I./../../../common/options -I../../../gdk -I./../../../gdk -I../../../common/stream -I./../../../common/stream -I/usr/local/Cellar/libxml2/2.7.7/include/libxml2 -DLIBXML -Wall -Wextra -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 -Wno-declaration-after-statement -D_REENTRANT -c -o lib_xml_la-xml.lo `test -f 'xml.c' || echo './'`xml.c libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I. -I../../mal -I./../../mal -I../../../common/options -I./../../../common/options -I../../../gdk -I./../../../gdk -I../../../common/stream -I./../../../common/stream -I/usr/local/Cellar/libxml2/2.7.7/include/libxml2 -DLIBXML -Wall -Wextra -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 -Wno-declaration-after-statement -D_REENTRANT -c xml.c -fno-common -DPIC -o .libs/lib_xml_la-xml.o /bin/sh ../../../libtool --tag=CC --mode=link gcc -std=gnu99 -DLIBXML -Wall -Wextra -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 -Wno-declaration-after-statement -D_REENTRANT -module -avoid-version -o lib_xml.la -rpath /Users/user/apps/MonetDB/lib/monetdb5/lib lib_xml_la-xml.lo ../../tools/libmonetdb5.la ../../../gdk/libbat.la -L/usr/local/Cellar/libxml2/2.7.7/lib -lxml2 -pthread libtool: link: gcc -std=gnu99 -Wl,-undefined -Wl,dynamic_lookup -o .libs/lib_xml.so -bundle .libs/lib_xml_la-xml.o ../../tools/.libs/libmonetdb5.6.0.0.dylib -L/usr/local/Cellar/pcre/8.10/lib /Users/user/Documents/dev/MonetDB_Mar2011/gdk/.libs/libbat.2.0.0.dylib /Users/user/Documents/dev/MonetDB_Mar2011/clients/mapilib/.libs/libmapi.2.0.0.dylib -lm -lpcre ../../../gdk/.libs/libbat.2.0.0.dylib /Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -lssl -lcrypto -lz -lcurl -lbz2 -ldl -L/usr/local/Cellar/libxml2/2.7.7/lib -lxml2 -pthread -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libbat.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/gdk/.libs/libbat.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libmapi.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/clients/mapilib/.libs/libmapi.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -pthread libtool: link: dsymutil .libs/lib_xml.so || : libtool: link: ( cd ".libs" && rm -f "lib_xml.la" && ln -s "../lib_xml.la" "lib_xml.la" ) /bin/sh ../../../libtool --tag=CC --mode=link gcc -std=gnu99 -DLIBBATXML -Wall -Wextra -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 -Wno-declaration-after-statement -D_REENTRANT -module -avoid-version -o lib_batxml.la -rpath /Users/user/apps/MonetDB/lib/monetdb5/lib lib_batxml_la-batxml.lo lib_xml.la ../../tools/libmonetdb5.la ../../../gdk/libbat.la -lm -L/usr/local/Cellar/libxml2/2.7.7/lib -lxml2 -pthread *** Warning: Linking the shared library lib_batxml.la against the loadable module *** lib_xml.so is not portable! *** Warning: lib lib_xml.so is a module, not a shared library *** And there doesn't seem to be a static archive available *** The link will probably fail, sorry libtool: link: gcc -std=gnu99 -Wl,-undefined -Wl,dynamic_lookup -o .libs/lib_batxml.so -bundle .libs/lib_batxml_la-batxml.o ./.libs/lib_xml.so -L/usr/local/Cellar/pcre/8.10/lib -L/usr/local/Cellar/libxml2/2.7.7/lib /Users/user/Documents/dev/MonetDB_Mar2011/monetdb5/tools/.libs/libmonetdb5.6.0.0.dylib ../../tools/.libs/libmonetdb5.6.0.0.dylib /Users/user/Documents/dev/MonetDB_Mar2011/gdk/.libs/libbat.2.0.0.dylib /Users/user/Documents/dev/MonetDB_Mar2011/clients/mapilib/.libs/libmapi.2.0.0.dylib -lpcre ../../../gdk/.libs/libbat.2.0.0.dylib /Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -lssl -lcrypto -lz -lcurl -lbz2 -ldl -lm -lxml2 -pthread -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libmonetdb5.6.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/monetdb5/tools/.libs/libmonetdb5.6.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libmapi.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/clients/mapilib/.libs/libmapi.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libbat.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/gdk/.libs/libbat.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libbat.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/gdk/.libs/libbat.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libmapi.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/clients/mapilib/.libs/libmapi.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libbat.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/gdk/.libs/libbat.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libmapi.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/clients/mapilib/.libs/libmapi.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -pthread ld: in ./.libs/lib_xml.so, can't link with bundle (MH_BUNDLE) only dylibs (MH_DYLIB) collect2: ld returned 1 exit status make[7]: *** [lib_batxml.la] Error 1 make[6]: *** [all] Error 2 make[5]: *** [all-recursive] Error 1 make[4]: *** [all] Error 2 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 ## Comment 15459 Date: 2011-02-17 18:13:22 +0100 From: @sjoerdmullender Was this fixed? ## Comment 15460 Date: 2011-02-17 18:59:22 +0100 From: Babis &lt;<charnik>&gt; (In reply to comment 1) > Was this fixed? Just tried, and now i get a similar error concerning lib_rdf and lib_sql. I need support for RDF. *** Warning: Linking the shared library lib_sql.la against the loadable module *** lib_rdf.so is not portable! *** Warning: lib lib_rdf.so is a module, not a shared library However, if I configure it without enabling rdf support, compilation is successful. Should I report another bug for RDF? Thanks a lot. ## Comment 15461 Date: 2011-02-18 11:00:25 +0100 From: @sjoerdmullender It's basically a different instantiation of the same bug, so I don't think a new bug report is needed. You can try to remove the line saying just "MODULE" from the file monetdb5/extras/rdf/Makefile.ag as a workaround. You need to rerun bootstrap (and configure, etc.) after this. ## Comment 15462 Date: 2011-02-18 11:07:40 +0100 From: @grobian weird, I don't see any lib_xml linkage ## Comment 15463 Date: 2011-02-18 11:26:14 +0100 From: @sjoerdmullender In sql/backends/monet5/Makefile.ag we conditionally link to lib_rdf which is an monetdb5 module. We no longer have a problem with lib_xml as far as I know. ## Comment 15464 Date: 2011-02-18 11:27:52 +0100 From: @grobian I'm compiling on Darwin now, so I hopefully hit the same problems shortly. ## Comment 15465 Date: 2011-02-18 11:30:01 +0100 From: Babis &lt;<charnik>&gt; (In reply to comment 6) > I'm compiling on Darwin now, so I hopefully hit the same problems shortly. I report a successful build here. Thank you guys. ## Comment 15466 Date: 2011-02-18 11:40:15 +0100 From: @sjoerdmullender (In reply to comment 7) > (In reply to comment 6) > > I'm compiling on Darwin now, so I hopefully hit the same problems shortly. > > I report a successful build here. Is that with my workaround? ## Comment 15467 Date: 2011-02-18 11:44:18 +0100 From: Babis &lt;<charnik>&gt; (In reply to comment 8) > (In reply to comment 7) > > (In reply to comment 6) > > > I'm compiling on Darwin now, so I hopefully hit the same problems shortly. > > > > I report a successful build here. > > Is that with my workaround? Yes, i forgot to mention it. ## Comment 15468 Date: 2011-02-18 11:46:17 +0100 From: @sjoerdmullender (In reply to comment 6) > I'm compiling on Darwin now, so I hopefully hit the same problems shortly. I'm thinking of three possible solutions: - move the rdf module from monetdb5 to sql. Conceptually it belongs in M5, since it provides an interface that can be called from MAL, but I presume it's only really used from SQL. - split the rdf module into a shared library and a module. The shared library contains the function that is called from the SQL function SQLrdfShred and also from a very thin wrapper that forms the M5 module. - remove the MAL interface to the rdf shredder completely and only have the SQL function. I don't know whether the MAL interface is used by anyone. ## Comment 15470 Date: 2011-02-18 12:27:24 +0100 From: @grobian Without changes to the source, I could just compile successfully. Perhaps this is because configure doesn't seem to check for raptor (any more?) ## Comment 15471 Date: 2011-02-18 12:30:25 +0100 From: @grobian We disabled rdf because it is non-functional. Perhaps we should disable it some more. I don't feel like maintaining a shared library version just for this, because it uses parts from the xml M5 lib. Since this one is no longer optional, and hence included in libmonetdb5, isn't including that lib enough? ## Comment 15472 Date: 2011-02-18 12:55:27 +0100 From: Babis &lt;<charnik>&gt; (In reply to comment 11) > Without changes to the source, I could just compile successfully. Perhaps this > is because configure doesn't seem to check for raptor (any more?) It checks only if it is run with --enable-rdf. Did you run it like this? ## Comment 15473 Date: 2011-02-18 13:42:20 +0100 From: @sjoerdmullender I have a patch ready that removes rdf as a monetdb5 module so that it is *only* available as a SQL extension (and obviously only when --enable-rdf is in effect). Is that acceptable as a solution (i.e. removing the possibility to do anything with RDF from a pure MAL program)? ## Comment 15474 Date: 2011-02-18 13:45:21 +0100 From: @grobian Hmmmm, I thought it would probably be possible to implement the sql shredding as sql function that is mapped on an external function (M5 function). Moving the shredder to SQL is no problem to me. It remains code that probably shouldn't even be shipped as part of any release at the current state. ## Comment 15475 Date: 2011-02-18 14:01:20 +0100 From: @sjoerdmullender Changeset [b9dc0e28582d](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b9dc0e28582d) made by Sjoerd Mullender <sjoerd@acm.org> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=b9dc0e28582d](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=b9dc0e28582d) Changeset description: Remove RDF as a monetdb5 module. The RDF shredder can still be used, but only as an SQL extension. This fixes bug #2770. The problem in the bug is that the M5 RDF module was also used as a library to support the SQL extension. By now turning the module into a proper (NOINST) library and linking against that, the problem of linking against a module is solved. The consequence is though that we can't then use this as an M5 module. If it's really necessary (which I doubt), a new RDF module for M5 could be created that links against this same library. ## Comment 15476 Date: 2011-02-18 16:32:03 +0100 From: Babis &lt;<charnik>&gt; (In reply to comment 16) > Changeset [b9dc0e28582d](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b9dc0e28582d) made by Sjoerd Mullender <sjoerd@acm.org> in the > MonetDB repo, refers to this bug. > > For complete details, see > [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=b9dc0e28582d](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=b9dc0e28582d) > > Changeset description: > > Remove RDF as a monetdb5 module. > The RDF shredder can still be used, but only as an SQL extension. > This fixes bug #2770. > > The problem in the bug is that the M5 RDF module was also used as a > library to support the SQL extension. By now turning the module into > a proper (NOINST) library and linking against that, the problem of > linking against a module is solved. The consequence is though that we > can't then use this as an M5 module. > > If it's really necessary (which I doubt), a new RDF module for M5 > could be created that links against this same library. Sorry, but updating to this changeset, the problem is not solved. The compilation terminates at the stage of "Making all in vaults" (after completing make of monet5). The error is the following: "No rule to make target `../../../monetdb5/extras/rdf/librdf.la', needed by `lib_sql.la'. Stop." ## Comment 15477 Date: 2011-02-18 17:31:41 +0100 From: @sjoerdmullender Did you run ./bootstrap again? After ./bootstrap, you also need to rerun configure. Best is to attempt a clean build if you have a problem like this. ## Comment 15478 Date: 2011-02-18 18:03:43 +0100 From: Babis &lt;<charnik>&gt; (In reply to comment 18) > Did you run ./bootstrap again? > After ./bootstrap, you also need to rerun configure. Best is to attempt a > clean build if you have a problem like this. Yes, i did. Actually i did the following (twice), $ make clean $ hg pull $ hg update $ ./bootstrap $ ./configure —enable-rdf —enable-sql —enable-pathfinder $ make ## Comment 15493 Date: 2011-02-22 16:15:14 +0100 From: Babis &lt;<charnik>&gt; (In reply to comment 19) > (In reply to comment 18) > > Did you run ./bootstrap again? > > After ./bootstrap, you also need to rerun configure. Best is to attempt a > > clean build if you have a problem like this. > > Yes, i did. Actually i did the following (twice), > > $ make clean > $ hg pull > $ hg update > $ ./bootstrap > $ ./configure —enable-rdf —enable-sql —enable-pathfinder > $ make Any update to this? Thanks, Babis ## Comment 15494 Date: 2011-02-22 17:15:24 +0100 From: @grobian please attach a full build log ("add an attachment" above this input box) ## Comment 15495 Date: 2011-02-22 17:38:32 +0100 From: Babis &lt;<charnik>&gt; Created attachment 54 Build log Here you are. > Attached file: [build_log2.txt](https://github.com/MonetDB/monetdb-issues-attachments/blob/master/issue_2770_build_log2.txt_54) (text/plain, 557859 bytes) > Description: Build log ## Comment 15561 Date: 2011-03-10 12:09:30 +0100 From: @grobian yesterday we were able to build this thing correctly, so I assume the bug to be fixed
libxml2 linking error during compilation, Mar2011 (Mac 10.6.6), Mar2011 branch
https://api.github.com/repos/MonetDB/MonetDB/issues/2770/comments
0
2020-11-30T11:40:31Z
2024-06-27T11:51:15Z
https://github.com/MonetDB/MonetDB/issues/2770
753,404,957
2,770
[ "MonetDB", "MonetDB" ]
Date: 2011-02-08 03:04:56 +0100 From: @skinkie To: SQL devs &lt;<bugs-sql>&gt; Version: 11.1.1 (Mar2011) [obsolete] CC: @njnes Last updated: 2011-02-27 09:32:37 +0100 ## Comment 15449 Date: 2011-02-08 03:04:56 +0100 From: @skinkie User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.45 Safari/534.13 Build Identifier: Doing my 'core business' on the latest head I ended up in weirdness: sql>SELECT DISTINCT x.kvk, x.bedrijfsnaam, x.adres, x.postcode, x.plaats, x.type, not(anbikvk.anbi is null), status, x.kvks, x.sub, x.website FROM (select * FROM sphinx_searchIndex('moslim', 'openkvk') as fts, kvk where kvk.kvk = fts.id) as x LEFT JOIN anbikvk ON x.kvks = anbikvk.kvks LEFT JOIN faillissementen ON x.kvks = faillissementen.kvks LIMIT 200 OFFSET 0; SELECT: no such column 'x.kvks' SELECT DISTINCT x.kvk, x.bedrijfsnaam, x.adres, x.postcode, x.plaats, x.type, not(anbikvk.anbi is null), status, x.kvks, x.sub, x.website FROM (select * FROM sphinx_searchIndex('moslim', 'openkvk') as fts, kvk where kvk.kvk = fts.id) as x LEFT JOIN anbikvk ON x.kvks = anbikvk.kvks LEFT JOIN faillissementen ON x.kvks = faillissementen.kvks LIMIT 200 OFFSET 0; SELECT: no such column 'x.kvks' SELECT DISTINCT x.kvk, x.bedrijfsnaam, x.adres, x.postcode, x.plaats, x.type, not(anbikvk.anbi is null), x.kvks, x.sub, x.website FROM (select * FROM sphinx_searchIndex('moslim', 'openkvk') as fts, kvk where kvk.kvk = fts.id) as x LEFT JOIN anbikvk ON x.kvks = anbikvk.kvks; SELECT: no such column 'x.kvk' SELECT DISTINCT x.* FROM (select * FROM sphinx_searchIndex('moslim', 'openkvk') as fts, kvk where kvk.kvk = fts.id) as x LEFT JOIN anbikvk ON x.kvks = anbikvk.kvks; Column expression Table 'x' unknown It seems to be related to the x in the LEFT JOIN. Reverting back to v5.22.3 I just get nice output for these queries. I have attempted to dump the DB and load it again in the 'head' version. I first end up in the situation where my sphinx function doesn't work anymore... SELECT: 'sphinx_searchindexlimit' does not return a table (while it was working on my old dbfarm dir) sphinx_searchindexlimit | create function "sphinx_searchindexlimit"("query" character large object, "idx" character large object, "limit" integer) returns table ("id" bigint) external name "sphinx"."sphinx_searchIndexLimit"; (since I already smell Fabian saying: "this should be reported in another bug", I dropped the two functions, and created them again. Magic... they work...) Back to the original bug in this report. 1) migrated the database to the new version 2) imported the data 3) SELECT DISTINCT x.* FROM (select * FROM sphinx_searchIndex('moslim', 'openkvk') as fts, kvk where kvk.kvk = fts.id) as x LEFT JOIN anbikvk ON x.kvks = anbikvk.kvks; Column expression Table 'x' unknown 4) SELECT DISTINCT x.* FROM (select * FROM sphinx_searchIndex('moslim', 'openkvk') as fts, kvk where kvk.kvk = fts.id) as x; ... 21 tuples (89.716ms) 5) SELECT DISTINCT x.* FROM (select * FROM (select 40407923 as "id") as fts, kvk where kvk.kvk = fts.id) as x LEFT JOIN anbikvk ON x.kvks = anbikvk.kvks; ... 1 tuple (71.740ms) So I conclude from this: - something in the plan generation goes wrong when a function creates the table. plan SELECT DISTINCT x.* FROM (select * FROM sphinx_searchIndex('moslim', 'openkvk') as fts, kvk where kvk.kvk = fts.id) as x LEFT JOIN anbikvk ON x.kvks = anbikvk.kvks; MAPI = monetdb@localhost:60006 QUERY = plan SELECT DISTINCT x.* FROM (select * FROM sphinx_searchIndex('moslim', 'openkvk') as fts, kvk where kvk.kvk = fts.id) as x LEFT JOIN anbikvk ON x.kvks = anbikvk.kvks; ERROR = !Column expression Table 'x' unknown plan SELECT DISTINCT x.* FROM (select * FROM (select 40407923 as "id") as fts, kvk where kvk.kvk = fts.id) as x LEFT JOIN anbikvk ON x.kvks = anbikvk.kvks; % .plan table_name % rel name % clob type % 307 length distinct project ( | project ( | | project ( | | | left outer join ( | | | | join ( | | | | | table(sys.kvk) [ kvk.kvk, kvk.bedrijfsnaam, kvk.kvks, kvk.sub, kvk.adres, kvk.postcode, kvk.plaats, kvk.type, kvk.website, kvk.%TID% NOT NULL ], | | | | | [ 40407923 as fts.id ] | | | | ) [ kvk.kvk = convert(fts.id from int to bigint) ], | | | | table(sys.anbikvk) [ anbikvk.anbi, anbikvk.kvks, anbikvk.%TID% NOT NULL ] | | | ) [ kvk.kvks = anbikvk.kvks ] | | ) [ fts.id as x.id, kvk.kvk as x.kvk, kvk.bedrijfsnaam as x.bedrijfsnaam, kvk.kvks as x.kvks, kvk.sub as x.sub, kvk.adres as x.adres, kvk.postcode as x.postcode, kvk.plaats as x.plaats, kvk.type as x.type, kvk.website as x.website, kvk.%TID% NOT NULL, anbikvk.anbi, anbikvk.kvks, anbikvk.%TID% NOT NULL ] | ) [ x.id, x.kvk, x.bedrijfsnaam, x.kvks, x.sub, x.adres, x.postcode, x.plaats, x.type, x.website, kvk.%TID% NOT NULL, anbikvk.%TID%, kvk.%TID% NOT NULL, anbikvk.%TID% NOT NULL ] ) [ x.id, x.kvk, x.bedrijfsnaam, x.kvks, x.sub, x.adres, x.postcode, x.plaats, x.type, x.website ] Reproducible: Always ## Comment 15502 Date: 2011-02-26 23:58:16 +0100 From: @skinkie Thanks to everyone that has fixed this issue, I have just upgraded again. And all issues described here have been sorted. :) ## Comment 15503 Date: 2011-02-27 09:32:37 +0100 From: @njnes Fixed. By making sure table functions expressions lists are used properly, when looking up names. No extra test needed as other leftjoins (in lookup of users names) exists.
Column expression Table 'x' unknown: AS x LEFT JOIN ... ON x
https://api.github.com/repos/MonetDB/MonetDB/issues/2769/comments
0
2020-11-30T11:40:29Z
2024-06-27T11:51:14Z
https://github.com/MonetDB/MonetDB/issues/2769
753,404,942
2,769
[ "MonetDB", "MonetDB" ]
Date: 2011-01-26 13:43:55 +0100 From: @grobian To: SQL devs &lt;<bugs-sql>&gt; Version: 11.1.1 (Mar2011) [obsolete] CC: @njnes Last updated: 2011-03-28 17:31:25 +0200 ## Comment 15441 Date: 2011-01-26 13:43:55 +0100 From: @grobian sql>SELECT users.name, users.fullname, schemas.name more> FROM sys.users, sys.schemas more> WHERE users.default_schema = schemas.id; SELECT: no such column 'u.name' It is unclear where the "u" comes from. Next is is unclear why this fails. I experimented with the FROM clause to add aliases, or drop the sys. part, but all fails with the same error message. This is actually what I observed from test sql/test/BugTracker/authorization.SF-1430616. ## Comment 15442 Date: 2011-01-26 15:10:23 +0100 From: @sjoerdmullender Simpler failing query: select * from users; The problem seems to be with the definition of sys.users (a view). ## Comment 15443 Date: 2011-01-26 15:13:33 +0100 From: @grobian that makes sense! ## Comment 15557 Date: 2011-03-09 17:32:28 +0100 From: @njnes the bug was fixed (by proper naming/resolving of view columns) ## Comment 15618 Date: 2011-03-28 17:31:25 +0200 From: @sjoerdmullender The Mar2011 version has been released.
"no such column 'u.name'" in users system view
https://api.github.com/repos/MonetDB/MonetDB/issues/2768/comments
0
2020-11-30T11:40:26Z
2024-06-27T11:51:13Z
https://github.com/MonetDB/MonetDB/issues/2768
753,404,908
2,768
[ "MonetDB", "MonetDB" ]
Date: 2011-01-24 14:15:55 +0100 From: @drstmane To: clients devs &lt;<bugs-clients>&gt; Version: 11.3.3 (Apr2011-SP1) [obsolete] Last updated: 2011-07-29 10:52:47 +0200 ## Comment 15411 Date: 2011-01-24 14:15:55 +0100 From: @drstmane after a complete and successful build of MonetDB (bootstrap; configure; make; make install), `make uninstall` fails as follows: Making uninstall in ruby make[2]: Entering directory `/net/rig.ins.cwi.nl/export/scratch0/manegold/Monet/HG/default/build./clients/ruby' Making uninstall in adapter make[3]: Entering directory `/net/rig.ins.cwi.nl/export/scratch0/manegold/Monet/HG/default/build./clients/ruby/adapter' gem uninstall --install-dir '/ufs/manegold/_/scratch0/Monet/HG/default/prefix./lib/ruby/gems/1.8' 'activerecord-monetdb-adapter-0.1.gem' ERROR: While executing gem ... (Gem::InstallError) cannot uninstall, check `gem list -d activerecord-monetdb-adapter-0.1.gem` make[3]: *** [uninstall-local-activerecord-monetdb-adapter-0_1_gemspec] Error 1 make[3]: Leaving directory `/net/rig.ins.cwi.nl/export/scratch0/manegold/Monet/HG/default/build./clients/ruby/adapter' make[2]: *** [uninstall-recursive] Error 1 make[2]: Leaving directory `/net/rig.ins.cwi.nl/export/scratch0/manegold/Monet/HG/default/build./clients/ruby' make[1]: *** [uninstall-recursive] Error 1 make[1]: Leaving directory `/net/rig.ins.cwi.nl/export/scratch0/manegold/Monet/HG/default/build./clients' make: *** [uninstall-recursive] Error 1 ## Comment 15873 Date: 2011-07-01 17:15:38 +0200 From: @sjoerdmullender Changeset [1f648c8bc898](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1f648c8bc898) made by Sjoerd Mullender <sjoerd@acm.org> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=1f648c8bc898](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=1f648c8bc898) Changeset description: Fix call to "gem uninstall". This fixes bug #2767. ## Comment 16013 Date: 2011-07-29 10:52:47 +0200 From: @sjoerdmullender The Apr2011-SP2 bugfix release is out.
`make uninstall` fails in clients/rubyadapter
https://api.github.com/repos/MonetDB/MonetDB/issues/2767/comments
0
2020-11-30T11:40:23Z
2024-06-27T11:51:12Z
https://github.com/MonetDB/MonetDB/issues/2767
753,404,881
2,767
[ "MonetDB", "MonetDB" ]
Date: 2011-01-21 11:37:34 +0100 From: @yzchang To: SQL devs &lt;<bugs-sql>&gt; Version: 11.1.1 (Mar2011) [obsolete] CC: @njnes, @yzchang Last updated: 2011-04-28 16:25:40 +0200 ## Comment 15399 Date: 2011-01-21 11:37:34 +0100 From: @yzchang User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.1.15) Gecko/20101027 Fedora/3.5.15-1.fc12 Firefox/3.5.15 Build Identifier: The following queries result in a segmentation fault in mserver5. The cause is the combined use of mod() and rand(): create table test (v int); insert into test values (23), (34), (12), (54); update test set a = mod(rand(), 32); GDB says that the problem is in .../monet/default/sql/server/sql_statement.c:708: n->data = push_project(sa, rows, n->data); Reproducible: Always ## Comment 15400 Date: 2011-01-21 11:54:33 +0100 From: @yzchang The same error exists in the Oct2010 branch. ## Comment 15673 Date: 2011-03-28 17:35:57 +0200 From: @sjoerdmullender The Mar2011 version has been released. ## Comment 15722 Date: 2011-04-05 12:45:19 +0200 From: @njnes Changeset [28933e6ccd80](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=28933e6ccd80) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=28933e6ccd80](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=28933e6ccd80) Changeset description: fixed bug #2766 used incorrect structure/pointer leading to the crash, now the correct list is used. ## Comment 15723 Date: 2011-04-05 12:46:10 +0200 From: @njnes added test to BugTracker-2011/crash_in_modulo_rand.Bug-2766.sql incorrect pointer was used, now the correct argument list is used. ## Comment 15756 Date: 2011-04-28 16:25:40 +0200 From: @sjoerdmullender The Apr2011 release has been uploaded.
SQL: Compute modulo of rand() in an UPDATE stmt crashes mserver5
https://api.github.com/repos/MonetDB/MonetDB/issues/2766/comments
0
2020-11-30T11:40:20Z
2024-06-27T11:51:11Z
https://github.com/MonetDB/MonetDB/issues/2766
753,404,845
2,766
[ "MonetDB", "MonetDB" ]
Date: 2011-01-20 15:12:27 +0100 From: Alex &lt;<M8R-i23u8t>&gt; To: MonetDB5 devs &lt;<bugs-monetdb5>&gt; Version: 5.22.1 (Oct2010) [obsolete] Last updated: 2011-03-22 09:48:39 +0100 ## Comment 15398 Date: 2011-01-20 15:12:27 +0100 From: Alex &lt;<M8R-i23u8t>&gt; User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 Build Identifier: Windows 7 x64 If the MSI is installed WITH admin privileges in C:\program files\monetdb, the write permissions aren't set correctly for this folder. The config can not be edited and the MServer and MClient have problems too. Reproducible: Always ## Comment 15610 Date: 2011-03-22 09:48:39 +0100 From: @sjoerdmullender I see this too. However, I'm not sure it's worth attempting to fix this. First of all, the configuration file will disappear in the release after the upcoming one (i.e. it's still in the upcoming Mar2011 release, but will be gone in the tentatively labeled Apr2011 release). Secondly, only very rarely will it be necessary to change the configuration file, so it is not worth much effort to fix this. Especially since the work around is easy: change the permissions of the folder by hand. But thirdly, I don't see a way to change the permissions on the folder from the installer. I'm marking this as wontfix.
If MSI is installed with admin privileges in C:\program files\monetdb, the write permissions aren't set
https://api.github.com/repos/MonetDB/MonetDB/issues/2765/comments
0
2020-11-30T11:40:18Z
2024-06-28T07:23:11Z
https://github.com/MonetDB/MonetDB/issues/2765
753,404,813
2,765
[ "MonetDB", "MonetDB" ]
Date: 2011-01-20 12:54:31 +0100 From: Alex &lt;<M8R-i23u8t>&gt; To: MonetDB5 devs &lt;<bugs-monetdb5>&gt; Version: 5.22.1 (Oct2010) [obsolete] Last updated: 2011-03-22 09:36:09 +0100 ## Comment 15396 Date: 2011-01-20 12:54:31 +0100 From: Alex &lt;<M8R-i23u8t>&gt; User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 Build Identifier: If MSI is installed without admin privileges, monetdb is installed to C:\ Reproducible: Always ### Expected Results: Monetdb should be installed to to C:\program files\monetdb\... ## Comment 15397 Date: 2011-01-20 12:56:56 +0100 From: Alex &lt;<M8R-i23u8t>&gt; Windows 7 Enterprise x64 ## Comment 15609 Date: 2011-03-22 09:36:09 +0100 From: @sjoerdmullender When I try this, I don't get the same results. What I did: On a clean Windows 7 (VirtualBox guest system, 32 bit version) I created a test user with "Standard" privileges. I logged in as this user (first logging out from the account with administrator privileges), downloaded MonetDB-SQL (Mar2011 release candidate) and initiated the install. After a few preliminary screenfuls, among which was the location for installation (C:\Program Files\MonetDB\MonetDB5) it came up with a pop-up windows asking for the password of the administrator user. If I refuse to do that, installation is aborted. If I do type in the password, the program is installed in the correct location. The Oct2010-SP1 release behaved exactly the same. I don't have a clean 64 bit installation of Windows 7 to test the 64-bit version. It does seem to me that if this really happens (and I don't doubt that it does for you), it is more likely a bug in Windows 7 or Visual Studio (or perhaps Windows Server 2008 where the .msi was built) than in MonetDB. I'm closing this with a worksforme resolution, but if you have further insights, feel free to reopen.
If MSI is installed without admin privileges, monetdb is installed to C:\
https://api.github.com/repos/MonetDB/MonetDB/issues/2764/comments
0
2020-11-30T11:40:15Z
2024-06-28T07:23:10Z
https://github.com/MonetDB/MonetDB/issues/2764
753,404,781
2,764
[ "MonetDB", "MonetDB" ]
Date: 2011-01-12 09:46:20 +0100 From: jinbinge &lt;<bingejin>&gt; To: MonetDB5 devs &lt;<bugs-monetdb5>&gt; Version: 11.9.7 (Apr2012-SP2) [obsolete] Last updated: 2012-07-17 14:44:46 +0200 ## Comment 15394 Date: 2011-01-12 09:46:20 +0100 From: jinbinge &lt;<bingejin>&gt; User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1) Build Identifier: After running TPCH power test successed ,then running TPCH throughput test,there is an error and the client is disconnected. *** glibc detected *** /mnt/MonetDB/install/bin/mserver5: free(): invalid pointer: 0x00002ac5381b5008 *** Reproducible: Always ### Steps to Reproduce: 1.Run TPCH Tester. 2.Run Power test. 3.Run Throughput test. ### Actual Results: TPCH Throughput test failed. ### Expected Results: TPCH Throughput test successed. ## Comment 15668 Date: 2011-03-28 17:35:54 +0200 From: @sjoerdmullender The Mar2011 version has been released. ## Comment 16028 Date: 2011-07-29 10:59:40 +0200 From: @sjoerdmullender Apr2011-SP2 has been released. ## Comment 16263 Date: 2011-09-16 15:09:13 +0200 From: @sjoerdmullender The Aug2011 version has been released. ## Comment 17490 Date: 2012-07-17 14:44:46 +0200 From: @grobian This wasn't reproduced during several TPC-H SF100 runs.
when run TPCH throughput test,there is an error.*** glibc detected *** /mnt/MonetDB/install/bin/mserver5: free(): invalid pointer: 0x00002ac5381b5008 ***
https://api.github.com/repos/MonetDB/MonetDB/issues/2763/comments
0
2020-11-30T11:40:12Z
2024-06-28T07:23:10Z
https://github.com/MonetDB/MonetDB/issues/2763
753,404,736
2,763
[ "MonetDB", "MonetDB" ]
Date: 2011-01-11 09:09:14 +0100 From: Lex Slaghuis &lt;<lexslaghuis>&gt; To: SQL devs &lt;<bugs-sql>&gt; Version: 11.1.1 (Mar2011) [obsolete] CC: @njnes Last updated: 2011-04-05 12:48:06 +0200 ## Comment 15391 Date: 2011-01-11 09:09:14 +0100 From: Lex Slaghuis &lt;<lexslaghuis>&gt; User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.2.11) Gecko/20101012 Firefox/3.6.11 Build Identifier: copy into file; files; This statement used to work on the previous version. Errorcode Reproducible: Always ### Steps to Reproduce: 1.$1='/var/www/loadstats/pagecounts-20110102-160000';L==$(wc -l $1 | awk '{ print $1}'); 2.for I in $(seq 0 $BLOCKSIZE $L); do 3.mclient --time -d test --statement="COPY $BLOCKSIZE OFFSET $I records into \ wptool.wpstats from '$1' using delimiters ' ','\n','' null as '';"; ### Actual Results: IOException:streams.open:Could not open file ERROR: mnstr_open: could not open file '/var/www/loadstats/pagecounts-20110102-160000' ### Expected Results: Something like 6 miljoen tuples inserted I think this is a mayor issue, for importing now takes over 120 seconds per datafile, using stdin: (printf "COPY INTO STDIN .. " ; cat datafile.csv) > mclient ## Comment 15439 Date: 2011-01-25 15:42:56 +0100 From: @grobian platform: Ubuntu 10.04.1 LTS- 2.6.32-27-server / KVM 64bits ## Comment 15440 Date: 2011-01-26 11:45:50 +0100 From: @grobian Changeset [e09910fe2a2a](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e09910fe2a2a) made by Fabian Groffen <fabian@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=e09910fe2a2a](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=e09910fe2a2a) Changeset description: streams: dewrap from GDK/M4 versions Remove now pointless double wrapping of GDK-based stream functions. Try to report errors better, e.g. give a clue why opening fails in bug #2762 ## Comment 15677 Date: 2011-03-28 17:36:28 +0200 From: @sjoerdmullender The Mar2011 version has been released. ## Comment 15724 Date: 2011-04-05 12:48:06 +0200 From: @njnes sofar unable to repeat the problem
COPY INTO fails: Could not open file
https://api.github.com/repos/MonetDB/MonetDB/issues/2762/comments
0
2020-11-30T11:40:09Z
2024-06-27T11:51:07Z
https://github.com/MonetDB/MonetDB/issues/2762
753,404,714
2,762
[ "MonetDB", "MonetDB" ]
Date: 2011-01-10 20:23:43 +0100 From: Onno &lt;<ob>&gt; To: SQL devs &lt;<bugs-sql>&gt; Version: 2.40.1 (Oct2010) [obsolete] CC: @njnes, rhberentsen Last updated: 2011-03-18 14:36:39 +0100 ## Comment 15389 Date: 2011-01-10 20:23:43 +0100 From: Onno &lt;<ob>&gt; I get a syntax error with the following SQL at "date(": Select count(*) from table group by date(created_at) The field created_at is of type "timestamp" and i like to group by only on the date, not the date and time (this works: "select count(*) from table group by date(created_at)"). ## Comment 15390 Date: 2011-01-10 20:41:20 +0100 From: @sjoerdmullender I expect this works: Select count(*) from table group by "date"(created_at) The problem is, date is a SQL type, and hence a keyword, so it is parsed differently from what you expect. By adding quotes you tell the parser that your using an identifier, not a keyword. If this does indeed work, then this is not a bug but a feature. ## Comment 15392 Date: 2011-01-11 22:34:58 +0100 From: Onno &lt;<ob>&gt; I also get an error with i add quotes to date: Select count(*) from table group by "date"(created_at) ## Comment 15393 Date: 2011-01-12 09:02:15 +0100 From: @grobian What are you trying to achieve? Is created_at a column? What is its type? Are you trying to cast it to a date by chance? If so, forget the quoting remark, as it doesn't apply to you here, you need CAST(created_at AS DATE) instead. ## Comment 15395 Date: 2011-01-12 22:12:26 +0100 From: Onno &lt;<ob>&gt; I'm trying to achieve to group by a date and not by date and time. This doesn't give the correct result: SELECT count(*) as count1, created_at from table group by created_at Because the column created_at is of type timestamp. So i don't want to group by date and time but only by date. This works but is't on the result: SELECT count(*) as count1, CAST(created_at AS DATE) from table group by created_at; This should (if syntax is correct?) give the correct result: SELECT count(*) as count1, CAST(created_at AS DATE) from table group by CAST(created_at AS DATE) ## Comment 15500 Date: 2011-02-23 15:04:13 +0100 From: Rob Berentsen &lt;<rhberentsen>&gt; Does this work? SELECT COUNT(*) AS count1, CAST(created_at AS DATE) AS somedate FROM TABLE GROUP BY somedate ## Comment 15604 Date: 2011-03-18 14:36:39 +0100 From: @njnes we only allow column references in the group by part. So yes the last example should work (just tested works fine).
Select count(*) from table group by date(created_at)
https://api.github.com/repos/MonetDB/MonetDB/issues/2761/comments
0
2020-11-30T11:40:06Z
2024-06-28T07:23:10Z
https://github.com/MonetDB/MonetDB/issues/2761
753,404,684
2,761
[ "MonetDB", "MonetDB" ]
Date: 2011-01-08 06:38:11 +0100 From: @mlkersten To: SQL devs &lt;<bugs-sql>&gt; Version: 11.11.7 (Jul2012-SP1) CC: @romulogoncalves, @njnes Last updated: 2012-11-27 13:07:50 +0100 ## Comment 15388 Date: 2011-01-08 06:38:11 +0100 From: @mlkersten User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 Build Identifier: The translate(column,source,target) function available in Postgresql and Oracle is missing. Reproducible: Always ### Steps to Reproduce: start transaction; create table emp(ename string, sal int, com string, nme string); insert into emp values('john',1900,'none','the '); insert into emp values('betty',5900,'a lot','wolf'); insert into emp values('clair',3900,'ok','wolf'); insert into emp values('peter',3900,'ok','wolf'); select * from emp order by replace(convert(sal,'0123456789',''),'',''); rollback; ## Comment 15740 Date: 2011-04-21 21:18:51 +0200 From: @njnes what are the intended semantics of replace and convert in the example? ## Comment 16032 Date: 2011-07-29 11:00:02 +0200 From: @sjoerdmullender Apr2011-SP2 has been released. ## Comment 16269 Date: 2011-09-16 15:10:36 +0200 From: @sjoerdmullender The Aug2011 version has been released. ## Comment 17671 Date: 2012-08-24 14:55:52 +0200 From: @sjoerdmullender Jul2012-SP1 has been released. ## Comment 18042 Date: 2012-11-27 12:20:40 +0100 From: @romulogoncalves When you request a feature please explain the semantics of the requested featured. Otherwise, it is not possible to create a test to check if the feature is properly implemented. In this example, CONVERT is used in SQL standard with a different syntax: CONVERT '(' cast_value ',' data_type ')' Mserver reports the following ERROR which is correct: [goncalve@lyon Tests]$ mclient_mine current debug sql romulo.sql [ 1 ] [ 1 ] [ 1 ] [ 1 ] MAPI = monetdb@localhost:55000 QUERY = start transaction; create table emp(ename string, sal int, com string, nme string); insert into emp values('john',1900,'none','the '); insert into emp values('betty',5900,'a lot','wolf'); insert into emp values('clair',3900,'ok','wolf'); insert into emp values('peter',3900,'ok','wolf'); select * from emp order by replace(convert(sal,'0123456789',''),'',''); rollback; ERROR = !syntax error, unexpected STRING in: "select * from emp order by !replace(convert(sal,'0123456789'" Therefore, no test is needed and bug will be closed as invalid. ## Comment 18048 Date: 2012-11-27 13:07:50 +0100 From: @romulogoncalves The bug will remain marked as invalid, however, we need to mention that CONVERT is not part of the SQL standard. CONVERT is an alias of CAST (part of the SQL standard). Hence, a user can still create a SQL function called CONVERT. In case the TRANSLATE functionality is required, a feature request explaining its semantics should be submitted by the user who opened this bug.
implement translate(col,src,trg) function
https://api.github.com/repos/MonetDB/MonetDB/issues/2760/comments
0
2020-11-30T11:40:03Z
2024-06-28T13:40:44Z
https://github.com/MonetDB/MonetDB/issues/2760
753,404,653
2,760
[ "MonetDB", "MonetDB" ]
Date: 2010-12-31 14:23:32 +0100 From: Hanne Nijhuis &lt;<prostic>&gt; To: SQL devs &lt;<bugs-sql>&gt; Version: 11.3.3 (Apr2011-SP1) [obsolete] CC: @drstmane Last updated: 2011-07-01 17:21:53 +0200 ## Comment 15382 Date: 2010-12-31 14:23:32 +0100 From: Hanne Nijhuis &lt;<prostic>&gt; User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13 Build Identifier: In a table with only 2 columns but so far approx. 130 milion records, a new COPY INTO query (with a file with another few milion records) results in the following (done through a python cursor): >>> q = "COPY INTO measurements FROM '/media/Databases/insertFiles/if8' USING DELIMITERS ',','\n'" >>> cursor.execute(q) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.6/dist-packages/monetdb/sql/cursors.py", line 202, in execute block = self.connection.execute(query) File "/usr/local/lib/python2.6/dist-packages/monetdb/sql/connections.py", line 133, in execute return self.command('s' + query + ';') File "/usr/local/lib/python2.6/dist-packages/monetdb/sql/connections.py", line 139, in command return self.mapi.cmd(command) File "/usr/local/lib/python2.6/dist-packages/monetdb/mapi2.py", line 165, in cmd raise OperationalError(response[1:]) monetdb.monetdb_exceptions.OperationalError: MALException:algebra.join:GDK reported error. !ERROR: HEAPalloc: Insufficient space for HEAP of 543162368 bytes. The same attempt through an mclient connection has the same output: MALException:algebra.join:GDK reported error. ERROR: HEAPalloc: Insufficient space for HEAP of 543162368 bytes. Is this a limit we're running into? Reproducible: Didn't try ### Steps to Reproduce: 1. Insert many records into a single table.. i guess 2. 3. I started by trying a single very large 'insertfile' as i call them (file to provide as input for the COPY INTO query). This resulted in a similar error, so i started cutting up the file into smaller pieces. Insertfile 1 through 7 were inserted just fine, but with file 8 there is an error. It's not the specific file though, because 9 wouldn't insert either. I tried insertfile 10 (which was significantly smaller then 8 and 9) and this one 'fitted' apparently. But then trying number 8 again resulted in a similar error but a different number for the heap: sql>COPY INTO measurements FROM '/media/Databases/insertFiles/if8' USING DELIMITERS ',','\n'; MALException:algebra.join:GDK reported error. ERROR: HEAPalloc: Insufficient space for HEAP of 551288832 bytes. ## Comment 15383 Date: 2010-12-31 14:34:34 +0100 From: @drstmane Which version (release) of MonetDB are you using? Is your MonetDB 32- or 64-bit? How much main memory does your system have? (`mserver5 --version` should answer all above questions) How much free disk space do you have on the drive/partition where your dbfarm is located? ## Comment 15384 Date: 2010-12-31 15:16:44 +0100 From: Hanne Nijhuis &lt;<prostic>&gt; (In reply to comment 1) > Which version (release) of MonetDB are you using? Oct2010 > Is your MonetDB 32- or 64-bit? Running 32-bit ubuntu on a 64-bit machine > How much main memory does your system have? 12 Gig.. enabled in 32-bit ubuntu by using PAE also tried without PAE and then ubuntu is limited to 3 Gig.. > > (`mserver5 --version` should answer all above questions) MonetDB server v5.22.3 (32-bit), based on kernel v1.40.3 (32-bit oids) Release Oct2010-SP1 Copyright (c) 1993-July 2008 CWI Copyright (c) August 2008-2010 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information Found 2.9GiB available memory, 8 available cpu cores Configured for prefix: /usr Libraries: libpcre: 8.02 2010-03-19 (compiled with 7.8) openssl: OpenSSL 0.9.8g 19 Oct 2007 (compiled with OpenSSL 0.9.8g 19 Oct 2007) libxml2: 2.7.5 (compiled with 2.7.5) Compiled by: root@ottar.ins.cwi.nl (i486-pc-linux-gnu) Compilation: gcc -O2 -Wall -O2 -O6 -fomit-frame-pointer -finline-functions -falign-loops=4 -falign-jumps=4 -falign-functions=4 -fexpensive-optimizations -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -ftree-vectorize Linking : /usr/bin/ld -Wl,-Bsymbolic-functions > How much free disk space do you have on the drive/partition where your dbfarm > is located? dbfarm is on a mounted ext4 disc with 38G available (46G total) ## Comment 15385 Date: 2010-12-31 15:30:47 +0100 From: @drstmane Even with 12 GB, a single process on a 32-bit system can address (and hence use) at most 4 GB memory (32-bit address space); hence, also 32-bit MonetDB can use (address) at most 4 GB. Given it's design, this also means that the amount of data that can be handled at a time is limited to max. 4GB (possible only 3GB in practice, and only 2GB per BAT). Hence, I assume that when loading your data, MonetDB would need more than 2/3/4GB address space, but cannot; hence, loading fails. In short, you'll need a 64-bit MonetDB to load that data. Why don't you run a proper 64-bit Ubuntu (and MonetDB) on a 64-bit machine with 12(!) GB RAM? ## Comment 15386 Date: 2011-01-02 13:16:33 +0100 From: @drstmane For a detailed discussion on MonetDB's memory & address space requirements, see also http://sourceforge.net/mailarchive/message.php?msg_id=24807067 ## Comment 15681 Date: 2011-03-28 17:36:30 +0200 From: @sjoerdmullender The Mar2011 version has been released. ## Comment 15874 Date: 2011-07-01 17:21:53 +0200 From: @sjoerdmullender Running out of memory isn't necessarily a bug. In particular, if you have a large database on a 32-bit machine (it's the software that counts here, not the hardware!) you will run out of memory.
COPY INTO results in HEAPalloc: Insufficient space for unclear reason
https://api.github.com/repos/MonetDB/MonetDB/issues/2759/comments
0
2020-11-30T11:40:00Z
2024-06-28T07:23:09Z
https://github.com/MonetDB/MonetDB/issues/2759
753,404,619
2,759
[ "MonetDB", "MonetDB" ]
Date: 2010-12-19 17:38:14 +0100 From: @skinkie To: SQL devs &lt;<bugs-sql>&gt; Version: 11.1.1 (Mar2011) [obsolete] Last updated: 2011-03-06 00:14:19 +0100 ## Comment 15380 Date: 2010-12-19 17:38:14 +0100 From: @skinkie User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.210 Safari/534.10 Build Identifier: CREATE TABLE "sys"."cables_to" ( "documentid" VARCHAR(32) NOT NULL, "msgtotag" VARCHAR(12), "msgto" VARCHAR(64) NOT NULL, "priority" VARCHAR(12), "trackid" INTEGER ); update cables_to set msgtotag = (select distinct b.msgtotag from cables_to a, cables_to b where a.msgtotag is null and b.msgtotag is not null and a.msgto = b.msgto and cables_to.msgto = a.msgto) where msgtotag is null; mserver5: ../../../src/server/rel_select.c:653: rel_project_add_exp: Assertion `(rel->op == op_project || rel->op == op_groupby || (rel->op == op_union || rel->op == op_inter || rel->op == op_except))' failed. Reproducible: Always MonetDB server v5.23.0 (64-bit), based on kernel v1.41.0 (64-bit oids) Not released Copyright (c) 1993-July 2008 CWI Copyright (c) August 2008-2010 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information Found 2.0GiB available memory, 2 available cpu cores Configured for prefix: /opt/monetdb-testing5 Libraries: libpcre: 8.02 2010-03-19 ((not linked to any PCRE library)) openssl: OpenSSL 1.0.0b 16 Nov 2010 (compiled with OpenSSL 1.0.0b 16 Nov 2010) libxml2: 2.7.7 (compiled with ) Compiled by: skinkie@kabelsearch (x86_64-unknown-linux-gnu) Compilation: gcc -Wall -Wextra -fno-strict-aliasing -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 Linking : /usr/x86_64-pc-linux-gnu/bin/ld -IPA -m elf_x86_64 ## Comment 15536 Date: 2011-03-06 00:14:19 +0100 From: @skinkie This currently works.
mserver5: ../../../src/server/rel_select.c:653 aborted
https://api.github.com/repos/MonetDB/MonetDB/issues/2758/comments
0
2020-11-30T11:39:57Z
2024-06-27T11:51:02Z
https://github.com/MonetDB/MonetDB/issues/2758
753,404,581
2,758
[ "MonetDB", "MonetDB" ]
Date: 2010-12-16 00:26:38 +0100 From: @skinkie To: SQL devs &lt;<bugs-sql>&gt; Version: -- development CC: @njnes, @drstmane Last updated: 2011-03-28 17:31:23 +0200 ## Comment 15350 Date: 2010-12-16 00:26:38 +0100 From: @skinkie User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.210 Safari/534.10 Build Identifier: sql>select created from cables where created = '1990-01-17 15:03:00'; +----------------------------+ | created | +============================+ | 1990-01-17 15:03:00.000000 | +----------------------------+ 1 tuple (26.000ms) sql>SELECT id, classification FROM cables WHERE created BETWEEN '1990-01-17' AND '1990-01-18' ORDER BY created DESC LIMIT 20; +----+----------------+ | id | classification | +====+================+ +----+----------------+ 0 tuples (3.000ms) sql>select cast('1990-01-17 15:03:00' as timestamp) BETWEEN '1990-01-17' AND '1990-01-18'; +---------------------+ | and_>=_single_value | +=====================+ | true | +---------------------+ sql>SELECT id, classification FROM cables WHERE created BETWEEN '1990-01-17' AND '1990-01-18' ORDER BY created; +------+----------------+ | id | classification | +======+================+ | 714 | CONFIDENTIAL | +------+----------------+ 1 tuple (3.000ms) Some observations: code is compiled Reproducible: Always ### Steps to Reproduce: It seems that this happened in the last few days. Because a MonetDB of like a week ago doesn't show any issues. I have now recompiled with disabled optimise. MonetDB server v5.23.0 (64-bit), based on kernel v1.41.0 (64-bit oids) Not released Copyright (c) 1993-July 2008 CWI Copyright (c) August 2008-2010 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information Found 2.0GiB available memory, 2 available cpu cores Configured for prefix: /opt/monetdb-testing3 Libraries: libpcre: 7.9 2009-04-11 ((not linked to any PCRE library)) openssl: OpenSSL 1.0.0b 16 Nov 2010 (compiled with OpenSSL 1.0.0b 16 Nov 2010) libxml2: 2.7.7 (compiled with ) Compiled by: skinkie@kabelsearch (x86_64-unknown-linux-gnu) Compilation: gcc -Wall -Wextra -fno-strict-aliasing -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 Linking : /usr/x86_64-pc-linux-gnu/bin/ld -IPA -m elf_x86_64 ## Comment 15351 Date: 2010-12-16 00:27:42 +0100 From: @skinkie Some extra info: sql>select count(*) from cables; +------+ | L4 | +======+ | 1546 | +------+ 1 tuple (1.000ms) sql>SELECT id, classification FROM cables WHERE created BETWEEN '1990-01-17' AND '1990-01-18' ORDER BY created DESC LIMIT 1546; +------+----------------+ | id | classification | +======+================+ | 714 | CONFIDENTIAL | +------+----------------+ ## Comment 15353 Date: 2010-12-16 08:48:46 +0100 From: @grobian can it be that this: Libraries: libpcre: 7.9 2009-04-11 ((not linked to any PCRE library)) causes things to go wrong? ## Comment 15354 Date: 2010-12-16 09:56:23 +0100 From: @sjoerdmullender (In reply to comment 2) > can it be that this: > > Libraries: > libpcre: 7.9 2009-04-11 ((not linked to any PCRE library)) > > causes things to go wrong? This could well be a bug in configure. Since the PCRE check was changed to pkg-config the way the version number is retrieved for displaying here wasn't fixed. It will be fixed in my upcoming super configure. ## Comment 15355 Date: 2010-12-16 10:03:46 +0100 From: @skinkie (In reply to comment 2) > can it be that this: > > Libraries: > libpcre: 7.9 2009-04-11 ((not linked to any PCRE library)) > > causes things to go wrong? Upgraded my Gentoo libpcre now get: libpcre: 8.02 2010-03-19 ((not linked to any PCRE library)) I do see the difference on one system to the other where PCRE /is/ linked. But how can I force such operation now? Never the less, Niels did commit a change to the LIMIT/ORDER BY code. From my perspective the LIMIT happens before the ORDER BY. (See my last example.) ## Comment 15356 Date: 2010-12-16 10:20:17 +0100 From: @drstmane Stefan, could you please provide (attach) the PLAN and EXPLAIN with MonetDB builds both with and without --enable-optimize (both need to be built from scratch. i.e., with virgin/empty build- & prefix-directories and using the very same code base) for one query where the results differ between the two builds as reported? Thanks! Stefan ## Comment 15357 Date: 2010-12-16 11:07:19 +0100 From: @skinkie Currently recompiled on the 'non-working' host, only change is the not commited Sphinx code. For convenience running everything in readonly. explain SELECT id, classification FROM cables WHERE created BETWEEN '1990-01-17' AND '1990-01-18' ORDER BY created DESC LIMIT 20; % .explain table_name % mal name % clob type % 0 length function user.s3_1{autoCommit=true}():void; _2 := sql.mvc(); barrier _57 := language.dataflow(); _9:bat[:oid,:timestamp] := sql.bind(_2,"sys","cables","created",0); _10 := algebra.uselect(_9,1990-01-17 00:00:00.000:timestamp,1990-01-18 00:00:00.000:timestamp,true,true); _11 := algebra.markT(_10,0@0:oid); _12 := bat.reverse(_11); _13 := pqueue.topn_min(_9,20:wrd); _14 := algebra.join(_12,_13); _15 := bat.mirror(_14); _56 := algebra.leftjoin(_15,_12); _5:bat[:oid,:int] := sql.bind(_2,"sys","cables","id",0); _16 := algebra.leftjoin(_56,_5); _20 := algebra.slice(_16,0:wrd,19:wrd); _21 := bat.mirror(_20); _22 := algebra.leftjoin(_21,_16); _24:bat[:oid,:str] := sql.bind(_2,"sys","cables","classification",0); _27 := algebra.leftjoinPath(_21,_56,_24); exit _57; _28 := sql.resultSet(2,1,_22); sql.rsColumn(_28,"sys.cables","id","int",32,0,_22); sql.rsColumn(_28,"sys.cables","classification","varchar",64,0,_27); _37 := io.stdout(); sql.exportResult(_37,_28); end s3_1; plan SELECT id, classification FROM cables WHERE created BETWEEN '1990-01-17' AND '1990-01-18' ORDER BY created DESC LIMIT 20; % .plan table_name % rel name % clob type % 142 length top N ( | project ( | | select ( | | | table(sys.cables) [ cables.id NOT NULL, cables.created NOT NULL, cables.classification NOT NULL, cables.%TID% NOT NULL ] | | ) [ convert('1990-01-17' from char(10) to timestamp(7)) <= cables.created NOT NULL <= convert('1990-01-18' from char(10) to timestamp(7)) ] | ) [ cables.created NOT NULL ] [ cables.id NOT NULL, cables.classification NOT NULL ] ) [ 20 ] SELECT id, classification FROM cables WHERE created BETWEEN '1990-01-17' AND '1990-01-18' ORDER BY created DESC LIMIT 20; % sys.cables, sys.cables table_name % id, classification name % int, varchar type % 1, 0 length It is not a problem what so ever to dump this table. ## Comment 15358 Date: 2010-12-16 11:15:25 +0100 From: @drstmane Thanks, Stefan. To rephrase my previous comment, what we'd need id two PLANs and two EXPLAINs for one query, one PLAN & one EXPLAIN with the --enable-optimize build of MonetDB where the query produces the wrong reault, and one PLAN & one EXPLAIN with the non --enable-optimize build of MonetDB where the query yield the correct results. Thanks, again, Stefan ## Comment 15359 Date: 2010-12-16 11:29:22 +0100 From: @skinkie (In reply to comment 7) > To rephrase my previous comment, what we'd need id two PLANs and two EXPLAINs > for one query, one PLAN & one EXPLAIN with the --enable-optimize build of > MonetDB where the query produces the wrong reault, and one PLAN & one EXPLAIN > with the non --enable-optimize build of MonetDB where the query yield the > correct results. Do you really need both if without optimise it doesn't work as well? Anyway... compiling again :) ## Comment 15360 Date: 2010-12-16 11:43:18 +0100 From: @drstmane hm, maybe I'm lost --- didn't you sayit only does not work "when compiled with enable-optimise"? ## Comment 15361 Date: 2010-12-16 11:45:51 +0100 From: @skinkie (In reply to comment 9) > hm, maybe I'm lost --- didn't you sayit only does not work "when compiled with > enable-optimise"? At openkvk I have no optimisation, and the working pcre lib, at kabelsearch I have tested all optimisations (with without), but pcre remains non existent. Anyway this is the optimised version: sql>explain SELECT id, classification FROM cables WHERE created BETWEEN '1990-01-17' AND '1990-01-18' ORDER BY created DESC LIMIT 20; % .explain table_name % mal name % clob type % 0 length function user.s3_1{autoCommit=true}():void; _2 := sql.mvc(); barrier _57 := language.dataflow(); _9:bat[:oid,:timestamp] := sql.bind(_2,"sys","cables","created",0); _10 := algebra.uselect(_9,1990-01-17 00:00:00.000:timestamp,1990-01-18 00:00:00.000:timestamp,true,true); _11 := algebra.markT(_10,0@0:oid); _12 := bat.reverse(_11); _13 := pqueue.topn_min(_9,20:wrd); _14 := algebra.join(_12,_13); _15 := bat.mirror(_14); _56 := algebra.leftjoin(_15,_12); _5:bat[:oid,:int] := sql.bind(_2,"sys","cables","id",0); _16 := algebra.leftjoin(_56,_5); _20 := algebra.slice(_16,0:wrd,19:wrd); _21 := bat.mirror(_20); _22 := algebra.leftjoin(_21,_16); _24:bat[:oid,:str] := sql.bind(_2,"sys","cables","classification",0); _27 := algebra.leftjoinPath(_21,_56,_24); exit _57; _28 := sql.resultSet(2,1,_22); sql.rsColumn(_28,"sys.cables","id","int",32,0,_22); sql.rsColumn(_28,"sys.cables","classification","varchar",64,0,_27); _37 := io.stdout(); sql.exportResult(_37,_28); end s3_1; sql>plan SELECT id, classification FROM cables WHERE created BETWEEN '1990-01-17' AND '1990-01-18' ORDER BY created DESC LIMIT 20; % .plan table_name % rel name % clob type % 142 length top N ( | project ( | | select ( | | | table(sys.cables) [ cables.id NOT NULL, cables.created NOT NULL, cables.classification NOT NULL, cables.%TID% NOT NULL ] | | ) [ convert('1990-01-17' from char(10) to timestamp(7)) <= cables.created NOT NULL <= convert('1990-01-18' from char(10) to timestamp(7)) ] | ) [ cables.created NOT NULL ] [ cables.id NOT NULL, cables.classification NOT NULL ] ) [ 20 ] ## Comment 15362 Date: 2010-12-17 14:11:10 +0100 From: @skinkie Does this commit have anything to with? http://dev.monetdb.org/hg/MonetDB/rev/617e10d1b5fa ## Comment 15363 Date: 2010-12-17 14:22:32 +0100 From: @grobian please tell us by testing if so ## Comment 15366 Date: 2010-12-17 14:35:24 +0100 From: @skinkie As reference. The openkvk checkout is of Mon Dec 13 20:45:08 2010 +0100 so it is a commit in the last 5 days. ## Comment 15367 Date: 2010-12-17 15:02:31 +0100 From: @drstmane hg bisect is a handy tool to analyze such cases, i.e., to find which checkin break a certain behavior ... ## Comment 15368 Date: 2010-12-17 15:04:17 +0100 From: @skinkie Yes was just reading into. http://mercurial.selenic.com/wiki/BisectExtension ## Comment 15369 Date: 2010-12-17 16:04:24 +0100 From: @grobian $INSTALL_DIR/bin/mclient -dtest Welcome to mclient, the MonetDB/SQL interactive terminal (Oct2010-hg) Database: MonetDB v5.22.2, 'test' Type \q to quit, \? for a list of available commands auto commit mode: on sql>create table x (id int, created timestamp, classification varchar(20)); operation successful sql>insert into x values (1, timestamp '1990-01-17 15:03:00', 'CONFIDENTIAL'); 1 affected row (30.670ms) sql>insert into x values (1, now(), 'PUBLIC'); 1 affected row (19.826ms) sql>select * from x; +------+----------------------------+----------------+ | id | created | classification | +======+============================+================+ | 1 | 1990-01-17 15:03:00.000000 | CONFIDENTIAL | | 1 | 2010-12-17 15:02:41.000000 | PUBLIC | +------+----------------------------+----------------+ 2 tuples (13.386ms) sql>select id, classification FROM cables WHERE created BETWEEN '1990-01-17' more>AND '1990-01-18' ORDER BY created DESC LIMIT 20; SELECT: no such table 'cables' sql>select id, classification FROM x WHERE created BETWEEN '1990-01-17' AND '1990-01-18' ORDER BY created DESC LIMIT 20; +------+----------------+ | id | classification | +======+================+ | 1 | CONFIDENTIAL | +------+----------------+ 1 tuple (15.317ms) sql>select cast('1990-01-17 15:03:00' as timestamp) BETWEEN '1990-01-17' AND more>'1990-01-18'; +---------------------+ | and_>=_single_value | +=====================+ | true | +---------------------+ 1 tuple (22.705ms) sql>SELECT id, classification FROM x WHERE created BETWEEN '1990-01-17' more>AND '1990-01-18' ORDER BY created; +------+----------------+ | id | classification | +======+================+ | 1 | CONFIDENTIAL | +------+----------------+ 1 tuple (17.942ms) sql> ## Comment 15370 Date: 2010-12-17 16:17:10 +0100 From: @grobian Same on todays current. Can you reproduce your issue in the way I did? ## Comment 15371 Date: 2010-12-17 16:40:29 +0100 From: @skinkie Can still reproduce my error, I cannot reproduce it with your example. Here is the import: https://kabelsearch.org/data/tofabian.sql.gz ## Comment 15374 Date: 2010-12-17 17:23:26 +0100 From: @drstmane Thanks for the data. The following very simple analysis helps to reduce the problem to a very specific case, which in turn should help us to locate and fix the actual cause of the problem: (with the latest HG default source base as of Fri Dec 17 17:00 compiled with gcc and debugging enabled on 64-bit Fedora 12): sql>SELECT id, classification FROM cables WHERE created BETWEEN '1990-01-17' AND '1990-01-18'; +------+----------------+ | id | classification | +======+================+ | 714 | CONFIDENTIAL | +------+----------------+ 1 tuple (3.000ms) sql>SELECT id, classification FROM cables WHERE created BETWEEN '1990-01-17' AND '1990-01-18' LIMIT 20; +------+----------------+ | id | classification | +======+================+ | 714 | CONFIDENTIAL | +------+----------------+ 1 tuple (3.000ms) sql>SELECT id, classification FROM cables WHERE created BETWEEN '1990-01-17' AND '1990-01-18' ORDER BY created; +------+----------------+ | id | classification | +======+================+ | 714 | CONFIDENTIAL | +------+----------------+ 1 tuple (3.000ms) sql>SELECT id, classification FROM cables WHERE created BETWEEN '1990-01-17' AND '1990-01-18' ORDER BY created LIMIT 20; +------+----------------+ | id | classification | +======+================+ | 714 | CONFIDENTIAL | +------+----------------+ 1 tuple (4.000ms) sql>SELECT id, classification FROM cables WHERE created BETWEEN '1990-01-17' AND '1990-01-18' ORDER BY created DESC; +------+----------------+ | id | classification | +======+================+ | 714 | CONFIDENTIAL | +------+----------------+ 1 tuple (3.000ms) sql>SELECT id, classification FROM cables WHERE created BETWEEN '1990-01-17' AND '1990-01-18' ORDER BY created DESC LIMIT 20; +----+----------------+ | id | classification | +====+================+ +----+----------------+ 0 tuples (3.000ms) sql> I.e., only the combination of ORDER BY *DESC* and LIMIT appears to fail. With the Oct2010 branch, everything appear to work fine. ## Comment 15376 Date: 2010-12-17 23:03:35 +0100 From: @drstmane hg bisect (with a "suitable" test script) seems to suggest that the problems exists since the following changeset: http://dev.monetdb.org/hg/MonetDB/rev/a369a007a73d changeset: 38368:a369a007a73d user: Niels Nes <niels@cwi.nl> date: Wed Dec 01 22:27:25 2010 +0100 files: MonetDB5/src/mal/mal_interpreter.mx MonetDB5/src/optimizer/opt_mergetable.mx MonetDB5/src/optimizer/opt_mitosis.mx sql/src/backends/monet5/sql.mx sql/src/backends/monet5/sql_gencode.mx sql/src/common/Makefile.ag sql/src/common/sql_mem.c sql/src/common/sql_types.c sql/src/common/sql_types.h sql/src/include/Makefile.ag sql/src/include/sql_mem.h sql/src/server/bin_optimizer.c sql/src/server/rel_bin.c sql/src/server/rel_subquery.c sql/src/server/sql_psm.c sql/src/server/sql_rel2bin.c sql/src/server/sql_rel2bin.h sql/src/server/sql_semantic.c sql/src/server/sql_statement.c sql/src/server/sql_statement.h sql/src/test/BugTracker-2009/Tests/POWER_vs_prod.SF-2596114.stable.out sql/src/test/BugTracker-2010/Tests/LIMIT_OFFSET_big-endian.Bug-2622.stable.out sql/src/test/BugTracker-2010/Tests/group-by_ordered_column.Bug-2564.stable.out sql/src/test/BugTracker-2010/Tests/incomplete-utf8-sequence.Bug-2575.stable.err sql/src/test/Dependencies/Tests/Dependencies.stable.out sql/src/test/Tests/crashme.timeout sql/src/test/Tests/trace.stable.out sql/src/test/leaks/Tests/check0.stable.out sql/src/test/leaks/Tests/check1.stable.out sql/src/test/leaks/Tests/check2.stable.out sql/src/test/leaks/Tests/check3.stable.out sql/src/test/leaks/Tests/check4.stable.out sql/src/test/leaks/Tests/check5.stable.out description: major cleanup the stmt structure's op1,op2 and op3 are now stmt pointers only the op4 can have special types such as typeval, func/aggr table/column list and atom we now flatten the stmt tree before we issue the bin_optimizer and mal generation. This solves crashes with to deep recursion. ## Comment 15377 Date: 2010-12-18 12:57:13 +0100 From: @njnes removed bogus optimization ## Comment 15378 Date: 2010-12-18 12:58:12 +0100 From: @njnes Changeset [27d9c8547be0](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=27d9c8547be0) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=27d9c8547be0](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=27d9c8547be0) Changeset description: removed bogus optimization. Fixes bug #2757. ## Comment 15614 Date: 2011-03-28 17:31:23 +0200 From: @sjoerdmullender The Mar2011 version has been released.
ORDER BY DESC + LIMIT incorrectly yields empty result
https://api.github.com/repos/MonetDB/MonetDB/issues/2757/comments
0
2020-11-30T11:39:53Z
2024-06-27T11:51:01Z
https://github.com/MonetDB/MonetDB/issues/2757
753,404,545
2,757
[ "MonetDB", "MonetDB" ]
Date: 2010-12-15 23:16:50 +0100 From: @mlkersten To: clients devs &lt;<bugs-clients>&gt; Version: -- development CC: duc Last updated: 2012-11-27 16:36:38 +0100 ## Comment 15349 Date: 2010-12-15 23:16:50 +0100 From: @mlkersten User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 Build Identifier: If you create a SQL PROCEDURE then it is added to the functions catalog table. Subsequent retrieval with \df <name> works find, but \df produces the wrong information. Reproducible: Always ### Steps to Reproduce: CREATE PROCEDURE mseedimport(vid int, source string, target string) EXTERNAL NAME mseed.import; \df mseedimport \df ## Comment 15352 Date: 2010-12-16 08:46:11 +0100 From: @grobian What is "incorrect" result? Is that no result, or incomplete result? ## Comment 15373 Date: 2010-12-17 17:12:06 +0100 From: @grobian sql>create procedure dummy(vid int) external name dummy.p; operation successful sql>\df FUNCTION sys.dummy sql>\df dummy create procedure dummy(vid int) external name dummy.p; sql> ## Comment 18142 Date: 2012-11-27 16:18:07 +0100 From: @sjoerdmullender (In reply to comment 2) > sql>create procedure dummy(vid int) external name dummy.p; > operation successful > sql>\df > FUNCTION sys.dummy > sql>\df dummy > create procedure dummy(vid int) external name dummy.p; > sql> Ping?
Description type inconsistancy
https://api.github.com/repos/MonetDB/MonetDB/issues/2756/comments
0
2020-11-30T11:39:51Z
2024-06-27T11:51:00Z
https://github.com/MonetDB/MonetDB/issues/2756
753,404,516
2,756
[ "MonetDB", "MonetDB" ]
Date: 2010-12-15 22:13:03 +0100 From: Lieuwe &lt;<lieuwer>&gt; To: MonetDB5 devs &lt;<bugs-monetdb5>&gt; Version: 5.22.1 (Oct2010) [obsolete] Last updated: 2011-01-25 15:40:35 +0100 ## Comment 15347 Date: 2010-12-15 22:13:03 +0100 From: Lieuwe &lt;<lieuwer>&gt; User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3 Build Identifier: After performing the update to the latest version mserver --dbname=existingdb gave a segmentation fault with the following preceding error: WARNING: LoaderException:loadLibrary:Loading error '/usr/lib/MonetDB5/lib/lib_geom.so: undefined symbol: stream_readInt' from within file 'geom' I've tried to create a new db through merovingian and monetdb create, but upon starting the DB it immediately stops again with a reference to the logfile, which states: 2010-12-15 22:06:23 MSG control[1434]: (local): created database 'complex2' 2010-12-15 22:06:39 MSG control[1434]: (local): released database 'complex2' 2010-12-15 22:06:39 MSG discovery[1434]: new database mapi:monetdb://hanne-desktop:50000/complex2 (ttl=660s) 2010-12-15 22:06:46 MSG merovingian[1434]: starting database 'complex2', up min/avg/max: 0s/0s/0s, crash average: 0.00 0.00 0.00 (0-0=0) 2010-12-15 22:06:46 MSG complex2[1578]: arguments: /usr/bin/mserver5 --config=/etc/monetdb5.conf --dbname=complex2 --set merovingian_uri=mapi:monetdb://hanne-desktop:50000/complex2 --set mapi_open=false --set mapi_port=0 --set mapi_usock=/var/MonetDB5/dbfarm/complex2/.mapi.sock --set monet_vault_key=/var/MonetDB5/dbfarm/complex2/.vaultkey --set monet_daemon=yes 2010-12-15 22:06:46 MSG merovingian[1434]: database 'complex2' (1578) was killed by signal SIGSEGV 2010-12-15 22:06:56 ERR control[1434]: (local): failed to fork mserver: database 'complex2' has crashed after starting, manual intervention needed, check merovingian's logfile for details Please note I am running this on a virtual machine running Ubuntu 10.04 Reproducible: Always ### Steps to Reproduce: 1. monetdb start dbname 2. 3. ### Actual Results: DB stops ### Expected Results: DB is up and running Please note I am running this on a virtual machine running Ubuntu 10.04 ## Comment 15348 Date: 2010-12-15 22:24:10 +0100 From: @drstmane - Which version of MonetDB did you run before upgrading to the latest Oct2010 release? - What happens if you kill merovingian and then start mserver5 by hand with a new DB, e.g., `mserver5 --dbname=MyNewDB`? - Did / can you try to uninstall MonetDB and re-install the latest version on a "virgin"/"clean" (wrt. MonetDB) system? ## Comment 15372 Date: 2010-12-17 17:08:19 +0100 From: @grobian This feels like a version mismatch, and stale libraries left around here and there. ## Comment 15438 Date: 2011-01-25 15:40:35 +0100 From: @grobian this is a build-related problem
databases crash upon startup, mserver5 gives segmentation fault.
https://api.github.com/repos/MonetDB/MonetDB/issues/2755/comments
0
2020-11-30T11:39:48Z
2024-06-28T07:23:09Z
https://github.com/MonetDB/MonetDB/issues/2755
753,404,484
2,755
[ "MonetDB", "MonetDB" ]
Date: 2010-12-13 12:27:05 +0100 From: Andrej Borsuk &lt;<andrejborsuk>&gt; To: MonetDB5 devs &lt;<bugs-monetdb5>&gt; Version: 11.9.7 (Apr2012-SP2) [obsolete] Last updated: 2012-07-17 14:51:21 +0200 ## Comment 15340 Date: 2010-12-13 12:27:05 +0100 From: Andrej Borsuk &lt;<andrejborsuk>&gt; User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101026 SUSE/3.6.12-0.7.1 Firefox/3.6.12 Build Identifier: Running this query: SELECT ds.idata FROM mseed_catalog c JOIN mseed_data_sample_2005 ds ON c.mseed=ds.mseed WHERE c.starttime>'2005-01-19' AND c.starttime<'2005-01-21' LIMIT 1000 mseed_data_sample_2005 is view with this definition: CREATE VIEW mseed_data_sample_2005 AS SELECT * FROM mseed_data_sample_01 UNION SELECT * FROM mseed_data_sample_02 UNION SELECT * FROM mseed_data_sample_03 UNION SELECT * FROM mseed_data_sample_04 UNION SELECT * FROM mseed_data_sample_05 UNION SELECT * FROM mseed_data_sample_06 UNION SELECT * FROM mseed_data_sample_07 UNION SELECT * FROM mseed_data_sample_08 UNION SELECT * FROM mseed_data_sample_09 UNION SELECT * FROM mseed_data_sample_10 UNION SELECT * FROM mseed_data_sample_11 UNION SELECT * FROM mseed_data_sample_12 mseed_data_sample_** tables have this simple structure create table mseed_data_sample_**( mseed int, seqno int, idata int ); The total number of rows in the view is 125736752. Result was this segmentation fault: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7faadde7f710 (LWP 13540)] 0x00007faaef09d8f8 in memcpy () from /lib64/libc.so.6 (gdb) bt 0 0x00007faaef09d8f8 in memcpy () from /lib64/libc.so.6 1 0x00007faae6e9184e in CTderive_hash_int_clustered () from /home/andrej/MonetDB/lib/MonetDB5/lib/lib_group.so 2 0x00007faae6e7d07b in derive () from /home/andrej/MonetDB/lib/MonetDB5/lib/lib_group.so 3 0x00007faae6ea93d6 in GRPderive () from /home/andrej/MonetDB/lib/MonetDB5/lib/lib_group.so 4 0x00007faaf1c1614c in DFLOWstep () from /home/andrej/MonetDB/lib/libmonetdb5.so.5 5 0x00007faaf1c179f4 in runDFLOWworker () from /home/andrej/MonetDB/lib/libmonetdb5.so.5 6 0x00007faaefffca4f in start_thread () from /lib64/libpthread.so.0 7 0x00007faaef0ee82d in clone () from /lib64/libc.so.6 8 0x0000000000000000 in ?? () Reproducible: Always ### Steps to Reproduce: 1. Run the query on the big amount of data mserver5 --version MonetDB server v5.22.1 (64-bit), based on kernel v1.40.1 (64-bit oids) Release Oct2010 Copyright (c) 1993-July 2008 CWI Copyright (c) August 2008-2010 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information Found 3.7GiB available memory, 4 available cpu cores Configured for prefix: /home/andrej/MonetDB Libraries: libpcre: 7.9 2009-04-11 (compiled with 7.9) openssl: OpenSSL 1.0.0 29 Mar 2010 (compiled with OpenSSL 1.0.0 29 Mar 2010) libxml2: 2.7.7 (compiled with 2.7.7) Compiled by: andrej@linux-8kjs.site (x86_64-unknown-linux-gnu) Compilation: gcc -O2 Linking : /usr/x86_64-suse-linux/bin/ld -IPA -m elf_x86_64 ## Comment 15667 Date: 2011-03-28 17:35:54 +0200 From: @sjoerdmullender The Mar2011 version has been released. ## Comment 16024 Date: 2011-07-29 10:59:38 +0200 From: @sjoerdmullender Apr2011-SP2 has been released. ## Comment 16262 Date: 2011-09-16 15:09:13 +0200 From: @sjoerdmullender The Aug2011 version has been released. ## Comment 17491 Date: 2012-07-17 14:51:21 +0200 From: @grobian The mseed_catalog table is missing, as is the data.
segmentation fault on select query among big amount of data
https://api.github.com/repos/MonetDB/MonetDB/issues/2754/comments
0
2020-11-30T11:39:45Z
2024-06-27T11:50:58Z
https://github.com/MonetDB/MonetDB/issues/2754
753,404,447
2,754
[ "MonetDB", "MonetDB" ]
Date: 2010-12-13 07:59:04 +0100 From: @mlkersten To: SQL devs &lt;<bugs-sql>&gt; Version: 11.1.1 (Mar2011) [obsolete] CC: @njnes Last updated: 2011-03-28 17:31:35 +0200 ## Comment 15339 Date: 2010-12-13 07:59:04 +0100 From: @mlkersten User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 Build Identifier: When you define a PROCEDURE or FUNCTION using an external name, the system should check if the corresponding name can be resolved at definition time. (ako reference constraint) Reproducible: Always ### Steps to Reproduce: create procedure dummy(vid int) external dummy.p; call dummy(1); ### Actual Results: sql>create procedure dummy(vid int) external name dummy.p; operation successful sql>call dummy(1); TypeException:user.s1_1[3]:'dummy.p' undefined in: _5:any := dummy.p(_4:int) SQLException:SQLengine:Program contains errors ### Expected Results: sql>create procedure dummy(vid int) external name dummy.p; SQL error: external name not bound sql>call dummy(1); SELECT: no such unary operator 'dummy(tinyint)' ## Comment 15606 Date: 2011-03-18 17:07:17 +0100 From: @njnes checks for module and function name are done. Type checking is left too the call time. ## Comment 15638 Date: 2011-03-28 17:31:35 +0200 From: @sjoerdmullender The Mar2011 version has been released.
check existence of external names for SQL functions/procedures at creation time
https://api.github.com/repos/MonetDB/MonetDB/issues/2753/comments
0
2020-11-30T11:39:42Z
2024-06-27T11:50:57Z
https://github.com/MonetDB/MonetDB/issues/2753
753,404,420
2,753
[ "MonetDB", "MonetDB" ]
Date: 2010-12-12 22:34:09 +0100 From: @mlkersten To: SQL devs &lt;<bugs-sql>&gt; Version: -- development CC: @njnes Last updated: 2011-03-28 17:31:43 +0200 ## Comment 15338 Date: 2010-12-12 22:34:09 +0100 From: @mlkersten User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 Build Identifier: In SQL the CALL <fcn> does not produce a response, which is 'ok', because functions are not supposed to have side effects. But, perhaps this should be announced with a message. Alternatively, CALL <fcn> could be interpreted similar to SELECT <fcn>. Reproducible: Always ### Steps to Reproduce: 1.call sin(1.0) 2. 3. ### Actual Results: sql>call sin(1.0); sql>debug call sin(1.0); mdb> mdb.start(); mdb>l 1 mdb.start(); 2 user.s0_1(1); 3 mdb.stop(); 4 end main; mdb>l user.s0_1 0 function user.s0_1(A0); 1 sql.mvc(); 2 end s0_1; mdb>q ### Expected Results: sql>call sin(1.0); SQLerror, function calls are ignored sql>call sin(1,0) +------------------------+ | sin_single_value | +========================+ | 0.8414709848078965 | +------------------------+ ## Comment 15341 Date: 2010-12-13 20:44:38 +0100 From: @njnes fixed by checking for 'no' result in psm_call ## Comment 15342 Date: 2010-12-13 20:45:13 +0100 From: @njnes Changeset [5557a44861ad](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5557a44861ad) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=5557a44861ad](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=5557a44861ad) Changeset description: fix for Bug #2752 ie check for procedures in 'call'. ## Comment 15656 Date: 2011-03-28 17:31:43 +0200 From: @sjoerdmullender The Mar2011 version has been released.
CALL function without warning
https://api.github.com/repos/MonetDB/MonetDB/issues/2752/comments
0
2020-11-30T11:39:39Z
2024-06-27T11:50:56Z
https://github.com/MonetDB/MonetDB/issues/2752
753,404,397
2,752
[ "MonetDB", "MonetDB" ]
Date: 2010-12-12 19:51:53 +0100 From: @mlkersten To: MonetDB5 devs &lt;<bugs-monetdb5>&gt; Version: 11.9.7 (Apr2012-SP2) [obsolete] Last updated: 2012-07-17 14:53:01 +0200 ## Comment 15337 Date: 2010-12-12 19:51:53 +0100 From: @mlkersten User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 Build Identifier: The attach00.mal test generates !FATAL: BATpropcheck: BAT tmp_365(245) has inconsistent descriptor 65536 (200000) The reason seems that the BAT descriptor in BBP.dir contains the initial capacity 256 after BAT.save, while the file itself has only size equal to the number of entries stored (GDKsave does not look at capacity, only the free pointer) A retrofitting patch in attach could avoid it, but it may be indicative for a more serious error. Being triggered in other circumstances as well. print *b->T $14 = {id = 0x7ffff68471db "t", width = 4, type = 6 '\006', shift = 2 '\002', sorted = 0 '\000', varsized = 0 '\000', key = 0 '\000', dense = 0 '\000', nonil = 1 '\001', nil = 0 '\000', unused = 0 '\000', align = 1001234, nosorted_rev = 0, nokey = {2, 3}, nosorted = 3, nodense = 0, seq = 0, heap = {maxsize = 8, free = 8, size = 8, base = 0xd534d8 "\001", filename = 0xac66c8 "03/365.tail", storage = 0 '\000', copied = 0 '\000', hashash = 0 '\000', forcemap = 0 '\000', newstorage = 0 '\000', dirty = 0 '\000', parentid = 0}, vheap = 0x0, hash = 0x0, props = 0x0} (gdb) print *b->U $15 = {deleted = 0, first = 0, inserted = 0, count = 21, capacity = 256} Upon reload this triggers the fatal. Reproducible: Always ## Comment 15884 Date: 2011-07-04 15:26:14 +0200 From: @sjoerdmullender Changeset [1ed011aa3aec](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1ed011aa3aec) made by Sjoerd Mullender <sjoerd@acm.org> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=1ed011aa3aec](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=1ed011aa3aec) Changeset description: Added checks to BBPimportEntry. This should alleviate bug #2751: it now fails with an error message instead of causing a crash. ## Comment 15885 Date: 2011-07-04 15:29:25 +0200 From: @sjoerdmullender Probably the main cause of errors for this bug was that there weren't enough consistency checks. For instance, a call to lstat wasn't checked (it failed) but the "result" (the struct stat buffer) was used anyway. I think the test should be reconsidered. As is, the BAT being attached was not saved to disk at the time of the attach. This now causes the attach to fail, but that may not be the purpose of the test. ## Comment 16019 Date: 2011-07-29 10:58:42 +0200 From: @sjoerdmullender Apr2011-SP2 has been released. ## Comment 16074 Date: 2011-08-05 14:00:45 +0200 From: @sjoerdmullender This is now a MonetDB5 problem: the test is not correct. ## Comment 16264 Date: 2011-09-16 15:09:13 +0200 From: @sjoerdmullender The Aug2011 version has been released. ## Comment 17492 Date: 2012-07-17 14:53:01 +0200 From: @grobian this sounds like fixed to me
Attach test property check
https://api.github.com/repos/MonetDB/MonetDB/issues/2751/comments
0
2020-11-30T11:39:36Z
2024-06-27T11:50:55Z
https://github.com/MonetDB/MonetDB/issues/2751
753,404,366
2,751
[ "MonetDB", "MonetDB" ]
Date: 2010-12-10 15:51:32 +0100 From: Milena Ivanova &lt;<M.Ivanova>&gt; To: SQL devs &lt;<bugs-sql>&gt; Version: -- development CC: @njnes Last updated: 2011-03-28 17:31:28 +0200 ## Comment 15327 Date: 2010-12-10 15:51:32 +0100 From: Milena Ivanova &lt;<M.Ivanova>&gt; User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.1.15) Gecko/20101027 Fedora/3.5.15-1.fc12 Firefox/3.5.15 Build Identifier: The length of function arguments of character types, e.g. 'x varchar(20)' is not described in the SQL catalog. The value of type_digits is 0 (instead of 20). Reproducible: Always ## Comment 15331 Date: 2010-12-10 19:54:15 +0100 From: @njnes fixed (correctly store arguments data types) ## Comment 15333 Date: 2010-12-10 22:14:08 +0100 From: @njnes Changeset [aa5a3f4473c9](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=aa5a3f4473c9) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=aa5a3f4473c9](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=aa5a3f4473c9) Changeset description: added test for bug #2750 ## Comment 15623 Date: 2011-03-28 17:31:28 +0200 From: @sjoerdmullender The Mar2011 version has been released.
Function arguments of type string described not completely in SQL catalog
https://api.github.com/repos/MonetDB/MonetDB/issues/2750/comments
0
2020-11-30T11:13:34Z
2024-06-27T11:50:54Z
https://github.com/MonetDB/MonetDB/issues/2750
753,386,501
2,750
[ "MonetDB", "MonetDB" ]
Date: 2010-12-10 15:33:43 +0100 From: @skinkie To: SQL devs &lt;<bugs-sql>&gt; Version: -- development CC: @njnes, renalkoclok, @yzchang Last updated: 2020-06-03 09:20:23 +0200 ## Comment 15322 Date: 2010-12-10 15:33:43 +0100 From: @skinkie User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.208 Safari/534.10 Build Identifier: sql>explain select kvk,bedrijfsnaam from kvk where bedrijfsnaam like 'MonetDB B.V.'; % .explain table_name % mal name % clob type % 0 length function user.s2_1{autoCommit=true}():void; _2 := sql.mvc(); barrier _93 := language.dataflow(); _46:bat[:oid,:str] := sql.bind(_2,"sys","kvk","bedrijfsnaam",0,0@0:oid,1310385@0); _7:bat[:oid,:str] := sql.bind(_2,"sys","kvk","bedrijfsnaam",2); _51 := algebra.kdifference(_46,_7); _53 := algebra.semijoin(_7,_46); _55 := algebra.kunion(_51,_53); _11:bat[:oid,:oid] := sql.bind_dbat(_2,"sys","kvk",1); _12 := bat.reverse(_11); _57 := algebra.kdifference(_55,_12); _58 := batcalc.str(_57); _61 := pcre.like_uselect(_58,"MonetDB B.V.":str,"":str); _64 := algebra.markT(_61,3,0); _76 := bat.reverse(_64); _49:bat[:oid,:lng] := sql.bind(_2,"sys","kvk","kvk",0,0@0:oid,1310385@0); _13:bat[:oid,:lng] := sql.bind(_2,"sys","kvk","kvk",2); _81 := algebra.kdifference(_49,_13); _83 := algebra.semijoin(_13,_49); _85 := algebra.kunion(_81,_83); _87 := algebra.leftjoin(_76,_85); _48:bat[:oid,:str] := sql.bind(_2,"sys","kvk","bedrijfsnaam",0,1310385@0,nil:oid); _52 := algebra.kdifference(_48,_7); _54 := algebra.semijoin(_7,_48); _56 := algebra.kunion(_52,_54); _59 := batcalc.str(_56); _62 := pcre.like_uselect(_59,"MonetDB B.V.":str,"":str); _68 := algebra.markT(_62,3,1); _79 := bat.reverse(_68); _50:bat[:oid,:lng] := sql.bind(_2,"sys","kvk","kvk",0,1310385@0,nil:oid); _82 := algebra.kdifference(_50,_13); _84 := algebra.semijoin(_13,_50); _86 := algebra.kunion(_82,_84); _88 := algebra.leftjoin(_79,_86); _9:bat[:oid,:str] := sql.bind(_2,"sys","kvk","bedrijfsnaam",1); _60 := batcalc.str(_9); _63 := pcre.like_uselect(_60,"MonetDB B.V.":str,"":str); _71 := algebra.markT(_63,3,2); _80 := bat.reverse(_71); _14:bat[:oid,:lng] := sql.bind(_2,"sys","kvk","kvk",1); _89 := algebra.leftjoin(_80,_14); _15 := mat.pack(_87,_88,_89); _92 := algebra.leftjoin(_80,_9); _91 := algebra.leftjoin(_79,_56); _90 := algebra.leftjoin(_76,_55); exit _93; _17 := sql.resultSet(2,1,_15); sql.rsColumn(_17,"sys.kvk","kvk","bigint",64,0,_15); _16 := mat.pack(_90,_91,_92); sql.rsColumn(_17,"sys.kvk","bedrijfsnaam","varchar",256,0,_16); _28 := io.stdout(); sql.exportResult(_28,_17); end s2_1; sql>explain select kvk,bedrijfsnaam from kvk where bedrijfsnaam = 'MonetDB B.V.'; % .explain table_name % mal name % clob type % 0 length function user.s3_1{autoCommit=true}():void; _2 := sql.mvc(); _3:bat[:oid,:str] := sql.bind(_2,"sys","kvk","bedrijfsnaam",0); _8 := algebra.uselect(_3,"MonetDB B.V.":str); _9:bat[:oid,:str] := sql.bind(_2,"sys","kvk","bedrijfsnaam",2); _11 := algebra.kdifference(_8,_9); _12 := algebra.uselect(_9,"MonetDB B.V.":str); _13 := algebra.kunion(_11,_12); _14:bat[:oid,:str] := sql.bind(_2,"sys","kvk","bedrijfsnaam",1); _16 := algebra.uselect(_14,"MonetDB B.V.":str); _17 := algebra.kunion(_13,_16); _18:bat[:oid,:oid] := sql.bind_dbat(_2,"sys","kvk",1); _19 := bat.reverse(_18); _20 := algebra.kdifference(_17,_19); _21 := algebra.markT(_20,0@0:oid); _22 := bat.reverse(_21); _23:bat[:oid,:lng] := sql.bind(_2,"sys","kvk","kvk",0); _24:bat[:oid,:lng] := sql.bind(_2,"sys","kvk","kvk",2); _25 := algebra.kdifference(_23,_24); _26 := algebra.kunion(_25,_24); _27:bat[:oid,:lng] := sql.bind(_2,"sys","kvk","kvk",1); _28 := algebra.kunion(_26,_27); _29 := algebra.leftjoin(_22,_28); _30 := algebra.kdifference(_3,_9); _31 := algebra.kunion(_30,_9); _32 := algebra.kunion(_31,_14); _33 := algebra.leftjoin(_22,_32); _34 := sql.resultSet(2,1,_29); sql.rsColumn(_34,"sys.kvk","kvk","bigint",64,0,_29); sql.rsColumn(_34,"sys.kvk","bedrijfsnaam","varchar",256,0,_33); _45 := io.stdout(); sql.exportResult(_45,_34); end s3_1; Mitosis off: sql>explain select kvk,bedrijfsnaam from kvk where bedrijfsnaam like 'MonetDB B.V.'; % .explain table_name % mal name % clob type % 0 length function user.s1_1{autoCommit=true}():void; _2 := sql.mvc(); barrier _59 := language.dataflow(); _3:bat[:oid,:str] := sql.bind(_2,"sys","kvk","bedrijfsnaam",0); _8:bat[:oid,:str] := sql.bind(_2,"sys","kvk","bedrijfsnaam",2); _10 := algebra.kdifference(_3,_8); _11 := algebra.kunion(_10,_8); _12:bat[:oid,:str] := sql.bind(_2,"sys","kvk","bedrijfsnaam",1); _14 := algebra.kunion(_11,_12); _15:bat[:oid,:oid] := sql.bind_dbat(_2,"sys","kvk",1); _16 := bat.reverse(_15); _17 := algebra.kdifference(_14,_16); _18 := batcalc.str(_17); _19 := pcre.like_uselect(_18,"MonetDB B.V.":str,"":str); _20 := algebra.markT(_19,0@0:oid); _21 := bat.reverse(_20); _22:bat[:oid,:lng] := sql.bind(_2,"sys","kvk","kvk",0); _23:bat[:oid,:lng] := sql.bind(_2,"sys","kvk","kvk",2); _24 := algebra.kdifference(_22,_23); _25 := algebra.kunion(_24,_23); _26:bat[:oid,:lng] := sql.bind(_2,"sys","kvk","kvk",1); _27 := algebra.kunion(_25,_26); _28 := algebra.leftjoin(_21,_27); _29 := algebra.leftjoin(_21,_14); exit _59; _30 := sql.resultSet(2,1,_28); sql.rsColumn(_30,"sys.kvk","kvk","bigint",64,0,_28); sql.rsColumn(_30,"sys.kvk","bedrijfsnaam","varchar",256,0,_29); _41 := io.stdout(); sql.exportResult(_41,_30); end s1_1; sql>select kvk,bedrijfsnaam from kvk where bedrijfsnaam like 'MonetDB B.V.'; +--------------+--------------+ | kvk | bedrijfsnaam | +==============+==============+ | 321351760000 | MonetDB B.V. | | 321351760000 | MonetDB B.V. | +--------------+--------------+ 2 tuples (1.8s) sql>select kvk,bedrijfsnaam from kvk where bedrijfsnaam like 'MonetDB B.V.'; +--------------+--------------+ | kvk | bedrijfsnaam | +==============+==============+ | 321351760000 | MonetDB B.V. | | 321351760000 | MonetDB B.V. | +--------------+--------------+ 2 tuples (681.097ms) sql>select kvk,bedrijfsnaam from kvk where bedrijfsnaam like 'MonetDB B.V.'; +--------------+--------------+ | kvk | bedrijfsnaam | +==============+==============+ | 321351760000 | MonetDB B.V. | | 321351760000 | MonetDB B.V. | +--------------+--------------+ 2 tuples (676.295ms) sql>select kvk,bedrijfsnaam from kvk where bedrijfsnaam like 'MonetDB B.V.'; +--------------+--------------+ | kvk | bedrijfsnaam | +==============+==============+ | 321351760000 | MonetDB B.V. | | 321351760000 | MonetDB B.V. | +--------------+--------------+ 2 tuples (675.428ms) sql>select kvk,bedrijfsnaam from kvk where bedrijfsnaam = 'MonetDB B.V.'; +--------------+--------------+ | kvk | bedrijfsnaam | +==============+==============+ | 321351760000 | MonetDB B.V. | | 321351760000 | MonetDB B.V. | +--------------+--------------+ 2 tuples (2.437ms) sql>select kvk,bedrijfsnaam from kvk where bedrijfsnaam = 'MonetDB B.V.'; +--------------+--------------+ | kvk | bedrijfsnaam | +==============+==============+ | 321351760000 | MonetDB B.V. | | 321351760000 | MonetDB B.V. | +--------------+--------------+ 2 tuples (0.754ms) sql>select kvk,bedrijfsnaam from kvk where bedrijfsnaam = 'MonetDB B.V.'; +--------------+--------------+ | kvk | bedrijfsnaam | +==============+==============+ | 321351760000 | MonetDB B.V. | | 321351760000 | MonetDB B.V. | +--------------+--------------+ 2 tuples (0.724ms) sql>select kvk,bedrijfsnaam from kvk where bedrijfsnaam = 'MonetDB B.V.'; +--------------+--------------+ | kvk | bedrijfsnaam | +==============+==============+ | 321351760000 | MonetDB B.V. | | 321351760000 | MonetDB B.V. | +--------------+--------------+ 2 tuples (0.764ms) Hunch made by Fabian http://bugs.monetdb.org/show_bug.cgi?id=2684c11 was on batcalc.str() Reproducible: Always ## Comment 15323 Date: 2010-12-10 15:39:01 +0100 From: @grobian please show us your TRACE output ## Comment 15324 Date: 2010-12-10 15:42:07 +0100 From: @skinkie (In reply to comment 1) > please show us your TRACE output trace select kvk,bedrijfsnaam from kvk where bedrijfsnaam like 'MonetDB B.V.'; +--------------+--------------+ | kvk | bedrijfsnaam | +==============+==============+ | 321351760000 | MonetDB B.V. | | 321351760000 | MonetDB B.V. | +--------------+--------------+ 2 tuples (683.465ms) +--------+-------------------------------------------------------------------------------------------------------------+ | ticks | stmt | +========+=============================================================================================================+ | 3 | _3 := sql.mvc(); | | 25 | _4:bat[:oid,:str] <tmp_122710>[2620771] := sql.bind(_3=2792274296,"sys","kvk","bedrijfsnaam",0); | | 31 | _9:bat[:oid,:str] <tmp_125626>[0] := sql.bind(_3=2792274296,"sys","kvk","bedrijfsnaam",2); | | 5 | _13:bat[:oid,:str] <tmp_125627>[0] := sql.bind(_3=2792274296,"sys","kvk","bedrijfsnaam",1); | | 9 | _16:bat[:oid,:oid] <tmp_125613>[0] := sql.bind_dbat(_3=2792274296,"sys","kvk",1); | | 30 | _11<tmp_132426>[2620771] := algebra.kdifference(_4=nil:bat[:oid,:str],_9=<tmp_125626>:bat[:oid,:str][0]); | | 5 | _17<tmpr_125613>[0] := bat.reverse(_16=nil:bat[:oid,:oid]); | | 7 | _23:bat[:oid,:lng] <tmp_123470>[2620771] := sql.bind(_3=2792274296,"sys","kvk","kvk",0); | | 30 | _12<tmp_132464>[2620771] := algebra.kunion(_11=nil,_9=nil:bat[:oid,:str]); | | 7 | _24:bat[:oid,:lng] <tmp_125624>[0] := sql.bind(_3=2792274296,"sys","kvk","kvk",2); | | 17 | _25<tmp_132426>[2620771] := algebra.kdifference(_23=nil:bat[:oid,:lng],_24=<tmp_125624>:bat[:oid,:lng][0]); | | 25 | _15<tmp_132471>[2620771] := algebra.kunion(_12=nil,_13=nil:bat[:oid,:str]); | | 15 | _18<tmp_132431>[2620771] := algebra.kdifference(_15=<tmp_132471>[2620771],_17=nil); | | 22 | _26<tmp_132464>[2620771] := algebra.kunion(_25=nil,_24=nil:bat[:oid,:lng]); | | 19 | _19<tmp_132426>[2620771] := batcalc.str(_18=nil); | | 8 | _27:bat[:oid,:lng] <tmp_125625>[0] := sql.bind(_3=2792274296,"sys","kvk","kvk",1); | | 39 | _28<tmp_132152>[2620771] := algebra.kunion(_26=nil,_27=nil:bat[:oid,:lng]); | | 673272 | _20<tmp_132431>[2] := pcre.like_uselect(_19=nil,A0="MonetDB B.V.","":str); | | 20 | _21<tmp_132426>[2] := algebra.markT(_20=nil,0@0:oid); | | 6 | _22<tmpr_132426>[2] := bat.reverse(_21=nil); | | 39 | _29<tmp_131312>[2] := algebra.leftjoin(_22=<tmpr_132426>[2],_28=nil); | | 87 | _30<tmp_132467>[2] := algebra.leftjoin(_22=nil,_15=nil); | | 675197 | barrier _59 := language.dataflow(); | | 11 | _31 := sql.resultSet(2,1,_29=<tmp_131312>[2]); | | 9 | sql.rsColumn(_31=31,"sys.kvk","kvk","bigint",64,0,_29=nil); | | 13 | sql.rsColumn(_31=31,"sys.kvk","bedrijfsnaam","varchar",256,0,_30=nil); | | 2 | _42 := io.stdout(); | | 40 | sql.exportResult(_42=139701201987120,_31=31); | | 675696 | user.s3_1("MonetDB B.V."); | +--------+-------------------------------------------------------------------------------------------------------------+ 29 tuples (683.533ms) trace select kvk,bedrijfsnaam from kvk where bedrijfsnaam = 'MonetDB B.V.'; +--------------+--------------+ | kvk | bedrijfsnaam | +==============+==============+ | 321351760000 | MonetDB B.V. | | 321351760000 | MonetDB B.V. | +--------------+--------------+ 2 tuples (9.999ms) +-------+-------------------------------------------------------------------------------------------------------------+ | ticks | stmt | +=======+=============================================================================================================+ | 3 | _3 := sql.mvc(); | | 26 | _4:bat[:oid,:str] <tmp_122710>[2620771] := sql.bind(_3=2792274296,"sys","kvk","bedrijfsnaam",0); | | 57 | _9<tmp_131146>[2] := algebra.uselect(_4=<tmp_122710>:bat[:oid,:str][2620771],A0="MonetDB B.V."); | | 6 | _10:bat[:oid,:str] <tmp_125626>[0] := sql.bind(_3=2792274296,"sys","kvk","bedrijfsnaam",2); | | 15 | _12<tmp_132431>[2] := algebra.kdifference(_9=nil,_10=<tmp_125626>:bat[:oid,:str][0]); | | 22 | _13<tmp_132471>[0] := algebra.uselect(_10=<tmp_125626>:bat[:oid,:str][0],A0="MonetDB B.V."); | | 16 | _14<tmp_132464>[2] := algebra.kunion(_12=nil,_13=nil); | | 5 | _15:bat[:oid,:str] <tmp_125627>[0] := sql.bind(_3=2792274296,"sys","kvk","bedrijfsnaam",1); | | 17 | _17<tmp_132431>[0] := algebra.uselect(_15=<tmp_125627>:bat[:oid,:str][0],A0="MonetDB B.V."); | | 19 | _18<tmp_132471>[2] := algebra.kunion(_14=nil,_17=nil); | | 7 | _19:bat[:oid,:oid] <tmp_125613>[0] := sql.bind_dbat(_3=2792274296,"sys","kvk",1); | | 4 | _20<tmpr_125613>[0] := bat.reverse(_19=nil:bat[:oid,:oid]); | | 10 | _21<tmp_132431>[2] := algebra.kdifference(_18=nil,_20=nil); | | 12 | _22<tmp_132471>[2] := algebra.markT(_21=nil,0@0:oid); | | 4 | _23<tmpr_132471>[2] := bat.reverse(_22=nil); | | 7 | _24:bat[:oid,:lng] <tmp_123470>[2620771] := sql.bind(_3=2792274296,"sys","kvk","kvk",0); | | 4 | _25:bat[:oid,:lng] <tmp_125624>[0] := sql.bind(_3=2792274296,"sys","kvk","kvk",2); | | 9 | _26<tmp_132431>[2620771] := algebra.kdifference(_24=nil:bat[:oid,:lng],_25=<tmp_125624>:bat[:oid,:lng][0]); | | 13 | _27<tmp_132464>[2620771] := algebra.kunion(_26=nil,_25=nil:bat[:oid,:lng]); | | 4 | _28:bat[:oid,:lng] <tmp_125625>[0] := sql.bind(_3=2792274296,"sys","kvk","kvk",1); | | 11 | _29<tmp_132431>[2620771] := algebra.kunion(_27=nil,_28=nil:bat[:oid,:lng]); | | 25 | _30<tmp_131312>[2] := algebra.leftjoin(_23=<tmpr_132471>[2],_29=nil); | | 10 | _31<tmp_132431>[2620771] := algebra.kdifference(_4=nil:bat[:oid,:str],_10=<tmp_125626>:bat[:oid,:str][0]); | | 12 | _32<tmp_132464>[2620771] := algebra.kunion(_31=nil,_10=nil:bat[:oid,:str]); | | 12 | _33<tmp_132431>[2620771] := algebra.kunion(_32=nil,_15=nil:bat[:oid,:str]); | | 26 | _34<tmp_132467>[2] := algebra.leftjoin(_23=nil,_33=nil); | | 7 | _35 := sql.resultSet(2,1,_30=<tmp_131312>[2]); | | 8 | sql.rsColumn(_35=41,"sys.kvk","kvk","bigint",64,0,_30=nil); | | 5 | sql.rsColumn(_35=41,"sys.kvk","bedrijfsnaam","varchar",256,0,_34=nil); | | 2 | _46 := io.stdout(); | | 40 | sql.exportResult(_46=139701201987120,_35=41); | | 1968 | user.s4_1("MonetDB B.V."); | +-------+-------------------------------------------------------------------------------------------------------------+ 32 tuples (10.067ms) ## Comment 15325 Date: 2010-12-10 15:48:26 +0100 From: @skinkie Created attachment 48 Two traces like. This is odd... can someone explain what happened here?? (I mean the huge output, vs the small one.) > Attached file: [twotraces-like.txt](https://github.com/MonetDB/monetdb-issues-attachments/blob/master/issue_2749_twotraces-like.txt_48) (text/plain, 21766 bytes) > Description: Two traces like. ## Comment 15326 Date: 2010-12-10 15:49:06 +0100 From: @skinkie Equals for better readability: sql>trace select kvk,bedrijfsnaam from kvk where bedrijfsnaam = 'MonetDB B.V.'; % sys.kvk, sys.kvk table_name % kvk, bedrijfsnaam name % bigint, varchar type % 12, 12 length [ 321351760000, "MonetDB B.V." ] [ 321351760000, "MonetDB B.V." ] % .trace, .trace table_name % ticks, stmt name % bigint, varchar type % 4, 107 length [ 3, "_3 := sql.mvc();" ] [ 26, "_4:bat[:oid,:str] <tmp_122710>[2620771] := sql.bind(_3=2792274296,\"sys\",\"kvk\",\"bedrijfsnaam\",0);" ] [ 53, "_9<tmp_131146>[2] := algebra.uselect(_4=<tmp_122710>:bat[:oid,:str][2620771],A0=\"MonetDB B.V.\");" ] [ 6, "_10:bat[:oid,:str] <tmp_125626>[0] := sql.bind(_3=2792274296,\"sys\",\"kvk\",\"bedrijfsnaam\",2);" ] [ 19, "_12<tmp_132421>[2] := algebra.kdifference(_9=nil,_10=<tmp_125626>:bat[:oid,:str][0]);" ] [ 22, "_13<tmp_132465>[0] := algebra.uselect(_10=<tmp_125626>:bat[:oid,:str][0],A0=\"MonetDB B.V.\");" ] [ 16, "_14<tmp_132332>[2] := algebra.kunion(_12=nil,_13=nil);" ] [ 6, "_15:bat[:oid,:str] <tmp_125627>[0] := sql.bind(_3=2792274296,\"sys\",\"kvk\",\"bedrijfsnaam\",1);" ] [ 16, "_17<tmp_132421>[0] := algebra.uselect(_15=<tmp_125627>:bat[:oid,:str][0],A0=\"MonetDB B.V.\");" ] [ 17, "_18<tmp_132465>[2] := algebra.kunion(_14=nil,_17=nil);" ] [ 7, "_19:bat[:oid,:oid] <tmp_125613>[0] := sql.bind_dbat(_3=2792274296,\"sys\",\"kvk\",1);" ] [ 5, "_20<tmpr_125613>[0] := bat.reverse(_19=nil:bat[:oid,:oid]);" ] [ 10, "_21<tmp_132421>[2] := algebra.kdifference(_18=nil,_20=nil);" ] [ 11, "_22<tmp_132465>[2] := algebra.markT(_21=nil,0@0:oid);" ] [ 4, "_23<tmpr_132465>[2] := bat.reverse(_22=nil);" ] [ 7, "_24:bat[:oid,:lng] <tmp_123470>[2620771] := sql.bind(_3=2792274296,\"sys\",\"kvk\",\"kvk\",0);" ] [ 4, "_25:bat[:oid,:lng] <tmp_125624>[0] := sql.bind(_3=2792274296,\"sys\",\"kvk\",\"kvk\",2);" ] [ 9, "_26<tmp_132421>[2620771] := algebra.kdifference(_24=nil:bat[:oid,:lng],_25=<tmp_125624>:bat[:oid,:lng][0]);" ] [ 12, "_27<tmp_132332>[2620771] := algebra.kunion(_26=nil,_25=nil:bat[:oid,:lng]);" ] [ 5, "_28:bat[:oid,:lng] <tmp_125625>[0] := sql.bind(_3=2792274296,\"sys\",\"kvk\",\"kvk\",1);" ] [ 11, "_29<tmp_132421>[2620771] := algebra.kunion(_27=nil,_28=nil:bat[:oid,:lng]);" ] [ 36, "_30<tmp_132417>[2] := algebra.leftjoin(_23=<tmpr_132465>[2],_29=nil);" ] [ 10, "_31<tmp_132421>[2620771] := algebra.kdifference(_4=nil:bat[:oid,:str],_10=<tmp_125626>:bat[:oid,:str][0]);" ] [ 12, "_32<tmp_132332>[2620771] := algebra.kunion(_31=nil,_10=nil:bat[:oid,:str]);" ] [ 12, "_33<tmp_132421>[2620771] := algebra.kunion(_32=nil,_15=nil:bat[:oid,:str]);" ] [ 24, "_34<tmp_132467>[2] := algebra.leftjoin(_23=nil,_33=nil);" ] [ 8, "_35 := sql.resultSet(2,1,_30=<tmp_132417>[2]);" ] [ 8, "sql.rsColumn(_35=49,\"sys.kvk\",\"kvk\",\"bigint\",64,0,_30=nil);" ] [ 6, "sql.rsColumn(_35=49,\"sys.kvk\",\"bedrijfsnaam\",\"varchar\",256,0,_34=nil);" ] [ 2, "_46 := io.stdout();" ] [ 39, "sql.exportResult(_46=139701201987120,_35=49);" ] [ 1957, "user.s4_1(\"MonetDB B.V.\");" ] ## Comment 15343 Date: 2010-12-13 22:42:55 +0100 From: @njnes stefan do you have a small table dump with schema such that I can repeat the problem. ## Comment 15344 Date: 2010-12-13 22:50:28 +0100 From: @skinkie (In reply to comment 5) > stefan do you have a small table dump with schema such that I can repeat the > problem. I think you must be able to apply it to the dump I have send you before regarding the 'order by' bug and distinct. ## Comment 15345 Date: 2010-12-14 16:02:58 +0100 From: @grobian We are sure that a like without modifiers is executed through an uselect. Performance reduction is mitosis related. This is a feature request for a more sophisticated detection of this, and a rewrite into an equals query, such that the plan really is equal, and the fast path for point queries (dealing with mitosis) is used. ## Comment 16039 Date: 2011-07-29 11:00:05 +0200 From: @sjoerdmullender Apr2011-SP2 has been released. ## Comment 16276 Date: 2011-09-16 15:10:39 +0200 From: @sjoerdmullender The Aug2011 version has been released. ## Comment 17681 Date: 2012-08-24 14:55:58 +0200 From: @sjoerdmullender Jul2012-SP1 has been released. ## Comment 18118 Date: 2012-11-27 15:27:38 +0100 From: @yzchang No test for feature request ## Comment 27777 Date: 2020-06-03 09:20:23 +0200 From: @sjoerdmullender The content of attachment 678 has been deleted for the following reason: spam
Rewrite like without modifiers as = query early in the process
https://api.github.com/repos/MonetDB/MonetDB/issues/2749/comments
0
2020-11-30T11:13:30Z
2024-06-28T13:40:43Z
https://github.com/MonetDB/MonetDB/issues/2749
753,386,459
2,749
[ "MonetDB", "MonetDB" ]
Date: 2010-12-10 11:41:42 +0100 From: Daniel Boesswetter &lt;<daniel.boesswetter>&gt; To: SQL devs &lt;<bugs-sql>&gt; Version: 2.40.1 (Oct2010) [obsolete] CC: @njnes Last updated: 2011-03-28 17:31:39 +0200 ## Comment 15305 Date: 2010-12-10 11:41:42 +0100 From: Daniel Boesswetter &lt;<daniel.boesswetter>&gt; User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/9.10 (karmic) Firefox/3.6.13 Build Identifier: Obviously, MonetDB counts the number of chars for a VARCHAR-field before removing backslashes which are used e.g. for escaping newlines or other backslashes and rejects strings that should actually fit. Reproducible: Always ### Steps to Reproduce: 1. In mclient: CREATE TABLE t (x VARCHAR(1)); 2. Create a textfile foo.txt containing two backslashes: \\ 3. In mclient: sql>copy into t from '/tmp/foo.txt'; ### Actual Results: SQLException:importTable:value '\\' from line 1 field 1 not inserted, expecting type varchar(1) failed to import table ### Expected Results: There should be one line in t with x containing "\". Performing exactly the same steps with a VARCHAR(2) column works without errors and results in t.x containg the de-escaped single backslash. ## Comment 15332 Date: 2010-12-10 22:12:57 +0100 From: @njnes fixed by correctly counting the string length of the to be inserted string (after escaped chars were converted). ## Comment 15334 Date: 2010-12-10 22:14:09 +0100 From: @njnes Changeset [450e5aadc00c](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=450e5aadc00c) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=450e5aadc00c](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=450e5aadc00c) Changeset description: fixed bug #2748 and added test for it The string length check is now done based on the string after escape conversion. ## Comment 15646 Date: 2011-03-28 17:31:39 +0200 From: @sjoerdmullender The Mar2011 version has been released.
COPY INTO does not work correctly with backslashes in VARCHARs
https://api.github.com/repos/MonetDB/MonetDB/issues/2748/comments
0
2020-11-30T11:13:28Z
2024-06-27T11:50:52Z
https://github.com/MonetDB/MonetDB/issues/2748
753,386,430
2,748
[ "MonetDB", "MonetDB" ]
Date: 2010-12-10 03:22:58 +0100 From: @skinkie To: MonetDB5 devs &lt;<bugs-monetdb5>&gt; Version: -- development Last updated: 2010-12-10 12:53:42 +0100 ## Comment 15304 Date: 2010-12-10 03:22:58 +0100 From: @skinkie User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.210 Safari/534.10 Build Identifier: Generates now: SPHINXCLIENT_LIBS = SPHINXCLIENT_LIBS -lsphinxclient Reproducible: Always ## Comment 15306 Date: 2010-12-10 12:46:22 +0100 From: @grobian Changeset [0b23355e3a17](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0b23355e3a17) made by Fabian Groffen <fabian@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=0b23355e3a17](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=0b23355e3a17) Changeset description: fix typo, bug #2747 ## Comment 15307 Date: 2010-12-10 12:53:42 +0100 From: @grobian thanks for the headsup, it installs for me here (again?)
SPHINXCLIENT_LIBS didn't survive Sphinx move to extra
https://api.github.com/repos/MonetDB/MonetDB/issues/2747/comments
0
2020-11-30T11:13:24Z
2024-06-27T11:50:51Z
https://github.com/MonetDB/MonetDB/issues/2747
753,386,405
2,747
[ "MonetDB", "MonetDB" ]
Date: 2010-12-08 13:20:03 +0100 From: @skinkie To: SQL devs &lt;<bugs-sql>&gt; Version: -- development CC: @njnes Last updated: 2010-12-10 16:11:04 +0100 ## Comment 15303 Date: 2010-12-08 13:20:03 +0100 From: @skinkie User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.208 Safari/534.10 Build Identifier: sql>\d tags CREATE TABLE "sys"."tags" ( "word" VARCHAR(265), "counts" INTEGER NOT NULL, "doccounts" INTEGER ); sql>\d filter CREATE TABLE "sys"."filter" ( "words" VARCHAR(32) ); sql>select * from tags where word not in (select word from filter) order by counts desc limit 10; +------+--------+-----------+ | word | counts | doccounts | +======+========+===========+ +------+--------+-----------+ 0 tuples (909.246ms) sql>select * from tags where word not in (select words from filter) order by counts desc limit 10; +-------+--------+-----------+ | word | counts | doccounts | +=======+========+===========+ | and | 36549 | 839 | | is | 9643 | 797 | | he | 9480 | 730 | | was | 6732 | 766 | | be | 6423 | 810 | | not | 6224 | 805 | | c | 5928 | 805 | | his | 5547 | 693 | | would | 5281 | 743 | | has | 5254 | 749 | +-------+--------+-----------+ 10 tuples (14.522ms) Reproducible: Always MonetDB server v5.22.2 (64-bit), based on kernel v1.40.2 (64-bit oids) Not released Copyright (c) 1993-July 2008 CWI Copyright (c) August 2008-2010 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information Found 3.9GiB available memory, 2 available cpu cores Configured for prefix: /opt/monetdb-testing3 Libraries: libpcre: 8.02 2010-03-19 (compiled with 8.02) openssl: OpenSSL 1.0.0a 1 Jun 2010 (compiled with OpenSSL 1.0.0a 1 Jun 2010) libxml2: 2.7.7 (compiled with 2.7.7) Compiled by: skinkie@openkvk (x86_64-unknown-linux-gnu) Compilation: gcc -Wall -Wextra -fno-strict-aliasing -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 Linking : /usr/x86_64-pc-linux-gnu/bin/ld -IPA -m elf_x86_64 ## Comment 15330 Date: 2010-12-10 16:11:04 +0100 From: @njnes This is a reference to an outer table (ie correlated subquery). Not a bug but a feature of sql.
Invalid identifier in subquery not reported.
https://api.github.com/repos/MonetDB/MonetDB/issues/2746/comments
0
2020-11-30T11:13:22Z
2024-06-28T13:19:58Z
https://github.com/MonetDB/MonetDB/issues/2746
753,386,386
2,746
[ "MonetDB", "MonetDB" ]
Date: 2010-12-07 14:17:34 +0100 From: @grobian To: SQL devs &lt;<bugs-sql>&gt; Version: 2.40.1 (Oct2010) [obsolete] CC: @njnes Last updated: 2011-03-28 17:31:29 +0200 ## Comment 15298 Date: 2010-12-07 14:17:34 +0100 From: @grobian CREATE TABLE "a" ( "id" INT PRIMARY KEY ); CREATE TABLE "b" ( "ref" BIGINT REFERENCES "a" NOT NULL ); INSERT INTO "a" VALUES('1'); INSERT INTO "b" VALUES('1'); result: TypeException:user.s1_1[8]:'algebra.uselect' undefined in: _15:any := algebra.uselect(_10:bat[:oid,:int], _5:lng) TypeException:user.s1_1[10]:'algebra.kdifference' undefined in: _18:any := algebra.kdifference(_15:any, _16:bat[:oid,:int]) TypeException:user.s1_1[11]:'algebra.uselect' undefined in: _19:any := algebra.uselect(_16:bat[:oid,:int], _5:lng) TypeException:user.s1_1[12]:'algebra.kunion' undefined in: _20:any := algebra.kunion(_18:any, _19:any) TypeException:user.s1_1[14]:'algebra.uselect' undefined in: _23:any := algebra.uselect(_21:bat[:oid,:int], _5:lng) TypeException:user.s1_1[15]:'algebra.kunion' undefined in: _24:any := algebra.kunion(_20:any, _23:any) TypeException:user.s1_1[18]:'algebra.kdifference' undefined in: _27:any := algebra.kdifference(_24:any, _26:bat[:oid,:oid]) TypeException:user.s1_1[20]:'algebra.markT' undefined in: _30:any := algebra.markT(_27:any, _28:oid) TypeException:user.s1_1[21]:'bat.reverse' undefined in: _31:any := bat.reverse(_30:any) TypeException:user.s1_1[22]:'aggr.count' undefined in: _32:any := aggr.count(_31:any) SQLException:SQLengine:Program contains errors ## Comment 15328 Date: 2010-12-10 16:07:26 +0100 From: @njnes Changeset [f8f1dd270926](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f8f1dd270926) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=f8f1dd270926](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=f8f1dd270926) Changeset description: fix for bug #2745 (added missing type checkes) ## Comment 15329 Date: 2010-12-10 16:07:27 +0100 From: @njnes Changeset [1ef7206912ed](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1ef7206912ed) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=1ef7206912ed](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=1ef7206912ed) Changeset description: added test for Bug #2745 ## Comment 15625 Date: 2011-03-28 17:31:29 +0200 From: @sjoerdmullender The Mar2011 version has been released.
foreign key type mismatch causes MAL stacktrace
https://api.github.com/repos/MonetDB/MonetDB/issues/2745/comments
0
2020-11-30T11:13:19Z
2024-06-27T11:50:49Z
https://github.com/MonetDB/MonetDB/issues/2745
753,386,351
2,745
[ "MonetDB", "MonetDB" ]
Date: 2010-12-07 14:15:33 +0100 From: @grobian To: SQL devs &lt;<bugs-sql>&gt; Version: 2.40.1 (Oct2010) [obsolete] CC: @njnes Last updated: 2011-03-28 17:31:41 +0200 ## Comment 15297 Date: 2010-12-07 14:15:33 +0100 From: @grobian CREATE TABLE "programs" ( "state" VARCHAR(10) DEFAULT UNLOCKED NOT NULL ); never returns, leaves mserver5 working on something, but I don't know what, not 100% though ## Comment 15316 Date: 2010-12-10 14:49:33 +0100 From: @njnes Changeset [2e498093cbf9](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2e498093cbf9) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=2e498093cbf9](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=2e498093cbf9) Changeset description: check for errors in default values. Fix bug #2744 ## Comment 15318 Date: 2010-12-10 14:53:29 +0100 From: @njnes Changeset [a73157554665](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a73157554665) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=a73157554665](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=a73157554665) Changeset description: added test for bug #2744 ## Comment 15319 Date: 2010-12-10 14:53:36 +0100 From: @njnes fixed ## Comment 15653 Date: 2011-03-28 17:31:41 +0200 From: @sjoerdmullender The Mar2011 version has been released.
UNLOCKED causes mserver to work indefinitely
https://api.github.com/repos/MonetDB/MonetDB/issues/2744/comments
0
2020-11-30T11:13:16Z
2024-06-27T11:50:48Z
https://github.com/MonetDB/MonetDB/issues/2744
753,386,319
2,744
[ "MonetDB", "MonetDB" ]
Date: 2010-12-06 15:38:52 +0100 From: @grobian To: clients devs &lt;<bugs-clients>&gt; Version: 1.40.1 (Oct2010) [obsolete] Last updated: 2011-03-28 17:31:40 +0200 ## Comment 15294 Date: 2010-12-06 15:38:52 +0100 From: @grobian % cat loss.sql create table t (id int, v int); alter table t add unique (v); insert into t values (null, 2); insert into t values (null, 2); select count(*) from t; select * from t; drop table t; % $INSTALL_DIR/bin/mclient -dtest loss.sql operation successful 1 affected row SQLException:assert:INSERT INTO: UNIQUE constraint 't.t_v_unique' violated +------+------+ | id | v | +======+======+ | null | 2 | +------+------+ 1 tuple expected: % $INSTALL_DIR/bin/mclient -dtest loss.sql operation successful operation successful 1 affected row SQLException:assert:INSERT INTO: UNIQUE constraint 't.t_v_unique' violated +------+ | L1 | +======+ | 1 | +------+ 1 tuple +------+------+ | id | v | +======+======+ | null | 2 | +------+------+ 1 tuple operation successful ## Comment 15295 Date: 2010-12-06 15:44:04 +0100 From: @grobian Changeset [e09534da01d4](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e09534da01d4) made by Fabian Groffen <fabian@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=e09534da01d4](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=e09534da01d4) Changeset description: mapi_next_result: don't skip over non-tables and non-updates Partial fix for bug #2743, this makes the second and third (from the DROP TABLE) "operation successful" message appear in mclient's output. ## Comment 15296 Date: 2010-12-06 16:00:34 +0100 From: @grobian Changeset [58b029e73851](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=58b029e73851) made by Fabian Groffen <fabian@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=58b029e73851](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=58b029e73851) Changeset description: read_into_cache: errors are not comments Make sure errors aren't seen as comment-only blocks, such that results aren't appended to them, causing them to disappear in the rendering, because errors are mutual exclusive with anything else. This fully fixes bug #2743 ## Comment 15650 Date: 2011-03-28 17:31:40 +0200 From: @sjoerdmullender The Mar2011 version has been released.
mapi_next_result skips over results (losing output)
https://api.github.com/repos/MonetDB/MonetDB/issues/2743/comments
0
2020-11-30T11:13:13Z
2024-06-27T11:50:47Z
https://github.com/MonetDB/MonetDB/issues/2743
753,386,290
2,743
[ "MonetDB", "MonetDB" ]
Date: 2010-12-05 20:18:39 +0100 From: @skinkie To: SQL devs &lt;<bugs-sql>&gt; Version: -- development CC: autumninjersey, @njnes Last updated: 2013-04-20 19:14:45 +0200 ## Comment 15290 Date: 2010-12-05 20:18:39 +0100 From: @skinkie User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.210 Safari/534.10 Build Identifier: Is it possible to support the following style of syntax? update b set b.something = a.something from a, b where a.id = b.id; I probably have asked this question before. Reproducible: Always ## Comment 15293 Date: 2010-12-05 21:51:26 +0100 From: @njnes this is allready supported by correlated updates. example UPDATE MASTER_ORDERS X SET QTY=(SELECT COALESCE (Y.QTY, X.QTY) FROM ORDERS Y WHERE X.ORDER_NUM = Y.ORDER_NUM) WHERE X.ORDER_NUM IN (SELECT ORDER_NUM FROM ORDERS) ## Comment 15379 Date: 2010-12-19 16:31:58 +0100 From: @skinkie (In reply to comment 1) > this is allready supported by correlated updates. > > example > UPDATE MASTER_ORDERS X > SET QTY=(SELECT COALESCE (Y.QTY, X.QTY) > FROM ORDERS Y > WHERE X.ORDER_NUM = Y.ORDER_NUM) > WHERE X.ORDER_NUM IN (SELECT ORDER_NUM > FROM ORDERS) The syntax that you present doesn't work; update cables_to x set msgtotag = (select tag from cabletags y where x.msgto = y.title) where x.msgtotag is null; syntax error, unexpected IDENT, expecting SET in: "update cables_to x" Next to that if I rewrite (even with AS) it doesn't work. So I rewrote the update to: update cables_to set msgtotag = (select tag from cabletags where cables_to.msgto = cabletags.title) where cables_to.msgtotag is null; SQLException:assert:zero_or_one: cardinality violation (82>1) Which gave me the above error. Then again this is 'strange' because as far as I can see the following query is working: sql>select documentid, tag, msgto from cabletags, cables_to where cables_to.msgto = cabletags.title and cables_to.msgtotag is null order by msgto, tag; +---------------+---------+--------------------------------+ | documentid | tag | msgto | +===============+=========+================================+ | 08STATE116392 | RUEHJM | AMCONSUL JERUSALEM | | 09STATE34688 | RUEHAD | AMEMBASSY ABU DHABI | | 08STATE30340 | RUEHAC | AMEMBASSY ASUNCION | | 09STATE37566 | RUEHBP | AMEMBASSY BAMAKO | | 09STATE37566 | RUEHJL | AMEMBASSY BANJUL | | 08STATE50524 | RUEHBJ | AMEMBASSY BEIJING | | 10STATE10900 | RUEHBJ | AMEMBASSY BEIJING | | 09STATE122950 | RUEHRL | AMEMBASSY BERLIN | | 08STATE15220 | RUEHRL | AMEMBASSY BERLIN | | 09STATE34394 | RUEHBR | AMEMBASSY BRASILIA | | 09STATE62395 | RUEHBM | AMEMBASSY BUCHAREST | | 09STATE62393 | RUEHUP | AMEMBASSY BUDAPEST | | 09STATE37561 | RUEHJB | AMEMBASSY BUJUMBURA | | 09STATE30049 | RUEHBY | AMEMBASSY CANBERRA | | 09STATE37566 | RUEHDK | AMEMBASSY DAKAR | | 08STATE65820 | RUEHKM | AMEMBASSY KAMPALA | | 09STATE37561 | RUEHKM | AMEMBASSY KAMPALA | | 09STATE37561 | RUEHLGB | AMEMBASSY KIGALI | | 09STATE37561 | RUEHKI | AMEMBASSY KINSHASA | | 09CONAKRY797 | RUEHLI | AMEMBASSY LISBON | | 09STATE62397 | RUEHLJ | AMEMBASSY LJUBLJANA | | 09CONAKRY797 | RUEHLO | AMEMBASSY LONDON | | 09STATE52368 | RUEHLO | AMEMBASSY LONDON | | 09STATE37566 | RUEHNJ | AMEMBASSY NDJAMENA | | 08STATE23763 | RUEHNE | AMEMBASSY NEW DELHI | | 09STATE53356 | RUEHNE | AMEMBASSY NEW DELHI | | 09STATE37566 | RUEHNM | AMEMBASSY NIAMEY | | 09STATE37566 | RUEHNK | AMEMBASSY NOUAKCHOTT | | 09STATE37566 | RUEHOU | AMEMBASSY OUAGADOUGOU | | 09CONAKRY797 | RUEHFR | AMEMBASSY PARIS | | 09STATE11937 | RUEHFR | AMEMBASSY PARIS | | 09STATE37566 | RUEHPA | AMEMBASSY PRAIA | | 09STATE62392 | RUEHSF | AMEMBASSY SOFIA | | 08STATE116392 | RUEHTV | AMEMBASSY TEL AVIV | | 08STATE116943 | RUEHTRO | AMEMBASSY TRIPOLI | | 09STATE63860 | RUEHTRO | AMEMBASSY TRIPOLI | | 09STATE67105 | RUEHTRO | AMEMBASSY TRIPOLI | | 10ABUDHABI9 | RUEAIIA | CIA WASHINGTON DC | | 10ABUDHABI9 | RUEATRS | DEPT OF TREASURY WASHINGTON DC | +---------------+---------+--------------------------------+ 39 tuples (8.000ms) Then if I rewrite to: update cables_to set msgtotag = (select tag from cabletags, cables_to as y where y.msgto = cabletags.title and cables_to.msgtotag = y.msgtotag) where cables_to.msgtotag is null; Adding an extra table... it does work. Should I open a new bug for this? ## Comment 15381 Date: 2010-12-19 18:50:10 +0100 From: @skinkie Created attachment 49 Something fishy As can be seen in the attachment, not all items that are null are updated. While there is data to be updated. > Attached file: [notallupdate.txt](https://github.com/MonetDB/monetdb-issues-attachments/blob/master/issue_2742_notallupdate.txt_49) (text/plain, 3399 bytes) > Description: Something fishy ## Comment 15401 Date: 2011-01-24 13:31:49 +0100 From: @grobian (In reply to comment 2) > Then if I rewrite to: > > update cables_to set msgtotag = (select tag from cabletags, cables_to as y > where y.msgto = cabletags.title and cables_to.msgtotag = y.msgtotag) where > cables_to.msgtotag is null; > > Adding an extra table... it does work. Should I open a new bug for this? yes. This bug, for what I understand from it, is invalid, as it already exists. ## Comment 18685 Date: 2013-04-20 19:14:45 +0200 From: autumninjersey (In reply to comment 4) > (In reply to comment 2) > > Then if I rewrite to: > > > > update cables_to set msgtotag = (select tag from cabletags, cables_to as y > > where y.msgto = cabletags.title and cables_to.msgtotag = y.msgtotag) where > > cables_to.msgtotag is null; > > > > Adding an extra table... it does work. Should I open a new bug for this? > > yes. > > This bug, for what I understand from it, is invalid, as it already exists. where is the new bug report? has this been resolved? i'm having similar problems trying to execute this type of query.
RFE: update join
https://api.github.com/repos/MonetDB/MonetDB/issues/2742/comments
0
2020-11-30T11:13:10Z
2024-06-28T13:40:42Z
https://github.com/MonetDB/MonetDB/issues/2742
753,386,250
2,742
[ "MonetDB", "MonetDB" ]
Date: 2010-12-05 17:56:54 +0100 From: @mlkersten To: SQL devs &lt;<bugs-sql>&gt; Version: -- development CC: @njnes Last updated: 2010-12-05 21:46:38 +0100 ## Comment 15289 Date: 2010-12-05 17:56:54 +0100 From: @mlkersten User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 Build Identifier: Timestamp management in SQL seems incomplete. First of all variables are not set to their nil value. Second, their rendering in selections is not consistent. Reproducible: Always ### Steps to Reproduce: 1.declare z timestamp; 2.select z; 3.set z= now(); 3.select z, now(); 4.create table ts_tmp(t timestamp); 5.insert into ts_tmp values(z),(now()); 6.select * from ts_tmp; 7.drop table ts_tmp; 8.set z= null; 9.select z; ### Actual Results: +----------------------------+ | single_value | +============================+ | -1-01-01 [000000000000](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=000000000000) | +----------------------------+ +----------------------------+----------------------------------+ | single_value | current_timestamp | +============================+==================================+ | 2010-12-05 16:51:21.000000 | 2010-12-05 16:51:27.000000+00:00 | +----------------------------+----------------------------------+ +----------------------------+ | t | +============================+ | 2010-12-05 16:51:21.000000 | | 2010-12-05 16:53:12.000000 | +----------------------------+ +----------------------------+ | single_value | +============================+ | null | +----------------------------+ ### Expected Results: +--------------+ | single_value | +==============+ | null | +--------------+ +----------------------------+----------------------------+ | single_value | current_timestamp | +============================+============================+ | 2010-12-05 16:51:21.000000 | 2010-12-05 16:51:27.000000 | +----------------------------+----------------------------+ +----------------------------+ | t | +============================+ | 2010-12-05 16:51:21.000000 | | 2010-12-05 16:53:12.000000 | +----------------------------+ +----------------------------+ | single_value | +============================+ | null | +----------------------------+ ## Comment 15292 Date: 2010-12-05 21:46:38 +0100 From: @njnes this is not a bug, but expected behaviour. Uninitialized, means it can be anything. So seems fine. Same happens for int sql>declare z int; sql>select z; +--------------+ | single_value | +==============+ | 0 | +--------------+ 1 tuple (0.000ms) sql> Now() returns a timestamp with a timezone, so thats why we get a different rendering.
Timestamp null behavior incomplete
https://api.github.com/repos/MonetDB/MonetDB/issues/2741/comments
0
2020-11-30T11:13:06Z
2024-06-28T13:19:58Z
https://github.com/MonetDB/MonetDB/issues/2741
753,386,215
2,741
[ "MonetDB", "MonetDB" ]
Date: 2010-12-04 21:00:14 +0100 From: @skinkie To: SQL devs &lt;<bugs-sql>&gt; Version: 11.5.1 (Aug2011) [obsolete] CC: @njnes Last updated: 2012-01-26 15:32:07 +0100 ## Comment 15278 Date: 2010-12-04 21:00:14 +0100 From: @skinkie User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.210 Safari/534.10 Build Identifier: create table tags_tmp (word varchar(265), counts integer not null); copy 53681 records into tags_tmp from '/tmp/keywords.tsv' delimiters '\t', '\n' null as ''; create table tags (word varchar(265), counts integer not null, doccounts integer not null); create function sphinx_searchIndexLimit(query string, idx string, "limit" int) returns table (id bigint) external name sphinx."sphinx_searchIndexLimit"; insert into tags select word, counts, (select count(*) from sphinx_searchIndexLimit(word, 'index', 1000)) as doccounts from tags_tmp; This results in: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffe335a710 (LWP 20123)] 0x00007fffe403e8ff in flatten_exps (sql=0x1554758, exps=0x0) at ../../../src/server/rel_select.mx:3395 3395 for (n=exps->h; n; n=n->next) { (gdb) bt 0 0x00007fffe403e8ff in flatten_exps (sql=0x1554758, exps=0x0) at ../../../src/server/rel_select.mx:3395 1 0x00007fffe403ed83 in _rel_aggr (sql=0x1554758, rel=0x7fffe3359490, distinct=0, aggrstr=0x170d278 "count", sym=0x0, f=3) at ../../../src/server/rel_select.mx:3472 2 0x00007fffe403f1dd in rel_aggr (sql=0x1554758, rel=0x7fffe3359490, se=0x170d338, f=3) at ../../../src/server/rel_select.mx:3534 3 0x00007fffe4041386 in rel_value_exp2 (sql=0x1554758, rel=0x7fffe3359490, se=0x170d338, f=3, ek=..., is_last=0x7fffe3359394) at ../../../src/server/rel_select.mx:4112 4 0x00007fffe4041ac9 in rel_value_exp (sql=0x1554758, rel=0x7fffe3359490, se=0x170d338, f=3, ek=...) at ../../../src/server/rel_select.mx:4247 5 0x00007fffe4041b94 in column_exp (sql=0x1554758, rel=0x7fffe3359490, column_e=0x170d3d8, f=3) at ../../../src/server/rel_select.mx:4260 6 0x00007fffe4041cd8 in rel_column_exp (sql=0x1554758, rel=0x7fffe3359490, column_e=0x170d3d8, f=3) at ../../../src/server/rel_select.mx:4292 7 0x00007fffe4042f82 in rel_select_exp (sql=0x1554758, rel=0xb149b8, outer=0xb2abc8, sn=0x170d9d8, ek=...) at ../../../src/server/rel_select.mx:4598 8 0x00007fffe4043ccb in rel_query (sql=0x1554758, rel=0xb2abc8, sq=0x170d9d8, toplevel=0, ek=...) at ../../../src/server/rel_select.mx:4804 9 0x00007fffe404514a in rel_subquery (sql=0x1554758, rel=0xb2abc8, sq=0x170d9d8, ek=...) at ../../../src/server/rel_select.mx:5147 10 0x00007fffe4041839 in rel_value_exp2 (sql=0x1554758, rel=0x7fffe3359870, se=0x170d9d8, f=3, ek=..., is_last=0x7fffe3359774) at ../../../src/server/rel_select.mx:4183 11 0x00007fffe4041ac9 in rel_value_exp (sql=0x1554758, rel=0x7fffe3359870, se=0x170d9d8, f=3, ek=...) at ../../../src/server/rel_select.mx:4247 12 0x00007fffe4041b94 in column_exp (sql=0x1554758, rel=0x7fffe3359870, column_e=0x170dae8, f=3) at ../../../src/server/rel_select.mx:4260 13 0x00007fffe4041cd8 in rel_column_exp (sql=0x1554758, rel=0x7fffe3359870, column_e=0x170dae8, f=3) at ../../../src/server/rel_select.mx:4292 14 0x00007fffe4042f82 in rel_select_exp (sql=0x1554758, rel=0xb2abc8, outer=0x0, sn=0x170dd88, ek=...) at ../../../src/server/rel_select.mx:4598 15 0x00007fffe4043ccb in rel_query (sql=0x1554758, rel=0x0, sq=0x170dd88, toplevel=1, ek=...) at ../../../src/server/rel_select.mx:4804 16 0x00007fffe404514a in rel_subquery (sql=0x1554758, rel=0x0, sq=0x170dd88, ek=...) at ../../../src/server/rel_select.mx:5147 17 0x00007fffe4045d53 in insert_into (sql=0x1554758, qname=0x170cf68, columns=0x0, val_or_q=0x170dd88) at ../../../src/server/rel_updates.mx:236 18 0x00007fffe40481c3 in rel_updates (sql=0x1554758, s=0x170deb8) at ../../../src/server/rel_updates.mx:761 19 0x00007fffe4032c5c in rel_semantic (sql=0x1554758, s=0x170deb8) at ../../../src/server/rel_semantic.mx:244 20 0x00007fffe3f97a48 in sql_symbol2stmt (c=0x1554758, sym=0x170deb8) at ../../../../src/backends/monet5/sql.mx:1397 21 0x00007fffe3fe3d2f in SQLparser (c=0x605898) at ../../../../src/backends/monet5/sql_scenario.mx:1286 22 0x00007ffff7b05516 in runPhase (c=0x605898, phase=1) at ../../../src/mal/mal_scenario.mx:604 23 0x00007ffff7b0564e in runScenarioBody (c=0x605898) at ../../../src/mal/mal_scenario.mx:646 24 0x00007ffff7b058d5 in runScenario (c=0x605898) at ../../../src/mal/mal_scenario.mx:682 25 0x00007ffff7ab864a in MSserveClient (dummy=0x605898) at ../../../src/mal/mal_session.mx:495 26 0x00007ffff579fc0a in start_thread () from /lib64/libpthread.so.0 27 0x00007ffff48a7a9d in clone () from /lib64/libc.so.6 Something seems to go wrong with the concept that I want to use a 'value' from another table inside a function. Reproducible: Always MonetDB server v5.22.2 (64-bit), based on kernel v1.40.2 (64-bit oids) Not released Copyright (c) 1993-July 2008 CWI Copyright (c) August 2008-2010 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information Found 3.9GiB available memory, 2 available cpu cores Configured for prefix: /opt/monetdb-testing3 Libraries: libpcre: 8.02 2010-03-19 (compiled with 8.02) openssl: OpenSSL 1.0.0a 1 Jun 2010 (compiled with OpenSSL 1.0.0a 1 Jun 2010) libxml2: 2.7.7 (compiled with 2.7.7) Compiled by: skinkie@openkvk (x86_64-unknown-linux-gnu) Compilation: gcc -Wall -Wextra -fno-strict-aliasing -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 Linking : /usr/x86_64-pc-linux-gnu/bin/ld -IPA -m elf_x86_64 ## Comment 15283 Date: 2010-12-05 12:13:07 +0100 From: @njnes this bug indicates a number of problems. Most important one is that we don't handle table functions with multi row input. Currently it doesn't fit the relations trees we built internally. Requires some more work. Other problems are that we don't test for this case and because of that crash (trigger an assert). ## Comment 16043 Date: 2011-07-29 11:00:07 +0200 From: @sjoerdmullender Apr2011-SP2 has been released. ## Comment 16207 Date: 2011-09-11 22:02:33 +0200 From: @njnes now supported through union functions. This is still work in progress and extends beyond normal sql standard. ## Comment 16208 Date: 2011-09-12 09:45:59 +0200 From: @sjoerdmullender This will not appear in the Aug2011 release. ## Comment 16833 Date: 2012-01-26 15:32:07 +0100 From: @sjoerdmullender The Dec2011 version has been release, so declaring this bug as FIXED.
Segmentation fault using a column inside of a functioncall
https://api.github.com/repos/MonetDB/MonetDB/issues/2740/comments
0
2020-11-30T11:13:03Z
2024-06-27T11:50:44Z
https://github.com/MonetDB/MonetDB/issues/2740
753,386,173
2,740
[ "MonetDB", "MonetDB" ]
Date: 2010-12-04 13:20:36 +0100 From: prinz.z To: GDK devs &lt;<bugs-common>&gt; Version: 11.3.3 (Apr2011-SP1) [obsolete] Last updated: 2011-07-04 16:26:05 +0200 ## Comment 15277 Date: 2010-12-04 13:20:36 +0100 From: prinz.z User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Ubuntu/10.10 Chromium/7.0.517.44 Chrome/7.0.517.44 Safari/534.7 Build Identifier: The following query with a subquery inside of an avg-aggregate function is not working. Without the outer avg everything is working fine. select avg(val - (select avg(val) from bug)) from bug; mclient doesn't give any output, not even an error message. There is some error in the merovingian.log file, but it is not always reproducable, see add. information for more details. Reproducible: Always ### Steps to Reproduce: 1. create table bug (val int); 2. insert into bug values (1), (2); 3. select avg(val - (select avg(val) from bug)) from bug; ### Actual Results: nothing ### Expected Results: The average deviation of all values in the table from global average value. sql>create table bug (val int); operation successful sql>insert into bug values (1), (2); 2 affected rows (62.422ms) sql>select * from bug; +------+ | val | +======+ | 1 | | 2 | +------+ 2 tuples (4.650ms) sql>select avg(val) from bug; +------------------------+ | L43 | +========================+ | 1.5 | +------------------------+ 1 tuple (6.057ms) sql>select val - (select avg(val) from bug) from bug; +------------------------+ | sql_sub_val | +========================+ | -0.5 | | 0.5 | +------------------------+ 2 tuples (476.017ms) sql>select avg(val - (select avg(val) from bug)) from bug; sql>select avg(val - (select avg(val) from bug)) from bug; sql>explain select avg(val - (select avg(val) from bug)) from bug; sql>plan select avg(val - (select avg(val) from bug)) from bug; +--------------------------------------------------------------------------------------------------------------------------+ | rel | +==========================================================================================================================+ | project ( | | | project ( | | | | group by ( | | | | | project ( | | | | | | crossproduct ( | | | | | | | table(sys.bug) [ bug.val, bug.%TID% NOT NULL ], | | | | | | | project ( | | | | | | | | project ( | | | | | | | | | group by ( | | | | | | | | | | table(sys.bug) [ bug.val, bug.%TID% NOT NULL ] | | | | | | | | | ) [ ] [ count no nil (convert(bug.val from int to double)) as L10, sum no nil (convert(bug.val from int t | : o double)) as L11 ] : | | | | | | | ) [ sql_div(convert(L11 from double to double), ifthenelse(=(L10, 0), NULL, convert(L10 from wrd to double)) | : ) as L4 ] : | | | | | | ) [ L4 as L6.L6 ] | | | | | | ) | | | | | ) [ bug.val, bug.%TID% NOT NULL ] | | | | ) [ ] [ count no nil (sql_sub(convert(bug.val from int to double), L6.L6)) as L12, sum no nil (sql_sub(convert(bug. | : val from int to double), L6.L6)) as L13 ] : | | ) [ sql_div(convert(L13 from double to double), ifthenelse(=(L12, 0), NULL, convert(L12 from wrd to double))) as L7 ] | | ) [ L7 ] | +--------------------------------------------------------------------------------------------------------------------------+ 18 tuples (3.412ms) merovingian.log: 2010-12-04 12:28:42 MSG seism[10222]: could not find L6.L6 2010-12-04 12:28:42 MSG seism[10222]: bug.val 2010-12-04 12:28:42 MSG seism[10222]: bug.%TID% 2010-12-04 12:28:42 MSG seism[10222]: could not find L36.L36 2010-12-04 12:28:42 MSG seism[10222]: bug.val 2010-12-04 12:28:42 MSG seism[10222]: bug.%TID% ## Comment 15661 Date: 2011-03-28 17:34:54 +0200 From: @sjoerdmullender The Mar2011 version has been released. ## Comment 15886 Date: 2011-07-04 16:24:26 +0200 From: @sjoerdmullender Changeset [5655ff8525f5](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5655ff8525f5) made by Sjoerd Mullender <sjoerd@acm.org> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=5655ff8525f5](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=5655ff8525f5) Changeset description: Added test for bug #2739. ## Comment 15887 Date: 2011-07-04 16:26:05 +0200 From: @sjoerdmullender The Apr2011-SP1 version has this result: sql>select avg(val - (select avg(val) from bug)) from bug; +------------------------+ | L12 | +========================+ | 0 | +------------------------+ 1 tuple (26.537ms) This seems like the correct answer to me. I'm closing the bug as FIXED.
Subquery in aggregate function (AVG) doesn't yield result nor error message
https://api.github.com/repos/MonetDB/MonetDB/issues/2739/comments
0
2020-11-30T11:12:59Z
2024-06-27T11:50:43Z
https://github.com/MonetDB/MonetDB/issues/2739
753,386,122
2,739
[ "MonetDB", "MonetDB" ]
Date: 2010-12-04 00:48:01 +0100 From: @skinkie To: MonetDB5 devs &lt;<bugs-monetdb5>&gt; Version: 11.1.1 (Mar2011) [obsolete] Last updated: 2011-03-28 17:31:27 +0200 ## Comment 15269 Date: 2010-12-04 00:48:01 +0100 From: @skinkie User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.210 Safari/534.10 Build Identifier: As subject. So specifying 66666 will not give you an error, not for connecting to nor starting the server with it. And it actually 'works' so that surprises me even more. Reproducible: Always ## Comment 15533 Date: 2011-03-05 23:20:50 +0100 From: @skinkie I guess this is the most 'elegant' solution. diff -r 650c038f60dd monetdb5/modules/mal/mal_mapi.mx --- a/monetdb5/modules/mal/mal_mapi.mx Sat Mar 05 21:56:34 2011 +0100 +++ b/monetdb5/modules/mal/mal_mapi.mx Sat Mar 05 23:18:57 2011 +0100 @@ -705,7 +705,7 @@ maxusers = *Maxusers; maxusers = (maxusers ? maxusers : SERVERMAXUSERS); - if (port <= 0 && usockfile == NULL) + if ((port <= 0 || port > 65535) && usockfile == NULL) throw(IO, "mal_mapi.listen", OPERATION_FAILED ": no port or socket file specified"); if (port > 0) { ## Comment 15534 Date: 2011-03-05 23:28:00 +0100 From: @grobian I'd rather add a separate check which throws an ILLARG (illegal argument port number should be between ...) ## Comment 15535 Date: 2011-03-05 23:51:51 +0100 From: @skinkie Created attachment 58 65535 check I guess this is what you want. > Attached file: [65535.patch](https://github.com/MonetDB/monetdb-issues-attachments/blob/master/issue_2738_65535.patch_58) (text/plain, 805 bytes) > Description: 65535 check ## Comment 15537 Date: 2011-03-06 10:10:46 +0100 From: @skinkie Changeset [cc16bb8cb4d8](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=cc16bb8cb4d8) made by Stefan de Konink <stefan@konink.de> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=cc16bb8cb4d8](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=cc16bb8cb4d8) Changeset description: SERVERlisten: force maximum tcp port 65535 port isn't checked carefully, leading to unexpected success of opening invalid ports, bug #2738. At the same time, fix a case of throwing an IO instead of an ILLARG for invalid arguments. Reviewed-by: Fabian Groffen <fabian@cwi.nl> ## Comment 15538 Date: 2011-03-06 10:11:41 +0100 From: @grobian pushed, thanks ## Comment 15622 Date: 2011-03-28 17:31:27 +0200 From: @sjoerdmullender The Mar2011 version has been released.
MonetDB 'allows' binding and connecting to ports above 65535 (has patch)
https://api.github.com/repos/MonetDB/MonetDB/issues/2738/comments
0
2020-11-30T11:12:55Z
2024-06-27T11:50:42Z
https://github.com/MonetDB/MonetDB/issues/2738
753,386,084
2,738
[ "MonetDB", "MonetDB" ]
Date: 2010-12-03 02:53:32 +0100 From: @skinkie To: Stefan de Konink &lt;<stefan>&gt; Version: 5.22.1 (Oct2010) [obsolete] CC: bugs-monetdb5 Last updated: 2011-03-28 17:31:42 +0200 ## Comment 15249 Date: 2010-12-03 02:53:32 +0100 From: @skinkie User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.208 Safari/534.10 Build Identifier: Sphinx by default results 20 results. I need this to be dynamic. The attached improvement allows this. Reproducible: Always ## Comment 15250 Date: 2010-12-03 02:54:32 +0100 From: @skinkie Created attachment 46 Update to support limit I haven't tested this in production yet, it was a quick implementation. If some other patterns should be used in the module let me know. > Attached file: [sphinx-update.diff](https://github.com/MonetDB/monetdb-issues-attachments/blob/master/issue_2737_sphinx-update.diff_46) (text/plain, 3883 bytes) > Description: Update to support limit ## Comment 15299 Date: 2010-12-07 14:23:12 +0100 From: @grobian couple of things: Your patch is not API backwards compatible. Could you change it such that you just have a function with an extra argument, and that the default is to call that function with say 20? Your patch includes commented out code, could you clean that up please? ## Comment 15300 Date: 2010-12-07 15:15:59 +0100 From: @skinkie Uuhh? Not compatible? The old function call still exist right? And the internal default of Sphinx is 20. Am I overlooking something? SPHINXsearchIndex calls SPHINXsearchIndexLimit Regarding to the comments, that will be part of a 0.3 feature. If you can elaborate on the above, I'm happy to make a new patch. ## Comment 15301 Date: 2010-12-07 21:15:39 +0100 From: @grobian -command searchIndex(q:str, i:str) :bat[:oid,:lng] +command searchIndex(q:str, i:str, l:int) :bat[:oid,:lng] doesn't this change the API? ## Comment 15302 Date: 2010-12-07 23:14:03 +0100 From: @skinkie (In reply to comment 4) > -command searchIndex(q:str, i:str) :bat[:oid,:lng] > +command searchIndex(q:str, i:str, l:int) :bat[:oid,:lng] > > doesn't this change the API? Thanks Fabian, I see your point now. ## Comment 15402 Date: 2011-01-24 13:32:54 +0100 From: @grobian Ping. Any progress on this? ## Comment 15448 Date: 2011-02-05 21:25:24 +0100 From: @skinkie Created attachment 53 Updated patch, same API Fabian can you please advise: - Is it required to have multiple wrapper functions? Or is it possible to do something with getArgReference to check the number of arguments? - How to implement 'auto loading' so --dbinit="include sphinx;" isn't required anymore. > Attached file: [sphinx2.patch](https://github.com/MonetDB/monetdb-issues-attachments/blob/master/issue_2737_sphinx2.patch_53) (text/plain, 4451 bytes) > Description: Updated patch, same API ## Comment 15450 Date: 2011-02-08 14:36:00 +0100 From: @grobian (In reply to comment 7) > Fabian can you please advise: > > - Is it required to have multiple wrapper functions? Or is it possible to do > something with getArgReference to check the number of arguments? You can do that, but maybe it is much nicer just to write a MAL-function that calls the ..Limit version with the extra argument 0 or something. > - How to implement 'auto loading' so --dbinit="include sphinx;" isn't required > anymore. Look at e.g. the rdf dir/Makefile.ag. Create a e.g. 70_sphinx.mal file, that is installed in the autoload dir. The number is the priority, so chose something you think is wise. ## Comment 15516 Date: 2011-03-05 18:49:06 +0100 From: @skinkie (In reply to comment 8) > Look at e.g. the rdf dir/Makefile.ag. Create a e.g. 70_sphinx.mal file, that > is installed in the autoload dir. The number is the priority, so chose > something you think is wise. I guess there is no such thing anymore there. Do you want me to commit my code and do hg export here. So at least the general code is committed? ## Comment 15517 Date: 2011-03-05 18:53:14 +0100 From: @grobian if you have an update patch, please attach it ## Comment 15518 Date: 2011-03-05 19:02:52 +0100 From: @skinkie (In reply to comment 10) > if you have an update patch, please attach it I'm still quite puzzled what you ment with: "You can do that, but maybe it is much nicer just to write a MAL-function that calls the ..Limit version with the extra argument 0 or something." Since the MAL functions: SPHINXsearch calls SPHINXsearchIndex calls SPHINXsearchIndexLimit each fills in one of the gaps. Do you want me to change that? My actual point was in SPHINXsearchIndexWrap/SPHINXsearchIndexLimitWrap since those are called by SQL, and duplicate a lot of code. Is anything possible in the pattern/address statements? ## Comment 15519 Date: 2011-03-05 19:06:29 +0100 From: @grobian (In reply to comment 11) > Since the MAL functions: > SPHINXsearch calls SPHINXsearchIndex calls SPHINXsearchIndexLimit each fills in > one of the gaps. Do you want me to change that? no, that's fine > My actual point was in SPHINXsearchIndexWrap/SPHINXsearchIndexLimitWrap since > those are called by SQL, and duplicate a lot of code. Is anything possible in > the pattern/address statements? you asked about variable arguments, my comment just referred to using multiple signatures if possible, before resorting to the getArg approach. ## Comment 15520 Date: 2011-03-05 19:32:35 +0100 From: @skinkie (In reply to comment 12) > you asked about variable arguments, my comment just referred to using multiple > signatures if possible, before resorting to the getArg approach. command searchIndex(q:str, i:str) :bat[:oid,:lng] address SPHINXsearchIndex comment "Search the query on the specified indices"; command searchIndexLimit(q:str, i:str, l:int) :bat[:oid,:lng] address SPHINXsearchIndexLimit comment "Search the query on the specified index, with limit"; pattern sphinx_searchIndex(q:str, i:str) :bat[:str,:bat] address SPHINXsearchIndexWrap comment "Search the query on the specified index"; pattern sphinx_searchIndexLimit(q:str, i:str, l:int) :bat[:str,:bat] address SPHINXsearchIndexLimitWrap comment "Search the query on the specified index, with limit"; Could you elaborate on how that would look? pattern sphinx_searchIndex(q:str, i:str, 20) :bat[:str,:bat] address SPHINXsearchIndexWrap comment "Search the query on the specified index"; Would the above be valid? ## Comment 15521 Date: 2011-03-05 19:46:01 +0100 From: @grobian (In reply to comment 13) > Could you elaborate on how that would look? > > pattern sphinx_searchIndex(q:str, i:str, 20) :bat[:str,:bat] > address SPHINXsearchIndexWrap > comment "Search the query on the specified index"; > > Would the above be valid? nope function sphinx_searchIndex(q:str, i:str) :bat[:str,:bat] ret := sphinx_searchIndexLimit(q, i, 20); return ret; end sphinx_searchIndex; minus typos ## Comment 15523 Date: 2011-03-05 20:50:30 +0100 From: @skinkie Fabian could you give a hand what is wrong here? function search(q:str) :bat[:oid,:lng] ret := sphinx_searchIndexLimit(q, "*", 20); return ret; end search; comment "Searches the query on all indices"; function searchIndex(q:str, i:str) :bat[:oid,:lng] ret := sphinx_searchIndexLimit(q, i, 20); return ret; end sphinx_searchIndex; comment "Search the query on the specified indices"; command searchIndexLimit(q:str, i:str, l:int) :bat[:oid,:lng] address SPHINXsearchIndexLimit comment "Search the query on the specified index, with limit"; function sphinx_searchIndex(q:str, i:str) :bat[:str,:bat] ret := sphinx_searchIndexLimit(q, i, 20); return ret; end sphinx_searchIndex; comment "Search the query on the specified index"; pattern sphinx_searchIndexLimit(q:str, i:str, l:int) :bat[:str,:bat] address SPHINXsearchIndexLimitWrap comment "Search the query on the specified index, with limit"; MonetDB upon startup returns: !SyntaxException:parseError:ret := sphinx_searchIndexLimit(q, "*", 20); !SyntaxException:parseError:^';' expected !TypeException:sphinx.search[1]:'ret' may not be used before being initialized !SyntaxException:parseError:comment "Searches the query on all indices"; !SyntaxException:parseError: ^';' expected !SyntaxException:parseError:function searchIndex(q:str, i:str) :bat[:oid,:lng] !SyntaxException:parseError:^';' expected !SyntaxException:parseError:end sphinx_searchIndex; !SyntaxException:parseError: ^non matching end label, overruled !TypeException:user.main[15]:'user.sphinx_searchIndexLimit' undefined in: ret:any := user.sphinx_searchIndexLimit(q:any, i:any, _18:int) !TypeException:user.main[15]:'q' may not be used before being initialized !TypeException:user.main[15]:'i' may not be used before being initialized !SyntaxException:parseError:comment "Search the query on the specified indices"; !SyntaxException:parseError: ^';' expected !SyntaxException:parseError:command searchIndexLimit(q:str, i:str, l:int) :bat[:oid,:lng] !SyntaxException:parseError:^';' expected !SyntaxException:parseError:address SPHINXsearchIndexLimit !SyntaxException:parseError: ^';' expected !SyntaxException:parseError:comment "Search the query on the specified index, with limit"; !SyntaxException:parseError:^';' expected !SyntaxException:parseError:ret := sphinx_searchIndexLimit(q, i, 20); !SyntaxException:parseError:^';' expected !TypeException:sphinx.sphinx_searchIndex[1]:'ret' may not be used before being initialized !SyntaxException:parseError:comment "Search the query on the specified index"; !SyntaxException:parseError: ^';' expected !SyntaxException:parseError:pattern sphinx_searchIndexLimit(q:str, i:str, l:int) :bat[:str,:bat] !SyntaxException:parseError:^';' expected !SyntaxException:parseError:address SPHINXsearchIndexLimitWrap !SyntaxException:parseError: ^';' expected !SyntaxException:parseError:comment "Search the query on the specified index, with limit"; !SyntaxException:parseError:^';' expected ## Comment 15524 Date: 2011-03-05 20:57:46 +0100 From: @skinkie Looks this 'works', now need to test my database without 'segfaults'... command searchIndexLimit(q:str, i:str, l:int) :bat[:oid,:lng] address SPHINXsearchIndexLimit comment "Search the query on the specified index, with limit"; function search(q:str) :bat[:oid,:lng]; ret := searchIndexLimit(q, "*", 20); return ret; end search; function searchIndex(q:str, i:str) :bat[:oid,:lng]; ret := searchIndexLimit(q, i, 20); return ret; end searchIndex; pattern sphinx_searchIndexLimit(q:str, i:str, l:int) :bat[:str,:bat] address SPHINXsearchIndexLimitWrap comment "Search the query on the specified index, with limit"; function sphinx_searchIndex(q:str, i:str) :bat[:str,:bat]; ret := sphinx_searchIndexLimit(q, i, 20); return ret; end sphinx_searchIndex; ## Comment 15525 Date: 2011-03-05 20:58:23 +0100 From: @grobian indeed, missing semicolon in the example I gave you :) ## Comment 15529 Date: 2011-03-05 21:40:15 +0100 From: @skinkie Created attachment 56 Updated patch. (In reply to comment 17) > indeed, missing semicolon in the example I gave you :) Can you do a proper review? I have tested it, seems to work. Hope you are happy about it too. > Attached file: [sphinx02.diff](https://github.com/MonetDB/monetdb-issues-attachments/blob/master/issue_2737_sphinx02.diff_56) (text/plain, 4459 bytes) > Description: Updated patch. ## Comment 15530 Date: 2011-03-05 21:47:10 +0100 From: @grobian Patch looks good to me. Will you generate an hg export (with you as author)? ## Comment 15531 Date: 2011-03-05 21:57:52 +0100 From: @skinkie Created attachment 57 hg export Exported. > Attached file: [sphinx02-hg.diff](https://github.com/MonetDB/monetdb-issues-attachments/blob/master/issue_2737_sphinx02-hg.diff_57) (text/plain, 5376 bytes) > Description: hg export ## Comment 15532 Date: 2011-03-05 22:04:13 +0100 From: @grobian forgot bug message in commit, sorry, here it is http://dev.monetdb.org/hg/MonetDB/rev/a1b9d3c35460 thanks for the update! ## Comment 15654 Date: 2011-03-28 17:31:42 +0200 From: @sjoerdmullender The Mar2011 version has been released.
Sphinx module update, adding limit/max_results support
https://api.github.com/repos/MonetDB/MonetDB/issues/2737/comments
0
2020-11-30T11:12:52Z
2024-06-27T11:50:41Z
https://github.com/MonetDB/MonetDB/issues/2737
753,386,046
2,737
[ "MonetDB", "MonetDB" ]
Date: 2010-12-02 01:58:10 +0100 From: @skinkie To: SQL devs &lt;<bugs-sql>&gt; Version: -- development CC: @njnes Last updated: 2010-12-02 13:09:41 +0100 ## Comment 15243 Date: 2010-12-02 01:58:10 +0100 From: @skinkie User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.210 Safari/534.10 Build Identifier: sql>select id, case when id = 2001 then '0'||id else '1' end from tables where id = 2001; +------+-----------------------------------------------------------------------------------------------------------------------+ | id | ifthenelse_isnull_=_id | +======+=======================================================================================================================+ | 2001 | 02001 | +------+-----------------------------------------------------------------------------------------------------------------------+ 1 tuple (1.638ms) sql>select id, case when id = 2001 then '0'||id else id end from tables where id = 2001; +------+------------------------+ | id | ifthenelse_isnull_=_id | +======+========================+ | 2001 | 2001 | +------+------------------------+ 1 tuple (6.723ms) Reproducible: Always MonetDB server v5.22.2 (64-bit), based on kernel v1.40.2 (64-bit oids) Not released Copyright (c) 1993-July 2008 CWI Copyright (c) August 2008-2010 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information Found 3.9GiB available memory, 2 available cpu cores Configured for prefix: /opt/monetdb-testing3 Libraries: libpcre: 8.02 2010-03-19 (compiled with 8.02) openssl: OpenSSL 1.0.0a 1 Jun 2010 (compiled with OpenSSL 1.0.0a 1 Jun 2010) libxml2: 2.7.7 (compiled with 2.7.7) Compiled by: skinkie@openkvk (x86_64-unknown-linux-gnu) Compilation: gcc -Wall -Wextra -fno-strict-aliasing -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 Linking : /usr/x86_64-pc-linux-gnu/bin/ld -IPA -m elf_x86_64 ## Comment 15244 Date: 2010-12-02 02:01:55 +0100 From: @skinkie The easy workaround I currently took was a cast(). ## Comment 15245 Date: 2010-12-02 08:17:09 +0100 From: @njnes The output given is correct. The reason an integer is rerturned is because the 'else' part does. Then MonetDB sql assumes you want integers and not strings. ## Comment 15247 Date: 2010-12-02 13:09:41 +0100 From: @skinkie (In reply to comment 2) > The output given is correct. The reason an integer is rerturned is because the > 'else' part does. Then MonetDB sql assumes you want integers and not strings. Aahh... yep it totally makes sense now. When I replace '0' with '1' it does give a different value. In that case the 'cast' is a correct workaround for adding leading zero's.
Invalid CASE parsing when ELSE equals fieldname
https://api.github.com/repos/MonetDB/MonetDB/issues/2736/comments
0
2020-11-30T11:12:49Z
2024-06-28T13:19:57Z
https://github.com/MonetDB/MonetDB/issues/2736
753,386,012
2,736
[ "MonetDB", "MonetDB" ]
Date: 2010-11-29 13:18:54 +0100 From: Alexander Ulrich &lt;<ulricha>&gt; To: SQL devs &lt;<bugs-sql>&gt; Version: 2.40.1 (Oct2010) [obsolete] CC: @njnes Last updated: 2011-03-28 17:31:24 +0200 ## Comment 15235 Date: 2010-11-29 13:18:54 +0100 From: Alexander Ulrich &lt;<ulricha>&gt; User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7 Build Identifier: Executing the following SQL query leads to multiple TypeExceptions. The query works fine on PostgreSQL 9. $ cat foo.sql WITH foo (row, col, val) AS (SELECT row, col, val FROM (VALUES (1,1,1), (1,2,2)) AS foo(row, col, val)), -- binding due to rownum operator t0000 (item1_int, item2_int, item3_int, iter4_nat) AS (SELECT a0001.col AS item1_int, a0001.row AS item2_int, a0001.val AS item3_int, ROW_NUMBER () OVER (ORDER BY a0001.row ASC, a0001.col ASC) AS iter4_nat FROM foo AS a0001), -- binding due to set operation t0001 (iter7_nat, pos8_nat) AS ((SELECT a0002.iter4_nat AS iter7_nat, 1 AS pos8_nat FROM t0000 AS a0002) UNION ALL (SELECT a0003.iter4_nat AS iter7_nat, 2 AS pos8_nat FROM t0000 AS a0003)), -- binding due to rank operator t0002 (pos19_nat, iter7_nat, pos8_nat, item1_int, item2_int, item3_int, iter4_nat, iter32_nat) AS (SELECT a0000.pos19_nat, a0004.iter7_nat, a0004.pos8_nat, a0005.item1_int, a0005.item2_int, a0005.item3_int, a0005.iter4_nat, DENSE_RANK () OVER (ORDER BY a0004.iter7_nat ASC, a0004.pos8_nat ASC, a0000.pos19_nat ASC) AS iter32_nat FROM (VALUES (1), (2)) AS a0000(pos19_nat), t0001 AS a0004, t0000 AS a0005 WHERE a0004.iter7_nat = a0005.iter4_nat), -- binding due to rank operator t0003 (item13_int, iter38_nat, pos39_nat, pos40_nat, iter31_nat) AS (SELECT a0007.item13_int, a0008.iter7_nat AS iter38_nat, a0008.pos8_nat AS pos39_nat, a0007.pos14_nat AS pos40_nat, DENSE_RANK () OVER (ORDER BY a0008.iter7_nat ASC, a0008.pos8_nat ASC, a0007.pos14_nat ASC) AS iter31_nat FROM (VALUES (100, 1), (200, 2)) AS a0007(item13_int, pos14_nat), t0001 AS a0008, t0000 AS a0009 WHERE a0008.iter7_nat = a0009.iter4_nat) SELECT 1 AS iter29_nat, ((a0006.item3_int + 42) + a0010.item13_int) AS item28_int FROM t0002 AS a0006, t0003 AS a0010 WHERE a0006.iter32_nat = a0010.iter31_nat ORDER BY a0006.iter32_nat ASC; $ mclient -l sql -d test foo.sql TypeException:user.s0_1[78]:'bat.append' undefined in: _116:any := bat.append(_115:bat[:oid,:bte], _110:sht, _89:bit) TypeException:user.s0_1[79]:'bat.reverse' undefined in: _117:any := bat.reverse(_116:any) TypeException:user.s0_1[80]:'bat.reverse' undefined in: _118:any := bat.reverse(_117:any) TypeException:user.s0_1[82]:'algebra.project' undefined in: _121:any := algebra.project(_118:any, _119:int) TypeException:user.s0_1[83]:'bat.reverse' undefined in: _122:any := bat.reverse(_121:any) TypeException:user.s0_1[85]:'algebra.join' undefined in: _124:any := algebra.join(_123:bat[:oid,:int], _122:any) TypeException:user.s0_1[87]:'algebra.markT' undefined in: _126:any := algebra.markT(_124:any, _125:oid) TypeException:user.s0_1[88]:'bat.reverse' undefined in: _127:any := bat.reverse(_126:any) TypeException:user.s0_1[89]:'algebra.leftjoin' undefined in: _128:any := algebra.leftjoin(_127:any, _109:bat[:oid,:int]) TypeException:user.s0_1[90]:'algebra.sortTail' undefined in: _129:any := algebra.sortTail(_128:any) TypeException:user.s0_1[92]:'algebra.leftjoin' undefined in: _131:any := algebra.leftjoin(_127:any, _130:bat[:oid,:bte]) TypeException:user.s0_1[93]:'group.refine' undefined in: _132:any := group.refine(_129:any, _131:any) TypeException:user.s0_1[94]:'bat.reverse' undefined in: _133:any := bat.reverse(_124:any) TypeException:user.s0_1[96]:'algebra.markT' undefined in: _136:any := algebra.markT(_133:any, _134:oid) TypeException:user.s0_1[97]:'bat.reverse' undefined in: _137:any := bat.reverse(_136:any) TypeException:user.s0_1[104]:'algebra.leftjoin' undefined in: _146:any := algebra.leftjoin(_137:any, _145:bat[:oid,:bte]) TypeException:user.s0_1[105]:'group.refine' undefined in: _147:any := group.refine(_132:any, _146:any) TypeException:user.s0_1[144]:'algebra.leftjoin' undefined in: _197:any := algebra.leftjoin(_137:any, _116:any) TypeException:user.s0_1[145]:'algebra.leftjoin' undefined in: _198:any := algebra.leftjoin(_196:bat[:oid,:oid], _197:any) SQLException:SQLengine:Program contains errors Reproducible: Always ### Steps to Reproduce: 1. Installed MonetDB from changeset 38323:decb8b46e1ec of the Oct2010 branch 2. executed SQL query ### Actual Results: (see error messages above) ### Expected Results: $ psql90 test < foo.sql iter29_nat | item28_int ------------+------------ 1 | 143 1 | 243 1 | 143 1 | 243 1 | 144 1 | 244 1 | 144 1 | 244 (8 rows) $ mserver5 --version MonetDB server v5.22.2 (64-bit), based on kernel v1.40.2 (64-bit oids) Not released Copyright (c) 1993-July 2008 CWI Copyright (c) August 2008-2010 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information Found 5.5GiB available memory, 2 available cpu cores Configured for prefix: /opt/monetdb Libraries: libpcre: 8.10 2010-06-25 (compiled with 8.10) openssl: OpenSSL 1.0.0a 1 Jun 2010 (compiled with OpenSSL 1.0.0a 1 Jun 2010) libxml2: 2.7.7 (compiled with 2.7.7) Compiled by: ulricha@u-081-c089.eap.uni-tuebingen.de (x86_64-apple-darwin10.5.0) Compilation: gcc -Wall -Wextra -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 Linking : /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld ## Comment 15254 Date: 2010-12-03 20:38:52 +0100 From: @njnes this problem is cause by the values(100)/(200). There are type casts missing. Test values_type_cast added. Fixed by a new implementation of rel_values. This also solves problems with too deep recursion of value lists. ## Comment 15255 Date: 2010-12-03 20:56:15 +0100 From: @njnes Changeset [3d33e0899e64](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3d33e0899e64) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=3d33e0899e64](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=3d33e0899e64) Changeset description: re-implemented 'values'. Solves bug #2735 (and bugs related to large value lists, which crashed because of too deep recursion). ## Comment 15271 Date: 2010-12-04 09:56:50 +0100 From: @grobian fixed on default, not Oct2010 ## Comment 15273 Date: 2010-12-04 11:56:18 +0100 From: @grobian backporting not trivial ## Comment 15616 Date: 2011-03-28 17:31:24 +0200 From: @sjoerdmullender The Mar2011 version has been released.
complex SQL query leads to multiple TypeExceptions
https://api.github.com/repos/MonetDB/MonetDB/issues/2735/comments
0
2020-11-30T11:12:46Z
2024-06-27T11:50:39Z
https://github.com/MonetDB/MonetDB/issues/2735
753,385,970
2,735
[ "MonetDB", "MonetDB" ]
Date: 2010-11-29 12:33:19 +0100 From: Alexander Ulrich &lt;<ulricha>&gt; To: MonetDB5 devs &lt;<bugs-monetdb5>&gt; Version: 11.3.3 (Apr2011-SP1) [obsolete] CC: alfred.nordman, mitja, @drstmane, @skinkie Last updated: 2011-07-29 10:52:37 +0200 ## Comment 15234 Date: 2010-11-29 12:33:19 +0100 From: Alexander Ulrich &lt;<ulricha>&gt; User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7 Build Identifier: Running the following query results in an MALException. It executes just fine on PostgreSQL 9.0. I'm not sure if this query counts as 'complex'. The original one was much larger, but I wasn't successful in reducing this even further. $ cat foo.sql WITH -- binding due to rownum operator t0000 (iter4_nat, iter5_nat) AS (SELECT a0000.iter4_nat, ROW_NUMBER () OVER () AS iter5_nat FROM (VALUES (1)) AS a0000(iter4_nat)), -- binding due to rownum operator t0001 (iter4_nat, iter5_nat, item1_int, item2_int, item3_int, iter23_nat) AS (SELECT a0001.iter4_nat, a0001.iter5_nat, a0002.col AS item1_int, a0002.row AS item2_int, a0002.val AS item3_int, ROW_NUMBER () OVER (ORDER BY a0001.iter5_nat ASC, a0002.row ASC, a0002.col ASC) AS iter23_nat FROM t0000 AS a0001, foo AS a0002), -- binding due to aggregate t0002 (iter11_nat, pos12_nat) AS (SELECT a0003.iter5_nat AS iter11_nat, MIN (a0003.iter23_nat) AS pos12_nat FROM t0001 AS a0003 GROUP BY a0003.iter5_nat, a0003.item2_int), -- binding due to rownum operator t0003 (iter11_nat, pos12_nat, iter4_nat, iter5_nat, item1_int, item2_int, item3_int, iter23_nat, pos25_bool, pos26_nat) AS (SELECT a0004.iter11_nat, a0004.pos12_nat, a0005.iter4_nat, a0005.iter5_nat, a0005.item1_int, a0005.item2_int, a0005.item3_int, a0005.iter23_nat, CASE WHEN a0005.iter23_nat = a0004.pos12_nat THEN 1 ELSE 0 END AS pos25_bool, ROW_NUMBER () OVER (PARTITION BY a0004.iter11_nat ORDER BY a0005.iter23_nat ASC) AS pos26_nat FROM t0002 AS a0004, t0001 AS a0005 WHERE a0004.iter11_nat = a0005.iter5_nat AND a0005.iter23_nat = a0004.pos12_nat) SELECT 1 AS iter20_nat, a0006.item2_int AS item8_int FROM t0003 AS a0006 WHERE a0006.pos26_nat = 2 ORDER BY a0006.iter11_nat ASC, a0006.pos26_nat ASC; $ mclient -l sql -d test foo.sql MALException:mkey.bulk_rotate_xor_hash:operation failed Operands not synced on head The table foo was created as follows: $ cat create.sql CREATE TABLE foo(row int not null, col int not null, val int not null, primary key (row, col)); INSERT INTO foo(row, col, val) VALUES (1,1,1), (1,2,2), (2,1,3), (2,2,4); $ mclient -l sql -d test create.sql operation successful 4 affected rows Reproducible: Always ### Steps to Reproduce: 1. Installed MonetDB from changeset 38323:decb8b46e1ec of the Oct2010 branch 2. created the table foo 3. executed SQL query ### Actual Results: $ mclient -l sql -d test foo.sql MALException:mkey.bulk_rotate_xor_hash:operation failed Operands not synced on head ### Expected Results: $ psql90 test < foo.sql iter20_nat | item8_int ------------+----------- 1 | 2 (1 row) $ mserver5 --version MonetDB server v5.22.2 (64-bit), based on kernel v1.40.2 (64-bit oids) Not released Copyright (c) 1993-July 2008 CWI Copyright (c) August 2008-2010 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information Found 5.5GiB available memory, 2 available cpu cores Configured for prefix: /opt/monetdb Libraries: libpcre: 8.10 2010-06-25 (compiled with 8.10) openssl: OpenSSL 1.0.0a 1 Jun 2010 (compiled with OpenSSL 1.0.0a 1 Jun 2010) libxml2: 2.7.7 (compiled with 2.7.7) Compiled by: ulricha@u-081-c089.eap.uni-tuebingen.de (x86_64-apple-darwin10.5.0) Compilation: gcc -Wall -Wextra -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 Linking : /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld ## Comment 15236 Date: 2010-11-30 09:30:29 +0100 From: Alexander Ulrich &lt;<ulricha>&gt; One additional information: when the table foo is replaced by a literal table in the SQL statement, the query executes and delivers the expected result. ## Comment 15291 Date: 2010-12-05 20:49:58 +0100 From: @skinkie Also happens on not so complex query: insert into anbikvk select id, kvks from myanbi, kvk_suggest where myanbi.naam = upper(bedrijfsnaam) and vestigingsplaats = upper(plaats) and kvks not in (select kvks from anbikvk); ## Comment 15671 Date: 2011-03-28 17:35:55 +0200 From: @sjoerdmullender The Mar2011 version has been released. ## Comment 15739 Date: 2011-04-21 17:58:08 +0200 From: Alfred Nordman &lt;<alfred.nordman>&gt; Another way to reproduce this exception on Mar2011 build is: CREATE TABLE t1 (a INT); INSERT INTO t1 VALUES (1); SELECT * FROM (SELECT a, 1 AS n FROM t1 UNION SELECT a, 2 AS n FROM t1) AS abc INNER JOIN (SELECT a, 1 AS n FROM t1 UNION SELECT a, 2 AS n FROM t1) AS cba ON abc.a = cba.a AND abc.n = cba.n; Regards, Alfred ## Comment 15889 Date: 2011-07-05 11:39:21 +0200 From: @sjoerdmullender Changeset [977f36bdf105](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=977f36bdf105) made by Sjoerd Mullender <sjoerd@acm.org> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=977f36bdf105](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=977f36bdf105) Changeset description: Added test for bug #2734. Test fails as described in the report. I hope I got the expected output right. ## Comment 15904 Date: 2011-07-07 15:28:59 +0200 From: @drstmane Changeset [dba439fbebd8](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=dba439fbebd8) made by Stefan Manegold <Stefan.Manegold@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=dba439fbebd8](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=dba439fbebd8) Changeset description: fixed bug #2734: Like with BATjoin(), also with BATleftjoin() run (simple) BATpropcheck(b, BATPROPS_QUICK) also on result head, not only on result tail. Extended test with larger example from bug report. Fixed stable output. ## Comment 15995 Date: 2011-07-29 10:52:37 +0200 From: @sjoerdmullender The Apr2011-SP2 bugfix release is out.
MALException:mkey.bulk_rotate_xor_hash on complex SQL query
https://api.github.com/repos/MonetDB/MonetDB/issues/2734/comments
0
2020-11-30T11:12:41Z
2024-06-27T11:50:37Z
https://github.com/MonetDB/MonetDB/issues/2734
753,385,919
2,734
[ "MonetDB", "MonetDB" ]
Date: 2010-11-26 12:47:01 +0100 From: @swingbit To: MonetDB5 devs &lt;<bugs-monetdb5>&gt; Version: 5.22.1 (Oct2010) [obsolete] CC: @mlkersten Last updated: 2011-03-28 17:31:40 +0200 ## Comment 15228 Date: 2010-11-26 12:47:01 +0100 From: @swingbit User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.208 Safari/534.10 Build Identifier: It seems the MAL parser and the MAL interpreter don't quite agree on the result of 1 + 1 + 1. Reproducible: Always ### Steps to Reproduce: 1. v := 1 + 1 + 1; 2. io.print(v); 3. ### Actual Results: [ 2 ] ### Expected Results: Either: [3] Or: Syntax error $ mserver5 --version MonetDB server v5.22.1 (64-bit), based on kernel v1.40.1 (64-bit oids) Not released Copyright (c) 1993-July 2008 CWI Copyright (c) August 2008-2010 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information Found 2.0GiB available memory, 4 available cpu cores Configured for prefix: /export/scratch0/roberto/svn.spinque.com/lhm_code/IndexCenter/MonetDB/MonetDB.Spinque_Oct2010/MonetDB Libraries: libpcre: 7.8 2008-09-05 (compiled with 7.8) openssl: OpenSSL 1.0.0a 1 Jun 2010 (compiled with OpenSSL 1.0.0a-fips 1 Jun 2010) libxml2: 2.7.6 (compiled with 2.7.6) Compiled by: roberto@skadi.ins.cwi.nl (x86_64-unknown-linux-gnu) Compilation: gcc -Wall -Wextra -fno-strict-aliasing -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 Linking : /usr/bin/ld -IPA -m elf_x86_64 ## Comment 15229 Date: 2010-11-26 21:05:47 +0100 From: @mlkersten Fixed by introducing better warnings in the MAL parser ## Comment 15649 Date: 2011-03-28 17:31:40 +0200 From: @sjoerdmullender The Mar2011 version has been released.
MAL parser accepts 1 + 1 + 1, MAL interpreter only computes 1 + 1
https://api.github.com/repos/MonetDB/MonetDB/issues/2733/comments
0
2020-11-30T11:12:37Z
2024-06-27T11:50:36Z
https://github.com/MonetDB/MonetDB/issues/2733
753,385,884
2,733
[ "MonetDB", "MonetDB" ]
Date: 2010-11-25 00:14:47 +0100 From: Jan Rittinger &lt;<jan.rittinger>&gt; To: MonetDB5 devs &lt;<bugs-monetdb5>&gt; Version: 11.3.7 (Apr2011-SP2) [obsolete] Last updated: 2011-08-05 14:40:32 +0200 ## Comment 15227 Date: 2010-11-25 00:14:47 +0100 From: Jan Rittinger &lt;<jan.rittinger>&gt; User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-us) AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5 Build Identifier: Range predicates deliver too much results: $ cat bug.sql with t(p,s) as (select pre, size from (VALUES (1,4),(2,1),(3,0),(4,1),(5,0)) as t(pre,size)) select t1.p as p1, t2.p as p2, t3.p as p3 from t as t1, t as t2, t as t3 where t1.p = 1 and t2.p between (t1.p + 1) and (t1.p + t1.s) and t3.p between (t2.p + 1) and (t2.p + t2.s); $ db2 -tf bug.sql P1 P2 P3 ----------- ----------- ----------- 1 2 3 1 4 5 2 record(s) selected. $ mclient bug.sql +------+------+------+ | p1 | p2 | p3 | +======+======+======+ | 1 | 2 | 1 | | 1 | 3 | 1 | | 1 | 4 | 1 | | 1 | 5 | 1 | | 1 | 2 | 2 | | 1 | 3 | 2 | | 1 | 4 | 2 | | 1 | 5 | 2 | | 1 | 2 | 3 | | 1 | 3 | 3 | | 1 | 4 | 3 | | 1 | 5 | 3 | | 1 | 2 | 4 | | 1 | 3 | 4 | | 1 | 4 | 4 | | 1 | 5 | 4 | | 1 | 2 | 5 | | 1 | 3 | 5 | | 1 | 4 | 5 | | 1 | 5 | 5 | +------+------+------+ 20 tuples Reproducible: Always ### Steps to Reproduce: see above ### Actual Results: see: mclient bug.sql (above) ### Expected Results: see: db2 -tf bug.sql (above) ## Comment 15403 Date: 2011-01-24 13:47:39 +0100 From: @grobian Changeset [80bdd5051b1b](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=80bdd5051b1b) made by Fabian Groffen <fabian@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=80bdd5051b1b](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=80bdd5051b1b) Changeset description: Add script for bug #2732 ## Comment 15669 Date: 2011-03-28 17:35:55 +0200 From: @sjoerdmullender The Mar2011 version has been released. ## Comment 16025 Date: 2011-07-29 10:59:38 +0200 From: @sjoerdmullender Apr2011-SP2 has been released. ## Comment 16075 Date: 2011-08-05 14:40:32 +0200 From: @sjoerdmullender This bug seems to already have been fixed in the Apr2011 branch before the Apr2011 release.
Evaluation of range predicates with with query incorrect.
https://api.github.com/repos/MonetDB/MonetDB/issues/2732/comments
0
2020-11-30T11:12:35Z
2024-06-27T11:50:36Z
https://github.com/MonetDB/MonetDB/issues/2732
753,385,854
2,732
[ "MonetDB", "MonetDB" ]
Date: 2010-11-22 23:31:53 +0100 From: @yzchang To: SQL devs &lt;<bugs-sql>&gt; Version: 2.40.1 (Oct2010) [obsolete] CC: @njnes, @yzchang Last updated: 2010-11-24 19:33:56 +0100 ## Comment 15216 Date: 2010-11-22 23:31:53 +0100 From: @yzchang User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 Build Identifier: this is triggered by the previous bug #2730 (http://bugs.monetdb.org/show_bug.cgi?id=2730). after "select * from seq1" has crashed my mserver5, I restarted mserver5 to see what would happen now: $ mclient -lsql -t Welcome to mclient, the MonetDB/SQL interactive terminal (unreleased) Database: MonetDB v5.22.2, 'demo' Type \q to quit, \? for a list of available commands auto commit mode: on sql>select * from seq1; SELECT: no such table 'seq1' Timer 0.409 msec sql>create sequence seq1 as integer start with 0 increment by 1 maxvalue 10; CREATE SEQUENCE: name 'seq1' already in use Timer 0.264 msec sql> So, 'seq1' is not recognized (as a table), but it seems that it has been created. Reproducible: Always ## Comment 15217 Date: 2010-11-23 13:12:53 +0100 From: @grobian A sequence is not a table, so this makes sense to me. try SELECT NEXT VALUE FOR seq1; ## Comment 15218 Date: 2010-11-23 17:10:14 +0100 From: @yzchang According to PostgreSQL (http://www.postgresql.org/docs/9.0/static/sql-createsequence.html): "Although you cannot update a sequence directly, you can use a query like: SELECT * FROM name;" Is this PostgreSQL extension or part of SQL standard? Could you please have a look at your big SQL book? Thanks! ## Comment 15219 Date: 2010-11-23 18:26:32 +0100 From: @grobian Sequences are only in SQL 2003, so I can't check.
sequence created but not recognized
https://api.github.com/repos/MonetDB/MonetDB/issues/2731/comments
0
2020-11-30T11:12:31Z
2024-06-28T13:19:57Z
https://github.com/MonetDB/MonetDB/issues/2731
753,385,813
2,731
[ "MonetDB", "MonetDB" ]
Date: 2010-11-22 23:22:49 +0100 From: @yzchang To: SQL devs &lt;<bugs-sql>&gt; Version: 2.40.1 (Oct2010) [obsolete] CC: @njnes Last updated: 2011-03-28 17:31:37 +0200 ## Comment 15215 Date: 2010-11-22 23:22:49 +0100 From: @yzchang User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 Build Identifier: start an mserver session and create a sequence, say 'seq1', and in the same mserver5 session execute the query "select * from seq1" instantly crashes mserver5. The following are output of my console: ===== client terminal ===== $ mclient -lsql -t Welcome to mclient, the MonetDB/SQL interactive terminal (unreleased) Database: MonetDB v5.22.2, 'demo' Type \q to quit, \? for a list of available commands auto commit mode: on sql>create sequence seq1 as integer start with 0 increment by 1 maxvalue 10; operation successful Timer 4.418 msec sql>select * from seq1; MAPI = monetdb@localhost:50000 ACTION= read_line QUERY = select * from seq1; ERROR = !Connection terminated Timer 4.453 msec ===== client terminal ===== $ mserver5 MonetDB server v5.22.2, based on kernel v1.40.2 Not released Serving database 'demo', using 4 threads Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs dynamically linked Found 7.750 GiB available main-memory. Copyright (c) 1993-July 2008 CWI. Copyright (c) August 2008-2010 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information warning: please don't forget to set your vault key! (see /export/scratch0/zhang/monet-install/candidate/debug/etc/monetdb5.conf) Listening for connection requests on mapi:monetdb://127.0.0.1:50000/ MonetDB/SQL module v2.40.2 loaded MonetDB/GIS module v0.20.2 loaded >Segmentation fault Reproducible: Always ## Comment 15225 Date: 2010-11-24 20:59:03 +0100 From: @njnes Changeset [decb8b46e1ec](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=decb8b46e1ec) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=decb8b46e1ec](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=decb8b46e1ec) Changeset description: fix bug #2730 sequences should only be added to the stack with multi statements (ie serial's/alters) ## Comment 15226 Date: 2010-11-24 21:03:04 +0100 From: @njnes Changeset [25384da1c126](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=25384da1c126) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=25384da1c126](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=25384da1c126) Changeset description: fix bug #2730 ## Comment 15642 Date: 2011-03-28 17:31:37 +0200 From: @sjoerdmullender The Mar2011 version has been released.
select * from sequence crashes mserver5
https://api.github.com/repos/MonetDB/MonetDB/issues/2730/comments
0
2020-11-30T11:12:29Z
2024-06-27T11:50:33Z
https://github.com/MonetDB/MonetDB/issues/2730
753,385,782
2,730
[ "MonetDB", "MonetDB" ]
Date: 2010-11-22 17:24:21 +0100 From: @skinkie To: SQL devs &lt;<bugs-sql>&gt; Version: 2.40.1 (Oct2010) [obsolete] CC: @njnes Last updated: 2011-03-28 17:31:37 +0200 ## Comment 15214 Date: 2010-11-22 17:24:21 +0100 From: @skinkie User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/7.0.544.0 Safari/534.10 Build Identifier: sql>\d vve CREATE TABLE "sys"."vve" ( "kd" INTEGER, "naam1" VARCHAR(255), "naam2" VARCHAR(255), "naam3" VARCHAR(255), "straatnaam" VARCHAR(255), "huisnummer" INTEGER, "toevoeging" VARCHAR(16), "postcode" CHAR(6), "plaats" VARCHAR(32), "appartementen" INTEGER, "zeter" VARCHAR(32) ); sql>\d kvk CREATE TABLE "sys"."kvk" ( "kvk" BIGINT, "bedrijfsnaam" VARCHAR(256), "kvks" INTEGER, "sub" INTEGER, "adres" VARCHAR(256), "postcode" VARCHAR(10), "plaats" VARCHAR(32), "type" VARCHAR(14), "website" VARCHAR(128) ); select count(*) from vve, kvk where toevoeging is null and vve.huisnummer is not null and vve.postcode = kvk.postcode and substring(kvk.adres, length(kvk.adres)-length(huisnummer)+1) = vve.huisnummer; mserver5: ../../../src/server/rel_bin.mx:537: exp_bin: Assertion `0' failed. select substring('hello 10', length('hello 10')-length(10)+1) = 10; Does work. Reproducible: Always MonetDB server v5.22.2 (64-bit), based on kernel v1.40.2 (64-bit oids) Not released Copyright (c) 1993-July 2008 CWI Copyright (c) August 2008-2010 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information Found 3.9GiB available memory, 2 available cpu cores Configured for prefix: /opt/monetdb-testing3 Libraries: libpcre: 8.02 2010-03-19 (compiled with 8.02) openssl: OpenSSL 1.0.0a 1 Jun 2010 (compiled with OpenSSL 1.0.0a 1 Jun 2010) libxml2: 2.7.7 (compiled with 2.7.7) Compiled by: skinkie@openkvk (x86_64-unknown-linux-gnu) Compilation: gcc -Wall -Wextra -fno-strict-aliasing -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 Linking : /usr/x86_64-pc-linux-gnu/bin/ld -IPA -m elf_x86_64 ## Comment 15279 Date: 2010-12-04 23:07:24 +0100 From: @njnes fixed (complex join expression) by adding a extra select. ## Comment 15280 Date: 2010-12-05 10:30:14 +0100 From: @njnes Changeset [bd75c8aecaab](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=bd75c8aecaab) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=bd75c8aecaab](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=bd75c8aecaab) Changeset description: fixed bug #2729 (complex expressions with different relations being used on one of the sides of the compare expression). We push in an extra select. ## Comment 15281 Date: 2010-12-05 10:30:22 +0100 From: @njnes Changeset [ef68ce68797a](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ef68ce68797a) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=ef68ce68797a](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=ef68ce68797a) Changeset description: fixed bug #2729 ## Comment 15282 Date: 2010-12-05 10:43:37 +0100 From: @grobian bah, overlooked branch. Fix was done on Oct2010, hence was present there and will be in SP-1 (?). ## Comment 15641 Date: 2011-03-28 17:31:37 +0200 From: @sjoerdmullender The Mar2011 version has been released.
mserver5: ../../../src/server/rel_bin.mx:537: exp_bin: Assertion `0' failed.
https://api.github.com/repos/MonetDB/MonetDB/issues/2729/comments
0
2020-11-30T11:12:26Z
2024-06-27T11:50:32Z
https://github.com/MonetDB/MonetDB/issues/2729
753,385,739
2,729
[ "MonetDB", "MonetDB" ]
Date: 2010-11-22 16:43:13 +0100 From: @skinkie To: GDK devs &lt;<bugs-common>&gt; Version: -- development CC: y.kargin Last updated: 2012-11-27 15:19:12 +0100 ## Comment 15213 Date: 2010-11-22 16:43:13 +0100 From: @skinkie User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/7.0.544.0 Safari/534.10 Build Identifier: sql>\d kvk CREATE TABLE "sys"."kvk" ( "kvk" BIGINT, "bedrijfsnaam" VARCHAR(256), "kvks" INTEGER, "sub" INTEGER, "adres" VARCHAR(256), "postcode" VARCHAR(10), "plaats" VARCHAR(32), "type" VARCHAR(14), "website" VARCHAR(128) ); sql>\d vve CREATE TABLE "sys"."vve" ( "kd" INTEGER, "naam1" VARCHAR(255), "naam2" VARCHAR(255), "naam3" VARCHAR(255), "straatnaam" VARCHAR(255), "huisnummer" INTEGER, "toevoeging" VARCHAR(16), "postcode" CHAR(6), "plaats" VARCHAR(32), "appartementen" INTEGER, "zeter" VARCHAR(32) ); sql>select count(*) from vve, kvk where toevoeging is null and vve.huisnummer is not null and vve.postcode = kvk.postcode and kvk.adres like ' %'||vve.huisnummer; MALException:algebra.find:GDK reported error.can not find element sql>select count(*) from vve, kvk where toevoeging is null and vve.huisnummer is not null and vve.postcode = kvk.postcode; +------+ | L5 | +======+ | 9803 | +------+ 1 tuple (75.236ms) Most interesting: sql>select count(*) from vve, kvk where kvk.adres like ' %'||vve.huisnummer; ...seems to work as well but just takes ages. Reproducible: Always MonetDB server v5.22.2 (64-bit), based on kernel v1.40.2 (64-bit oids) Not released Copyright (c) 1993-July 2008 CWI Copyright (c) August 2008-2010 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information Found 3.9GiB available memory, 2 available cpu cores Configured for prefix: /opt/monetdb-testing3 Libraries: libpcre: 8.02 2010-03-19 (compiled with 8.02) openssl: OpenSSL 1.0.0a 1 Jun 2010 (compiled with OpenSSL 1.0.0a 1 Jun 2010) libxml2: 2.7.7 (compiled with 2.7.7) Compiled by: skinkie@openkvk (x86_64-unknown-linux-gnu) Compilation: gcc -Wall -Wextra -fno-strict-aliasing -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 Linking : /usr/x86_64-pc-linux-gnu/bin/ld -IPA -m elf_x86_64 ## Comment 16184 Date: 2011-09-06 16:29:51 +0200 From: @sjoerdmullender I cannot reproduce the problem in the Apr2011 or the Aug2011 branches. That could mean two things: - the bug doesn't occur anymore; or - I need data to reproduce the bug. Can you check whether the bug is still there and, if so, provide data? ## Comment 16200 Date: 2011-09-08 14:58:58 +0200 From: @skinkie (In reply to comment 1) > Can you check whether the bug is still there and, if so, provide data? It still exists in Aug2011, using the above table definitions; insert into vve values (1, 'test', 'test2', 'test3', 'Oude Trambaan', 7, null, '2265CA', 'Leidschendam', 1, 'ergens'); insert into kvk values (0, 'test', 0, 0, 'Oude Trambaan 7', '2265CA', 'Leidschendam', 'iets', 'geen'); (one row still works, two break) insert into kvk values (1, 'test', 1, 0, 'Oude Trambaan 8', '2265CA', 'Leidschendam', 'iets', 'geen'); (the null value seems to be critial here, otherwise it will return an empty set) select count(*) from vve, kvk where toevoeging is null and vve.huisnummer is not null and vve.postcode = kvk.postcode and kvk.adres like '%'||vve.huisnummer; MALException:algebra.find:GDK reported error.can not find element ## Comment 18110 Date: 2012-11-27 15:19:12 +0100 From: Yagiz &lt;<y.kargin>&gt; Appears to work with both default and Oct2012. ## Comment 18201 Date: 2012-11-28 13:45:37 +0100 From: Yagiz &lt;<y.kargin>&gt; Changeset [fcaf0d424a47](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=fcaf0d424a47) made by Yagiz Kargin <y.kargin@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=fcaf0d424a47](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=fcaf0d424a47) Changeset description: Bug #2728 test. Runs successfully, bug not there anymore.
GDK reported error.can not find element
https://api.github.com/repos/MonetDB/MonetDB/issues/2728/comments
0
2020-11-30T11:12:22Z
2024-06-28T13:19:56Z
https://github.com/MonetDB/MonetDB/issues/2728
753,385,698
2,728
[ "MonetDB", "MonetDB" ]
Date: 2010-11-19 12:58:38 +0100 From: @grobian To: clients devs &lt;<bugs-clients>&gt; Version: -- development Last updated: 2011-03-28 17:31:34 +0200 ## Comment 15212 Date: 2010-11-19 12:58:38 +0100 From: @grobian Currently, an SQL database dump will use COPY INTO syntax. This syntax is fast, but incompatible with loaders such as Java-based Ant sql task, because interfaces such as JDBC do not support the stream input switch necessary to perform the load of the COPY INTO. It would therefore be nice when the dump could also be made using INSERT INTO statements, such that those tools can just process the dump. Additionally, this may ease migration of data to other databases. ## Comment 15309 Date: 2010-12-10 13:52:55 +0100 From: @grobian Changeset [3375a722bb1e](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3375a722bb1e) made by Fabian Groffen <fabian@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=3375a722bb1e](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=3375a722bb1e) Changeset description: implement bug #2727: allow using INSERT INTO statements in dump INSERT INTO statements are more portable, and a necessity when using loaders that have to adhere to a query & answer protocol, such as most data source abstractions (most well known and standardised ones: ODBC and JDBC). ## Comment 15310 Date: 2010-12-10 13:53:23 +0100 From: @grobian Implemented. ## Comment 15635 Date: 2011-03-28 17:31:34 +0200 From: @sjoerdmullender The Mar2011 version has been released.
allow dumping database with INSERT INTO statements
https://api.github.com/repos/MonetDB/MonetDB/issues/2727/comments
0
2020-11-30T11:12:20Z
2024-06-27T11:50:31Z
https://github.com/MonetDB/MonetDB/issues/2727
753,385,677
2,727
[ "MonetDB", "MonetDB" ]
Date: 2010-11-19 11:23:17 +0100 From: Alexander Ulrich &lt;<ulricha>&gt; To: SQL devs &lt;<bugs-sql>&gt; Version: 2.40.1 (Oct2010) [obsolete] CC: @njnes Last updated: 2011-03-28 17:31:42 +0200 ## Comment 15211 Date: 2010-11-19 11:23:17 +0100 From: Alexander Ulrich &lt;<ulricha>&gt; User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7 Build Identifier: The following SQL query (which executes fine on e.g. Postgres) fails with an unknown column: $ cat foo2.sql SELECT t0.a FROM (VALUES (1), (3)) AS t0(a), (VALUES (1), (3)) AS t1(b) WHERE a = b; $ mclient -l sql -d test foo2.sql SELECT: no such column 't0.a' The same statement, slightly modified by removing the 't0.' part in the SELECT clause results in an mserver5 process which consumes lots of CPU and is not finished after 5 minutes. The mclient process on the command line does not return. u-080-c155:git-links ulricha$ cat foo1.sql SELECT a FROM (VALUES (1), (3)) AS t0(a), (VALUES (1), (3)) AS t1(b) WHERE a = b; $ mclient -l sql -d test foo1.sql [hanging, process does not finish in reasonable time] Reproducible: Always ### Steps to Reproduce: 1. MonetDB installed from the Oct2010 Super Source Tarball via the monetdb-install.sh script (http://dev.monetdb.org/downloads/sources/Oct2010/MonetDB-Oct2010-SuperBall.tar.bz2) 2. started merovingian as unpriviledged user 3. created and started database 'test' with one table 4. executed the above mentioned SQL fragments via mclient ### Actual Results: False error 'SELECT: no such column 't0.a'' or a non-terminating mclient/mserver5. ### Expected Results: Something like: $ psql90 test < foo2.sql a --- 1 3 ## Comment 15221 Date: 2010-11-24 18:59:30 +0100 From: @njnes Changeset [6e3a607bc001](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6e3a607bc001) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=6e3a607bc001](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=6e3a607bc001) Changeset description: fixes for bug #2726 (join /union with single values) Added test for bug #2726 ## Comment 15222 Date: 2010-11-24 19:06:40 +0100 From: @njnes fixed, simple value projections are now processed earlier ## Comment 15224 Date: 2010-11-24 20:00:07 +0100 From: @sjoerdmullender There is actually a reason why we have "NEXTRELEASE". I use it when preparing a release. ## Comment 15655 Date: 2011-03-28 17:31:42 +0200 From: @sjoerdmullender The Mar2011 version has been released.
join on two literal tables leads to
https://api.github.com/repos/MonetDB/MonetDB/issues/2726/comments
0
2020-11-30T11:12:17Z
2024-06-27T11:50:30Z
https://github.com/MonetDB/MonetDB/issues/2726
753,385,639
2,726
[ "MonetDB", "MonetDB" ]
Date: 2010-11-19 10:43:00 +0100 From: @grobian To: clients devs &lt;<bugs-clients>&gt; Version: 1.40.1 (Oct2010) [obsolete] Last updated: 2011-03-28 17:31:43 +0200 ## Comment 15209 Date: 2010-11-19 10:43:00 +0100 From: @grobian % mclient -dvotest Abort A UNIX-socket connection is being made (the default) to merovingian. The same happens when a direct UNIX-socket connection is made to the mserver5 process. The crashlog contains the following: Process: mclient [66036] Path: /Volumes/Scratch/fabian/monetdb/Oct2010/program-Power_Macintosh/bin/mclient Identifier: mclient Version: ??? (???) Code Type: PPC (Native) Parent Process: tcsh [3309] Date/Time: 2010-11-19 10:37:34.901 +0100 OS Version: Mac OS X 10.5.8 (9L31a) Report Version: 6 Anonymous UUID: 7E67536F-323F-4121-A6C7-FCC8A4BC882D Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Crashed Thread: 0 Thread 0 Crashed: 0 libSystem.B.dylib 0x97195b50 __kill + 12 1 libSystem.B.dylib 0x97230b98 __abort + 80 2 libSystem.B.dylib 0x971ee2d8 __chk_fail + 116 3 libSystem.B.dylib 0x971cd020 __strncat_chk + 84 4 libMapi.1.dylib 0x000247f4 __inline_strncat_chk + 52 (_string.h:134) 5 libMapi.1.dylib 0x000228e0 mapi_start_talking + 1668 (Mapi.mx:2590) 6 libMapi.1.dylib 0x000245cc mapi_start_talking + 9072 (Mapi.mx:2968) 7 libMapi.1.dylib 0x000248a0 mapi_reconnect + 56 (Mapi.mx:3001) 8 libMapi.1.dylib 0x00024938 mapi_connect + 112 (Mapi.mx:3014) 9 mclient 0x0000c428 main + 5328 (mclient.c:2644) 10 mclient 0x00001ec8 start + 64 11 ??? 0x00000ffc 0 + 4092 ## Comment 15210 Date: 2010-11-19 11:06:53 +0100 From: @grobian Changeset [4930702c69ee](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=4930702c69ee) made by Fabian Groffen <fabian@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=4930702c69ee](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=4930702c69ee) Changeset description: Use strcpy instead of strncat to work around what seemingly is a bug in Darwin's libc implementation of strncat. Solves bug #2725 ## Comment 15657 Date: 2011-03-28 17:31:43 +0200 From: @sjoerdmullender The Mar2011 version has been released.
mclient/mapilib aborts during connect
https://api.github.com/repos/MonetDB/MonetDB/issues/2725/comments
0
2020-11-30T11:12:14Z
2024-06-27T11:50:29Z
https://github.com/MonetDB/MonetDB/issues/2725
753,385,606
2,725
[ "MonetDB", "MonetDB" ]
Date: 2010-11-18 12:38:52 +0100 From: @skinkie To: GDK devs &lt;<bugs-common>&gt; Version: 11.9.7 (Apr2012-SP2) [obsolete] Last updated: 2012-07-17 14:34:06 +0200 ## Comment 15208 Date: 2010-11-18 12:38:52 +0100 From: @skinkie User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.36 Safari/534.7 Build Identifier: Database got an assertion: checking credentials for dbslayer credentials fine finding a client initing client initclientprg thread running mserver5: ../../../src/gdk/gdk_utils.mx:1161: GDKfree_: Assertion `size != 0' failed. Maybe already fixed, but don't really know how to reproduce it yet. Reproducible: Couldn't Reproduce ## Comment 15507 Date: 2011-03-05 16:00:05 +0100 From: @skinkie >mserver5: gdk_utils.mx:1236: GDKfree_: Assertion `size != 0' failed. Still observing this when trying to copy into a large file, and the server has been running for more than a week. ## Comment 16022 Date: 2011-07-29 10:58:44 +0200 From: @sjoerdmullender Apr2011-SP2 has been released. ## Comment 16261 Date: 2011-09-16 15:08:31 +0200 From: @sjoerdmullender The Aug2011 version has been released. ## Comment 17486 Date: 2012-07-17 14:34:06 +0200 From: @grobian please report if this is still a problem with Jul2012
GDKfree_: Assertion `size != 0' failed.
https://api.github.com/repos/MonetDB/MonetDB/issues/2724/comments
0
2020-11-30T11:12:11Z
2024-06-27T11:50:28Z
https://github.com/MonetDB/MonetDB/issues/2724
753,385,560
2,724
[ "MonetDB", "MonetDB" ]
Date: 2010-11-15 22:41:13 +0100 From: Lieuwe &lt;<lieuwer>&gt; To: SQL devs &lt;<bugs-sql>&gt; Version: 2.38.5 (Jun2010-SP2) [obsolete] CC: @sjoerdmullender Last updated: 2010-12-20 09:14:34 +0100 ## Comment 15199 Date: 2010-11-15 22:41:13 +0100 From: Lieuwe &lt;<lieuwer>&gt; User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Ubuntu/10.04 (lucid) Firefox/3.6.12 Build Identifier: After an attempted and failed update of the monetdb5-sql package, the sql front-end is no longer working properly. The error returned states: "E: /var/cache/apt/archives/monetdb5-sql_2.40.1-20101110_i386.deb: subprocess new pre-removal script returned error exit status 1" I am also no longer able to uninstall or re-install the package. I can still run merovingian, but when running some simple python code that connect to a db I get the following error: Traceback (most recent call last): File "tryMSEED.py", line 18, in <module> hostname='localhost', database='seedtest') File "/usr/lib/python2.6/monetdb/sql/__init__.py", line 27, in connect return Connection(*args, **kwargs) File "/usr/lib/python2.6/monetdb/sql/connections.py", line 52, in __init__ password=password, database=database, language="sql") File "/usr/lib/python2.6/monetdb/mapi2.py", line 80, in connect self.__login() File "/usr/lib/python2.6/monetdb/mapi2.py", line 87, in __login challenge = self.__getblock() File "/usr/lib/python2.6/monetdb/mapi2.py", line 226, in __getblock len(flag)) monetdb.monetdb_exceptions.OperationalError: server returned 0 bytes, I need 2 Reproducible: Always ### Steps to Reproduce: 1. I didn't pay enough attention during the first update, but now it happens every time 2. 3. ### Actual Results: Failure to remove package (for update or otherwise) and current package is not functioning ### Expected Results: Update the package ## Comment 15200 Date: 2010-11-16 12:55:50 +0100 From: @sjoerdmullender This is indeed a bug, but you can work around it: First edit the file /etc/default/monetdb5-sql and change the value for STARTUP to "yes". Then start the monetdb5-sql service by running sudo /etc/init.d/monetdb5-sql start After this, redo the upgrade. It should now correctly stop the service (which is where it went wrong the first time), upgrade the packages, and restart the service. Finally, you can undo the first two changes by editing the file again and by running sudo /etc/init.d/monetdb5-sql stop ## Comment 15201 Date: 2010-11-16 13:01:26 +0100 From: @sjoerdmullender Changeset [6585656d5f30](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6585656d5f30) made by Sjoerd Mullender <sjoerd@acm.org> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=6585656d5f30](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=6585656d5f30) Changeset description: Don't fail when trying to stop an already stopped daemon. This should fix bug #2723. ## Comment 15202 Date: 2010-11-16 13:03:05 +0100 From: @sjoerdmullender The real fix is to not fail an upgrade when the monetdb5-sql daemon isn't running. This is now implemented and will be in the next release. ## Comment 15203 Date: 2010-11-16 17:12:51 +0100 From: Lieuwe &lt;<lieuwer>&gt; I'm not certain whether this is a new bug, or simply a result from my initial failed update, but somehow the workaround is not working out for me. I had already changed the setting before and after trying to run the given command I get the following feedback: Starting MonetDB SQL server: unable to open .merovingian_pass: Permission denied lieuwe@lieuwe-laptop:~$ fatal startup condition encountered, aborting startup Merovingian 1.3 stopped I figured running merovingian itself might help and after doing so I get the feedback: Starting MonetDB SQL server: /usr/bin/merovingian already running. Strangely enough, when I now try to stop monetdb-sql I get the following feedback: Stopping MonetDB SQL server: No /usr/bin/merovingian found running; none killed. I guess that this is the reason why my update won't work. Somehow it is running, but somehow it isn't at the same time? ## Comment 15204 Date: 2010-11-16 17:34:10 +0100 From: @sjoerdmullender Sounds like a permissions problem. Did you run merovingian under your own ID before? By starting the server using the script in /etc/init.d, merovingian is started with the ID of user monetdb, group monetdb. If you had run it before with your own ID, the files /var/MonetDB5/dbfarm/.merovingian* are probably owned by you, so the server doesn't have sufficient permissions. The easiest solution is probably to run merovingian as a system daemon (i.e. keep the STARTUP=yes in /etc/default/monetdb5-sql) and change ownership of everything under /var/MonetDB5: sudo chown -R monetdb:monetdb /var/MonetDB5 . Alternatively: If the goal is just to finish the upgrade, you can temporarily move the /var/MonetDB5 directory to the side (after stopping merovingian) and create one using sudo mkdir /var/MonetDB5 sudo chown monetdb:monetdb /var/MonetDB5 sudo chmod 770 /var/MonetDB5 I'm not sure whether you also need a dbfarm directory underneath. Then do the upgrade per my earlier instructions. Afterwards, you can stop merovingian, remove /var/MonetDB5 and move the old directory back. ## Comment 15205 Date: 2010-11-17 10:09:21 +0100 From: @sjoerdmullender An easier workaround is this: Edit the file /etc/init.d/monetdb5-sql, and change the line start-stop-daemon --stop --pidfile $PIDFILE --exec $DAEMON to read running && start-stop-daemon --stop --pidfile $PIDFILE --exec $DAEMON In other words, add "running &&" to the front of that line. This seems to work also when you had started merovingian under your own ID before since there will then no need to start merovingian at all under the monetdb ID. This is what gave the permissions problems.
Update failure for Ubuntu package
https://api.github.com/repos/MonetDB/MonetDB/issues/2723/comments
0
2020-11-30T11:12:08Z
2024-06-27T11:50:27Z
https://github.com/MonetDB/MonetDB/issues/2723
753,385,519
2,723
[ "MonetDB", "MonetDB" ]
Date: 2010-11-15 16:44:36 +0100 From: prinz.z To: GDK devs &lt;<bugs-common>&gt; Version: 11.3.3 (Apr2011-SP1) [obsolete] CC: @drstmane Last updated: 2013-08-16 16:55:48 +0200 ## Comment 15197 Date: 2010-11-15 16:44:36 +0100 From: prinz.z User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Ubuntu/10.10 Chromium/7.0.517.44 Chrome/7.0.517.44 Safari/534.7 Build Identifier: After running a COPY INTO command to store the result of a sorted select query, monetdb crashed with an TypeException error Reproducible: Always ### Steps to Reproduce: 1. create table bug (time timestamp, val int, fk int); --> operation successful 2. insert into bug values (current_timestamp(), 1, 1); --> 1 affected row insert into bug values (current_timestamp(), 2, 2); --> 1 affected row insert into bug values (current_timestamp(), 3, 1); --> 1 affected row insert into bug values (current_timestamp(), 4, 2); --> 1 affected row 3. copy select val from bug where fk=2 order by time into 'testfile.txt' using delimiters ' ' , '\n'; ### Actual Results: 0 tuples TypeException:user.s1_1[2]:'bat.reverse' undefined in: _4:any := bat.reverse(s1_1:void) TypeException:user.s1_1[3]:'bat.reverse' undefined in: _5:any := bat.reverse(_4:any) TypeException:user.s1_1[5]:'algebra.markT' undefined in: _8:any := algebra.markT(_5:any, _6:oid) TypeException:user.s1_1[6]:'bat.reverse' undefined in: _9:any := bat.reverse(_8:any) TypeException:user.s1_1[8]:'algebra.leftjoin' undefined in: _15:any := algebra.leftjoin(_9:any, _10:bat[:oid,:timestamp]) TypeException:user.s1_1[9]:'algebra.sortTail' undefined in: _16:any := algebra.sortTail(_15:any) TypeException:user.s1_1[11]:'algebra.leftjoin' undefined in: _19:any := algebra.leftjoin(_9:any, _17:bat[:oid,:int]) SQLException:SQLengine:Program contains errors ### Expected Results: Result of the query stored in testfile.txt mserver5 --version MonetDB server v5.20.5 (32-bit), based on kernel v1.38.5 (32-bit oids) Release Jun2010-SP2 Copyright (c) 1993-July 2008 CWI Copyright (c) August 2008-2010 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information Found 1.0GiB available memory, 2 available cpu cores Configured for prefix: /usr Libraries: libpcre: 8.02 2010-03-19 (compiled with 7.8) openssl: OpenSSL 0.9.8k 25 Mar 2009 (compiled with OpenSSL 0.9.8k 25 Mar 2009) libxml2: 2.7.6 (compiled with 2.7.6) Compiled by: root@ottar.ins.cwi.nl (i486-pc-linux-gnu) Compilation: gcc -O2 -Wall -O2 -O6 -fomit-frame-pointer -finline-functions -falign-loops=4 -falign-jumps=4 -falign-functions=4 -fexpensive-optimizations -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -ftree-vectorize Linking : /usr/bin/ld -Wl,-Bsymbolic-functions sql>plan copy select val from bug where fk = 2 order by time into '/home/prinzz/testfile.txt' using delimiters ' ' , '\n'; +-----------------------------------------------------------------------------------------+ | rel | +=========================================================================================+ | ddl | | | project ( | | | | select ( | | | | | table(sys.bug) [ bug.time, bug.val, bug.fk, bug.%TID% NOT NULL ] | | | | ) [ bug.fk = convert(2) ] | | | ) [ bug.time ASC ] [ bug.val ] [ ' ', '\n', '"', 'null', '/home/prinzz/testfile.txt' | : ] : +-----------------------------------------------------------------------------------------+ 6 tuples sql>explain copy select val from bug where fk = 2 order by time into '/home/prinzz/testfile.txt' using delimiters ' ' , '\n'; 0 tuples TypeException:user.s0_1[2]:'bat.reverse' undefined in: _3:any := bat.reverse(s0_1:void) TypeException:user.s0_1[3]:'bat.reverse' undefined in: _4:any := bat.reverse(_3:any) TypeException:user.s0_1[5]:'algebra.markT' undefined in: _7:any := algebra.markT(_4:any, _5:oid) TypeException:user.s0_1[6]:'bat.reverse' undefined in: _8:any := bat.reverse(_7:any) TypeException:user.s0_1[8]:'algebra.leftjoin' undefined in: _14:any := algebra.leftjoin(_8:any, _9:bat[:oid,:timestamp]) TypeException:user.s0_1[9]:'algebra.sortTail' undefined in: _15:any := algebra.sortTail(_14:any) TypeException:user.s0_1[11]:'algebra.leftjoin' undefined in: _18:any := algebra.leftjoin(_8:any, _16:bat[:oid,:int]) ## Comment 15198 Date: 2010-11-15 19:02:06 +0100 From: @drstmane I cannot reproduce the problem with the new Oct2010 release on my 64-bit Fedora 12 desktop. Could you upgrade your Jun2010-SP2 to the new Oct2010 release and check whether the problem still occurs with the new release? ## Comment 15660 Date: 2011-03-28 17:34:54 +0200 From: @sjoerdmullender The Mar2011 version has been released. ## Comment 15890 Date: 2011-07-05 12:52:36 +0200 From: @sjoerdmullender Changeset [57330cb714ac](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=57330cb714ac) made by Sjoerd Mullender <sjoerd@acm.org> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=57330cb714ac](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=57330cb714ac) Changeset description: Added test for bug #2722. ## Comment 15891 Date: 2011-07-05 12:53:18 +0200 From: @sjoerdmullender Closing since the test works fine. ## Comment 19012 Date: 2013-08-16 16:55:48 +0200 From: MonetDB Mercurial Repository &lt;<hg>&gt; Changeset [a2393884992d](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a2393884992d) made by Stefan Manegold <Stefan.Manegold@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=a2393884992d](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=a2393884992d) Changeset description: copy-into-file-error.Bug-2722: approved correct (fixed!) output order after changesets [5b557a2b9eda](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5b557a2b9eda) [bce79e07ae3a](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=bce79e07ae3a) [64d3c2e684de](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=64d3c2e684de)
TypeException 'bat.reverse' undefined after COPY INTO FILE
https://api.github.com/repos/MonetDB/MonetDB/issues/2722/comments
0
2020-11-30T11:12:05Z
2024-06-27T11:50:26Z
https://github.com/MonetDB/MonetDB/issues/2722
753,385,494
2,722
[ "MonetDB", "MonetDB" ]
Date: 2010-11-13 09:50:04 +0100 From: @mlkersten To: SQL devs &lt;<bugs-sql>&gt; Version: -- development Last updated: 2010-12-04 12:02:51 +0100 ## Comment 15194 Date: 2010-11-13 09:50:04 +0100 From: @mlkersten User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 Build Identifier: When a COPY into operation fails due to lack of disk space, the BATs holding the partial load stay around until they are garbage collected at the next server restart. Upon failure, they should be immediately be removed to enable a user to free additional space and redo the load within the same session. Reproducible: Always ## Comment 15263 Date: 2010-12-03 22:03:42 +0100 From: @mlkersten Added more protective code SQLload_file. When a kernel exception is raised, then the load sequence is bailed out. ## Comment 15276 Date: 2010-12-04 12:02:51 +0100 From: @grobian commit [0b0fe4f918d3](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0b0fe4f918d3) suggests this bug was fixed
Early dispose of temporary BATs
https://api.github.com/repos/MonetDB/MonetDB/issues/2721/comments
0
2020-11-30T11:12:02Z
2024-06-27T11:50:25Z
https://github.com/MonetDB/MonetDB/issues/2721
753,385,459
2,721
[ "MonetDB", "MonetDB" ]
Date: 2010-11-12 19:59:47 +0100 From: @grobian To: SQL devs &lt;<bugs-sql>&gt; Version: 2.40.1 (Oct2010) [obsolete] Last updated: 2011-03-28 17:31:35 +0200 ## Comment 15193 Date: 2010-11-12 19:59:47 +0100 From: @grobian An Xclose equivalent for prepared handles should be made available, so we can close the prepared structure on the server, as soon as the client detects it is no longer necessary (e.g. Java garbage collector initiates a call to finalize()). Perhaps we can reuse Xclose if we would guarantee resultsets and prepared handles never to have the same ID. Would allow for easy closing of a prepared handle from the client's perspective though, since resultsets and prepared handles are effectively the same in the protocol. ## Comment 15346 Date: 2010-12-15 11:50:06 +0100 From: @grobian Changeset [4a5fded5bea7](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=4a5fded5bea7) made by Fabian Groffen <fabian@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=4a5fded5bea7](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=4a5fded5bea7) Changeset description: Send Xclose command for prepared handles, bug #2720 ## Comment 15364 Date: 2010-12-17 14:23:26 +0100 From: @grobian Xrelease for prepared statements is implemented in the development sources ## Comment 15365 Date: 2010-12-17 14:29:12 +0100 From: @grobian Changeset [e1d213ea606c](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e1d213ea606c) made by Fabian Groffen <fabian@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=e1d213ea606c](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=e1d213ea606c) Changeset description: Add ChangeLog entry for bug #2720 ## Comment 15637 Date: 2011-03-28 17:31:35 +0200 From: @sjoerdmullender The Mar2011 version has been released.
Allow a client to close a prepared handle
https://api.github.com/repos/MonetDB/MonetDB/issues/2720/comments
0
2020-11-30T11:11:58Z
2024-06-27T11:50:24Z
https://github.com/MonetDB/MonetDB/issues/2720
753,385,426
2,720
[ "MonetDB", "MonetDB" ]
Date: 2010-11-12 12:44:01 +0100 From: @grobian To: SQL devs &lt;<bugs-sql>&gt; Version: 2.40.1 (Oct2010) [obsolete] CC: @njnes Last updated: 2010-11-14 02:28:12 +0100 ## Comment 15192 Date: 2010-11-12 12:44:01 +0100 From: @grobian DROP USER X results in: CREATE USER X error: 'X' already in use CREATE SCHEMA Y AUTHORIZE X error: no such user 'X' connect with mclient to the database as user X SIGABRT in m5_find_user ## Comment 15195 Date: 2010-11-13 23:19:00 +0100 From: @njnes there are not enough sql statements to repeat the problem ## Comment 15196 Date: 2010-11-14 02:28:12 +0100 From: @grobian cannot reproduce any more either The problem was real, but I don't know how we managed to do it any more: 2010-11-12 11:10:21 ERR xsight[24286]: mserver5: /ufs/fabian/scratch/monetdb/Oct2010/sql/src/backends/monet5/sql_user.mx:475: monet5_user_get_def_schema: Assertion `p' failed. 2010-11-12 11:10:21 MSG merovingian[23263]: database 'xsight' (24286) was killed by signal SIGABRT
DROP USER doesn't work
https://api.github.com/repos/MonetDB/MonetDB/issues/2719/comments
0
2020-11-30T11:11:55Z
2024-06-28T13:19:55Z
https://github.com/MonetDB/MonetDB/issues/2719
753,385,389
2,719
[ "MonetDB", "MonetDB" ]
Date: 2010-11-11 12:32:48 +0100 From: prinz.z To: GDK devs &lt;<bugs-common>&gt; Version: 11.3.3 (Apr2011-SP1) [obsolete] Last updated: 2011-07-05 12:57:52 +0200 ## Comment 15188 Date: 2010-11-11 12:32:48 +0100 From: prinz.z User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Ubuntu/10.10 Chromium/7.0.517.41 Chrome/7.0.517.41 Safari/534.7 Build Identifier: Performing a range join over a timestamp column using 'between' operator yields an exception instead of result. Seems to be independent on size of database table. Reproducible: Always ### Steps to Reproduce: 1. create table bug (time timestamp, val int); 2. insert into bug values (current_timestamp, 1); insert into bug values (current_timestamp, 2); insert into bug values (current_timestamp, 3); 3. select * from bug; +----------------------------+------+ | time | val | +============================+======+ | 2010-11-11 11:22:51.000000 | 1 | | 2010-11-11 11:22:54.000000 | 2 | | 2010-11-11 11:22:57.000000 | 3 | +----------------------------+------+ 3 tuples 4. select t1.time, count(t2.val) from bug t1, bug t2 where t2.time between (t1.time - interval '1' second) and (t1.time + interval '1' second) group by t1.time order by t1.time; ### Actual Results: TypeException:user.s2_1[23]:'algebra.bandjoin' undefined in: _32:any := algebra.bandjoin(_19:bat[:oid,:timestamp], _29:bat[:timestamp,:oid], _30:lng, _31:lng, _3:bit, _3:bit) TypeException:user.s2_1[24]:'bat.reverse' undefined in: _33:any := bat.reverse(_32:any) TypeException:user.s2_1[26]:'algebra.markT' undefined in: _36:any := algebra.markT(_33:any, _34:oid) TypeException:user.s2_1[27]:'bat.reverse' undefined in: _37:any := bat.reverse(_36:any) TypeException:user.s2_1[28]:'algebra.leftjoin' undefined in: _38:any := algebra.leftjoin(_37:any, _25:bat[:oid,:timestamp]) TypeException:user.s2_1[29]:'group.done' undefined in: (ext41:any, grp39:any) := group.done(_38:any) TypeException:user.s2_1[31]:'bat.mirror' undefined in: _42:any := bat.mirror(ext41:any) TypeException:user.s2_1[32]:'algebra.join' undefined in: _43:any := algebra.join(_42:any, _38:any) TypeException:user.s2_1[33]:'algebra.sortTail' undefined in: _44:any := algebra.sortTail(_43:any) TypeException:user.s2_1[35]:'algebra.markT' undefined in: _46:any := algebra.markT(_32:any, _45:oid) TypeException:user.s2_1[36]:'bat.reverse' undefined in: _47:any := bat.reverse(_46:any) TypeException:user.s2_1[43]:'algebra.leftjoin' undefined in: _60:any := algebra.leftjoin(_47:any, _59:bat[:oid,:int]) TypeException:user.s2_1[44]:'algebra.selectNotNil' undefined in: _61:any := algebra.selectNotNil(_60:any) TypeException:user.s2_1[45]:'aggr.count' undefined in: _62:bat[:any,:wrd] := aggr.count(_61:any, _41:any, _42:any) SQLException:SQLengine:Program contains errors ### Expected Results: Yield the number of 'neighbors' in a specific time range for every timestamp. mserver5 --version MonetDB server v5.20.5 (32-bit), based on kernel v1.38.5 (32-bit oids) Release Jun2010-SP2 Copyright (c) 1993-July 2008 CWI Copyright (c) August 2008-2010 MonetDB B.V., all rights reserved Visit http://monetdb.cwi.nl/ for further information Found 1.0GiB available memory, 2 available cpu cores Configured for prefix: /usr Libraries: libpcre: 8.02 2010-03-19 (compiled with 7.8) openssl: OpenSSL 0.9.8k 25 Mar 2009 (compiled with OpenSSL 0.9.8k 25 Mar 2009) libxml2: 2.7.6 (compiled with 2.7.6) Compiled by: root@ottar.ins.cwi.nl (i486-pc-linux-gnu) Compilation: gcc -O2 -Wall -O2 -O6 -fomit-frame-pointer -finline-functions -falign-loops=4 -falign-jumps=4 -falign-functions=4 -fexpensive-optimizations -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -ftree-vectorize Linking : /usr/bin/ld -Wl,-Bsymbolic-functions \d bug CREATE TABLE "sys"."bug" ( "time" TIMESTAMP, "val" int ); plan select t1.time, count(t2.val) from bug t1, bug t2 where t2.time between (t1.time - interval '1' second) and (t1.time + interval '1' second) group by t1.time order by t1.time; +-------------------------------------------------------------------------------------------------+ | rel | +=================================================================================================+ | project ( | | | group by ( | | | | join ( | | | | | table(sys.bug) [ bug.time as t2.time, bug.val as t2.val, bug.%TID% NOT NULL as t2.%TID% | : ], : | | | | table(sys.bug) [ bug.time as t1.time, bug.%TID% NOT NULL as t1.%TID% ] | | | | ) [ sql_sub(t1.time, 1) <= t2.time <= sql_add(t1.time, 1) ] | | | ) [ t1.time ] [ t1.time, count no nil (t2.val) as L10 ] | | ) [ t1.time ASC ] [ t1.time, L10 ] | +-------------------------------------------------------------------------------------------------+ 8 tuples explain select t1.time, count(t2.val) from bug t1, bug t2 where t2.time between (t1.time - interval '1' second) and (t1.time + interval '1' second) group by t1.time order by t1.time; TypeException:user.s6_1[23]:'algebra.bandjoin' undefined in: _31:any := algebra.bandjoin(_17:bat[:oid,:timestamp], _27:bat[:timestamp,:oid], _28:lng, _30:lng, _1:bit, _1:bit) TypeException:user.s6_1[24]:'bat.reverse' undefined in: _32:any := bat.reverse(_31:any) TypeException:user.s6_1[26]:'algebra.markT' undefined in: _35:any := algebra.markT(_32:any, _33:oid) TypeException:user.s6_1[27]:'bat.reverse' undefined in: _36:any := bat.reverse(_35:any) TypeException:user.s6_1[28]:'algebra.leftjoin' undefined in: _37:any := algebra.leftjoin(_36:any, _23:bat[:oid,:timestamp]) TypeException:user.s6_1[29]:'group.done' undefined in: (ext40:any, grp38:any) := group.done(_37:any) TypeException:user.s6_1[31]:'bat.mirror' undefined in: _41:any := bat.mirror(ext40:any) TypeException:user.s6_1[32]:'algebra.join' undefined in: _42:any := algebra.join(_41:any, _37:any) TypeException:user.s6_1[33]:'algebra.sortTail' undefined in: _43:any := algebra.sortTail(_42:any) TypeException:user.s6_1[35]:'algebra.markT' undefined in: _45:any := algebra.markT(_31:any, _44:oid) TypeException:user.s6_1[36]:'bat.reverse' undefined in: _46:any := bat.reverse(_45:any) TypeException:user.s6_1[43]:'algebra.leftjoin' undefined in: _59:any := algebra.leftjoin(_46:any, _58:bat[:oid,:int]) TypeException:user.s6_1[44]:'algebra.selectNotNil' undefined in: _60:any := algebra.selectNotNil(_59:any) TypeException:user.s6_1[45]:'aggr.count' undefined in: _61:bat[:any,:wrd] := aggr.count(_60:any, _40:any, _41:any) ## Comment 15206 Date: 2010-11-17 14:55:08 +0100 From: @sjoerdmullender Changeset [2e639729d804](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2e639729d804) made by Sjoerd Mullender <sjoerd@acm.org> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=2e639729d804](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=2e639729d804) Changeset description: Test for bug #2718. ## Comment 15223 Date: 2010-11-24 19:13:31 +0100 From: @njnes Changeset [a61598b86505](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a61598b86505) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=a61598b86505](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=a61598b86505) Changeset description: backport of fix for Bug #2718 (don't use bandjoin for external types) ## Comment 15663 Date: 2011-03-28 17:34:55 +0200 From: @sjoerdmullender The Mar2011 version has been released. ## Comment 15892 Date: 2011-07-05 12:57:52 +0200 From: @sjoerdmullender This bug seems to have been fixed.
Range join over timestamp results in TypeException 'algebra.bandjoin'
https://api.github.com/repos/MonetDB/MonetDB/issues/2718/comments
0
2020-11-30T11:11:52Z
2024-06-27T11:50:22Z
https://github.com/MonetDB/MonetDB/issues/2718
753,385,355
2,718
[ "MonetDB", "MonetDB" ]
Date: 2010-11-09 14:08:17 +0100 From: @romulogoncalves To: SQL devs &lt;<bugs-sql>&gt; Version: 2.40.1 (Oct2010) [obsolete] CC: @njnes Last updated: 2011-03-28 17:31:33 +0200 ## Comment 15184 Date: 2010-11-09 14:08:17 +0100 From: @romulogoncalves If we create the following function: CREATE FUNCTION f1(specObjIdd bigint) RETURNS varchar(128) BEGIN DECLARE link varchar(128); RETURN link; END; And then we re-start the mserver, but this time in readonly mode, the call of the function: select f1(3) as url; gives the following message at the mserver: schema statements cannot be executed on a readonly database. at the mclient it reports: ERROR = !schema statements cannot be executed on a readonly database. !TypeException:user.s0_1[4]:'user.f1' undefined in: _6:any := user.f1(_5:lng) and when the mclient is closed the mserver crashes: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffe862f710 (LWP 20719)] 0x000000383ae7fcb2 in __strlen_sse2 () from /lib64/libc.so.6 (gdb) up 1 0x00007fffe8aa47b6 in SQLparser (c=0x605238) at /ufs/goncalve/MonetDB/current/sql/src/backends/monet5/sql_scenario.mx:1327 1327 be->q->name = putName(be->q->name, strlen(be->q->name)); (gdb) p be->q->name $1 = 0xdbdbdbdbdbdbdbdb <Address 0xdbdbdbdbdbdbdbdb out of bounds> (gdb) bt 0 0x000000383ae7fcb2 in __strlen_sse2 () from /lib64/libc.so.6 1 0x00007fffe8aa47b6 in SQLparser (c=0x605238) at /ufs/goncalve/MonetDB/current/sql/src/backends/monet5/sql_scenario.mx:1327 2 0x00007ffff708317e in runPhase (c=0x605238, phase=1) at /ufs/goncalve/MonetDB/current/MonetDB5/src/mal/mal_scenario.mx:604 3 0x00007ffff70832ad in runScenarioBody (c=0x605238) at /ufs/goncalve/MonetDB/current/MonetDB5/src/mal/mal_scenario.mx:646 4 0x00007ffff7083452 in runScenario (c=0x605238) at /ufs/goncalve/MonetDB/current/MonetDB5/src/mal/mal_scenario.mx:682 5 0x00007ffff708442f in MSserveClient (dummy=0x605238) at /ufs/goncalve/MonetDB/current/MonetDB5/src/mal/mal_session.mx:484 6 0x000000383ba068e0 in start_thread () from /lib64/libpthread.so.0 7 0x000000383aee0c9d in clone () from /lib64/libc.so.6 8 0x0000000000000000 in ?? () (gdb) ## Comment 15239 Date: 2010-12-01 23:06:28 +0100 From: @njnes this bug is fixed. ## Comment 15633 Date: 2011-03-28 17:31:33 +0200 From: @sjoerdmullender The Mar2011 version has been released.
function call in readonly mode.
https://api.github.com/repos/MonetDB/MonetDB/issues/2717/comments
0
2020-11-30T11:11:49Z
2024-06-27T11:50:20Z
https://github.com/MonetDB/MonetDB/issues/2717
753,385,316
2,717
[ "MonetDB", "MonetDB" ]
Date: 2010-11-09 09:52:52 +0100 From: @drstmane To: MonetDB4 devs &lt;<bugs-monetdb4>&gt; Version: 4.40.1 (Oct2010) [obsolete] Last updated: 2010-11-15 09:39:05 +0100 ## Comment 15182 Date: 2010-11-09 09:52:52 +0100 From: @drstmane Since Nov 2 2001, with assertions enabled --- i.e., with "Candidate" testing on odd dates or with "Current" testing --- test MonetDB4/tests/BugDay_2005-10-06_4.8/Tests/multiple_servers.SF-914113.MIL.bat triggers the following assertion on Windows Assertion failed: winthread_cs_init, file .\..\..\..\src\gdk\gdk_system.mx, line 519 !FATAL: BATSIGabort: signal 22 caught by thread 8424 cf. e.g., http://monetdb.cwi.nl/testing/projects/monetdb/Candidate/MonetDB4/.mTests103/Int.32.32.d.1-Windows5.1/tests_BugDay_2005-10-06_4.8/multiple_servers.SF-914113.err.00.html http://monetdb.cwi.nl/testing/projects/monetdb/Current/MonetDB4/.mTests103/Int.64.64.d.1-Windows6.0/tests_BugDay_2005-10-06_4.8/multiple_servers.SF-914113.err.00.html ## Comment 15183 Date: 2010-11-09 11:40:41 +0100 From: @sjoerdmullender Changeset [df980d777f70](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=df980d777f70) made by Sjoerd Mullender <sjoerd@acm.org> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=df980d777f70](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=df980d777f70) Changeset description: It is allowed to call MT_exit_thread before any threads are created. This fixes bug #2716.
test MonetDB4/tests/BugDay_2005-10-06_4.8/Tests/multiple_servers.SF-914113.MIL.bat triggers assertion on Windows
https://api.github.com/repos/MonetDB/MonetDB/issues/2716/comments
0
2020-11-30T11:11:46Z
2024-06-27T11:50:19Z
https://github.com/MonetDB/MonetDB/issues/2716
753,385,274
2,716
[ "MonetDB", "MonetDB" ]
Date: 2010-11-05 17:48:23 +0100 From: @swingbit To: SQL devs &lt;<bugs-sql>&gt; Version: 2.40.1 (Oct2010) [obsolete] CC: @njnes Last updated: 2011-03-28 17:31:23 +0200 ## Comment 15176 Date: 2010-11-05 17:48:23 +0100 From: @swingbit User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.1.12) Gecko/20100907 Fedora/3.5.12-1.fc12 Firefox/3.5.12 GTB7.1 Build Identifier: The following query returns too many results: START TRANSACTION; CREATE TABLE a(id INT, a1 string, a2 string); INSERT INTO a VALUES (1,'kind','a1'); INSERT INTO a VALUES (2,'kind','b4'); INSERT INTO a VALUES (1,'family','xx'); INSERT INTO a VALUES (2,'family','yy'); INSERT INTO a VALUES (1,'country','EP'); INSERT INTO a VALUES (2,'country','US'); CREATE TABLE b(b1 string, b2 string); INSERT INTO b VALUES ('country', 'EP'); SELECT * FROM a,b WHERE a.a1 = b.b1 AND a.a2 LIKE b.b2; ROLLBACK; It behaves as if the two join conditions where OR-ed, rather than AND-ed. Notice that both join conditions return the correct result if used alone, only when AND-ed they go wrong. Reproducible: Always ### Steps to Reproduce: 1.run the provided script 2. 3. ### Actual Results: +------+---------+------+---------+------+ | id | a1 | a2 | b1 | b2 | +======+=========+======+=========+======+ | 1 | country | EP | country | EP | | 2 | country | US | country | EP | +------+---------+------+---------+------+ ### Expected Results: +------+---------+------+---------+------+ | id | a1 | a2 | b1 | b2 | +======+=========+======+=========+======+ | 1 | country | EP | country | EP | +------+---------+------+---------+------+ ## Comment 15185 Date: 2010-11-10 12:55:42 +0100 From: @sjoerdmullender Changeset [9aee83da8fcf](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9aee83da8fcf) made by Sjoerd Mullender <sjoerd@acm.org> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=9aee83da8fcf](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=9aee83da8fcf) Changeset description: Added test for bug #2715. ## Comment 15615 Date: 2011-03-28 17:31:23 +0200 From: @sjoerdmullender The Mar2011 version has been released.
Join with 2 AND-ed conditions where one is LIKE/ILIKE returns too many results
https://api.github.com/repos/MonetDB/MonetDB/issues/2715/comments
0
2020-11-30T11:11:43Z
2024-06-27T11:50:18Z
https://github.com/MonetDB/MonetDB/issues/2715
753,385,232
2,715
[ "MonetDB", "MonetDB" ]
Date: 2010-11-05 13:10:25 +0100 From: @mlkersten To: SQL devs &lt;<bugs-sql>&gt; Version: -- development CC: M.Ivanova, @njnes, @drstmane Last updated: 2010-11-10 17:16:24 +0100 ## Comment 15175 Date: 2010-11-05 13:10:25 +0100 From: @mlkersten User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 Build Identifier: The value of the global SQL variable has become lost during recent changes. Assignment of an known pipeline is also not visible and the actual pipeline executed is minimal_pipe. Reproducible: Always ### Actual Results: Type \q to quit, \? for a list of available commands auto commit mode: on sql>select optimizer; +--------------------------------------------------------------------------------------------------------------------------------------------+ | single_value | +============================================================================================================================================+ | null | +--------------------------------------------------------------------------------------------------------------------------------------------+ 1 tuple (1.000ms) sql>set optimizer='tarantula_pipe'; sql>select optimizer; +--------------------------------------------------------------------------------------------------------------------------------------------+ | single_value | +============================================================================================================================================+ | null | +--------------------------------------------------------------------------------------------------------------------------------------------+ 1 tuple (1.000ms) ## Comment 15178 Date: 2010-11-06 14:22:04 +0100 From: @drstmane This work fine for me with the Oct2010 release candidate branch, but indeed fails as reported with the default development branch. ## Comment 15179 Date: 2010-11-06 16:31:51 +0100 From: @drstmane This seems to occur since changeset: 38171:db019c451509 user: Fabian Groffen <fabian@cwi.nl> date: Tue Nov 02 18:38:13 2010 +0100 description: Apply more pkg-config usage for packages where possible. http://dev.monetdb.org/hg/MonetDB/rev/db019c451509 As of the same checkin also the elsewhere reported mserver5 crash after mclient disconnect occur. Both might be related to each other and hence related to the yet unexplained linking / global variable problem that Sjoerd (& Fabian ?) found to the trigger (reason?) for the mserver5 crash on mclient disconnect ... ## Comment 15180 Date: 2010-11-06 16:40:13 +0100 From: @drstmane The mserver5 crash after mclient disconnect actually seems to be gone as of changeset: 38186:2f65cd4e28a3 parent: 38183:6adb25a09d39 parent: 38185:703ea0e13817 user: Fabian Groffen <fabian@cwi.nl> date: Thu Nov 04 12:33:28 2010 +0100 summary: Merged from Oct2010 http://dev.monetdb.org/hg/MonetDB/rev/2f65cd4e28a3 ... at least with successive delta-build for each changeset in November ... ... test with rebuild-from scratch still pending ... ## Comment 15181 Date: 2010-11-08 16:55:11 +0100 From: Milena Ivanova &lt;<M.Ivanova>&gt; 'Better late than never' I undersood what Martin refered to today. The same situation appears with octopus framework where I use monetdbd to set different optimizer pipes for the head and the tentacles, and I see the pipes as 'null'. However, I ran octopus queries and the pipes were correctly set according to merovingian.log. ## Comment 15186 Date: 2010-11-10 17:08:56 +0100 From: @njnes this is because we no longer call AM_MONETDB_TOOLS in MonetDB5 configure.ag. This checks for the function times and sets HAVE_TIMES. The structure MalStack depends on this. For now I will revert the AM_MONETDB_TOOLS change. In the long run we should not expose dependencies on configure options. If we depend on some functionality being there we should hide this through a proper API.
Setting the optimizer global variable fails
https://api.github.com/repos/MonetDB/MonetDB/issues/2714/comments
0
2020-11-30T11:11:38Z
2024-06-27T11:50:17Z
https://github.com/MonetDB/MonetDB/issues/2714
753,385,176
2,714
[ "MonetDB", "MonetDB" ]
Date: 2010-11-04 17:25:17 +0100 From: @romulogoncalves To: SQL devs &lt;<bugs-sql>&gt; Version: 2.40.1 (Oct2010) [obsolete] CC: @njnes Last updated: 2011-03-28 17:31:29 +0200 ## Comment 15171 Date: 2010-11-04 17:25:17 +0100 From: @romulogoncalves User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.1.15) Gecko/20101027 Fedora/3.5.15-1.fc12 Firefox/3.5.15 Build Identifier: The following SQL statement gives a wrong error message: create table t1(id int); drop view t1; drop table t1; MAPI = monetdb@localhost:55000 QUERY = drop view t1; ERROR = !SQLException:sql.catalog:DROP VIEW: unable to drop view 't1' It should be: QUERY = drop view t1; ERROR = !SQLException:sql.catalog:DROP VIEW: unknown view 't1' The right error happens once the table t1 is dropped. Reproducible: Always ### Steps to Reproduce: 1.Follow the instructions in "Details" 2. 3. ### Actual Results: QUERY = drop view t1; ERROR = !SQLException:sql.catalog:DROP VIEW: unable to drop view 't1' ### Expected Results: QUERY = drop view t1; ERROR = !SQLException:sql.catalog:DROP VIEW: unknown view 't1' ## Comment 15172 Date: 2010-11-04 18:10:25 +0100 From: @grobian would DROP VIEW: unable to drop view 't1': is a table be sufficient for you, too? If so, I think this patch will do it: diff --git a/sql/src/backends/monet5/sql.mx b/sql/src/backends/monet5/sql.mx --- a/sql/src/backends/monet5/sql.mx +++ b/sql/src/backends/monet5/sql.mx @@ -1817,7 +1817,7 @@ } else if (!t) { return sql_message("DROP VIEW: unknown view '%s'", tname); } else if (!isView(t)) { - return sql_message("DROP VIEW: unable to drop view '%s'", tname); + return sql_message("DROP VIEW: unable to drop view '%s': is a table", tname); } else if (t->system) { return sql_message("DROP VIEW: cannot drop system view '%s'", tname); } else if (! drop_action && mvc_check_dependency(sql, t->base.id, VIEW_DEPENDENCY, NULL)) { ## Comment 15284 Date: 2010-12-05 13:35:17 +0100 From: @njnes sounds fine to me.. ## Comment 15335 Date: 2010-12-10 22:27:27 +0100 From: @njnes applied patch ## Comment 15336 Date: 2010-12-10 22:29:10 +0100 From: @njnes Changeset [f022c1b3925f](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f022c1b3925f) made by Niels Nes <niels@cwi.nl> in the MonetDB repo, refers to this bug. For complete details, see [http//devmonetdborg/hg/MonetDB?cmd=changeset;node=f022c1b3925f](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=http//devmonetdborg/hg/MonetDB?cmd=changeset;node=f022c1b3925f) Changeset description: fixed bug #2713 and added test using patch from fabian. ## Comment 15627 Date: 2011-03-28 17:31:29 +0200 From: @sjoerdmullender The Mar2011 version has been released.
wrong error message when dropping an un-existing view with the same as an existent table.
https://api.github.com/repos/MonetDB/MonetDB/issues/2713/comments
0
2020-11-30T11:11:35Z
2024-06-27T11:50:16Z
https://github.com/MonetDB/MonetDB/issues/2713
753,385,143
2,713
[ "MonetDB", "MonetDB" ]
Date: 2010-11-03 11:47:39 +0100 From: @grobian To: SQL devs &lt;<bugs-sql>&gt; Version: 11.5.3 (Aug2011-SP1) [obsolete] CC: @drstmane, taowen Last updated: 2011-10-27 20:55:23 +0200 ## Comment 15167 Date: 2010-11-03 11:47:39 +0100 From: @grobian As revealed by insert_values.SF-1578838 and savepoint-SF.1898533, the server crashes upon destroying of the sql scenario when a savepoint was used which is not rolled back to. Commenting out savepoints which are not rolled back to, resolves the crash. Program terminated with signal 6, Aborted. 0 0x0000003b6d2327f5 in raise () from /lib64/libc.so.6 (gdb) bt 0 0x0000003b6d2327f5 in raise () from /lib64/libc.so.6 1 0x0000003b6d233fd5 in abort () from /lib64/libc.so.6 2 0x0000003b6d22b785 in __assert_fail () from /lib64/libc.so.6 3 0x00007f34c9575115 in decref (i=1326, logical=1, releaseShare=0, lock=1) at /ufs/fabian/scratch/monetdb/Oct2010/common/src/gdk/gdk_bbp.mx:2004 4 0x00007f34c9576086 in BBPdecref (i=1326, logical=1) at /ufs/fabian/scratch/monetdb/Oct2010/common/src/gdk/gdk_bbp.mx:2107 5 0x00007f34b00508c1 in temp_destroy (b=1326) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/storage/bat/bat_utils.mx:137 6 0x00007f34b004d6b1 in destroy_delta (b=0x7f34a00190f8) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/storage/bat/bat_storage.mx:1009 7 0x00007f34b004d73e in destroy_bat (tr=0x0, b=0x7f34a00190f8) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/storage/bat/bat_storage.mx:1021 8 0x00007f34b004d783 in destroy_col (tr=0x0, c=0x7f34a0019058) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/storage/bat/bat_storage.mx:1029 9 0x00007f34b0036713 in column_destroy (c=0x7f34a0019058) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/storage/store.mx:157 10 0x00007f34b005d43b in node_destroy (l=0x7f34a0019178, n=0x7f34a00191b8) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/common/sql_list.mx:75 11 0x00007f34b005d4a4 in list_destroy (l=0x7f34a0019178) ---Type <return> to continue, or q <return> to quit--- at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/common/sql_list.mx:90 12 0x00007f34b005ebbf in cs_destroy (cs=0x7f34a00186e8) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/common/sql_changeset.mx:50 13 0x00007f34b00367ae in table_destroy (t=0x7f34a0018698) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/storage/store.mx:170 14 0x00007f34b005d43b in node_destroy (l=0x7f34a00195f8, n=0x7f34a0019638) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/common/sql_list.mx:75 15 0x00007f34b005d4a4 in list_destroy (l=0x7f34a00195f8) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/common/sql_list.mx:90 16 0x00007f34b005ebbf in cs_destroy (cs=0x7f34a00182f8) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/common/sql_changeset.mx:50 17 0x00007f34b003687a in schema_destroy (s=0x7f34a00182d8) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/storage/store.mx:189 18 0x00007f34b005d43b in node_destroy (l=0x7f34a0048648, n=0x7f34a0048688) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/common/sql_list.mx:75 19 0x00007f34b005d4a4 in list_destroy (l=0x7f34a0048648) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/common/sql_list.mx:90 20 0x00007f34b005ebbf in cs_destroy (cs=0x7f34a0018280) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/common/sql_changeset.mx:50 21 0x00007f34b00369b2 in sql_trans_destroy (t=0x7f34a0018258) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/storage/store.mx:224 22 0x00007f34affef198 in mvc_commit (m=0x7f34a0005468, chain=0, name=0x0) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/server/sql_mvc.mx:456 ---Type <return> to continue, or q <return> to quit--- 23 0x00007f34aff5f2e2 in SQLtransaction (cntxt=0x605898, mb=0x7f34a8114ba8, stk=0x7f34a00828c8, pci=0x7f34a005c798) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/backends/monet5/sql.mx:1541 24 0x00007f34ca08ba13 in runMALsequence (cntxt=0x605898, mb=0x7f34a8114ba8, startpc=1, stoppc=0, stk=0x7f34a00828c8, env=0x0, pcicaller=0x0) at /ufs/fabian/scratch/monetdb/Oct2010/five/src/mal/mal_interpreter.mx:2105 25 0x00007f34ca079e86 in runMAL (cntxt=0x605898, mb=0x7f34a8114ba8, startpc=1, mbcaller=0x0, env=0x0, pcicaller=0x0) at /ufs/fabian/scratch/monetdb/Oct2010/five/src/mal/mal_interpreter.mx:339 26 0x00007f34affac2f8 in SQLengineIntern (c=0x605898, be=0x7f34a0053538) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/backends/monet5/sql_scenario.mx:1547 27 0x00007f34affac712 in SQLengine (c=0x605898) at /ufs/fabian/scratch/monetdb/Oct2010/sql/src/backends/monet5/sql_scenario.mx:1628 28 0x00007f34ca0c1833 in runPhase (c=0x605898, phase=4) at /ufs/fabian/scratch/monetdb/Oct2010/five/src/mal/mal_scenario.mx:603 29 0x00007f34ca0c1a0a in runScenarioBody (c=0x605898) at /ufs/fabian/scratch/monetdb/Oct2010/five/src/mal/mal_scenario.mx:653 30 0x00007f34ca0c1c32 in runScenario (c=0x605898) at /ufs/fabian/scratch/monetdb/Oct2010/five/src/mal/mal_scenario.mx:684 31 0x00007f34ca07816a in MSserveClient (dummy=0x605898) at /ufs/fabian/scratch/monetdb/Oct2010/five/src/mal/mal_session.mx:484 ---Type <return> to continue, or q <return> to quit--- 32 0x0000003b6de068e0 in start_thread () from /lib64/libpthread.so.0 33 0x0000003b6d2e0c9d in clone () from /lib64/libc.so.6 34 0x0000000000000000 in ?? () (gdb) The column that is about to be destroyed is schemas.id, which probably shouldn't be freed. Probably the left-over savepoint causes this to happen. ## Comment 15169 Date: 2010-11-03 12:25:16 +0100 From: @drstmane *** Bug #2711 has been marked as a duplicate of this bug. *** ## Comment 15170 Date: 2010-11-03 12:26:12 +0100 From: @drstmane For convenience, here's also the original posting of bug #2711: SQL tests sql/src/test/BugTracker/Tests/insert_values.SF-1578838.sql & sql/src/test/BugTracker/Tests/savepoint-SF.1898533.sql trigger an assertion failure in BBPdecref: " MonetDB/src/gdk/gdk_bbp.mx:2198: decref: Assertion `0' failed. " cf., Current testing (always with assertion enabled) http://monetdb.cwi.nl/testing/projects/monetdb/Current/sql/.mTests103/Int.64.32.d.1-Fedora10/src_test_BugTracker/insert_values.SF-1578838.err.00.html http://monetdb.cwi.nl/testing/projects/monetdb/Current/sql/.mTests103/GNU.64.64.d.1-Fedora10/src_test_BugTracker/savepoint-SF.1898533.err.00.html or Candidate testing on odd days (with assertion disabled) http://monetdb.cwi.nl/testing/projects/monetdb/Candidate/sql/.mTests103/Int.64.32.d.1-Fedora10/src_test_BugTracker/insert_values.SF-1578838.err.00.html http://monetdb.cwi.nl/testing/projects/monetdb/Candidate/sql/.mTests103/GNU.64.64.d.1-Fedora10/src_test_BugTracker/savepoint-SF.1898533.err.00.html With assertions disabled (e.g., Candidate testing on even days), the first test works fine http://monetdb.cwi.nl/testing/projects/monetdb/Candidate/sql/.mTests103/Int.64.32.d.1-Fedora10/src_test_BugTracker/insert_values.SF-1578838.err.00.html while the second test yields a recounting error: " QUERY = commit; ERROR = !MALException:!ERROR: BBPdecref: tmp_2472 does not have logical references. " http://monetdb.cwi.nl/testing/projects/monetdb/Candidate/sql/.mTests103/GNU.64.64.d.1-Fedora10/src_test_BugTracker/savepoint-SF.1898533.err.00.html ## Comment 15187 Date: 2010-11-11 11:25:13 +0100 From: @sjoerdmullender Unblock this bug. This is a somewhat unusual situation, so it doesn't warrant blocking a release. It should still be fixed, though. ## Comment 15602 Date: 2011-03-18 10:25:10 +0100 From: @grobian in Mar2011, this test causes decref errors on all non-Linux platforms http://monetdb.cwi.nl/testing/projects/monetdb/testweb/web/testgrid.php?serial=39522:49d57d0ded3b&order=platform,compiler,arch&module=sql e.g. http://monetdb.cwi.nl/testing/projects/monetdb/testweb/tests/39522:49d57d0ded3b/GNU-Darwin-powerpc/sql/mTests/test/BugTracker/savepoint-SF.1898533.err.diff.html ## Comment 15686 Date: 2011-03-28 17:36:32 +0200 From: @sjoerdmullender The Mar2011 version has been released. ## Comment 15938 Date: 2011-07-13 16:00:36 +0200 From: @sjoerdmullender The two tests run fine for me, but I see that they fail on various systems (not all) during nightly testing. Can anybody explain this? ## Comment 15944 Date: 2011-07-13 22:20:06 +0200 From: @drstmane Works for me when I run the test in isolation. Fails when I run all tests in sql/test/BugTracker/Tests/ . Looks like some other test earlier in that directory leaves some remains that influence this test ... ## Comment 15945 Date: 2011-07-13 22:37:37 +0200 From: @drstmane running test authorization.SF-1430616 before test savepoint-SF.1898533 seems to trigger the failure of the latter: .../MonetDB/sql/test/BugTracker/Tests $ Mtest.py -q . savepoint-SF.1898533 . .../MonetDB/sql/test/BugTracker/Tests $ Mtest.py -q . authorization.SF-1430616 savepoint-SF.1898533 .. * (savepoint-SF.1898533.test.err.FILTERED) significantly ## Comment 15978 Date: 2011-07-19 19:51:02 +0200 From: @grobian I still have this on Apr2011-SP2_pre: ....................................................... insert_values.SF-1578838 : Crashed! * (insert_values.SF-1578838.test.err.FILTERED) significantly ................................................................... savepoint-SF.1898533 : Crashed! ## Comment 16038 Date: 2011-07-29 11:00:05 +0200 From: @sjoerdmullender Apr2011-SP2 has been released. ## Comment 16275 Date: 2011-09-16 15:10:38 +0200 From: @sjoerdmullender The Aug2011 version has been released. ## Comment 16436 Date: 2011-10-17 10:33:50 +0200 From: @sjoerdmullender This seems to be fixed by changeset [a9fb3d2364d7](https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a9fb3d2364d7) ## Comment 16490 Date: 2011-10-27 20:55:23 +0200 From: @sjoerdmullender *** Bug #2913 has been marked as a duplicate of this bug. ***
un-rolled-back savepoints cause crash upon scenario exit
https://api.github.com/repos/MonetDB/MonetDB/issues/2712/comments
0
2020-11-30T11:11:32Z
2024-06-27T11:50:15Z
https://github.com/MonetDB/MonetDB/issues/2712
753,385,107
2,712
[ "MonetDB", "MonetDB" ]
Date: 2010-10-30 12:58:34 +0200 From: @drstmane To: SQL devs &lt;<bugs-sql>&gt; Version: 2.40.1 (Oct2010) [obsolete] Duplicates: #2712 Last updated: 2010-11-03 12:25:16 +0100 ## Comment 15165 Date: 2010-10-30 12:58:34 +0200 From: @drstmane SQL tests sql/src/test/BugTracker/Tests/insert_values.SF-1578838.sql & sql/src/test/BugTracker/Tests/savepoint-SF.1898533.sql trigger an assertion failure in BBPdecref: " MonetDB/src/gdk/gdk_bbp.mx:2198: decref: Assertion `0' failed. " cf., Current testing (always with assertion enabled) http://monetdb.cwi.nl/testing/projects/monetdb/Current/sql/.mTests103/Int.64.32.d.1-Fedora10/src_test_BugTracker/insert_values.SF-1578838.err.00.html http://monetdb.cwi.nl/testing/projects/monetdb/Current/sql/.mTests103/GNU.64.64.d.1-Fedora10/src_test_BugTracker/savepoint-SF.1898533.err.00.html or Candidate testing on odd days (with assertion disabled) http://monetdb.cwi.nl/testing/projects/monetdb/Candidate/sql/.mTests103/Int.64.32.d.1-Fedora10/src_test_BugTracker/insert_values.SF-1578838.err.00.html http://monetdb.cwi.nl/testing/projects/monetdb/Candidate/sql/.mTests103/GNU.64.64.d.1-Fedora10/src_test_BugTracker/savepoint-SF.1898533.err.00.html With assertions disabled (e.g., Candidate testing on even days), the first test works fine http://monetdb.cwi.nl/testing/projects/monetdb/Candidate/sql/.mTests103/Int.64.32.d.1-Fedora10/src_test_BugTracker/insert_values.SF-1578838.err.00.html while the second test yields a recounting error: " QUERY = commit; ERROR = !MALException:!ERROR: BBPdecref: tmp_2472 does not have logical references. " http://monetdb.cwi.nl/testing/projects/monetdb/Candidate/sql/.mTests103/GNU.64.64.d.1-Fedora10/src_test_BugTracker/savepoint-SF.1898533.err.00.html ## Comment 15168 Date: 2010-11-03 12:25:16 +0100 From: @drstmane *** This bug has been marked as a duplicate of bug #2712 ***
BBPdecref on BAT with refcount==0
https://api.github.com/repos/MonetDB/MonetDB/issues/2711/comments
0
2020-11-30T11:11:29Z
2024-06-28T13:19:55Z
https://github.com/MonetDB/MonetDB/issues/2711
753,385,069
2,711