diff --git a/superset/assets/javascripts/explore/components/DisplayQueryButton.jsx b/superset/assets/javascripts/explore/components/DisplayQueryButton.jsx index cd930282132..fe0cbdd42c8 100644 --- a/superset/assets/javascripts/explore/components/DisplayQueryButton.jsx +++ b/superset/assets/javascripts/explore/components/DisplayQueryButton.jsx @@ -4,6 +4,7 @@ import SyntaxHighlighter, { registerLanguage } from 'react-syntax-highlighter/di import html from 'react-syntax-highlighter/dist/languages/htmlbars'; import markdown from 'react-syntax-highlighter/dist/languages/markdown'; import sql from 'react-syntax-highlighter/dist/languages/sql'; +import json from 'react-syntax-highlighter/dist/languages/json'; import github from 'react-syntax-highlighter/dist/styles/github'; import CopyToClipboard from './../../components/CopyToClipboard'; @@ -14,6 +15,7 @@ import { t } from '../../locales'; registerLanguage('markdown', markdown); registerLanguage('html', html); registerLanguage('sql', sql); +registerLanguage('json', json); const $ = window.$ = require('jquery'); diff --git a/superset/connectors/druid/models.py b/superset/connectors/druid/models.py index 4689ef2adba..308d0b5b644 100644 --- a/superset/connectors/druid/models.py +++ b/superset/connectors/druid/models.py @@ -430,7 +430,7 @@ class DruidDatasource(Model, BaseDatasource): __table_args__ = (UniqueConstraint('datasource_name', 'cluster_name'),) type = 'druid' - query_langtage = 'json' + query_language = 'json' cluster_class = DruidCluster metric_class = DruidMetric column_class = DruidColumn