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
|
enabled = True
|
||||||
except ImportError:
|
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
|
enabled = False
|
||||||
|
|
||||||
types_map = {
|
types_map = {
|
||||||
|
@ -1,15 +1,11 @@
|
|||||||
import datetime
|
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
import urllib
|
import urllib
|
||||||
|
|
||||||
from redash.query_runner import *
|
from redash.query_runner import *
|
||||||
from redash import models
|
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
import dateutil
|
|
||||||
from dateutil.parser import parse
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import http.client as http_client
|
import http.client as http_client
|
||||||
|
@ -13,9 +13,6 @@ try:
|
|||||||
from dateutil import parser
|
from dateutil import parser
|
||||||
enabled = True
|
enabled = True
|
||||||
except ImportError:
|
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
|
enabled = False
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,8 +11,6 @@ try:
|
|||||||
from pyhive import hive
|
from pyhive import hive
|
||||||
enabled = True
|
enabled = True
|
||||||
except ImportError, e:
|
except ImportError, e:
|
||||||
logger.warning("Missing dependencies. Please install pyhive.")
|
|
||||||
logger.warning("You can use pip: pip install pyhive")
|
|
||||||
enabled = False
|
enabled = False
|
||||||
|
|
||||||
COLUMN_NAME = 0
|
COLUMN_NAME = 0
|
||||||
|
@ -12,8 +12,6 @@ try:
|
|||||||
from impala.error import DatabaseError, RPCError
|
from impala.error import DatabaseError, RPCError
|
||||||
enabled = True
|
enabled = True
|
||||||
except ImportError, e:
|
except ImportError, e:
|
||||||
logger.warning("Missing dependencies. Please install impyla.")
|
|
||||||
logger.warning("You can use pip: pip install impyla")
|
|
||||||
enabled = False
|
enabled = False
|
||||||
|
|
||||||
COLUMN_NAME = 0
|
COLUMN_NAME = 0
|
||||||
|
@ -11,8 +11,6 @@ try:
|
|||||||
enabled = True
|
enabled = True
|
||||||
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
logger.warning("Missing dependencies. Please install influxdb.")
|
|
||||||
logger.warning("You can use pip: pip install influxdb")
|
|
||||||
enabled = False
|
enabled = False
|
||||||
|
|
||||||
def _transform_result(results):
|
def _transform_result(results):
|
||||||
|
@ -2,7 +2,6 @@ import json
|
|||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
import time
|
|
||||||
from dateutil.parser import parse
|
from dateutil.parser import parse
|
||||||
|
|
||||||
from redash.utils import JSONEncoder
|
from redash.utils import JSONEncoder
|
||||||
@ -17,8 +16,6 @@ try:
|
|||||||
enabled = True
|
enabled = True
|
||||||
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
logger.warning("Missing dependencies. Please install pymongo.")
|
|
||||||
logger.warning("You can use pip: pip install pymongo")
|
|
||||||
enabled = False
|
enabled = False
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,8 +11,6 @@ try:
|
|||||||
enabled = True
|
enabled = True
|
||||||
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
logger.warning("Missing dependencies. Please install PyHive.")
|
|
||||||
logger.warning("You can use pip: pip install pyhive")
|
|
||||||
enabled = False
|
enabled = False
|
||||||
|
|
||||||
PRESTO_TYPES_MAPPING = {
|
PRESTO_TYPES_MAPPING = {
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
import sys
|
|
||||||
import datetime
|
import datetime
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import weakref
|
|
||||||
|
|
||||||
from redash.query_runner import *
|
from redash.query_runner import *
|
||||||
from redash import models
|
from redash import models
|
||||||
|
Loading…
Reference in New Issue
Block a user