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

Wrap_key doesn't work with custom value_type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.13
    • sql
    • Fixed table operations failure when wrap_key and custom value_type are used
    • Docs Required, Release Notes Required

    Description

      Steps to reproduce:
      1. Create a table

      CREATE TABLE City (
        name varchar primary key,
        code int
      ) WITH "wrap_key=true,value_type=org.apache.ignite.internal.processors.cache.index.CodeType";

      2. Put something with cache API

      cache.put("123", new CodeType(1));

      3. [Expected] Entity is put correctly
      4. [Actual] Unexcepted binary object class

       

      class org.apache.ignite.IgniteCheckedException: Unexpected binary object class [type=class org.apache.ignite.internal.processors.cache.KeyCacheObjectImpl]
      			at org.apache.ignite.internal.processors.query.property.QueryBinaryProperty.value(QueryBinaryProperty.java:127)
      			at org.apache.ignite.internal.processors.query.h2.opt.GridH2RowDescriptor.columnValue(GridH2RowDescriptor.java:244)((

       

       

      Attachments

        Issue Links

          Activity

            People

              jooger Iurii Gerzhedovich
              jooger Iurii Gerzhedovich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m