Skip to content

Commit

Permalink
[explore] fix json highlighting for Druid queries (apache#4201)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored and michellethomas committed May 23, 2018
1 parent 0ecce90 commit 282a8d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -14,6 +15,7 @@ import { t } from '../../locales';
registerLanguage('markdown', markdown);
registerLanguage('html', html);
registerLanguage('sql', sql);
registerLanguage('json', json);

const $ = window.$ = require('jquery');

Expand Down
2 changes: 1 addition & 1 deletion superset/connectors/druid/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 282a8d9

Please sign in to comment.