This is an automated email from the ASF dual-hosted git repository.
amatya pushed a commit to branch 27.0.0
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/27.0.0 by this push:
new bcc0d1a3bf Web console: better schema discovery copy (#14601) (#14657)
bcc0d1a3bf is described below
commit bcc0d1a3bfb677ccac50c67af982b21c78716c9a
Author: AmatyaAvadhanula <[email protected]>
AuthorDate: Tue Jul 25 19:02:16 2023 +0530
Web console: better schema discovery copy (#14601) (#14657)
* better-schema-discovery-copy
* Update web-console/src/views/load-data-view/load-data-view.tsx
* Update web-console/src/views/load-data-view/load-data-view.tsx
* auto-format
---------
Co-authored-by: Vadim Ogievetsky <[email protected]>
Co-authored-by: Charles Smith <[email protected]>
---
.../src/views/load-data-view/load-data-view.tsx | 37 +++++++++++++---------
1 file changed, 22 insertions(+), 15 deletions(-)
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 df927079be..5ed3ab9e77 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
@@ -2376,7 +2376,7 @@ export class LoadDataView extends
React.PureComponent<LoadDataViewProps, LoadDat
checked={schemaMode === 'fixed'}
onChange={() =>
this.setState({
- newSchemaMode: schemaMode === 'fixed' ?
'string-only-discovery' : 'fixed',
+ newSchemaMode: schemaMode === 'fixed' ?
'type-aware-discovery' : 'fixed',
})
}
label="Explicitly specify schema"
@@ -2645,8 +2645,9 @@ export class LoadDataView extends
React.PureComponent<LoadDataViewProps, LoadDat
</p>
<p>Making this change will reset all schema configuration done so
far.</p>
{autoDetect && (
- <Switch
- checked={newSchemaMode === 'type-aware-discovery'}
+ <RadioGroup
+ label="Schemaless mode"
+ selectedValue={newSchemaMode}
onChange={() => {
this.setState({
newSchemaMode:
@@ -2656,18 +2657,24 @@ export class LoadDataView extends
React.PureComponent<LoadDataViewProps, LoadDat
});
}}
>
- Use the new type-aware schema discovery capability. Avoid this if
you are appending to a
- datasource created with string-only schema discovery of Druid and
want to preserve
- schema compatibility. For more information see the{' '}
- <ExternalLink
- href={`${getLink(
- 'DOCS',
-
)}/ingestion/schema-design.html#schema-auto-discovery-for-dimensions`}
- >
- documentation
- </ExternalLink>
- .
- </Switch>
+ <Radio value="type-aware-discovery">
+ Use the new type-aware schema discovery capability to discover
columns according to
+ data type. Columns with multiple values will be ingested as
ARRAY types. For more
+ information see the{' '}
+ <ExternalLink
+ href={`${getLink(
+ 'DOCS',
+
)}/ingestion/schema-design.html#schema-auto-discovery-for-dimensions`}
+ >
+ documentation
+ </ExternalLink>
+ .
+ </Radio>
+ <Radio value="string-only-discovery">
+ Use classic string-only schema discovery to discover all new
columns as strings.
+ Columns with multiple values will be ingested as
multi-value-strings.
+ </Radio>
+ </RadioGroup>
)}
</AsyncActionDialog>
);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]