ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [38/50] [abbrv] ignite git commit: IGNITE-4742: Fixed IgniteCacheUpdateSqlQuerySelfTest.testTypeConversions flakiness. This closes #1569.
Date Wed, 01 Mar 2017 14:33:21 GMT
IGNITE-4742: Fixed IgniteCacheUpdateSqlQuerySelfTest.testTypeConversions flakiness. This closes
#1569.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/2d0d5673
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/2d0d5673
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/2d0d5673

Branch: refs/heads/master
Commit: 2d0d5673292814a914208770e9f3992c17a078be
Parents: 19d6c31
Author: Alexander Paschenko <alexander.a.paschenko@gmail.com>
Authored: Wed Feb 22 15:32:56 2017 +0300
Committer: devozerov <vozerov@gridgain.com>
Committed: Wed Feb 22 15:32:56 2017 +0300

----------------------------------------------------------------------
 .../cache/IgniteCacheUpdateSqlQuerySelfTest.java         | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/2d0d5673/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheUpdateSqlQuerySelfTest.java
----------------------------------------------------------------------
diff --git a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheUpdateSqlQuerySelfTest.java
b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheUpdateSqlQuerySelfTest.java
index 575f617..7ea8ba7 100644
--- a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheUpdateSqlQuerySelfTest.java
+++ b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheUpdateSqlQuerySelfTest.java
@@ -24,6 +24,7 @@ import java.text.ParseException;
 import java.text.SimpleDateFormat;
 import java.util.ArrayList;
 import java.util.Arrays;
+import java.util.Collections;
 import java.util.Date;
 import java.util.List;
 import org.apache.ignite.IgniteCache;
@@ -182,14 +183,14 @@ public class IgniteCacheUpdateSqlQuerySelfTest extends IgniteCacheAbstractSqlDml
         cache.query(new SqlFieldsQuery("insert into \"AllTypes\"(_key, _val, \"dateCol\",
\"booleanCol\"," +
             "\"tsCol\") values(2, ?, '2016-11-30 12:00:00', false, DATE '2016-12-01')").setArgs(new
AllTypes(2L)));
 
-        cache.query(new SqlFieldsQuery("select \"primitiveIntsCol\" from \"AllTypes\"")).getAll();
-
-        cache.query(new SqlFieldsQuery("update \"AllTypes\" set \"doubleCol\" = CAST('50'
as INT)," +
-            " \"booleanCol\" = 80, \"innerTypeCol\" = ?, \"strCol\" = PI(), \"shortCol\"
= " +
+        List<List<?>> resLst = cache.query(new SqlFieldsQuery("update \"AllTypes\"
set \"doubleCol\" = " +
+            "CAST('50' as INT), \"booleanCol\" = 80, \"innerTypeCol\" = ?, \"strCol\" = PI(),
\"shortCol\" = " +
             "CAST(WEEK(PARSEDATETIME('2016-11-30', 'yyyy-MM-dd')) as VARCHAR), " +
             "\"sqlDateCol\"=TIMESTAMP '2016-12-02 13:47:00', \"tsCol\"=TIMESTAMPADD('MI',
2, " +
             "DATEADD('DAY', 2, \"tsCol\")), \"primitiveIntsCol\" = ?, \"bytesCol\" = ?")
-            .setArgs(new AllTypes.InnerType(80L), new int[] {2, 3}, new Byte[] {4, 5, 6}));
+            .setArgs(new AllTypes.InnerType(80L), new int[] {2, 3}, new Byte[] {4, 5, 6})).getAll();
+
+        assertEquals(Collections.singletonList(Collections.singletonList(1L)), resLst);
 
         AllTypes res = (AllTypes) cache.get(2L);
 


Mime
View raw message