Speaker
Markus Demleitner
(GAVO/Uni Heidelberg)
Description
Since ADQL 2.1, there is a function IN_UNIT to ensure that an expression is
in a defined unit; for instance, you could say "IN_UNIT(pmra, 'mas/yr')".
While this already is a valuable tool for writing robust und portable queries,
it is a lot to type. The many letters and special characters also make queries
hard to read when multiple unit coercions are requested. Also, there is no way
to have literals with units in this scheme.
In this contribution, I will propose a more compact syntax that allows
one to write literals with units as in "3600{mas/deg}" and to request
conversions as in "(rv/2)@{pc/yr}". I will also discuss the rationale
for this design and a prototype implementation.
| Attendance | in-person |
|---|
Primary author
Markus Demleitner
(GAVO/Uni Heidelberg)