Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-4323

DML: INSERT INTO SELECT .. FROM statement causes IgniteException: Wrong value has been set

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8
    • Component/s: None
    • Labels:
      None

      Description

      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

      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
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              skozlov Sergey Kozlov

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment