mirror of https://github.com/apache/superset.git
[explore] fix json highlighting for Druid queries (#4201)
This commit is contained in:
parent
4b0f252170
commit
5916291901
|
@ -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');
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue