[tarantool-patches] Re: [PATCH 0/2] Improve operability of typeof() function
Kirill Yukhin
kyukhin at tarantool.org
Fri Aug 2 13:52:45 MSK 2019
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
More information about the Tarantool-patches
mailing list