mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Merge pull request #569 from EverythingMe/fix/remove_warnings
Remove import warnings from query runners
This commit is contained in:
commit
00f4ec16f8
@ -23,9 +23,6 @@ try:
|
||||
|
||||
enabled = True
|
||||
except ImportError:
|
||||
logger.warning("Missing dependencies. Please install google-api-python-client and oauth2client.")
|
||||
logger.warning("You can use pip: pip install google-api-python-client oauth2client")
|
||||
|
||||
enabled = False
|
||||
|
||||
types_map = {
|
||||
|
@ -1,15 +1,11 @@
|
||||
import datetime
|
||||
import json
|
||||
import logging
|
||||
import sys
|
||||
import urllib
|
||||
|
||||
from redash.query_runner import *
|
||||
from redash import models
|
||||
|
||||
import requests
|
||||
import dateutil
|
||||
from dateutil.parser import parse
|
||||
|
||||
try:
|
||||
import http.client as http_client
|
||||
|
@ -13,9 +13,6 @@ try:
|
||||
from dateutil import parser
|
||||
enabled = True
|
||||
except ImportError:
|
||||
logger.warning("Missing dependencies. Please install gspread, dateutil and oauth2client.")
|
||||
logger.warning("You can use pip: pip install gspread dateutil oauth2client")
|
||||
|
||||
enabled = False
|
||||
|
||||
|
||||
|
@ -11,8 +11,6 @@ try:
|
||||
from pyhive import hive
|
||||
enabled = True
|
||||
except ImportError, e:
|
||||
logger.warning("Missing dependencies. Please install pyhive.")
|
||||
logger.warning("You can use pip: pip install pyhive")
|
||||
enabled = False
|
||||
|
||||
COLUMN_NAME = 0
|
||||
|
@ -12,8 +12,6 @@ try:
|
||||
from impala.error import DatabaseError, RPCError
|
||||
enabled = True
|
||||
except ImportError, e:
|
||||
logger.warning("Missing dependencies. Please install impyla.")
|
||||
logger.warning("You can use pip: pip install impyla")
|
||||
enabled = False
|
||||
|
||||
COLUMN_NAME = 0
|
||||
|
@ -11,8 +11,6 @@ try:
|
||||
enabled = True
|
||||
|
||||
except ImportError:
|
||||
logger.warning("Missing dependencies. Please install influxdb.")
|
||||
logger.warning("You can use pip: pip install influxdb")
|
||||
enabled = False
|
||||
|
||||
def _transform_result(results):
|
||||
|
@ -2,7 +2,6 @@ import json
|
||||
import datetime
|
||||
import logging
|
||||
import re
|
||||
import time
|
||||
from dateutil.parser import parse
|
||||
|
||||
from redash.utils import JSONEncoder
|
||||
@ -17,8 +16,6 @@ try:
|
||||
enabled = True
|
||||
|
||||
except ImportError:
|
||||
logger.warning("Missing dependencies. Please install pymongo.")
|
||||
logger.warning("You can use pip: pip install pymongo")
|
||||
enabled = False
|
||||
|
||||
|
||||
|
@ -11,8 +11,6 @@ try:
|
||||
enabled = True
|
||||
|
||||
except ImportError:
|
||||
logger.warning("Missing dependencies. Please install PyHive.")
|
||||
logger.warning("You can use pip: pip install pyhive")
|
||||
enabled = False
|
||||
|
||||
PRESTO_TYPES_MAPPING = {
|
||||
|
@ -1,8 +1,6 @@
|
||||
import sys
|
||||
import datetime
|
||||
import json
|
||||
import logging
|
||||
import weakref
|
||||
|
||||
from redash.query_runner import *
|
||||
from redash import models
|
||||
|
Loading…
Reference in New Issue
Block a user