You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by cw...@apache.org on 2020/01/09 01:21:59 UTC

[druid] branch 0.17.0 updated: fix web console data loader dimension types (#9135) (#9149)

This is an automated email from the ASF dual-hosted git repository.

cwylie pushed a commit to branch 0.17.0
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/0.17.0 by this push:
     new aa8ce8c  fix web console data loader dimension types (#9135) (#9149)
aa8ce8c is described below

commit aa8ce8cbe12da329a83dd02b6f0267eb1343cf95
Author: Clint Wylie <cw...@apache.org>
AuthorDate: Wed Jan 8 17:21:51 2020 -0800

    fix web console data loader dimension types (#9135) (#9149)
---
 web-console/src/utils/ingestion-spec.tsx                |  2 +-
 web-console/src/views/load-data-view/load-data-view.tsx | 14 ++++++++------
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/web-console/src/utils/ingestion-spec.tsx b/web-console/src/utils/ingestion-spec.tsx
index d26a543..e2fb59a 100644
--- a/web-console/src/utils/ingestion-spec.tsx
+++ b/web-console/src/utils/ingestion-spec.tsx
@@ -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',
diff --git a/web-console/src/views/load-data-view/load-data-view.tsx b/web-console/src/views/load-data-view/load-data-view.tsx
index 84bdcc1..2566efd 100644
--- a/web-console/src/views/load-data-view/load-data-view.tsx
+++ b/web-console/src/views/load-data-view/load-data-view.tsx
@@ -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>
       );


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org