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 32EF02EA42 for ; Wed, 15 May 2019 09:00:29 -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 naFTHJ4a48pL for ; Wed, 15 May 2019 09:00:29 -0400 (EDT) Received: from smtp16.mail.ru (smtp16.mail.ru [94.100.176.153]) (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 E53EB2A98B for ; Wed, 15 May 2019 09:00:28 -0400 (EDT) Received: by smtp16.mail.ru with esmtpa (envelope-from ) id 1hQtWF-0007yk-04 for tarantool-patches@freelists.org; Wed, 15 May 2019 16:00:27 +0300 Date: Wed, 15 May 2019 16:00:26 +0300 From: Konstantin Osipov Subject: [tarantool-patches] Re: [PATCH 4/4] schema: explicitly forbid setting sequence for json path key part Message-ID: <20190515130026.GD17999@atlas> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 * Vladimir Davydov [19/05/15 14:16]: > When a space has a sequence, we substitute NULL in the corresponding > primary index part with the next value generated by the sequence. We do > this by patching raw msgpack, see request_handle_sequence. The problem > is we can't do it easily if the field is nested. For example, consider > field [1].a.b. In Lua it is impossible to create tuple {{a = {b = nil}}} It is trivial to do, use msgpack.NULL > so we would need to restore the whole path from an empty tuple. No, it's not the job of the sequence to fill in the entire path. You can expect the right prefix to be there. -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32