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 E63FD2998C for ; Mon, 26 Mar 2018 09:30:16 -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 R_fs9lO6gi-n for ; Mon, 26 Mar 2018 09:30:16 -0400 (EDT) Received: from smtp52.i.mail.ru (smtp52.i.mail.ru [94.100.177.112]) (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 9E12A29985 for ; Mon, 26 Mar 2018 09:30:16 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: [tarantool-patches] Re: [PATCH] Introduce 'view' space option From: "v.shpilevoy@tarantool.org" In-Reply-To: <20180326131139.94448-1-korablev@tarantool.org> Date: Mon, 26 Mar 2018 16:30:13 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <8440DB05-B4E9-4DC1-9E0F-81B64749AC2C@tarantool.org> References: <20180326131139.94448-1-korablev@tarantool.org> 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: Nikita Pettik > 26 =D0=BC=D0=B0=D1=80=D1=82=D0=B0 2018 =D0=B3., =D0=B2 16:11, Nikita = Pettik =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB= (=D0=B0): >=20 > Now, space can feature SQL specific option 'view'. In SQL view is a > space without any functional parts except for 'SELECT' statement. > In this respect, creation of any indexes is prohibited on views; > views must have SQL statement; transofrmation from space to view is = also > banned. > It is worth mentioning, that setting 'view' option isn't available via > Lua interface. Seems, that it is not true, because I still can set view via raw insert = into _space: box.cfg{} s =3D box.schema.create_space('test') raw_s =3D box.space._space:get{s.id}:totable() s:drop() raw_s[6].view =3D true raw_s[6].sql =3D 'invalid shit' box.space._space:replace(raw_s) -- this works ok. It can not be fixed now, but please, note this in a commit message, and = add a test, that shows box.schema.create_space(name, {view =3D true, sql = =3D 'invalid shit'}) fails, but box.space._space:replace(raw_s) works ok. And how about delete TF_View in the same commit?=