OSGeo / gdal

GDAL is an open source MIT licensed translator library for raster and vector geospatial data formats.
https://gdal.org
Other
4.78k stars 2.5k forks source link

Support multi-column indexes on OpenFileGDB #10590

Open apjoseph opened 1 month ago

apjoseph commented 1 month ago

Feature description

Currently creating multicolumn indexes with the OpenFIleGDB driver on SQLite or ORGSQL dialects is not supported -despite being supported by the format itself.

CREATE INDEX field1_field2_idx ON table (field1,field2) 

will fail with "field1,field2 does not exist". Given the error message, I am not sure if the issue lies with the sql parser or is a limitation of the OpenFileGDB driver itself -or both.

Additional context

No response

rouault commented 1 month ago

This is both, but the main limitation comes from the index creation capabilities of the OpenFileGDB driver itself. Unlikely to be implemented without funding (besides coding, it might require additional reverse engineering to figure out how this is implemented) In the meantime I've queued https://github.com/OSGeo/gdal/pull/10591 to emit an explicit error.