Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 6.0.1 - Unreleased

- Confirmed support for CockroachDB 26.1.x and 26.2.x (no code changes
- Confirmed support for CockroachDB 26.1.x, 26.2.x, and 26.3.x (no code changes
required).

## 6.0 - 2025-12-05
Expand Down
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ By default, CockroachDB sends the version of django-cockroachdb that you're
using back to Cockroach Labs. To disable this, set
`DISABLE_COCKROACHDB_TELEMETRY = True` in your Django settings.

## Known issues and limitations in CockroachDB 26.2.x and earlier
## Known issues and limitations in CockroachDB 26.3.x and earlier

- CockroachDB [can't disable constraint checking](https://github.com/cockroachdb/cockroach/issues/19444),
which means certain things in Django like forward references in fixtures
Expand Down Expand Up @@ -122,15 +122,12 @@ using back to Cockroach Labs. To disable this, set
- GIS:
- Some database functions aren't supported: `AsGML`, `AsKML`, `AsSVG`,
and `GeometryDistance`.
- Some 3D functions or signatures aren't supported: `ST_3DPerimeter`,
`ST_3DExtent`, `ST_Scale`, and `ST_LengthSpheroid`.
- Some 3D functions or signatures aren't supported: `ST_3DExtent`,
`ST_Scale`, and `ST_LengthSpheroid`.
- The `Length` database function isn't supported on geodetic fields:
[st_lengthspheroid(): unimplemented](https://github.com/cockroachdb/cockroach/issues/48968).
- `Union` may crash with
[unknown signature: st_union(geometry, geometry)](https://github.com/cockroachdb/cockroach/issues/49064).
- The spheroid argument of ST_DistanceSpheroid
[isn't supported](https://github.com/cockroachdb/cockroach/issues/48922):
`unknown signature: st_distancespheroid(geometry, geometry, string)`.
- These lookups aren't supported:
- [contained (@)](https://github.com/cockroachdb/cockroach/issues/56124)
- [exact/same_as (~=)](https://github.com/cockroachdb/cockroach/issues/57096)
Expand All @@ -139,6 +136,13 @@ using back to Cockroach Labs. To disable this, set
overlaps_below (&>|)](https://github.com/cockroachdb/cockroach/issues/57098)
- [strictly_above (|>>), strictly_below (<<|)](https://github.com/cockroachdb/cockroach/issues/57095)

## Known issues and limitations in CockroachDB 26.2.x and earlier

- GIS:
- The `ST_3DPerimeter` function isn't supported.
- The spheroid argument of `ST_DistanceSpheroid`
[isn't supported](https://github.com/cockroachdb/cockroach/issues/48922).

## Known issues and limitations in CockroachDB 24.3.x and earlier

- CockroachDB executes `ALTER COLUMN` queries asynchronously which is at
Expand Down
4 changes: 4 additions & 0 deletions django_cockroachdb/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ def is_cockroachdb_25_4(self):
def is_cockroachdb_26_1(self):
return self.connection.cockroachdb_version >= (26, 1)

@cached_property
def is_cockroachdb_26_3(self):
return self.connection.cockroachdb_version >= (26, 3)

@cached_property
def django_test_expected_failures(self):
expected_failures = super().django_test_expected_failures
Expand Down
19 changes: 11 additions & 8 deletions django_cockroachdb_gis/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def django_test_expected_failures(self):
'gis_tests.relatedapp.tests.RelatedGeoModelTest.test06_f_expressions',
# unknown signature: st_union(geometry, geometry)
# https://github.com/cockroachdb/cockroach/issues/49064
'gis_tests.distapp.tests.DistanceTest.test_distance_lookups_with_expression_rhs',
'gis_tests.distapp.tests.DistanceTest.test_dwithin',
'gis_tests.geoapp.test_functions.GISFunctionsTests.test_diff_intersection_union',
'gis_tests.geoapp.test_functions.GISFunctionsTests.test_union_mixed_srid',
Expand All @@ -35,20 +36,12 @@ def django_test_expected_failures(self):
'gis_tests.geoapp.tests.GeoLookupTest.test_relate_lookup',
# NotSupportedError: this box2d comparison operator is experimental
'gis_tests.geoapp.tests.GeoLookupTest.test_contains_contained_lookups',
# unknown signature: st_distancespheroid(geometry, geometry, string)
# https://github.com/cockroachdb/cockroach/issues/48922#issuecomment-693096502
'gis_tests.distapp.tests.DistanceTest.test_distance_lookups_with_expression_rhs',
'gis_tests.distapp.tests.DistanceTest.test_geodetic_distance_lookups',
'gis_tests.distapp.tests.DistanceFunctionsTests.test_distance_geodetic_spheroid',
# st_lengthspheroid(): unimplemented:
# https://github.com/cockroachdb/cockroach/issues/48968
'gis_tests.distapp.tests.DistanceFunctionsTests.test_length',
# Unsupported ~= (https://github.com/cockroachdb/cockroach/issues/57096)
# and @ operators (https://github.com/cockroachdb/cockroach/issues/56124).
'gis_tests.geogapp.tests.GeographyTest.test_operators_functions_unavailable_for_geography',
# unknown function: st_3dperimeter
# https://github.com/cockroachdb/cockroach/issues/60871
'gis_tests.geo3d.tests.Geo3DFunctionsTests.test_perimeter',
# unknown function: st_3dextent()
# https://github.com/cockroachdb/cockroach/issues/60864
'gis_tests.geo3d.tests.Geo3DTest.test_extent',
Expand Down Expand Up @@ -85,4 +78,14 @@ def django_test_expected_failures(self):
# https://github.com/cockroachdb/cockroach/issues/53720
'gis_tests.geogapp.tests.GeographyTest.test02_distance_lookup',
})
if not self.is_cockroachdb_26_3:
expected_failures.update({
# unknown signature: st_distancespheroid(geometry, geometry, string)
# https://github.com/cockroachdb/cockroach/issues/48922#issuecomment-693096502
'gis_tests.distapp.tests.DistanceTest.test_geodetic_distance_lookups',
'gis_tests.distapp.tests.DistanceFunctionsTests.test_distance_geodetic_spheroid',
# unknown function: st_3dperimeter
# https://github.com/cockroachdb/cockroach/issues/60871
'gis_tests.geo3d.tests.Geo3DFunctionsTests.test_perimeter',
})
return expected_failures
Loading