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 2DEBB200CF1 for ; Mon, 28 Aug 2017 14:24:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2C2A7163A2C; Mon, 28 Aug 2017 12:24:07 +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 77C0A163A2E for ; Mon, 28 Aug 2017 14:24:06 +0200 (CEST) Received: (qmail 38687 invoked by uid 500); 28 Aug 2017 12:24:05 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 38678 invoked by uid 99); 28 Aug 2017 12:24:05 -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, 28 Aug 2017 12:24:05 +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 401A91A2D98 for ; Mon, 28 Aug 2017 12:24:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] 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 aJtz_gMntTlv for ; Mon, 28 Aug 2017 12:24:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 4A5965F3FE for ; Mon, 28 Aug 2017 12:24:04 +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 9C9C5E0E1B for ; Mon, 28 Aug 2017 12:24:02 +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 2B5A325383 for ; Mon, 28 Aug 2017 12:24:00 +0000 (UTC) Date: Mon, 28 Aug 2017 12:24:00 +0000 (UTC) From: "Vladimir Ozerov (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (IGNITE-5620) Meaningful error codes and types of exceptions for SQL operations MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 28 Aug 2017 12:24:07 -0000 [ https://issues.apache.org/jira/browse/IGNITE-5620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vladimir Ozerov updated IGNITE-5620: ------------------------------------ Component/s: sql > Meaningful error codes and types of exceptions for SQL operations > ------------------------------------------------------------------ > > Key: IGNITE-5620 > URL: https://issues.apache.org/jira/browse/IGNITE-5620 > Project: Ignite > Issue Type: Task > Components: sql > Affects Versions: 2.0 > Reporter: Denis Magda > Assignee: Alexander Paschenko > Fix For: 2.2 > > > Presently, SQL engine throws a generic type of exception with custom text in case of an operation failure. In result, Ignite ODBC driver returns a similar error code (2000) for different kind of failures. > For example, error code 2000 is returned for the following > {code} > Duplicate key during INSERT [key=CorpcontactcountKey [idHash=1412656257, hash=2004096461, mdn=919200000000]] > {code} > {code} > Failed to parse query: INSERT INTO "DG".Corpcontactcount (mdn,contactcount,lastupdatetime) > values(?,?,?,?) > {code} > {code} > Wrong value has been set [typeName=Pocsubscrinfo, fieldName=vocoderid, fieldType=short, assignedValueType=byte] Error Code: 2000 > {code} > The following has to be done: > * Create unique types of exceptions for Java whenever applicable. > * Add {{errorCode}} parameter and method to a generic SQL exception. > * ODBC and JDBC drivers have to return unique codes based on the exception code or type. > * All the codes have to be documented on readme.io. -- This message was sent by Atlassian JIRA (v6.4.14#64029)