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',
|
name: 'type',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
suggestions: ['string', 'long', 'float'],
|
suggestions: ['string', 'long', 'float', 'double'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'createBitmapIndex',
|
name: 'createBitmapIndex',
|
||||||
|
|
|
@ -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>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue