Skip to main content

Utility for converting ADQL to local SQL syntax.

Project description

ADQL is a variant of SQL that is understood by no DBMSs, the main difference being support for sky spatial constraints.

One approach to supporting ADQL is to extend the DBMS with these ADQL-specific constructs. The alternate approach taken here is to translate the ADQL into local SQL before sending it to the DBMS.

Since we also want to make use of spatial indexing to speed up spatial searches, we include in this translation additional spatial index column constraints. This requires reference to special added columns.

The hope is that this code can be leveraged by others who either wish to add spatial indexing to their DBMS the same way we have or would like a starting place for developing code around their own DBMS.

This package is complementary to but independent of our implemetation of the IVOA Table Access Protocol (TAP); a web service for managing remote database requests for astronomy in a general way. TAP manages requests/results and is generally fed ADQL. This ADQL translator is used by our TAP implementation to turn ADQL into SQL the local DBMS can handle directly.

Since this is pure Python, the PyPI package can be built with a simple

python setup.py bdist

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ADQL-1.0-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file ADQL-1.0-py3-none-any.whl.

File metadata

  • Download URL: ADQL-1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.7

File hashes

Hashes for ADQL-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c7bbdfe5ea523501b5b6c59e7c0ddcc579c292a92faab6cf1bcf8988094f2a1
MD5 70fe5fa436ab2d60ad9518c975b83738
BLAKE2b-256 21a33413b735c2d3359791380e6265511ccdb257818301b95e39fbdf18b5eebd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page