Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurs if the format of the timestamp field is not defined when creating the data source. #1494

Closed
ufoscw opened this issue Feb 21, 2019 · 0 comments
Labels
bug Something isn't working @datasource Component Name : Datasource/Connection Management
Milestone

Comments

@ufoscw
Copy link
Contributor

ufoscw commented Feb 21, 2019

Describe the bug
An error occurs if the format of the timestamp field is not defined when creating the data source.

To Reproduce
Steps to reproduce the behavior:

  1. Go to mysql workbench
  2. execute query
select CAST("2017-08-29" as DATE) as dt;
  1. click chart preview
  2. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
devtools_-_metatron-web-05_8180_app_v2_workbench_11dd8bca-8e97-4980-ad28-14c22a58411c

{
   "code":"EG0001",
   "message":"Fail to process response : [{\"error\":\"Unknown exception\",\"errorMessage\":\"Need to specify dimension specs, for now\",\"errorClass\":\"java.lang.IllegalArgumentException\",\"errorStack\":[\"io.druid.server.BrokerQueryResource.loadToIndex(BrokerQueryResource.java:417)\",\"sun.reflect.GeneratedMethodAccessor370.invoke(Unknown Source)\",\"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$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)\",\"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)\",\"com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)\",\"... more\"],\"host\":\"metatron-hadoop-03:8082\",\"serviceName\":\"druid/prod/broker\"}]",
   "details":"QueryTimeExcetpion: [{\"error\":\"Unknown exception\",\"errorMessage\":\"Need to specify dimension specs, for now\",\"errorClass\":\"java.lang.IllegalArgumentException\",\"errorStack\":[\"io.druid.server.BrokerQueryResource.loadToIndex(BrokerQueryResource.java:417)\",\"sun.reflect.GeneratedMethodAccessor370.invoke(Unknown Source)\",\"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$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)\",\"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)\",\"com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)\",\"... more\"],\"host\":\"metatron-hadoop-03:8082\",\"serviceName\":\"druid/prod/broker\"}]"
}

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@ufoscw ufoscw added bug Something isn't working @datasource Component Name : Datasource/Connection Management labels Feb 21, 2019
@kyungtaak kyungtaak added this to the 3.2.0 milestone Feb 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working @datasource Component Name : Datasource/Connection Management
Projects
None yet
Development

No branches or pull requests

2 participants