ignite - SQL-Grid not support AggregationFunction -


i have following sql sentence:

select a.age,floor(a.score) score,count(1) cnt,group_concat(a.id) ids test_table group a.age,floor(a.score) having count(a.id)>10 order a.age asc,floor(a.score) asc 

it can executed in ignite_h2_debug_console, got following exception using sqlfieldsquery:

exception in thread "main" javax.cache.cacheexception: class org.apache.ignite.ignitecheckedexception: null     @ org.apache.ignite.internal.processors.query.gridqueryprocessor.querysqlfields(gridqueryprocessor.java:1823)     @ org.apache.ignite.internal.processors.cache.ignitecacheproxy.query(ignitecacheproxy.java:795)     @ org.apache.ignite.internal.processors.cache.ignitecacheproxy.query(ignitecacheproxy.java:765)     @ com.xxx.ignite.test2.testbinaryquery.query(testbinaryquery.java:194)     @ com.xxx.ignite.test2.testbinaryquery.main(testbinaryquery.java:78) caused by: class org.apache.ignite.ignitecheckedexception: null     @ org.apache.ignite.internal.processors.query.gridqueryprocessor.executequery(gridqueryprocessor.java:2316)     @ org.apache.ignite.internal.processors.query.gridqueryprocessor.querysqlfields(gridqueryprocessor.java:1820)     ... 4 more caused by: java.lang.unsupportedoperationexception     @ org.apache.ignite.internal.processors.query.h2.sql.gridsqlaggregatefunction.getsql(gridsqlaggregatefunction.java:84)     @ org.apache.ignite.internal.processors.query.h2.sql.gridsqlalias.getsql(gridsqlalias.java:80)     @ org.apache.ignite.internal.processors.query.h2.sql.gridsqlselect.getsql(gridsqlselect.java:141)     @ org.apache.ignite.internal.processors.query.h2.sql.gridsqlquerysplitter.split(gridsqlquerysplitter.java:199)     @ org.apache.ignite.internal.processors.query.h2.igniteh2indexing.querydistributedsqlfields(igniteh2indexing.java:1307)     @ org.apache.ignite.internal.processors.query.gridqueryprocessor$5.applyx(gridqueryprocessor.java:1815)     @ org.apache.ignite.internal.processors.query.gridqueryprocessor$5.applyx(gridqueryprocessor.java:1813)     @ org.apache.ignite.internal.util.lang.igniteoutclosurex.apply(igniteoutclosurex.java:36)     @ org.apache.ignite.internal.processors.query.gridqueryprocessor.executequery(gridqueryprocessor.java:2293)     ... 5 more 

i tried , found unsupported operation group_concat. custom-sql-functions not supoort aggregation udaf in spark. supported in future version?

custom aggregation functions not supported in current releases, planned supported in future. here ticket this: https://issues.apache.org/jira/browse/ignite-2177


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -