You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Till (JIRA)" <ji...@apache.org> on 2017/05/07 19:16:04 UTC

[jira] [Resolved] (ASTERIXDB-1884) Explain does not work in the query service with pretty printing

     [ https://issues.apache.org/jira/browse/ASTERIXDB-1884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Till resolved ASTERIXDB-1884.
-----------------------------
    Resolution: Fixed

> Explain does not work in the query service with pretty printing
> ---------------------------------------------------------------
>
>                 Key: ASTERIXDB-1884
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1884
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: AsterixDB, HTTP API
>            Reporter: Till
>            Assignee: Till
>
> Running
> {noformat}
> curl -d statement=explain%20select%20value%201%2B1%3B -d pretty=true http://localhost:19002/query/service
> {noformat}
> yields
> {noformat}
> {
> 	"requestID": "363f632f-f602-4ee5-bfa4-07e71593dcad",
> 	"signature": "*",
> 	"results": [ 	"errors": [{
> 	"code": "1",
> 	"msg": "Unrecognized token 'distribute': was expecting ('true', 'false' or 'null')\n at [Source: distribute result [%0->$$2]\n-- DISTRIBUTE_RESULT  |UNPARTITIONED|\n  exchange\n  -- ONE_TO_ONE_EXCHANGE  |UNPARTITIONED|\n    assign [$$2] <- [AInt64: {2}]\n    -- ASSIGN  |UNPARTITIONED|\n      empty-tuple-source\n      -- EMPTY_TUPLE_SOURCE  |UNPARTITIONED|\n; line: 1, column: 11]"
> 	}],
> 	"status": "fatal",
> 	"metrics": {
> 		"elapsedTime": "1.314645676s",
> 		"executionTime": "1.233249720s",
> 		"resultCount": 0,
> 		"resultSize": 0
> 	}
> }
> {noformat}
> which isn't even valid JSON as the {{results}} field is not closed.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)