Send users-list mailing list submissions to users-list@monetdb.org To subscribe or unsubscribe via the World Wide Web, visit https://www.monetdb.org/mailman/listinfo/users-list or, via email, send a message with subject or body 'help' to users-list-request@monetdb.org You can reach the person managing the list at users-list-owner@monetdb.org When replying, please edit your Subject line so it is more specific than "Re: Contents of users-list digest..." Today's Topics: 1. Re: Double insert (Stefan Manegold) ---------------------------------------------------------------------- Message: 1 Date: Mon, 30 Nov 2015 15:46:53 +0100 (CET) From: Stefan Manegold <Stefan.Manegold@cwi.nl> To: Communication channel for MonetDB users <users-list@monetdb.org> Subject: Re: Double insert Message-ID: <652294476.3054123.1448894813168.JavaMail.zimbra@cwi.nl> Content-Type: text/plain; charset=utf-8 Dear S?bastien & Mathieu, in MonetDB, for numerical types, the NULL value is the smallest value of the type's domain; see also https://www.monetdb.org/Documentation/Manuals/SQLreference/BuiltinTypes Best, Stefan ----- On Nov 30, 2015, at 3:13 PM, S?bastien RAILLARD (PASSMAN) sebastien.raillard@passman.fr wrote:Dear Mark, We are doing some integrity checks over the data loaded in MonetDB, we would like to know how the values can be correctly loaded. We have tested many cases (like min/max) for the different types, that why we have found this behavior. In practice, we will not need to insert the -1.7976931348623157e308 value! But it should be great if the documentation can stat which values are reserved for NULL storage. Best regards, Sebastien From: users-list [mailto:users-list-bounces+sebastien.raillard=passman.fr@monetdb.org] On Behalf Of Mark Raasveldt Sent: vendredi 27 novembre 2015 17:02 To: Communication channel for MonetDB users Subject: Re: Double insert Hey Mathieu, This is not actually a bug, but a feature :) MonetDB encodes null values of numeric columns by a specific value. This is typically the lowest possible value in that column, or close to the lowest possible value for that column. For doubles, the null value is encoded as -1.7976931348623157e308, thus if you insert this value into the database it will be interpreted as null. Is there any specific reason you need this value in the database? Regards, Mark On Fri, Nov 27, 2015 at 4:37 PM, Mathieu Raillard <mraillard@data-mat.fr> wrote: Hi all, We found a strange case this week when testing some insert. We tried to insert -1.7976931348623157e308 in a double value and we get a null in the column. Data to reproduce the case : create table test.testdouble ( id int, testdouble double, primary key (id) ) insert into test.testdouble (id,testdouble) values (1, -1.7976931348623157e308) select * from test.testdouble Regards Mathieu _______________________________________________ users-list mailing list users-list@monetdb.org https://www.monetdb.org/mailman/listinfo/users-list -- Parc d'activit? Tolsto? 4 rue Edouard Aynard 69100 Villeurbanne T?l. +33 (0)4 78 95 05 80 Fax +33 (0)4 78 95 00 17 www.passman.fr www.passman-hotels.com www.passman-camping.com www.passman-sante.com <https://www.facebook.com/PASSMAN-187787814053/> _______________________________________________ users-list mailing list users-list@monetdb.org https://www.monetdb.org/mailman/listinfo/users-list
Luciano Sasso
Vieira Data Scientist & Solutions Architect luciano@gsgroup.com.br | tel: 17 3353-0833 | cel: 17 99706-9335 |
||
www.gsgroup.com.br | ||
Este email foi escaneado pelo Avast antivírus.
|