You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/01/30 07:39:49 UTC

[GitHub] helianthuslulu opened a new issue #6959: sql query Exception

helianthuslulu opened a new issue #6959: sql query Exception 
URL: https://github.com/apache/incubator-druid/issues/6959
 
 
   Hi, all. I use SQL API to query data. BUT failed.
   
   My commad is:
   
   `curl -XPOST -H'Content-Type: application/json' http://101.8.101.23:8082/druid/v2/?pretty -d'{"query" : "SELECT DATASOURCE, COUNT(*) AS TheCount FROM dimension_statistic_5 WHERE \"__time\" BETWEEN DATETIME '2019-01-08' AND DATETIME '2019-01-14' GROUP BY LOCATION LIMIT 10"}'`
   
   EXCEPTION information:
   
   ```
   {
     "error" : "Unknown exception",
     "errorMessage" : "Unexpected token (END_OBJECT), expected FIELD_NAME: missing property 'queryType' that is to contain type id  (for class io.druid.query.Query)\n at [Source: HttpInputOverHTTP@16da6364[c=176,q=0,[0]=null,s=STREAM]; line: 1, column: 176]",
     "errorClass" : "com.fasterxml.jackson.databind.JsonMappingException",
     "host" : null
   }
   ```
   
   ![image](https://user-images.githubusercontent.com/4606832/51965675-3fcb4280-24a5-11e9-9ea0-dd79e3d74359.png)
   
   Does this need a "queryType"?
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org