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 4c8407f
Showing 1 changed file with 7 additions and 1 deletion.
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 4c8407f

Please sign in to comment.