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 E5BA8200C3B for ; Sat, 18 Mar 2017 23:26:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E44E6160B7F; Sat, 18 Mar 2017 22:26:50 +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 3A827160B7A for ; Sat, 18 Mar 2017 23:26:50 +0100 (CET) Received: (qmail 11903 invoked by uid 500); 18 Mar 2017 22:26:44 -0000 Mailing-List: contact notifications-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 notifications@asterixdb.apache.org Received: (qmail 11878 invoked by uid 99); 18 Mar 2017 22:26:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Mar 2017 22:26:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D96B0C1FA8 for ; Sat, 18 Mar 2017 22:26:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.651 X-Spam-Level: X-Spam-Status: No, score=0.651 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id h8yK-CIFTfJc for ; Sat, 18 Mar 2017 22:26:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id AFC365F297 for ; Sat, 18 Mar 2017 22:26:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DF73FE060F for ; Sat, 18 Mar 2017 22:26:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 989C0254CC for ; Sat, 18 Mar 2017 22:26:41 +0000 (UTC) Date: Sat, 18 Mar 2017 22:26:41 +0000 (UTC) From: "Michael J. Carey (JIRA)" To: notifications@asterixdb.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ASTERIXDB-1847) Confusing ambiguous alias error message MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 18 Mar 2017 22:26:51 -0000 [ https://issues.apache.org/jira/browse/ASTERIXDB-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15931418#comment-15931418 ] Michael J. Carey commented on ASTERIXDB-1847: --------------------------------------------- Then I think one could make the error message "clearer" by dropping the a-word: ambiguous. And maybe even the other a-word: alias. We could simply say: "Cannot resolve the reference for identifier `name` [AlgebricksException]" I think that's actually clearer - the "ambiguity" is misleading/confusing, I think, and the "undefined" in the original msg also seems like it goes without saying. (If it was defined, presumably we wouldn't be having resolution issues. :-)) I think that this shorter error message would more quickly focus the query author on the crux of the problem. > Confusing ambiguous alias error message > --------------------------------------- > > Key: ASTERIXDB-1847 > URL: https://issues.apache.org/jira/browse/ASTERIXDB-1847 > Project: Apache AsterixDB > Issue Type: Bug > Reporter: Michael J. Carey > Assignee: Yingyi Bu > Attachments: HW8_DataInit.txt, HW8_TableInit.txt > > > This query, when run on the attached data: > USE TopicalBird; > SELECT btag, about FROM Chirps WHERE about IN > (SELECT Topics.tid FROM Topics WHERE name = 'Kindle' OR name = 'Surface') ; > Yields this error msg: > Cannot resolve ambiguous alias reference for undefined identifier name [AlgebricksException] > It's not obvious to naive users (or me :-)) why this is an ambiguous reference. Could we improve this error msg somehow? This may be a fairly typical error pattern for SQL --> SQL++ users -- i.e., they are used to SQL's unqualified column-naming permissiveness, and will carry those habits into NoSQL-land and then be perplexed at times. -- This message was sent by Atlassian JIRA (v6.3.15#6346)