django-daiquiri / daiquiri

A framework for the publication of scientific databases
https://escience.aip.de/daiquiri
Apache License 2.0
26 stars 8 forks source link

FEATURE: add custom postprocessing function for the ADQL translation #218

Open kimakan opened 1 year ago

kimakan commented 1 year ago

Sometimes it is useful to alter the ADQL translation from the queryparser to make use of the archive specific features, i.e., using pos column for the cone search for a performance boost. For this, one can add a dummy postprocessor function right after the standard translation by the queryparser. This function can be overloaded by the daiquiri app. There is no solution for the implementation yet.

The translation of the ADQL query happens here https://github.com/django-daiquiri/daiquiri/blob/33094c5389e0acb0b30fcc1db54b7bb6bafaf0c5/daiquiri/query/process.py#L123-L138