ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Mekhanikov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-11520) SQL schema is overwritten by static query entity configuration
Date Mon, 11 Mar 2019 10:55:00 GMT
Denis Mekhanikov created IGNITE-11520:

             Summary: SQL schema is overwritten by static query entity configuration
                 Key: IGNITE-11520
                 URL: https://issues.apache.org/jira/browse/IGNITE-11520
             Project: Ignite
          Issue Type: Bug
          Components: sql
    Affects Versions: 2.7, 2.4
            Reporter: Denis Mekhanikov
             Fix For: 2.8

Steps to reproduce:
1. Start and restart a node with persistence enabled and the following cache configuration:
<property name="cacheConfiguration">
    <bean class="org.apache.ignite.configuration.CacheConfiguration">
        <property name="name" value="cache"/>
        <property name="queryEntities">
                <bean class="org.apache.ignite.cache.QueryEntity">
                    <property name="keyType" value="java.lang.Long"/>
                    <property name="valueType" value="Person"/>

                    <property name="fields">
                            <entry key="id" value="java.lang.Long"/>
                            <entry key="firstName" value="java.lang.String"/>

2. Execute the following DDL statement:
ALTER TABLE "cache".Person ADD COLUMN lastName varchar;

3. Restart the node.

After the restart Person table contains only two columns

This message was sent by Atlassian JIRA

View raw message