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 488BB200C2F for ; Mon, 6 Mar 2017 20:30:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 46FF8160B76; Mon, 6 Mar 2017 19:30:01 +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 61BA1160B66 for ; Mon, 6 Mar 2017 20:30:00 +0100 (CET) Received: (qmail 74369 invoked by uid 500); 6 Mar 2017 19:29:59 -0000 Mailing-List: contact dev-help@calcite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@calcite.apache.org Delivered-To: mailing list dev@calcite.apache.org Received: (qmail 74351 invoked by uid 99); 6 Mar 2017 19:29:59 -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; Mon, 06 Mar 2017 19:29:59 +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 8B6F01A0528 for ; Mon, 6 Mar 2017 19:29:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.02 X-Spam-Level: X-Spam-Status: No, score=-0.02 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id BNoGSt5BKl3o for ; Mon, 6 Mar 2017 19:29:57 +0000 (UTC) Received: from mail-pg0-f41.google.com (mail-pg0-f41.google.com [74.125.83.41]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 7651F5F36E for ; Mon, 6 Mar 2017 19:29:57 +0000 (UTC) Received: by mail-pg0-f41.google.com with SMTP id 77so25312638pgc.1 for ; Mon, 06 Mar 2017 11:29:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=CfT2WDqvnQTAF8aS2BiqS2apIwg93GX9xz42Hvjegms=; b=ocliRCRMdP9y8LBfeSKAsJPCVBHmxLNj/0eKNg88wyve9I1wiFFyMHqTuoLKGmpf47 l7WU9mEsRxsIfYbXaC0vJxE17Gw/toVXASv15Ymq3MLaP1gLlrhqDL10OR1Ws/jAl4jM z/YcThlEofTCGPw8cyYsCcM+eNkPq/WDh7N8K05KTfXd+DE+QGd4uyM4q4JPK4ZQoSaU qtDlGbb2ixn2czQbTIPNjZ3CI46pQz5Sb9ru3af9h+bpRzQ8poht2DwJ7r+ssZZrqr6V XuHdb8LkSlnKFJiiBCAMUnGI6lIHb8lPegckJ1LTGoJR9eHCa8qFNiqZbyNq5HSFsahG /pbg== X-Gm-Message-State: AMke39lvYQNw7ZA/3HzFE4f4H2bIJfDjGzQutRnNws5exNABmNxNl4SYgwc5sijYJEEO2Q== X-Received: by 10.99.140.29 with SMTP id m29mr23031934pgd.174.1488828589671; Mon, 06 Mar 2017 11:29:49 -0800 (PST) Received: from [10.22.8.144] ([192.175.27.10]) by smtp.gmail.com with ESMTPSA id d63sm41092240pfg.132.2017.03.06.11.29.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Mar 2017 11:29:48 -0800 (PST) From: Julian Hyde Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: Are named parameters supported in Calcite? Date: Mon, 6 Mar 2017 11:29:47 -0800 References: <2ba12dac-1f7d-14cf-ef92-298f3d5bb801@gmail.com> To: dev@calcite.apache.org In-Reply-To: <2ba12dac-1f7d-14cf-ef92-298f3d5bb801@gmail.com> Message-Id: X-Mailer: Apple Mail (2.3259) archived-at: Mon, 06 Mar 2017 19:30:01 -0000 Calcite/Avatica does not support named parameters because as far as I = know JDBC and ODBC do not. I am open to the idea of supporting them. I think it would require = changes to both Calcite (for the parser & parameter metadata) and = Avatica (adding name to parameter metadata). Can you create a JIRA case, including a specification for how these work = such as the SQL syntax for named parameters. Julian > On Mar 5, 2017, at 2:03 AM, F21 wrote: >=20 > Hello all, >=20 > Go 1.8 has been released recently and it introduces some new features = and interfaces for the database/sql package which I maintain the Go = avatica driver for. I am currently working on introducing these new = features to the Go driver. >=20 > One of the new features in Go 1.8 is support for named parameters: >=20 > SELECT * FROM my_table WHERE my_column > :parameter1 AND mycolumn2 > = :parameter2 >=20 > Implementation of named parameter is optional for cases where they are = not supported. I've search JIRA as well as language reference here: = https://calcite.apache.org/docs/reference.html >=20 > =46rom my understanding, this does not appear to be supported in = Calcite, but it would be cool if this can be confirmed :) >=20 > Cheers, >=20 > Francis >=20