[ 
https://issues.apache.org/jira/browse/DRILL-7603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17045198#comment-17045198
 ] 

ASF GitHub Bot commented on DRILL-7603:
---------------------------------------

paul-rogers commented on issue #1996: DRILL-7603 Allow default schema to be set 
for HTTP queries
URL: https://github.com/apache/drill/pull/1996#issuecomment-591273554
 
 
   @dobesv the builds are pretty noisy (too much detail about Maven downloads), 
but it turns out that if I pawed though all the noise, I found your stack trace:
   
   ```
   [ERROR] 
org.apache.drill.exec.server.rest.TestQueryWrapper.testSpecifyDefaultSchema  
Time elapsed: 0.111 s  <<< ERROR!
   java.lang.NullPointerException
   at 
org.apache.drill.exec.server.rest.TestQueryWrapper.runWithDefaultSchema(TestQueryWrapper.java:85)
   at 
org.apache.drill.exec.server.rest.TestQueryWrapper.testSpecifyDefaultSchema(TestQueryWrapper.java:99)
   
    [ERROR] org.apache.drill.exec.server.rest.TestQueryWrapper.testShowSchemas  
Time elapsed: 0.049 s  <<< ERROR!
    java.lang.NullPointerException
   at 
org.apache.drill.exec.server.rest.TestQueryWrapper.runWithDefaultSchema(TestQueryWrapper.java:85)
   at 
org.apache.drill.exec.server.rest.TestQueryWrapper.run(TestQueryWrapper.java:65)
   at 
org.apache.drill.exec.server.rest.TestQueryWrapper.testShowSchemas(TestQueryWrapper.java:90)
   202
   ```
   
   The "Search Logs" function in GitHub seems to not work. I had to download 
the logs as an archive (cleverly hidden in the "..." button.)
 
----------------------------------------------------------------
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]


> Cannot set 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
>            Reporter: Dobes Vandermeer
>            Assignee: Dobes Vandermeer
>            Priority: Minor
>
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to