mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-11-29 08:56:52 +00:00
Add support for date type to cassandra column types (#1176)
This commit is contained in:
parent
de58f570cd
commit
529202ba7e
@ -16,20 +16,16 @@ exports[`Settings Pane should render Default properly 1`] = `
|
|||||||
<div
|
<div
|
||||||
className="settingsSectionPart"
|
className="settingsSectionPart"
|
||||||
>
|
>
|
||||||
<Stack
|
<fieldset>
|
||||||
horizontal={true}
|
<legend
|
||||||
>
|
className="settingsSectionLabel legendLabel"
|
||||||
<Text
|
|
||||||
className="settingsSectionLabel"
|
|
||||||
id="pageOptions"
|
id="pageOptions"
|
||||||
variant="small"
|
|
||||||
>
|
>
|
||||||
Page options
|
Page Options
|
||||||
</Text>
|
</legend>
|
||||||
<InfoTooltip>
|
<InfoTooltip>
|
||||||
Choose Custom to specify a fixed amount of query results to show, or choose Unlimited to show as many query results per page.
|
Choose Custom to specify a fixed amount of query results to show, or choose Unlimited to show as many query results per page.
|
||||||
</InfoTooltip>
|
</InfoTooltip>
|
||||||
</Stack>
|
|
||||||
<StyledChoiceGroup
|
<StyledChoiceGroup
|
||||||
ariaLabelledBy="pageOptions"
|
ariaLabelledBy="pageOptions"
|
||||||
onChange={[Function]}
|
onChange={[Function]}
|
||||||
@ -58,12 +54,19 @@ exports[`Settings Pane should render Default properly 1`] = `
|
|||||||
"fontSize": 12,
|
"fontSize": 12,
|
||||||
"paddingTop": 0,
|
"paddingTop": 0,
|
||||||
},
|
},
|
||||||
|
".ms-ChoiceFieldGroup root-133": Object {
|
||||||
|
"clear": "both",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
"root": Object {
|
||||||
|
"clear": "both",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className="tabs settingsSectionPart"
|
className="tabs settingsSectionPart"
|
||||||
|
@ -24,6 +24,7 @@ const {
|
|||||||
Ascii,
|
Ascii,
|
||||||
Bigint,
|
Bigint,
|
||||||
Blob,
|
Blob,
|
||||||
|
Date: DateType,
|
||||||
Decimal,
|
Decimal,
|
||||||
Float,
|
Float,
|
||||||
Int,
|
Int,
|
||||||
@ -41,6 +42,7 @@ export const cassandraOptions = [
|
|||||||
{ key: Bigint, text: Bigint },
|
{ key: Bigint, text: Bigint },
|
||||||
{ key: Blob, text: Blob },
|
{ key: Blob, text: Blob },
|
||||||
{ key: Boolean, text: Boolean },
|
{ key: Boolean, text: Boolean },
|
||||||
|
{ key: DateType, text: DateType },
|
||||||
{ key: Decimal, text: Decimal },
|
{ key: Decimal, text: Decimal },
|
||||||
{ key: Double, text: Double },
|
{ key: Double, text: Double },
|
||||||
{ key: Float, text: Float },
|
{ key: Float, text: Float },
|
||||||
|
@ -14,6 +14,7 @@ export const CassandraType = {
|
|||||||
Bigint: "Bigint",
|
Bigint: "Bigint",
|
||||||
Blob: "Blob",
|
Blob: "Blob",
|
||||||
Boolean: "Boolean",
|
Boolean: "Boolean",
|
||||||
|
Date: "Date",
|
||||||
Decimal: "Decimal",
|
Decimal: "Decimal",
|
||||||
Double: "Double",
|
Double: "Double",
|
||||||
Float: "Float",
|
Float: "Float",
|
||||||
|
@ -536,7 +536,8 @@ export class CassandraAPIDataClient extends TableDataClient {
|
|||||||
dataType === TableConstants.CassandraType.Inet ||
|
dataType === TableConstants.CassandraType.Inet ||
|
||||||
dataType === TableConstants.CassandraType.Ascii ||
|
dataType === TableConstants.CassandraType.Ascii ||
|
||||||
dataType === TableConstants.CassandraType.Varchar ||
|
dataType === TableConstants.CassandraType.Varchar ||
|
||||||
dataType === TableConstants.CassandraType.Timestamp
|
dataType === TableConstants.CassandraType.Timestamp ||
|
||||||
|
dataType === TableConstants.CassandraType.Date
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user