Athena: bring back the option to disable query annotations.

This commit is contained in:
Arik Fraimovich 2017-06-28 12:30:37 +03:00
parent c2e84c92c6
commit e1ac5bb038

View File

@ -2,10 +2,11 @@ import json
import logging
from redash.query_runner import *
from redash.settings import parse_boolean
from redash.utils import JSONEncoder
logger = logging.getLogger(__name__)
ANNOTATE_QUERY = parse_boolean(os.environ.get('ATHENA_ANNOTATE_QUERY', 'true'))
try:
import pyathena
@ -87,6 +88,10 @@ class Athena(BaseQueryRunner):
def enabled(cls):
return enabled
@classmethod
def annotate_query(cls):
return ANNOTATE_QUERY
@classmethod
def type(cls):
return "athena"