[
https://issues.apache.org/jira/browse/TAJO-1627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
DaeMyung Kang updated TAJO-1627:
--------------------------------
Description:
Currently, Tajo Rest API supports well "select * from table" or "select
count(*) from table" <-- normal type
but, Tajo Rest API couldn't support this type of query like "select 1" <--
direct return type
to solve this, queries api should support resultset also.
so I suggest this.
queries return 201 Created when it is normal type of query
and query is direct query type and return 200 with result
like this (direct return type)
{"resultCode":"OK","schema":{"fields":[{"name":"?number","typeDesc":{"dataType":{"type":"INT4"}}}],"fieldsByQualifiedName":{"?number":0},"fieldsByName":{"?number":[0]}},"serializedTupes":["AAAAAAE\u003d"]}
> Rest API should support this type of query "select 1"
> -----------------------------------------------------
>
> Key: TAJO-1627
> URL: https://issues.apache.org/jira/browse/TAJO-1627
> Project: Tajo
> Issue Type: Bug
> Reporter: DaeMyung Kang
> Assignee: DaeMyung Kang
>
> Currently, Tajo Rest API supports well "select * from table" or "select
> count(*) from table" <-- normal type
> but, Tajo Rest API couldn't support this type of query like "select 1" <--
> direct return type
> to solve this, queries api should support resultset also.
> so I suggest this.
> queries return 201 Created when it is normal type of query
> and query is direct query type and return 200 with result
> like this (direct return type)
> {"resultCode":"OK","schema":{"fields":[{"name":"?number","typeDesc":{"dataType":{"type":"INT4"}}}],"fieldsByQualifiedName":{"?number":0},"fieldsByName":{"?number":[0]}},"serializedTupes":["AAAAAAE\u003d"]}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)