[
https://issues.apache.org/jira/browse/IGNITE-13482?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ilya Kasnacheev updated IGNITE-13482:
-------------------------------------
Attachment: (was: H2DynamicColumnsShufflingBasicSelfTest.java)
> Client node cannot ALTER TABLE if it was created on a different node
> --------------------------------------------------------------------
>
> Key: IGNITE-13482
> URL: https://issues.apache.org/jira/browse/IGNITE-13482
> Project: Ignite
> Issue Type: Bug
> Components: sql
> Affects Versions: 2.8.1
> Reporter: Ilya Kasnacheev
> Priority: Major
> Attachments: H2DynamicColumnsShufflingBasicSelfTest.java
>
>
> Please see the attached test as well as mailing list thread.
> You need to CREATE table on the same client or do a SELECT before you can
> ALTER TABLE. Otherwise it will fail:
> {code}
> Exception in thread "main" javax.cache.CacheException
> at
> org.apache.ignite.internal.processors.cache.IgniteCacheProxyImpl.query(IgniteCacheProxyImpl.java:817)
> at
> org.apache.ignite.internal.processors.cache.IgniteCacheProxyImpl.query(IgniteCacheProxyImpl.java:750)
> at
> org.apache.ignite.internal.processors.cache.GatewayProtectedCacheProxy.query(GatewayProtectedCacheProxy.java:424)
> at net.aline.cloudedh.base.database.extra.ClientNode.main(ClientNode.java:28)
> Caused by: class
> org.apache.ignite.internal.processors.query.IgniteSQLException: null
> at
> org.apache.ignite.internal.processors.query.h2.CommandProcessor.runCommandH2(CommandProcessor.java:888)
> at
> org.apache.ignite.internal.processors.query.h2.CommandProcessor.runCommand(CommandProcessor.java:418)
> at
> org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.executeCommand(IgniteH2Indexing.java:1048)
> at
> org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.querySqlFields(IgniteH2Indexing.java:1130)
> at
> org.apache.ignite.internal.processors.query.GridQueryProcessor$3.applyx(GridQueryProcessor.java:2406)
> at
> org.apache.ignite.internal.processors.query.GridQueryProcessor$3.applyx(GridQueryProcessor.java:2402)
> at
> org.apache.ignite.internal.util.lang.IgniteOutClosureX.apply(IgniteOutClosureX.java:36)
> at
> org.apache.ignite.internal.processors.query.GridQueryProcessor.executeQuery(GridQueryProcessor.java:2919)
> at
> org.apache.ignite.internal.processors.query.GridQueryProcessor.lambda$querySqlFields$1(GridQueryProcessor.java:2422)
> at
> org.apache.ignite.internal.processors.query.GridQueryProcessor.executeQuerySafe(GridQueryProcessor.java:2460)
> at
> org.apache.ignite.internal.processors.query.GridQueryProcessor.querySqlFields(GridQueryProcessor.java:2396)
> at
> org.apache.ignite.internal.processors.query.GridQueryProcessor.querySqlFields(GridQueryProcessor.java:2323)
> at
> org.apache.ignite.internal.processors.cache.IgniteCacheProxyImpl.query(IgniteCacheProxyImpl.java:802)
> ... 3 more
> Caused by: java.lang.NullPointerException
> at
> org.apache.ignite.internal.processors.query.h2.CommandProcessor.runCommandH2(CommandProcessor.java:834)
> ... 15 more
> {code}
> This happens both with SqlFieldsQuery and JDBC thin driver connecting to this
> client!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)