Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DC10D200D1B for ; Thu, 28 Sep 2017 05:43:33 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DA8651609EB; Thu, 28 Sep 2017 03:43:33 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2C3821609CA for ; Thu, 28 Sep 2017 05:43:33 +0200 (CEST) Received: (qmail 74001 invoked by uid 500); 28 Sep 2017 03:43:32 -0000 Mailing-List: contact dev-help@asterixdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.apache.org Delivered-To: mailing list dev@asterixdb.apache.org Received: (qmail 73989 invoked by uid 99); 28 Sep 2017 03:43:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Sep 2017 03:43:31 +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 4BBEA1A5012 for ; Thu, 28 Sep 2017 03:43:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.48 X-Spam-Level: ** X-Spam-Status: No, score=2.48 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=uci-edu.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id kv-aHM34stl1 for ; Thu, 28 Sep 2017 03:43:30 +0000 (UTC) Received: from mail-it0-f44.google.com (mail-it0-f44.google.com [209.85.214.44]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 92E305F1D5 for ; Thu, 28 Sep 2017 03:43:29 +0000 (UTC) Received: by mail-it0-f44.google.com with SMTP id y138so725958itc.5 for ; Wed, 27 Sep 2017 20:43:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uci-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=7W76VrAH2ViXqm4kADpkKessWYck/0NxG8GC7yZkfyw=; b=a6Q+jqJC2j1BQhGjv6YcQvXKmljCd8Si3NjrRLp4zvD/dyVPE7n3kTXCLgRuE183Mx Lv7HolhRIvHwTR7LP28SvD/dvzvalvAzLQtSbizibmh8H/B1e3ccnglgBCatD822sa6W mKAuC3TUxTETzB1hgj8KnEViP1N8J5wLLM1Whbax9rTZ7DMYhmIjmHxfNhG/+12W9bog NDRQVg2sxJyHoRpONDsm3cZPAUGEgzpWAPc+IE6ZLN2h7hWZX3yKoBR7L1BFKmWWuIqS 3mkzhgyOuzkIrHzf+gKtzqc5j0p0kcCycG3/LUWaUngHBhGLyevVjAVTXEkQ/rbXNKJC VfSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=7W76VrAH2ViXqm4kADpkKessWYck/0NxG8GC7yZkfyw=; b=UrchJk9YXHNd/HTzaKRWI6mlPAZELYU+eAuwC7zwYOnYWmZkY69LSbBISZEM85W8wb /rwsd3QUkmlLwzNrkbKRdy13nEs5lY3n4ciVMSooPzquvOVTf4hLdKx5XbUMMy9XxBOl KiWbTl/QHTvaa8FE4ZOqcfwmqh1hMIlLPAe4wedzrNtr2eJRk9mlAwGQUlayHeHhBH6w 8Qy0VJrZGHAkYICRD81VHNjv4ggwfnvwfN8VNk9BQ858RIbTsDJPSmzepuj/XczlHuZ3 ja6osXuqkUI4fewzQHIXiU5iOy9Adg/CsTVFubc0Q5GCFAMALQ6RwaZZEYXyGYu7VQA3 h6qA== X-Gm-Message-State: AHPjjUiLEk1jTN5Dk3DK3tLrx8nlxUFnXTq3LGLyoSG5bCzp3pHHQYuB BVA8RA0F42pdhN7C/z9SPwJJdAhhWhXZPSCxM1h2QA== X-Google-Smtp-Source: AOwi7QDe0NDKEpLwEN8d2hHEUYt2W3BMymulc6tC2eU2dSz6WrOQdEt8SOtqQAbGypCfjofMUrjvvS8l+k9e+u+2K40= X-Received: by 10.36.57.70 with SMTP id l67mr4222500ita.56.1506570208096; Wed, 27 Sep 2017 20:43:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.92.65 with HTTP; Wed, 27 Sep 2017 20:43:27 -0700 (PDT) From: Chen Luo Date: Wed, 27 Sep 2017 20:43:27 -0700 Message-ID: Subject: Question about AsterixDB Functions To: dev@asterixdb.apache.org Content-Type: multipart/alternative; boundary="001a114a9c6615563d055a37b6f1" archived-at: Thu, 28 Sep 2017 03:43:34 -0000 --001a114a9c6615563d055a37b6f1 Content-Type: text/plain; charset="UTF-8" Hi Devs, Recently I was facing a problem with the IntersectOperator. Previously we've used the IntersectOperator to intersects primary keys returned from searching multiple secondary indexes, and use them to perform primary key lookups. However, with component Id-based acceleration, each primary key returned from a secondary index would carry a component Id (which is two numbers). Thus, inside the IntersectOperator, we only intersect the primary keys, while need to select a proper component Id based on these inputs. For example, for 3 input tuples (a, [1, 3]), (a, [0, 2]) and (a, [2, 2]), where 'a' is the primary key and the interval is the component Id, we may return (a, [2, 2]) as the output of the intersection. Thus, my question is that *is there any function interface inside AsterixDB which takes a list of input tuples and produce a tuple as a result*? With this functionality, we can devise strategies to select the best component Id for each primary key. Any help is appreciated! Best regards, Chen Luo --001a114a9c6615563d055a37b6f1--