Last active
August 29, 2015 14:00
-
-
Save sonots/4d16bcac40f288720ca8 to your computer and use it in GitHub Desktop.
EPL の GROUP BY 句に Java コードを設定した時のエラー
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014-05-04 16:38:01 +0900 [ERROR] : Exception Java::ComEspertechEsperClient::EPStatementException: Error starting statement: Group-by expressions must refer to property names [select label, met | |
hod, count(1, status.matches('^2\d\d$')) as count_2xx, count(1, status.matches('^3\d\d$')) as count_3xx, count(1, status.matches('^400$')) as count_400, count(1, status.matches('^4(?!00)\d\d$')) as count_4xx, count(1, status.matches('^503$')) as count_503, count(1, status.matches('^5(?!03)\d\d$')) as count_5xx from q_84c74968462c70a238442a9862362360.win:time_batch(5 seconds) group by | |
method.concat("_")]2014-05-04 16:38:01 +0900 [ERROR] : com.espertech.esper.core.service.StatementLifecycleSvcImpl.startInternal(com/espertech/esper/core/service/StatementLifecycleSvcImpl.java:637) | |
2014-05-04 16:38:01 +0900 [ERROR] : com.espertech.esper.core.service.StatementLifecycleSvcImpl.start(com/espertech/esper/core/service/StatementLifecycleSvcImpl.java:595)2014-05-04 16:38:01 +0900 [ERROR] : com.espertech.esper.core.service.StatementLifecycleSvcImpl.createAndStart(com/espertech/esper/core/service/StatementLifecycleSvcImpl.java:137)2014-05-04 16:38:01 +0900 [ERROR] : com.espertech.esper.core.service.EPAdministratorImpl.create(com/espertech/esper/core/service/EPAdministratorImpl.java:154) | |
2014-05-04 16:38:01 +0900 [ERROR] : com.espertech.esper.core.service.EPAdministratorImpl.create(com/espertech/esper/core/service/EPAdministratorImpl.java:125)2014-05-04 16:38:01 +0900 [ERROR] : java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:606)2014-05-04 16:38:01 +0900 [ERROR] : RUBY.register_query_actually(/home/game/.rbenv/versions/norikra/lib/ruby/gems/shared/gems/norikra-0.1.7-java/lib/norikra/engine.rb:449) | |
2014-05-04 16:38:01 +0900 [ERROR] : RUBY.register_waiting_queries(/home/game/.rbenv/versions/norikra/lib/ruby/gems/shared/gems/norikra-0.1.7-java/lib/norikra/engine.rb:409)2014-05-04 16:38:01 +0900 [ERROR] : org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)2014-05-04 16:38:01 +0900 [ERROR] : RUBY.register_waiting_queries(/home/game/.rbenv/versions/norikra/lib/ruby/gems/shared/gems/norikra-0.1.7-java/lib/norikra/engine.rb:401) | |
2014-05-04 16:38:01 +0900 [ERROR] : RUBY.register_fieldset(/home/game/.rbenv/versions/norikra/lib/ruby/gems/shared/gems/norikra-0.1.7-java/lib/norikra/engine.rb:418) | |
2014-05-04 16:38:01 +0900 [ERROR] : org.jruby.ext.thread.Mutex.synchronize(org/jruby/ext/thread/Mutex.java:149) | |
2014-05-04 16:38:01 +0900 [ERROR] : RUBY.register_fieldset(/home/game/.rbenv/versions/norikra/lib/ruby/gems/shared/gems/norikra-0.1.7-java/lib/norikra/engine.rb:414) | |
2014-05-04 16:38:01 +0900 [ERROR] : RUBY.send(/home/game/.rbenv/versions/norikra/lib/ruby/gems/shared/gems/norikra-0.1.7-java/lib/norikra/engine.rb:220) | |
2014-05-04 16:38:01 +0900 [ERROR] : org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) | |
2014-05-04 16:38:01 +0900 [ERROR] : RUBY.send(/home/game/.rbenv/versions/norikra/lib/ruby/gems/shared/gems/norikra-0.1.7-java/lib/norikra/engine.rb:214) | |
2014-05-04 16:38:01 +0900 [ERROR] : RUBY.send(/home/game/.rbenv/versions/norikra/lib/ruby/gems/shared/gems/norikra-0.1.7-java/lib/norikra/rpc/handler.rb:95) | |
2014-05-04 16:38:01 +0900 [ERROR] : RUBY.logging(/home/game/.rbenv/versions/norikra/lib/ruby/gems/shared/gems/norikra-0.1.7-java/lib/norikra/rpc/handler.rb:20) | |
2014-05-04 16:38:01 +0900 [ERROR] : RUBY.send(/home/game/.rbenv/versions/norikra/lib/ruby/gems/shared/gems/norikra-0.1.7-java/lib/norikra/rpc/handler.rb:94) | |
2014-05-04 16:38:01 +0900 [ERROR] : RUBY.call(/home/game/.rbenv/versions/norikra/lib/ruby/gems/shared/gems/msgpack-rpc-over-http-jruby-0.0.6/lib/msgpack/rpc_over_http/server/dispatcher.rb:19) | |
2014-05-04 16:38:01 +0900 [ERROR] : RUBY.call(/home/game/.rbenv/versions/norikra/lib/ruby/gems/shared/gems/msgpack-rpc-over-http-jruby-0.0.6/lib/msgpack/rpc_over_http/server/response_packer.r | |
b:17) |
登録時にはエラーが出ないが、データを流すと Norikra サーバ側にエラーが出る.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
norikra-client query add status_count.foo "$(cat <<EOF
SELECT
label, method,
COUNT(1, status.matches('^2\d\d$')) AS count_2xx,
COUNT(1, status.matches('^3\d\d$')) AS count_3xx,
COUNT(1, status.matches('^400$')) AS count_400,
COUNT(1, status.matches('^4(?!00)\d\d$')) AS count_4xx,
COUNT(1, status.matches('^503$')) AS count_503,
COUNT(1, status.matches('^5(?!03)\d\d$')) AS count_5xx
FROM visualizer.win:time_batch(5 sec)
GROUP BY method.concat("_")
EOF
)"