Skip to content

Commit dadd3e6

Browse files
committed
feat: support Elasticsearch datasource #108
1 parent a0d603c commit dadd3e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/apps/db/es_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def get_es_fields(conf: DatasourceConf, table_name: str):
9191
def get_es_data_by_http(conf: DatasourceConf, sql: str):
9292
url = conf.host
9393
while url.endswith('/'):
94-
url = sql[:-1]
94+
url = url[:-1]
9595

9696
host = f'{url}/_sql?format=json'
9797
username = f"{conf.username}"

0 commit comments

Comments
 (0)