mirror of https://github.com/apache/druid.git
fix web console data loader dimension types (#9135)
This commit is contained in:
parent
58d337186b
commit
14702429a0
|
@ -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',
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue