mirror of
https://github.com/valitydev/redash.git
synced 2024-11-08 18:03:54 +00:00
Athena: bring back the option to disable query annotations.
This commit is contained in:
parent
c2e84c92c6
commit
e1ac5bb038
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user