ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Kozlov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-4323) DML: INSERT INTO SELECT .. FROM statement causes IgniteException: Wrong value has been set
Date Mon, 28 Nov 2016 12:17:58 GMT
Sergey Kozlov created IGNITE-4323:
-------------------------------------

             Summary: DML: INSERT INTO SELECT .. FROM statement causes IgniteException: Wrong
value has been set
                 Key: IGNITE-4323
                 URL: https://issues.apache.org/jira/browse/IGNITE-4323
             Project: Ignite
          Issue Type: Bug
    Affects Versions: 1.8
            Reporter: Sergey Kozlov
             Fix For: 1.8


The idea of scenario to copy data from cache to cache.

0. Extract the attachment into {{examples}} directory
1. Start {{org.apache.ignite.examples.datagrid.ExtSqlExampleNodeStartup}}
2. Start one ore more {{org.apache.ignite.examples.datagrid.ExtSqlExample}}
{noformat}
Exception in thread "main" javax.cache.CacheException: class org.apache.ignite.IgniteException:
Wrong value has been set [typeName=org.apache.ignite.testtools.model.AllTypes, fieldName=enumCol,
fieldType=Enum, assignedValueType=Object]
	at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.query(IgniteCacheProxy.java:761)
	at org.apache.ignite.examples.datagrid.ExtSqlExample.main(ExtSqlExample.java:92)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Caused by: class org.apache.ignite.IgniteException: Wrong value has been set [typeName=org.apache.ignite.testtools.model.AllTypes,
fieldName=enumCol, fieldType=Enum, assignedValueType=Object]
	at org.apache.ignite.internal.processors.query.GridQueryProcessor.queryTwoStep(GridQueryProcessor.java:817)
	at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.query(IgniteCacheProxy.java:749)
	... 6 more
Caused by: class org.apache.ignite.IgniteCheckedException: Wrong value has been set [typeName=org.apache.ignite.testtools.model.AllTypes,
fieldName=enumCol, fieldType=Enum, assignedValueType=Object]
	at org.apache.ignite.internal.processors.query.GridQueryProcessor.executeQuery(GridQueryProcessor.java:1800)
	at org.apache.ignite.internal.processors.query.GridQueryProcessor.queryTwoStep(GridQueryProcessor.java:810)
	... 7 more
Caused by: class org.apache.ignite.binary.BinaryObjectException: Wrong value has been set
[typeName=org.apache.ignite.testtools.model.AllTypes, fieldName=enumCol, fieldType=Enum, assignedValueType=Object]
	at org.apache.ignite.internal.binary.builder.BinaryObjectBuilderImpl.checkMetadata(BinaryObjectBuilderImpl.java:418)
	at org.apache.ignite.internal.binary.builder.BinaryObjectBuilderImpl.serializeTo(BinaryObjectBuilderImpl.java:227)
	at org.apache.ignite.internal.binary.builder.BinaryObjectBuilderImpl.build(BinaryObjectBuilderImpl.java:187)
	at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.rowToKeyValue(DmlStatementsProcessor.java:809)
	at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.doInsert(DmlStatementsProcessor.java:705)
	at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.executeUpdateStatement(DmlStatementsProcessor.java:282)
	at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.updateSqlFields(DmlStatementsProcessor.java:155)
	at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.updateSqlFieldsTwoStep(DmlStatementsProcessor.java:185)
	at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.queryTwoStep(IgniteH2Indexing.java:1266)
	at org.apache.ignite.internal.processors.query.GridQueryProcessor$4.applyx(GridQueryProcessor.java:812)
	at org.apache.ignite.internal.processors.query.GridQueryProcessor$4.applyx(GridQueryProcessor.java:810)
	at org.apache.ignite.internal.util.lang.IgniteOutClosureX.apply(IgniteOutClosureX.java:36)
	at org.apache.ignite.internal.processors.query.GridQueryProcessor.executeQuery(GridQueryProcessor.java:1777)
	... 8 more
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message