fix web console data loader dimension types (#9135)

This commit is contained in:
Clint Wylie 2020-01-06 20:56:58 -08:00 committed by Vadim Ogievetsky
parent 58d337186b
commit 14702429a0
2 changed files with 9 additions and 7 deletions

View File

@ -510,7 +510,7 @@ const DIMENSION_SPEC_FORM_FIELDS: Field<DimensionSpec>[] = [
{
name: 'type',
type: 'string',
suggestions: ['string', 'long', 'float'],
suggestions: ['string', 'long', 'float', 'double'],
},
{
name: 'createBitmapIndex',

View File

@ -2182,7 +2182,8 @@ export class LoadDataView extends React.PureComponent<LoadDataViewProps, LoadDat
<div className="control">
<Callout className="intro">
<p>
Each column in Druid must have an assigned type (string, long, float, complex, etc).
Each column in Druid must have an assigned type (string, long, float, double, complex,
etc).
</p>
{dimensionMode === 'specific' && (
<p>
@ -2570,13 +2571,14 @@ export class LoadDataView extends React.PureComponent<LoadDataViewProps, LoadDat
const convertToDimensionMenu = (
<Menu>
<MenuItem
text="Convert to STRING dimension"
onClick={() => convertToDimension('STRING')}
text="Convert to string dimension"
onClick={() => convertToDimension('string')}
/>
<MenuItem text="Convert to LONG dimension" onClick={() => convertToDimension('LONG')} />
<MenuItem text="Convert to long dimension" onClick={() => convertToDimension('long')} />
<MenuItem text="Convert to float dimension" onClick={() => convertToDimension('float')} />
<MenuItem
text="Convert to DOUBLE dimension"
onClick={() => convertToDimension('DOUBLE')}
text="Convert to double dimension"
onClick={() => convertToDimension('double')}
/>
</Menu>
);