ignite_bug_share.zip <http://apache-ignite-users.70518.x6.nabble.com/file/t2625/ignite_bug_share.zip>
I have tested by adding QuerySqlFields as well, with or with out it, it is working when I add it, but if I restart the client it is not able to identify nested columns as its alias is null or not equal to whole path. Please see below exception. If we can make alias with whole nested object path we will be able to add indexes and fields dynamically with out any issues. Ignite, out of the box provides dynamic field and index alterations. But it has a bug when we add nested field / index dynamically. This small fix will fix this bug. PFA for the code. SEVERE: Failed to reinitialize local partitions (rebalancing will be stopped): GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=5, minorTopVer=0], discoEvt=DiscoveryEvent [evtNode=TcpDiscoveryNode [id=a5379438-868b-43e4-b402-02edf2913795, addrs=[0:0:0:0:0:0:0:1, 114.18.146.93, 127.0.0.1], sockAddrs=[/0:0:0:0:0:0:0:1:0, /127.0.0.1:0, DTC4C4A8C85A622.ent.wfb.bank.corp/114.18.146.93:0], discPort=0, order=5, intOrder=0, lastExchangeTime=1570648315703, loc=true, ver=2.7.6#20190911-sha1:21f7ca41, isClient=true], topVer=5, nodeId8=a5379438, msg=null, type=NODE_JOINED, tstamp=1570648318843], nodeId=a5379438, evt=NODE_JOINED] class org.apache.ignite.IgniteCheckedException: Field not found: Users.userName at org.apache.ignite.internal.processors.query.QueryIndexDescriptorImpl.addField(QueryIndexDescriptorImpl.java:124) at org.apache.ignite.internal.processors.query.QueryUtils.createIndexDescriptor(QueryUtils.java:735) at org.apache.ignite.internal.processors.query.QueryUtils.processIndex(QueryUtils.java:752) at org.apache.ignite.internal.processors.query.QueryUtils.processIndexes(QueryUtils.java:688) at org.apache.ignite.internal.processors.query.QueryUtils.processBinaryMeta(QueryUtils.java:612) at org.apache.ignite.internal.processors.query.QueryUtils.typeForQueryEntity(QueryUtils.java:480) at org.apache.ignite.internal.processors.query.GridQueryProcessor.onCacheStart0(GridQueryProcessor.java:706) at org.apache.ignite.internal.processors.query.GridQueryProcessor.onCacheStart(GridQueryProcessor.java:866) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.startCache(GridCacheProcessor.java:1337) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:2172) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.startCachesOnLocalJoin(GridCacheProcessor.java:2030) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.initCachesOnLocalJoin(GridDhtPartitionsExchangeFuture.java:927) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:769) at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2681) at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2553) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120) at java.lang.Thread.run(Thread.java:748) -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/