ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [07/50] [abbrv] ignite git commit: IGNITE-7880 Web Console: Return enum values from SQL queries.
Date Mon, 19 Mar 2018 06:26:44 GMT
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/ignite-zk
Commit: a8170f78a384af024bdd483294f2f241bef5a7f8
Parents: caba7cc
Author: Alexey Kuznetsov <akuznetsov@apache.org>
Authored: Wed Mar 7 18:33:28 2018 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
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) {


Mime
View raw message