This repository was archived by the owner on May 12, 2021. It is now read-only.
TAJO-1627 Rest API should support this type of query "select 1" #590
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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"]}