# IGNITE-392 Minor: Show NA for"Query SQL functions" and "Query Indexed Types".
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/89856df6 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/89856df6 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/89856df6 Branch: refs/heads/sprint-2 Commit: 89856df6a9c95478008e3023b6aa6404413c3509 Parents: 15d761b Author: AKuznetsov <akuznet...@gridgain.com> Authored: Fri Mar 6 10:40:54 2015 +0700 Committer: AKuznetsov <akuznet...@gridgain.com> Committed: Fri Mar 6 10:40:54 2015 +0700 ---------------------------------------------------------------------- .../visor/commands/cache/VisorCacheCommand.scala | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/89856df6/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheCommand.scala ---------------------------------------------------------------------- diff --git a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheCommand.scala b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheCommand.scala index c015fb8..138e60a 100644 --- a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheCommand.scala +++ b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheCommand.scala @@ -869,12 +869,20 @@ object VisorCacheCommand { cacheT +=("Query Escaped Names", bool2Str(queryCfg.sqlEscapeAll())) cacheT +=("Query Onheap Cache Size", queryCfg.sqlOnheapRowCacheSize()) + val sqlFxs = queryCfg.sqlFunctionClasses() + + if (sqlFxs.isEmpty) { + cacheT +=("Query SQL functions", NA) + + val indexedTypes = queryCfg.indexedTypes() + + if (indexedTypes.isEmpty) + cacheT +=("Query Indexed Types", NA) + println(title) cacheT.render() - val sqlFxs = queryCfg.sqlFunctionClasses() - if (sqlFxs.nonEmpty) { println("\nQuery SQL functions:") @@ -887,8 +895,6 @@ object VisorCacheCommand { sqlFxsT.render() } - val indexedTypes = queryCfg.indexedTypes() - if (indexedTypes.nonEmpty) { println("\nQuery Indexed Types:")