[
https://issues.apache.org/jira/browse/DRILL-7603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17081877#comment-17081877
]
ASF GitHub Bot commented on DRILL-7603:
---------------------------------------
paul-rogers commented on issue #2052: DRILL-7603 and DRILL-7604: Add schema,
options to REST query
URL: https://github.com/apache/drill/pull/2052#issuecomment-612655336
Updated to add the default schema to the Profiles query editor. Filed
DRILL-7697 for additional improvements, such as storing the default schema in
the profile so we can rerun the query without the user having to specify the
schema manually.
Noticed that the two editors had drifted apart visually, so tried to unify
them a bit. DRILL-7697 asks for the proper solution: a single template file
included in both places.
Fixed the error you mentioned. Added a simple test program to allow testing
the UI from the debugger without having to wait for a full build.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Allow setting default schema using REST API / Web UI
> ----------------------------------------------------
>
> Key: DRILL-7603
> URL: https://issues.apache.org/jira/browse/DRILL-7603
> Project: Apache Drill
> Issue Type: Improvement
> Components: Web Server
> Affects Versions: 1.17.0
> Reporter: Dobes Vandermeer
> Assignee: Paul Rogers
> Priority: Minor
> Fix For: 1.18.0
>
>
> Currently, to set the default schema you must run the `USE <schema>` command.
> However, the Web UI and REST API do not keep a session open so the `USE`
> command does not affect the next query sent to the API.
> To support a default schema for REST API & Web UI I propose a parameter to
> the API "defaultSchema" which sets the default schema for that query.
> Example: curl -d '{"query":"SHOW
> FILES","defaultSchema":"dfs.tmp","queryType":"SQL"}' -H 'Content-Type:
> application/json' -H 'User-Name: test' localhost:8047/query.json
--
This message was sent by Atlassian Jira
(v8.3.4#803005)