Skip to content

Commit

Permalink
Athena: bring back the option to disable query annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr committed Jun 28, 2017
1 parent c2e84c9 commit e1ac5bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion redash/query_runner/athena.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
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
Expand Down Expand Up @@ -87,6 +88,10 @@ def configuration_schema(cls):
def enabled(cls):
return enabled

@classmethod
def annotate_query(cls):
return ANNOTATE_QUERY

@classmethod
def type(cls):
return "athena"
Expand Down

0 comments on commit e1ac5bb

Please sign in to comment.