[
https://issues.apache.org/jira/browse/EAGLE-473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15426363#comment-15426363
]
ASF GitHub Bot commented on EAGLE-473:
--------------------------------------
GitHub user qingwen220 opened a pull request:
https://github.com/apache/incubator-eagle/pull/361
EAGLE-473: Query error if query string contains "[]"
https://issues.apache.org/jira/browse/EAGLE-473
Fix the bug with an unit test
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/qingwen220/incubator-eagle EAGLE-473
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-eagle/pull/361.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #361
----
commit 1364614e6f231c1a65c272d04db894d10af3cc12
Author: Qingwen Zhao <[email protected]>
Date: 2016-08-18T10:27:58Z
Fix QueryCompileException when query string contains []
commit 22a02d2ce963c6952bc0336d612f392f61a78039
Author: Qingwen Zhao <[email protected]>
Date: 2016-08-18T12:35:10Z
add an unit test for this fix
----
> Query error if query string contains "[]"
> -----------------------------------------
>
> Key: EAGLE-473
> URL: https://issues.apache.org/jira/browse/EAGLE-473
> Project: Eagle
> Issue Type: Bug
> Affects Versions: v0.3.0
> Reporter: Zhao, Qingwen
> Fix For: v0.5.0
>
>
> Query
> string:[7279137F3E23471BBB397E52FC94543A/ED1F4AD763A64097B640A7CBD54F4AD9]
> Promoted Listing Job 2016/08/15/(25/29)
> {code}
> success: false,
> exception: "java.lang.Exception: java.io.IOException:
> org.apache.eagle.storage.exception.QueryCompileException:
> java.lang.IllegalArgumentException: List query syntax is
> <EntityName>[<Filter>]{<Projection>} Aggregate query syntax is
> <EntityName>[<Filter>]<GroupbyFields>{<AggregateFunctions>}.{<SortOptions>}
> org.apache.eagle.storage.operation.QueryStatement.execute(QueryStatement.java:43)
>
> org.apache.eagle.service.generic.GenericEntityServiceResource.search(GenericEntityServiceResource.java:443)
>
> org.apache.eagle.service.jpm.MRJobExecutionResource.searchJobsById(MRJobExecutionResource.java:149)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> java.lang.reflect.Method.invoke(Method.java:498)
> com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
>
> com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
>
> com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
>
> org.apache.eagle.service.jpm.MRJobExecutionResource.searchJobsById(MRJobExecutionResource.java:158)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> java.lang.reflect.Method.invoke(Method.java:498)
> com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
>
> com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
>
> com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
>
> com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
>
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> ",
> obj: [ ]
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)