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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.8
    • 1.8
    • None
    • 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

        1. IGNITE-4323_20161128_2.zip
          10 kB
          Sergey Kozlov
        2. IGNITE-4323_20161128.zip
          10 kB
          Sergey Kozlov

        Activity

          People

            Unassigned Unassigned
            skozlov Sergey Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: