diff --git a/src/layers/src/index.ts b/src/layers/src/index.ts index aab45ea5c0..9ce9028634 100644 --- a/src/layers/src/index.ts +++ b/src/layers/src/index.ts @@ -16,6 +16,7 @@ export {pointToPolygonGeo} from './grid-layer/grid-utils'; import {default as HexagonLayer} from './hexagon-layer/hexagon-layer'; import {default as GeojsonLayer} from './geojson-layer/geojson-layer'; export {default as GeojsonLayer, defaultElevation, defaultLineWidth, defaultRadius} from './geojson-layer/geojson-layer'; +export {default as PointLayer} from './point-layer/point-layer'; import {default as ClusterLayer} from './cluster-layer/cluster-layer'; import {default as IconLayer} from './icon-layer/icon-layer'; import {default as HeatmapLayer} from './heatmap-layer/heatmap-layer'; diff --git a/src/utils/src/arrow-data-container.ts b/src/utils/src/arrow-data-container.ts index 8b03db8271..56251a7423 100644 --- a/src/utils/src/arrow-data-container.ts +++ b/src/utils/src/arrow-data-container.ts @@ -222,7 +222,7 @@ export function arrowDataTypeToFieldType(arrowType: arrow.DataType): string { return ALL_FIELD_TYPES.date; } else if (arrow.DataType.isTimestamp(arrowType) || arrow.DataType.isTime(arrowType)) { return ALL_FIELD_TYPES.timestamp; - } else if (arrow.DataType.isFloat(arrowType)) { + } else if (arrow.DataType.isFloat(arrowType) || arrow.DataType.isDecimal(arrowType)) { return ALL_FIELD_TYPES.real; } else if (arrow.DataType.isInt(arrowType)) { return ALL_FIELD_TYPES.integer; @@ -259,7 +259,7 @@ export function arrowDataTypeToAnalyzerDataType( return AnalyzerDATA_TYPES.DATE; } else if (arrow.DataType.isTimestamp(arrowType) || arrow.DataType.isTime(arrowType)) { return AnalyzerDATA_TYPES.DATETIME; - } else if (arrow.DataType.isFloat(arrowType)) { + } else if (arrow.DataType.isFloat(arrowType) || arrow.DataType.isDecimal(arrowType)) { return AnalyzerDATA_TYPES.FLOAT; } else if (arrow.DataType.isInt(arrowType)) { return AnalyzerDATA_TYPES.INT; diff --git a/src/utils/src/data-scale-utils.ts b/src/utils/src/data-scale-utils.ts index 1f40c8517f..bdadd3eab4 100644 --- a/src/utils/src/data-scale-utils.ts +++ b/src/utils/src/data-scale-utils.ts @@ -18,8 +18,8 @@ export function getQuantileDomain( sortFunc?: sort ): number[] { const values = typeof valueAccessor === 'function' ? data.map(valueAccessor) : data; - - return values.filter(notNullorUndefined).sort(sortFunc); + // in case values are bigints, we need to convert them to numbers + return values.map(Number).filter(notNullorUndefined).sort(sortFunc); } /**