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', name: 'type',
type: 'string', type: 'string',
suggestions: ['string', 'long', 'float'], suggestions: ['string', 'long', 'float', 'double'],
}, },
{ {
name: 'createBitmapIndex', name: 'createBitmapIndex',

View File

@ -2182,7 +2182,8 @@ export class LoadDataView extends React.PureComponent<LoadDataViewProps, LoadDat
<div className="control"> <div className="control">
<Callout className="intro"> <Callout className="intro">
<p> <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> </p>
{dimensionMode === 'specific' && ( {dimensionMode === 'specific' && (
<p> <p>
@ -2570,13 +2571,14 @@ export class LoadDataView extends React.PureComponent<LoadDataViewProps, LoadDat
const convertToDimensionMenu = ( const convertToDimensionMenu = (
<Menu> <Menu>
<MenuItem <MenuItem
text="Convert to STRING dimension" text="Convert to string dimension"
onClick={() => convertToDimension('STRING')} 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 <MenuItem
text="Convert to DOUBLE dimension" text="Convert to double dimension"
onClick={() => convertToDimension('DOUBLE')} onClick={() => convertToDimension('double')}
/> />
</Menu> </Menu>
); );