From issues-return-73903-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Thu Sep 6 11:32:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id A4F92180674 for ; Thu, 6 Sep 2018 11:32:04 +0200 (CEST) Received: (qmail 96732 invoked by uid 500); 6 Sep 2018 09:32:03 -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 96723 invoked by uid 99); 6 Sep 2018 09:32:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2018 09:32:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 565C1C1ECF for ; Thu, 6 Sep 2018 09:32:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id YtMdj7r3LErN for ; Thu, 6 Sep 2018 09:32:02 +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 6DF2F5F514 for ; Thu, 6 Sep 2018 09:32:01 +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 A0D8CE1013 for ; Thu, 6 Sep 2018 09:32:00 +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 4874A26B57 for ; Thu, 6 Sep 2018 09:32:00 +0000 (UTC) Date: Thu, 6 Sep 2018 09:32:00 +0000 (UTC) From: "Vladimir Ozerov (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-7113) "Key is missing from query" when creating table with key_type=java.lang.String MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-7113?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D166= 05532#comment-16605532 ]=20 Vladimir Ozerov commented on IGNITE-7113: ----------------------------------------- Remerged with master, new test run:=C2=A0https://ci.ignite.apache.org/viewL= og.html?buildId=3D1805647&tab=3DbuildResultsDiv&buildTypeId=3DIgniteTests24= Java8_RunAllSql > "Key is missing from query" when creating table with key_type=3Djava.lang= .String > -------------------------------------------------------------------------= ----- > > Key: IGNITE-7113 > URL: https://issues.apache.org/jira/browse/IGNITE-7113 > Project: Ignite > Issue Type: Bug > Components: sql > Affects Versions: 2.3 > Reporter: Ilya Kasnacheev > Priority: Major > Labels: sql-stability > Attachments: IgniteStringKeyTest.java > > > When creating a table of > {code} > CREATE TABLE IF NOT EXISTS TableWithStringKey ( > ID VARCHAR PRIMARY KEY, > DataNodeId VARCHAR > ) WITH "backups=3D1, cache_name=3DTableWithStringKey, atomicity=3Dtransac= tional, key_type=3Djava.lang.String, value_type=3DTableWithStringKey" > {code} > and attempting an insert later > {code} > INSERT INTO TableWithStringKey (ID, DataNodeId) VALUES ('ref2', 'src2') > {code} > There's suddently an exception > {code} > javax.cache.CacheException: class org.apache.ignite.internal.processors.q= uery.IgniteSQLException: Failed to execute DML statement [stmt=3DINSERT INT= O TableWithStringKey (ID, DataNodeId) VALUES ('ref2', 'src2'), params=3Dnul= l] > =09at org.apache.ignite.internal.processors.cache.IgniteCacheProxyImpl.qu= ery(IgniteCacheProxyImpl.java:597) > =09at org.apache.ignite.internal.processors.cache.IgniteCacheProxyImpl.qu= ery(IgniteCacheProxyImpl.java:560) > =09at org.apache.ignite.internal.processors.cache.GatewayProtectedCachePr= oxy.query(GatewayProtectedCacheProxy.java:382) > =09at com.gridgain.reproducer.IgniteStringKeyTest.insertTest(IgniteString= KeyTest.java:34) > =09... 24 more > Caused by: class org.apache.ignite.internal.processors.query.IgniteSQLExc= eption: Failed to execute DML statement [stmt=3DINSERT INTO TableWithString= Key (ID, DataNodeId) VALUES ('ref2', 'src2'), params=3Dnull] > =09at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.que= ryDistributedSqlFields(IgniteH2Indexing.java:1459) > =09at org.apache.ignite.internal.processors.query.GridQueryProcessor$5.ap= plyx(GridQueryProcessor.java:1909) > =09at org.apache.ignite.internal.processors.query.GridQueryProcessor$5.ap= plyx(GridQueryProcessor.java:1907) > =09at org.apache.ignite.internal.util.lang.IgniteOutClosureX.apply(Ignite= OutClosureX.java:36) > =09at org.apache.ignite.internal.processors.query.GridQueryProcessor.exec= uteQuery(GridQueryProcessor.java:2445) > =09at org.apache.ignite.internal.processors.query.GridQueryProcessor.quer= ySqlFields(GridQueryProcessor.java:1914) > =09at org.apache.ignite.internal.processors.cache.IgniteCacheProxyImpl.qu= ery(IgniteCacheProxyImpl.java:585) > =09... 27 more > Caused by: class org.apache.ignite.IgniteCheckedException: Key is missing= from query > =09at org.apache.ignite.internal.processors.query.h2.dml.UpdatePlanBuilde= r.createSupplier(UpdatePlanBuilder.java:369) > =09at org.apache.ignite.internal.processors.query.h2.dml.UpdatePlanBuilde= r.planForInsert(UpdatePlanBuilder.java:211) > =09at org.apache.ignite.internal.processors.query.h2.dml.UpdatePlanBuilde= r.planForStatement(UpdatePlanBuilder.java:98) > =09at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcess= or.getPlanForStatement(DmlStatementsProcessor.java:473) > =09at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcess= or.updateSqlFields(DmlStatementsProcessor.java:170) > =09at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcess= or.updateSqlFieldsDistributed(DmlStatementsProcessor.java:229) > =09at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.que= ryDistributedSqlFields(IgniteH2Indexing.java:1453) > =09... 33 more > {code} > that goes away if you remove "key_type=3Djava.lang.String" > I'm attaching a reproducer class. -- This message was sent by Atlassian JIRA (v7.6.3#76005)