This is an automated email from the ASF dual-hosted git repository.

shishkovilja pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-extensions.git


The following commit(s) were added to refs/heads/master by this push:
     new 3e55a993 [MINOR] Fix ignite-geospatial-ext compilation (#330)
3e55a993 is described below

commit 3e55a993ad13803f025bcc4cdf3948b3f7fb0619
Author: Ilya Shishkov <[email protected]>
AuthorDate: Wed Dec 17 14:49:41 2025 +0300

    [MINOR] Fix ignite-geospatial-ext compilation (#330)
---
 .../internal/processors/query/h2/opt/GeoSpatialIndexFactory.java  | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git 
a/modules/geospatial-ext/geospatial/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GeoSpatialIndexFactory.java
 
b/modules/geospatial-ext/geospatial/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GeoSpatialIndexFactory.java
index 03df8e9a..4abfc93b 100644
--- 
a/modules/geospatial-ext/geospatial/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GeoSpatialIndexFactory.java
+++ 
b/modules/geospatial-ext/geospatial/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GeoSpatialIndexFactory.java
@@ -22,7 +22,6 @@ import org.apache.ignite.IgniteException;
 import org.apache.ignite.internal.cache.query.index.Index;
 import org.apache.ignite.internal.cache.query.index.IndexDefinition;
 import org.apache.ignite.internal.cache.query.index.IndexFactory;
-import org.apache.ignite.internal.cache.query.index.SortOrder;
 import org.apache.ignite.internal.cache.query.index.sorted.IndexKeyDefinition;
 import org.apache.ignite.internal.cache.query.index.sorted.IndexKeyType;
 import org.apache.ignite.internal.processors.cache.GridCacheContext;
@@ -46,13 +45,10 @@ public class GeoSpatialIndexFactory implements IndexFactory 
{
             if (keyDefs.size() > 1)
                 throw DbException.getUnsupportedException("can only do one 
column");
 
-            if ((keyDefs.get(0).order().sortOrder() == SortOrder.DESC))
+            if (!keyDefs.get(0).ascending())
                 throw DbException.getUnsupportedException("cannot do 
descending");
 
-            if (keyDefs.get(0).order().nullsOrder() != null)
-                throw DbException.getUnsupportedException("cannot do nulls 
ordering");
-
-            if (keyDefs.get(0).idxType() != IndexKeyType.GEOMETRY)
+            if (keyDefs.get(0).indexKeyType() != IndexKeyType.GEOMETRY)
                 throw DbException.getUnsupportedException("spatial index on 
non-geometry column");
 
             return new GeoSpatialIndexImpl(cctx, def);

Reply via email to