[ignite] Git Push Summary
Repository: ignite Updated Branches: refs/heads/ignite-7803 [deleted] 389898dda
ignite git commit: IGNITE-7803 Fixed regression in tests.
Repository: ignite Updated Branches: refs/heads/master 6dbcf7e34 -> 90c0af887 IGNITE-7803 Fixed regression in tests. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/90c0af88 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/90c0af88 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/90c0af88 Branch: refs/heads/master Commit: 90c0af887508ebace570cd13e7cf6b4369a995dc Parents: 6dbcf7e Author: Alexey KuznetsovAuthored: Thu Mar 8 00:17:20 2018 +0700 Committer: Alexey Kuznetsov Committed: Thu Mar 8 00:17:20 2018 +0700 -- .../client/impl/ClientCacheFlagsCodecTest.java | 35 +++ .../internal/client/GridClientCacheFlag.java| 48 ++ .../impl/connection/GridClientConnection.java | 18 +--- .../connection/GridClientNioTcpConnection.java | 6 +- .../handlers/cache/GridCacheCommandHandler.java | 96 +--- .../cache/GridCacheCommandHandlerSelfTest.java | 9 +- .../http/jetty/GridJettyRestHandler.java| 4 +- 7 files changed, 120 insertions(+), 96 deletions(-) -- http://git-wip-us.apache.org/repos/asf/ignite/blob/90c0af88/modules/clients/src/test/java/org/apache/ignite/internal/client/impl/ClientCacheFlagsCodecTest.java -- diff --git a/modules/clients/src/test/java/org/apache/ignite/internal/client/impl/ClientCacheFlagsCodecTest.java b/modules/clients/src/test/java/org/apache/ignite/internal/client/impl/ClientCacheFlagsCodecTest.java index 22e9a25..a9bda0a 100644 --- a/modules/clients/src/test/java/org/apache/ignite/internal/client/impl/ClientCacheFlagsCodecTest.java +++ b/modules/clients/src/test/java/org/apache/ignite/internal/client/impl/ClientCacheFlagsCodecTest.java @@ -18,16 +18,14 @@ package org.apache.ignite.internal.client.impl; import java.util.Arrays; -import java.util.Collections; import java.util.EnumSet; +import java.util.Set; + import junit.framework.TestCase; + import org.apache.ignite.internal.client.GridClientCacheFlag; -import org.apache.ignite.internal.client.impl.connection.GridClientConnection; -import org.apache.ignite.internal.processors.rest.handlers.cache.GridCacheCommandHandler; import org.apache.ignite.internal.util.typedef.F; -import static org.apache.ignite.internal.client.GridClientCacheFlag.KEEP_BINARIES; - /** * Tests conversions between GridClientCacheFlag. */ @@ -37,16 +35,13 @@ public class ClientCacheFlagsCodecTest extends TestCase { */ public void testEncodingDecodingFullness() { for (GridClientCacheFlag f : GridClientCacheFlag.values()) { -if (f == KEEP_BINARIES) -continue; - -int bits = GridClientConnection.encodeCacheFlags(Collections.singleton(f)); +int bits = GridClientCacheFlag.encodeCacheFlags(EnumSet.of(f)); assertTrue(bits != 0); -boolean out = GridCacheCommandHandler.parseCacheFlags(bits); +Set out = GridClientCacheFlag.parseCacheFlags(bits); -assertEquals(out, true); +assertTrue(out.contains(f)); } } @@ -54,9 +49,10 @@ public class ClientCacheFlagsCodecTest extends TestCase { * Tests that groups of client flags can be correctly converted to corresponding server flag groups. */ public void testGroupEncodingDecoding() { -// all +// All. doTestGroup(GridClientCacheFlag.values()); -// none + +// None. doTestGroup(); } @@ -64,15 +60,14 @@ public class ClientCacheFlagsCodecTest extends TestCase { * @param flags Client flags to be encoded, decoded and checked. */ private void doTestGroup(GridClientCacheFlag... flags) { -EnumSet flagSet = F.isEmpty(flags) ? EnumSet.noneOf(GridClientCacheFlag.class) : -EnumSet.copyOf(Arrays.asList(flags)); - -int bits = GridClientConnection.encodeCacheFlags(flagSet); +EnumSet flagSet = F.isEmpty(flags) +? EnumSet.noneOf(GridClientCacheFlag.class) +: EnumSet.copyOf(Arrays.asList(flags)); -boolean out = GridCacheCommandHandler.parseCacheFlags(bits); +int bits = GridClientCacheFlag.encodeCacheFlags(flagSet); -int length = flagSet.contains(KEEP_BINARIES) ? flagSet.size() - 1 : flagSet.size(); +Set out = GridClientCacheFlag.parseCacheFlags(bits); -assertEquals(length > 0, out); +assertTrue(out.containsAll(flagSet)); } } http://git-wip-us.apache.org/repos/asf/ignite/blob/90c0af88/modules/core/src/main/java/org/apache/ignite/internal/client/GridClientCacheFlag.java -- diff --git
ignite git commit: IGNITE-7897: Add example for LSQR with data normalization.
Repository: ignite Updated Branches: refs/heads/master a8170f78a -> 6dbcf7e34 IGNITE-7897: Add example for LSQR with data normalization. This closes #3614 Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/6dbcf7e3 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/6dbcf7e3 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/6dbcf7e3 Branch: refs/heads/master Commit: 6dbcf7e34ec3b1d3cd80fc83ab53a9959c3b1fe1 Parents: a8170f7 Author: Anton DmitrievAuthored: Wed Mar 7 15:11:53 2018 +0300 Committer: Yury Babak Committed: Wed Mar 7 15:11:53 2018 +0300 -- ...nWithLSQRTrainerAndNormalizationExample.java | 184 +++ 1 file changed, 184 insertions(+) -- http://git-wip-us.apache.org/repos/asf/ignite/blob/6dbcf7e3/examples/src/main/java/org/apache/ignite/examples/ml/regression/linear/DistributedLinearRegressionWithLSQRTrainerAndNormalizationExample.java -- diff --git a/examples/src/main/java/org/apache/ignite/examples/ml/regression/linear/DistributedLinearRegressionWithLSQRTrainerAndNormalizationExample.java b/examples/src/main/java/org/apache/ignite/examples/ml/regression/linear/DistributedLinearRegressionWithLSQRTrainerAndNormalizationExample.java new file mode 100644 index 000..61195c4 --- /dev/null +++ b/examples/src/main/java/org/apache/ignite/examples/ml/regression/linear/DistributedLinearRegressionWithLSQRTrainerAndNormalizationExample.java @@ -0,0 +1,184 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.ignite.examples.ml.regression.linear; + +import java.util.Arrays; +import java.util.UUID; +import javax.cache.Cache; +import org.apache.ignite.Ignite; +import org.apache.ignite.IgniteCache; +import org.apache.ignite.Ignition; +import org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction; +import org.apache.ignite.cache.query.QueryCursor; +import org.apache.ignite.cache.query.ScanQuery; +import org.apache.ignite.configuration.CacheConfiguration; +import org.apache.ignite.examples.ml.math.matrix.SparseDistributedMatrixExample; +import org.apache.ignite.ml.dataset.impl.cache.CacheBasedDatasetBuilder; +import org.apache.ignite.ml.math.impls.vector.DenseLocalOnHeapVector; +import org.apache.ignite.ml.preprocessing.normalization.NormalizationPreprocessor; +import org.apache.ignite.ml.preprocessing.normalization.NormalizationTrainer; +import org.apache.ignite.ml.regressions.linear.LinearRegressionLSQRTrainer; +import org.apache.ignite.ml.regressions.linear.LinearRegressionModel; +import org.apache.ignite.thread.IgniteThread; + +/** + * Run linear regression model over distributed matrix. + * + * @see LinearRegressionLSQRTrainer + * @see NormalizationTrainer + * @see NormalizationPreprocessor + */ +public class DistributedLinearRegressionWithLSQRTrainerAndNormalizationExample { +/** */ +private static final double[][] data = { +{8, 78, 284, 9.10381, 109}, +{9.30191, 68, 433, 8.69809, 144}, +{7.5, 70, 739, 7.19809, 113}, +{8.89619, 96, 1792, 8.89619, 97}, +{10.1981, 74, 477, 8.30191, 206}, +{8.30191, 111, 362, 10.8962, 124}, +{8.80191, 77, 671, 10, 152}, +{8.80191, 168, 636, 9.10381, 162}, +{10.6981, 82, 329, 8.69809, 150}, +{11.6981, 89, 634, 7.59905, 134}, +{8.5, 149, 631, 10.8019, 292}, +{8.30191, 60, 257, 9.5, 108}, +{8.19809, 96, 284, 8.80191, 111}, +{7.90095, 83, 603, 9.5, 182}, +{10.3019, 130, 686, 8.69809, 129}, +{7.40095, 145, 345, 11.1981, 158}, +{9.60381, 112, 1357, 9.69809, 186}, +{9.30191, 131, 544, 9.60381, 177}, +{10.6038, 80, 205, 9.10381, 127}, +{9.69809, 130, 1264, 9.19809, 179}, +{11.6038, 140, 688, 8.30191, 80}, +
ignite git commit: IGNITE-7880 Web Console: Return enum values from SQL queries.
Repository: ignite Updated Branches: refs/heads/master caba7cca8 -> a8170f78a IGNITE-7880 Web Console: Return enum values from SQL queries. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/a8170f78 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/a8170f78 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/a8170f78 Branch: refs/heads/master Commit: a8170f78a384af024bdd483294f2f241bef5a7f8 Parents: caba7cc Author: Alexey KuznetsovAuthored: Wed Mar 7 18:33:28 2018 +0700 Committer: Alexey Kuznetsov Committed: Wed Mar 7 18:33:28 2018 +0700 -- .../apache/ignite/internal/visor/query/VisorQueryUtils.java | 9 + 1 file changed, 9 insertions(+) -- http://git-wip-us.apache.org/repos/asf/ignite/blob/a8170f78/modules/core/src/main/java/org/apache/ignite/internal/visor/query/VisorQueryUtils.java -- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/query/VisorQueryUtils.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/query/VisorQueryUtils.java index aa4cb48..a47acf6 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/visor/query/VisorQueryUtils.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/visor/query/VisorQueryUtils.java @@ -195,6 +195,15 @@ public class VisorQueryUtils { } if (meta != null) { +if (meta.isEnum()) { +try { +return obj.deserialize().toString(); +} +catch (BinaryObjectException ignore) { +// NO-op. +} +} + SB buf = new SB(meta.typeName()); if (meta.fieldNames() != null) {
ignite git commit: IGNITE-7803 Fixed tests.
Repository: ignite Updated Branches: refs/heads/ignite-7803 [created] 389898dda IGNITE-7803 Fixed tests. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/389898dd Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/389898dd Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/389898dd Branch: refs/heads/ignite-7803 Commit: 389898dda870ec4fdaaf4ba3b7224bf93b7c09a7 Parents: caba7cc Author: Alexey KuznetsovAuthored: Wed Mar 7 18:27:15 2018 +0700 Committer: Alexey Kuznetsov Committed: Wed Mar 7 18:27:15 2018 +0700 -- .../client/impl/ClientCacheFlagsCodecTest.java | 27 +++-- .../internal/client/GridClientCacheFlag.java| 6 ++ .../impl/connection/GridClientConnection.java | 12 ++- .../handlers/cache/GridCacheCommandHandler.java | 102 ++- .../cache/GridCacheCommandHandlerSelfTest.java | 9 +- .../http/jetty/GridJettyRestHandler.java| 4 +- 6 files changed, 94 insertions(+), 66 deletions(-) -- http://git-wip-us.apache.org/repos/asf/ignite/blob/389898dd/modules/clients/src/test/java/org/apache/ignite/internal/client/impl/ClientCacheFlagsCodecTest.java -- diff --git a/modules/clients/src/test/java/org/apache/ignite/internal/client/impl/ClientCacheFlagsCodecTest.java b/modules/clients/src/test/java/org/apache/ignite/internal/client/impl/ClientCacheFlagsCodecTest.java index 22e9a25..1598ea7 100644 --- a/modules/clients/src/test/java/org/apache/ignite/internal/client/impl/ClientCacheFlagsCodecTest.java +++ b/modules/clients/src/test/java/org/apache/ignite/internal/client/impl/ClientCacheFlagsCodecTest.java @@ -18,8 +18,8 @@ package org.apache.ignite.internal.client.impl; import java.util.Arrays; -import java.util.Collections; import java.util.EnumSet; +import java.util.Set; import junit.framework.TestCase; import org.apache.ignite.internal.client.GridClientCacheFlag; import org.apache.ignite.internal.client.impl.connection.GridClientConnection; @@ -37,16 +37,13 @@ public class ClientCacheFlagsCodecTest extends TestCase { */ public void testEncodingDecodingFullness() { for (GridClientCacheFlag f : GridClientCacheFlag.values()) { -if (f == KEEP_BINARIES) -continue; - -int bits = GridClientConnection.encodeCacheFlags(Collections.singleton(f)); +int bits = GridClientConnection.encodeCacheFlags(EnumSet.of(f)); assertTrue(bits != 0); -boolean out = GridCacheCommandHandler.parseCacheFlags(bits); +Set out = GridCacheCommandHandler.parseCacheFlags(bits); -assertEquals(out, true); +assertTrue(out.contains(f)); } } @@ -54,9 +51,10 @@ public class ClientCacheFlagsCodecTest extends TestCase { * Tests that groups of client flags can be correctly converted to corresponding server flag groups. */ public void testGroupEncodingDecoding() { -// all +// All doTestGroup(GridClientCacheFlag.values()); -// none + +// None doTestGroup(); } @@ -64,15 +62,14 @@ public class ClientCacheFlagsCodecTest extends TestCase { * @param flags Client flags to be encoded, decoded and checked. */ private void doTestGroup(GridClientCacheFlag... flags) { -EnumSet flagSet = F.isEmpty(flags) ? EnumSet.noneOf(GridClientCacheFlag.class) : -EnumSet.copyOf(Arrays.asList(flags)); +EnumSet flagSet = F.isEmpty(flags) +? EnumSet.noneOf(GridClientCacheFlag.class) +: EnumSet.copyOf(Arrays.asList(flags)); int bits = GridClientConnection.encodeCacheFlags(flagSet); -boolean out = GridCacheCommandHandler.parseCacheFlags(bits); - -int length = flagSet.contains(KEEP_BINARIES) ? flagSet.size() - 1 : flagSet.size(); +Set out = GridCacheCommandHandler.parseCacheFlags(bits); -assertEquals(length > 0, out); +assertTrue(out.containsAll(flagSet)); } } http://git-wip-us.apache.org/repos/asf/ignite/blob/389898dd/modules/core/src/main/java/org/apache/ignite/internal/client/GridClientCacheFlag.java -- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/client/GridClientCacheFlag.java b/modules/core/src/main/java/org/apache/ignite/internal/client/GridClientCacheFlag.java index 2e4831e..d131467 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/client/GridClientCacheFlag.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/client/GridClientCacheFlag.java @@ -49,4 +49,10 @@ public enum GridClientCacheFlag { public
ignite git commit: IGNITE-7851: .NET: CacheConfiguration(string, Type[]) depricated.
Repository: ignite Updated Branches: refs/heads/master ed76af245 -> caba7cca8 IGNITE-7851: .NET: CacheConfiguration(string, Type[]) depricated. This closes #3595 Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/caba7cca Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/caba7cca Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/caba7cca Branch: refs/heads/master Commit: caba7cca8603dc0f7ae7c0faba714f089448bf72 Parents: ed76af2 Author: apopovAuthored: Wed Mar 7 12:58:32 2018 +0300 Committer: Igor Sapego Committed: Wed Mar 7 12:58:32 2018 +0300 -- .../Cache/Query/CacheQueriesCodeConfigurationTest.cs | 2 +- .../Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesTest.cs | 6 -- .../Cache/Query/Linq/CacheLinqTest.Misc.cs | 4 ++-- .../Cache/Query/Linq/CacheLinqTest.Numerics.cs | 4 ++-- .../Apache.Ignite.Core.Tests/Client/Cache/CacheTestNoMeta.cs | 2 +- .../Cache/Configuration/CacheConfiguration.cs | 2 ++ .../examples/Apache.Ignite.Examples/Datagrid/QueryExample.cs | 2 +- .../dotnet/examples/Apache.Ignite.Examples/Sql/LinqExample.cs | 5 +++-- .../dotnet/examples/Apache.Ignite.Examples/Sql/SqlExample.cs | 5 +++-- 9 files changed, 19 insertions(+), 13 deletions(-) -- http://git-wip-us.apache.org/repos/asf/ignite/blob/caba7cca/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesCodeConfigurationTest.cs -- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesCodeConfigurationTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesCodeConfigurationTest.cs index 9768fca..a05923d 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesCodeConfigurationTest.cs +++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesCodeConfigurationTest.cs @@ -161,7 +161,7 @@ namespace Apache.Ignite.Core.Tests.Cache.Query using (var ignite = Ignition.Start(cfg)) { var cache = ignite.GetOrCreateCache (new CacheConfiguration(CacheName, -typeof (AttributeQueryPerson))); +new QueryEntity(typeof(int), typeof(AttributeQueryPerson; Assert.IsNotNull(cache); http://git-wip-us.apache.org/repos/asf/ignite/blob/caba7cca/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesTest.cs -- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesTest.cs index 278d1fd..ceeeb37 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesTest.cs +++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesTest.cs @@ -616,8 +616,10 @@ namespace Apache.Ignite.Core.Tests.Cache.Query [Test] public void TestCustomSchema() { -var doubles = GetIgnite().GetOrCreateCache (new CacheConfiguration("doubles", typeof(double))); -var strings = GetIgnite().GetOrCreateCache (new CacheConfiguration("strings", typeof(string))); +var doubles = GetIgnite().GetOrCreateCache (new CacheConfiguration("doubles", +new QueryEntity(typeof(int), typeof(double; +var strings = GetIgnite().GetOrCreateCache (new CacheConfiguration("strings", +new QueryEntity(typeof(int), typeof(string; doubles[1] = 36.6; strings[1] = "foo"; http://git-wip-us.apache.org/repos/asf/ignite/blob/caba7cca/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Misc.cs -- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Misc.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Misc.cs index 3585281..d9c57d0 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Misc.cs +++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Misc.cs @@ -237,8 +237,8 @@ namespace Apache.Ignite.Core.Tests.Cache.Query.Linq public void TestLocalQuery() { // Create partitioned cache -var cache = -Ignition.GetIgnite().GetOrCreateCache (new CacheConfiguration("partCache",
ignite git commit: IGNITE-5298 .NET: DML update via LINQ
Repository: ignite Updated Branches: refs/heads/master 31087002b -> ed76af245 IGNITE-5298 .NET: DML update via LINQ This closes #3599 Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/ed76af24 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/ed76af24 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/ed76af24 Branch: refs/heads/master Commit: ed76af245e7947b0e701907bde76849971a6a75c Parents: 3108700 Author: Sergey StronchinskiyAuthored: Wed Mar 7 11:44:51 2018 +0300 Committer: Pavel Tupitsyn Committed: Wed Mar 7 11:44:51 2018 +0300 -- .../Cache/Query/Linq/CacheLinqTest.Base.cs | 4 + .../Cache/Query/Linq/CacheLinqTest.Custom.cs| 195 +++ .../Apache.Ignite.Linq.csproj | 4 + .../Apache.Ignite.Linq/CacheLinqExtensions.cs | 28 +++ .../Apache.Ignite.Linq/IUpdateDescriptor.cs | 51 + .../Apache.Ignite.Linq/Impl/AliasDictionary.cs | 8 +- .../Impl/CacheQueryExpressionVisitor.cs | 43 +++- .../Impl/CacheQueryModelVisitor.cs | 143 ++ .../Apache.Ignite.Linq/Impl/CacheQueryParser.cs | 3 + .../Impl/Dml/MemberUpdateContainer.cs | 38 .../Impl/Dml/UpdateAllExpressionNode.cs | 138 + .../Impl/Dml/UpdateAllResultOperator.cs | 75 +++ 12 files changed, 680 insertions(+), 50 deletions(-) -- http://git-wip-us.apache.org/repos/asf/ignite/blob/ed76af24/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Base.cs -- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Base.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Base.cs index d70a7a4..5b56abd 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Base.cs +++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Base.cs @@ -346,6 +346,8 @@ namespace Apache.Ignite.Core.Tests.Cache.Query.Linq [QuerySqlField] public int AliasTest { get; set; } +[QuerySqlField] public bool Bool { get; set; } + public void WriteBinary(IBinaryWriter writer) { writer.WriteInt("age1", Age); @@ -354,6 +356,7 @@ namespace Apache.Ignite.Core.Tests.Cache.Query.Linq writer.WriteObject("Address", Address); writer.WriteTimestamp("Birthday", Birthday); writer.WriteInt("AliasTest", AliasTest); +writer.WriteBoolean("Bool", Bool); } public void ReadBinary(IBinaryReader reader) @@ -364,6 +367,7 @@ namespace Apache.Ignite.Core.Tests.Cache.Query.Linq Address = reader.ReadObject("Address"); Birthday = reader.ReadTimestamp("Birthday"); AliasTest = reader.ReadInt("AliasTest"); +Bool = reader.ReadBoolean("Bool"); } } http://git-wip-us.apache.org/repos/asf/ignite/blob/ed76af24/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Custom.cs -- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Custom.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Custom.cs index f797b4c..c854f1f 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Custom.cs +++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Custom.cs @@ -28,6 +28,7 @@ namespace Apache.Ignite.Core.Tests.Cache.Query.Linq { using System; using System.Linq; +using Apache.Ignite.Core.Cache; using Apache.Ignite.Core.Cache.Configuration; using Apache.Ignite.Core.Common; using Apache.Ignite.Linq; @@ -103,5 +104,199 @@ namespace Apache.Ignite.Core.Tests.Cache.Query.Linq var ex = Assert.Throws(() => qry.RemoveAll()); Assert.AreEqual("Failed to parse query", ex.Message.Substring(0, 21)); } + +/// +/// Tests the UpdateAll extension without condition. +/// +[Test] +public void TestUpdateAllUnconditional() +{ +// Use new cache to avoid touching static data. +var personCount = 10; +var orgCount = 3; +var personQueryable = GetPersonCacheQueryable("updateAllTest_Unconditional_Persons", personCount, orgCount); +var orgQueryable = GetOrgCacheQueryable("updateAllTest_Unconditional_Org", orgCount); + +var allOrg =
ignite git commit: IGNITE-7566 .NET: Build scripts: stop build when one of the steps fails
Repository: ignite Updated Branches: refs/heads/master 0936f162b -> 31087002b IGNITE-7566 .NET: Build scripts: stop build when one of the steps fails Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/31087002 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/31087002 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/31087002 Branch: refs/heads/master Commit: 31087002b94127c3f1365e90e2a011b3585d085a Parents: 0936f16 Author: Pavel TupitsynAuthored: Wed Mar 7 11:25:07 2018 +0300 Committer: Pavel Tupitsyn Committed: Wed Mar 7 11:25:07 2018 +0300 -- modules/platforms/dotnet/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/ignite/blob/31087002/modules/platforms/dotnet/build.sh -- diff --git a/modules/platforms/dotnet/build.sh b/modules/platforms/dotnet/build.sh index 1a58ff0..66d3852 100755 --- a/modules/platforms/dotnet/build.sh +++ b/modules/platforms/dotnet/build.sh @@ -21,7 +21,7 @@ # # Fail on error. -#set -e +set -e # Build Java. pushd .
ignite git commit: IGNITE-7566 .NET: Build scripts: stop build when one of the steps fails
Repository: ignite Updated Branches: refs/heads/master 8c3731e83 -> 0936f162b IGNITE-7566 .NET: Build scripts: stop build when one of the steps fails Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/0936f162 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/0936f162 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/0936f162 Branch: refs/heads/master Commit: 0936f162b84d0ff701ac020405e7e44f55fae52e Parents: 8c3731e Author: Pavel TupitsynAuthored: Wed Mar 7 11:10:08 2018 +0300 Committer: Pavel Tupitsyn Committed: Wed Mar 7 11:10:08 2018 +0300 -- modules/platforms/dotnet/build-mono.sh | 5 + modules/platforms/dotnet/build.sh | 5 + 2 files changed, 10 insertions(+) -- http://git-wip-us.apache.org/repos/asf/ignite/blob/0936f162/modules/platforms/dotnet/build-mono.sh -- diff --git a/modules/platforms/dotnet/build-mono.sh b/modules/platforms/dotnet/build-mono.sh old mode 100644 new mode 100755 index 6f73eb7..a0a01c1 --- a/modules/platforms/dotnet/build-mono.sh +++ b/modules/platforms/dotnet/build-mono.sh @@ -20,10 +20,15 @@ # Builds Java and .NET with Mono # +# Fail on error. +set -e + +# Build Java. pushd . cd ../../.. mvn clean package -DskipTests -Dmaven.javadoc.skip=true -Plgpl,-examples,-clean-libs,-release,-scala,-clientDocs popd +# Build .NET. nuget restore Apache.Ignite.sln msbuild Apache.Ignite.sln /p:RunCodeAnalysis=false http://git-wip-us.apache.org/repos/asf/ignite/blob/0936f162/modules/platforms/dotnet/build.sh -- diff --git a/modules/platforms/dotnet/build.sh b/modules/platforms/dotnet/build.sh index fc5b344..1a58ff0 100755 --- a/modules/platforms/dotnet/build.sh +++ b/modules/platforms/dotnet/build.sh @@ -20,10 +20,15 @@ # Builds Java and .NET with .NET Core # +# Fail on error. +#set -e + +# Build Java. pushd . cd ../../.. mvn clean package -DskipTests -Dmaven.javadoc.skip=true -Plgpl,-examples,-clean-libs,-release,-scala,-clientDocs popd +# Build .NET cd Apache.Ignite.Core.Tests.DotNetCore dotnet build