mirror of
https://github.com/apache/superset.git
synced 2026-04-24 18:44:53 +00:00
fix(dashboard): Support bigint value in native filters (#32549)
This commit is contained in:
@@ -98,6 +98,7 @@ class BigNumberVis extends PureComponent<BigNumberVizProps> {
|
||||
!formatTime ||
|
||||
!showTimestamp ||
|
||||
typeof timestamp === 'string' ||
|
||||
typeof timestamp === 'bigint' ||
|
||||
typeof timestamp === 'boolean'
|
||||
)
|
||||
return null;
|
||||
|
||||
@@ -153,7 +153,7 @@ export default function transformProps(
|
||||
if (!value) {
|
||||
return NULL_STRING;
|
||||
}
|
||||
if (typeof value === 'boolean') {
|
||||
if (typeof value === 'boolean' || typeof value === 'bigint') {
|
||||
return String(value);
|
||||
}
|
||||
return value;
|
||||
|
||||
@@ -183,7 +183,7 @@ export class EchartsChartPlugin<
|
||||
super({
|
||||
...restProps,
|
||||
metadata: new ChartMetadata({
|
||||
parseMethod: 'json',
|
||||
parseMethod: 'json-bigint',
|
||||
...metadata,
|
||||
}),
|
||||
});
|
||||
|
||||
@@ -363,7 +363,7 @@ export function formatSeriesName(
|
||||
if (name === undefined || name === null) {
|
||||
return NULL_STRING;
|
||||
}
|
||||
if (typeof name === 'boolean') {
|
||||
if (typeof name === 'boolean' || typeof name === 'bigint') {
|
||||
return name.toString();
|
||||
}
|
||||
if (name instanceof Date || coltype === GenericDataType.Temporal) {
|
||||
|
||||
Reference in New Issue
Block a user