Return-Path: X-Original-To: apmail-asterixdb-dev-archive@minotaur.apache.org Delivered-To: apmail-asterixdb-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6EFC618E24 for ; Sun, 9 Aug 2015 08:05:07 +0000 (UTC) Received: (qmail 63817 invoked by uid 500); 9 Aug 2015 08:05:07 -0000 Delivered-To: apmail-asterixdb-dev-archive@asterixdb.apache.org Received: (qmail 63758 invoked by uid 500); 9 Aug 2015 08:05:07 -0000 Mailing-List: contact dev-help@asterixdb.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.incubator.apache.org Delivered-To: mailing list dev@asterixdb.incubator.apache.org Received: (qmail 63745 invoked by uid 99); 9 Aug 2015 08:05:07 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Aug 2015 08:05:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 9F0EC1A9B59 for ; Sun, 9 Aug 2015 08:05:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.792 X-Spam-Level: * X-Spam-Status: No, score=1.792 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-1.108, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 8ZNbtNfEkyFO for ; Sun, 9 Aug 2015 08:04:53 +0000 (UTC) Received: from mail-ob0-f171.google.com (mail-ob0-f171.google.com [209.85.214.171]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id A146E428F6 for ; Sun, 9 Aug 2015 07:55:11 +0000 (UTC) Received: by obbfr1 with SMTP id fr1so68309064obb.1 for ; Sun, 09 Aug 2015 00:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=19JNwON6joXGXnQuNFojb7EHIpSH5C93EeUA9q7xd/c=; b=aOay8yABP1hmSPsM7O0ERKw+MUk6PnwhgvV3HN+rQCVtVelIgDfrqbE/mBZrSUS7Hm 286TsFgVPFf9TKfuPWuOjsqB3tCBKgqlpka/iyPaH9lFTl8eah1c+ZV0y+xTHaPV34EV +PgW15xjHNWWbYIp3WLeRGe8cHzod/X6SWxR69bW5b43Uscn9sIBVZiiXNBpnKWFUsQD oddEtnLjrdnsABR45xOshFmyIa23FOTBnrk/9m5B7bYt54TK2EXhP9HPsHdg/1bK7UN3 wXggs5VgkvI21CUSZnYk14wZn26aO5aUpP9ZPY2UwXKmc0THEx8nVRobu46TOSiok6q6 t1Mg== X-Received: by 10.182.142.202 with SMTP id ry10mr14386379obb.27.1439106866190; Sun, 09 Aug 2015 00:54:26 -0700 (PDT) Received: from mikejcarey.local (ip72-219-186-39.oc.oc.cox.net. [72.219.186.39]) by smtp.googlemail.com with ESMTPSA id s4sm9914849ois.20.2015.08.09.00.54.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Aug 2015 00:54:25 -0700 (PDT) Message-ID: <55C70730.7010709@gmail.com> Date: Sun, 09 Aug 2015 00:54:24 -0700 From: Mike Carey User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: dev@asterixdb.incubator.apache.org Subject: Re: Issue status for indexing open data? (@Ildar?) References: <55C4F658.70004@ics.uci.edu> In-Reply-To: Content-Type: multipart/alternative; boundary="------------080500080508020003030909" --------------080500080508020003030909 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Q: Is the nullability info drawn from the index entry really used? Can you give an example of where/how? (Wondering if it's perhaps removable.) On 8/7/15 2:39 PM, Ildar Absalyamov wrote: > So it turned out I was wrong about about open indexes & nullable types. Is > is indeed not allowed that, is you look closely on parser's production rules > The problem appears when we're trying to create an ordinary index on > nullable field. The information about the field type is persisted in the > index metadata entry. In the open case the type is provided by the user, > whereas in the closed the type is extracted from the record's metadata > entry (where we do have a nullability attribute). We can replicate the > nullablility attribute in the index metadata entry as well, but I think > that is against the Till's original comment since this information is > becoming spread around several places. Other solution would be to carry "if > (open) {} else if (closed) {}" logic throughout the code, where we do need > nullability information, but that will be ugly. > > 2015-08-07 11:18 GMT-07:00 Michael Carey : > >> Q: (@Ildar) - What's the status of removing "?" from the open index DDL >> and reverting that (unnecessary) part of the metadata patch? >> > > --------------080500080508020003030909--