From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id D983A445320 for ; Tue, 7 Jul 2020 14:26:01 +0300 (MSK) References: <20200629125630.GA27240@tarantool.org> <20200705142851.GB135859@tarantool.org> <20200706220625.GD22427@tarantool.org> From: Mergen Imeev Message-ID: Date: Tue, 7 Jul 2020 14:26:00 +0300 MIME-Version: 1.0 In-Reply-To: <20200706220625.GD22427@tarantool.org> Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: 8bit Content-Language: en-US Subject: Re: [Tarantool-patches] [PATCH v3 4/8] sql: replace ApplyType by CheckType for IN operator List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nikita Pettik Cc: tarantool-patches@dev.tarantool.org On 07.07.2020 01:06, Nikita Pettik wrote: > On 05 Jul 17:28, Mergen Imeev wrote: >> On Mon, Jun 29, 2020 at 12:56:30PM +0000, Nikita Pettik wrote: >>> On 25 Jun 18:17, imeevma@tarantool.org wrote: >>>> index f7681640e..a2147b0e8 100755 >>>> --- a/test/sql-tap/in3.test.lua >>>> +++ b/test/sql-tap/in3.test.lua >>>> @@ -1,6 +1,6 @@ >>>> #!/usr/bin/env tarantool >>>> test = require("sqltester") >>>> -test:plan(29) >>>> +test:plan(28) >>>> >>>> --!./tcltestrunner.lua >>>> -- 2007 November 29 >>>> @@ -322,18 +322,6 @@ test:do_test( >>>> -- >>>> }) >>>> >>>> -test:do_test( >>>> - "in3-3.3", >>>> - function() >>>> - -- Logically, numeric affinity is applied to both sides before >>>> - -- the comparison, but index can't be used. >>>> - return exec_neph(" SELECT x IN (SELECT b FROM t1) FROM t2 ") >>>> - end, { >>>> - -- >>>> - 1, true >>>> - -- >>>> - }) >>>> - >>> I'd rather not drop this test. It's about scalar-numeric types >>> interaction. Mb it is not the most suitable place for such test, >>> but make sure this scenario is covered somewhere else. >>> >> I added a few tests with SCALARS in 'sql: remove implicit >> cast for comparison' commit. However, there is a lot >> problems with SCALARS at the moment. > Давай с этим что-то делать. Проблемы где-то описаны? Если нет, > давай подробно разберем и заведем тикет(ы). Иначе это звучит как > "idgs потом кто-нибудь это разгребет". В тикете 4230 есть > пункт про скаляр, но мы почему-то обходим его, оставляя > проблему as is. Создал тикет: https://github.com/tarantool/tarantool/issues/5148 В последнем письме ("Re: Check implicit cast between strings and numbers") Гулузан тоже согласен с тем, что по скалярам мы не договорились. > >>> The rest is OK as obvious. >>>