From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id B604725FAC for ; Fri, 2 Aug 2019 06:52:48 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6Af11DrYsPQY for ; Fri, 2 Aug 2019 06:52:48 -0400 (EDT) Received: from smtp50.i.mail.ru (smtp50.i.mail.ru [94.100.177.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 76D5825E3C for ; Fri, 2 Aug 2019 06:52:48 -0400 (EDT) Date: Fri, 2 Aug 2019 13:52:45 +0300 From: Kirill Yukhin Subject: [tarantool-patches] Re: [PATCH 0/2] Improve operability of typeof() function Message-ID: <20190802105245.qz2uqnab2ixi6hgk@tarantool.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org Cc: v.shpilevoy@tarantool.org, Nikita Pettik Hello, On 27 Jul 21:45, Nikita Pettik wrote: > Branch: https://github.com/tarantool/tarantool/compare/np/gh-4148-add-field-type-to-mem > Issue: https://github.com/tarantool/tarantool/issues/4148 > > First patch adds field_type member to struct Mem. It allows to > improve type calculation for NULL values: when value is fetched > from tuple, field_type is assigned to the type of corresponding > field in space format. So that NULL from field with INTEGER type > now has INTEGER type, from REAL - REAL etc. The only exception is > SCALAR type since it's not basic type but rather aggregation of > types. Thus, NULL values from SCALAR field features default type > (in the next patch it is changed to BOOLEAN). > > Second patch switches default type of NULL literal to boolean as it > was decided to do during numerous discussions in mailing list. See > commit message for details. > > Nikita Pettik (2): > sql: extend struct Mem with field_type member > sql: make default type of NULL be boolean I've checked the patchset into master. -- Regards, Kirill Yukhin