Skip to content

Commit

Permalink
isRemoteCalculationSupported: revert remote calculation for dynamic s…
Browse files Browse the repository at this point in the history
…patial index sources for now
  • Loading branch information
zbigg committed Sep 19, 2024
1 parent 809535b commit 5a53459
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Not released

- isRemoteCalculationSupported: revert remote calculation for dynamic spatial index sources [#905](https://github.com/CartoDB/carto-react/pull/905)
- Fix HistogramWidget with one non-zero bucket [#901](https://github.com/CartoDB/carto-react/pull/901)
- Spatial Index Sources use remote widgets calculation [#898](https://github.com/CartoDB/carto-react/pull/898)
- Support for `hiddenColumnFields` parameter and `onRowClick` handler for Table Widget [#900](https://github.com/CartoDB/carto-react/pull/900)
Expand Down
8 changes: 7 additions & 1 deletion packages/react-widgets/src/models/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { AggregationTypes, _filtersToSQL, Provider } from '@carto/react-core';
import {
AggregationTypes,
getSpatialIndexFromGeoColumn,
_filtersToSQL,
Provider
} from '@carto/react-core';
import { FullyQualifiedName } from './fqn';
import { MAP_TYPES, API_VERSIONS } from '@carto/react-api';

Expand All @@ -9,6 +14,7 @@ export function isRemoteCalculationSupported(props) {
source &&
source.type !== MAP_TYPES.TILESET &&
source.credentials.apiVersion !== API_VERSIONS.V2 &&
!(source.geoColumn && getSpatialIndexFromGeoColumn(source.geoColumn)) &&
source.provider !== 'databricks'
);
}
Expand Down

0 comments on commit 5a53459

Please sign in to comment.