apache / apache/drill

it cause an exception when query http plugin data with fullName

Open
#2,851 8 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
2k
Forks
990
Avg merge
1d 8h
Merged PRs (30d)
5

Description

Before submitting a bug report, please verify that you are using the most current version of Drill.

**Describe the bug**
i create a http plugin named "http" and then use "use http" command to switch schema.
i query http Data with "select * from http.sunrise",It report except

**To Reproduce**
Steps to reproduce the behavior:
```
1. create plugin with name "http"
2. use http
3. select * from http.sunrise;
```

**Expected behavior**

```
apache drill> select * from http.sunrise;
+----------------------------------------------------------------------------------+--------+
| results | status |
+----------------------------------------------------------------------------------+--------+
| {"sunrise":"5:42:47 AM","sunset":"5:52:15 PM","solar_noon":"11:47:31 AM","day_length":"12:09:28","civil_twilight_begin":"5:21:47 AM","civil_twilight_end":"6:13:15 PM","nautical_twilight_begin":"4:56:00 AM","nautical_twilight_end":"6:39:02 PM","astronomical_twilight_begin":"4:30:08 AM","astronomical_twilight_end":"7:04:54 PM"} | OK |
+----------------------------------------------------------------------------------+--------+
1 row selected (2.967 seconds)
```

**Error detail, log output or screenshots**
`Error: CONNECTION ERROR: API 'http' does not exist in HTTP storage plugin 'http'`

**Drill version**
1.22.0

**Additional context**
```
http plugin config
{
"type": "http",
"connections": {
"sunrise": {
"url": "https://api.sunrise-sunset.org/json",
"requireTail": false,
"method": "GET",
"params": [
"lat",
"lng",
"date"
],
"authType": "none",
"inputType": "json",
"xmlDataLevel": 1,
"postParameterLocation": "QUERY_STRING",
"verifySSLCert": true
}
},
"timeout": 5,
"retryDelay": 1000,
"proxyType": "direct",
"authMode": "SHARED_USER",
"enabled": true
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.