You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by ja...@apache.org on 2021/11/08 22:10:50 UTC
[pinot] branch master updated: Allow adding JSON data type for
dimension column types (#7718)
This is an automated email from the ASF dual-hosted git repository.
jackie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 2605122 Allow adding JSON data type for dimension column types (#7718)
2605122 is described below
commit 2605122b56b3b08d0fbbdad48d926317470495b6
Author: Sanket Shah <sh...@users.noreply.github.com>
AuthorDate: Tue Nov 9 03:40:33 2021 +0530
Allow adding JSON data type for dimension column types (#7718)
---
.../app/components/Homepage/Operations/SchemaComponent.tsx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/pinot-controller/src/main/resources/app/components/Homepage/Operations/SchemaComponent.tsx b/pinot-controller/src/main/resources/app/components/Homepage/Operations/SchemaComponent.tsx
index 0c0132b..799560e 100644
--- a/pinot-controller/src/main/resources/app/components/Homepage/Operations/SchemaComponent.tsx
+++ b/pinot-controller/src/main/resources/app/components/Homepage/Operations/SchemaComponent.tsx
@@ -108,7 +108,7 @@ export default function SchemaComponent({
dateTimeFieldSpecs: []
};
const defaultDataTypeOptions = {
- dimension: ["INT", "LONG", "STRING", "FLOAT", "DOUBLE", "BYTES", "BOOLEAN"],
+ dimension: ["INT", "LONG", "STRING", "FLOAT", "DOUBLE", "BYTES", "BOOLEAN", "JSON"],
metric: ["INT", "LONG", "DOUBLE", "FLOAT", "BYTES"],
datetime: ["STRING", "INT", "LONG"]
};
@@ -128,7 +128,7 @@ export default function SchemaComponent({
granularityUnit: "MILLISECONDS"
},
};
-
+
const [columnList, setColumnList] = useState([{...defaultColumnObj}]);
const setPreFilledData = (index, fieldName, value, colList) => {
@@ -234,7 +234,7 @@ export default function SchemaComponent({
onChange={(e)=> changeHandler(index, 'columnName', e.target.value)}
/>
</FormControl>
-
+
<FormControl className={classes.formControl}>
<InputLabel htmlFor="type">Type {requiredAstrix}</InputLabel>
<Select
@@ -326,7 +326,7 @@ export default function SchemaComponent({
<MenuItem value="DAYS">DAYS</MenuItem>
</Select>
</FormControl>
-
+
<FormControl className={classes.formControl}>
<InputLabel htmlFor="timeFormat">Time Format {requiredAstrix}</InputLabel>
<Select
@@ -386,7 +386,7 @@ export default function SchemaComponent({
<AddIcon className={classes.greenColor}/>
</IconButton>
</FormControl>
-
+
{columnList.length >= 2 && <FormControl>
<IconButton
aria-label="clear"
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org