| ||||||||||||||||
Changed: | ||||||||||||||||
< < | ADQL-2.0 Erratum 2 - MOD function description | |||||||||||||||
> > | ADQL-2.0 Erratum 2 - Mathematical functions' Table issues | |||||||||||||||
Changed: | ||||||||||||||||
< < | IVOA DAL mailing list thread on July 2016 highlighted a possible issue with the description of the MOD function. | |||||||||||||||
> > | IVOA DAL mailing list thread on July 2016 highlighted a possible issue with the description of the MOD function. Discussion went on also on this other thread. | |||||||||||||||
Added: | ||||||||||||||||
> > | Subsequently a different thread highlighted other mismatches between Table 1 (Mathematical functions) descriptions and the ADQL-2.0 grammar. | |||||||||||||||
Erratum ContentTable 1 on page 8 of the ADQL-2.0 recommendation reports | ||||||||||||||||
Changed: | ||||||||||||||||
< < |
| |||||||||||||||
> > |
| |||||||||||||||
Added: | ||||||||||||||||
> > |
| |||||||||||||||
Added: | ||||||||||||||||
> > | The descriptions reported in the above table are ambiguous with respect to the ADQL grammar or are conflicting with SQL definitions. Issue 1 seems to conflict with SQL (92, 2003) definitions and, as well, the behaviour of the existing TAP services, suggesting that x and y should be swapped in the function description. Issue 2 description does not report x to be optional. Issues 3 & 4 descriptions do not report that n is optional and that it should default to 0. | |||||||||||||||
Rationale | ||||||||||||||||
Added: | ||||||||||||||||
> > | (issue 1) MOD function description | |||||||||||||||
Considering what current TAP services using ADQL and the mathematical description of the modulo operator where
M % N = R
with
| ||||||||||||||||
Added: | ||||||||||||||||
> > | (issue 2) RAND optional seedADQL BNF grammar (page 29 of ADQL-2.0) reports the(issue 3) ROUND optional places numberADQL BNF grammar (pages 29-30 of ADQL-2.0) reports the(issue 4) TRUNCATE optional places numberADQL BNF grammar (page 30 of ADQL-2.0) reports the | |||||||||||||||
Impact Assesment | ||||||||||||||||
Changed: | ||||||||||||||||
< < | The change proposed by this erratum should impact no existing IVOA resource. Checks against the major TAP services shows they already act following the behaviour here above described. Checks against a choice of RDBMS-es (PostgreSQL, MySQL, MariaDB, Apache Derby, HyperSQL and Oracle) shows the same bahaviour too. See the mail thread referenced in the introduction of this page for details. | |||||||||||||||
> > | The changes proposed by this erratum should impact no existing IVOA resource. Checks against the major TAP services show they already act following the behaviour here above described for the modulo function, while for the remaining 3 issue, all of them simply require some explicit wording in the description to follow the grammar constrains. Checks against a choice of RDBMS-es (PostgreSQL, MySQL, MariaDB, Apache Derby, HyperSQL and Oracle) shows the same behaviour too. See the mail threads referenced in the introduction of this page for details. | |||||||||||||||
<--
|
ADQL-2.0 Erratum 2 - MOD function descriptionIVOA DAL mailing list thread on July 2016 highlighted a possible issue with the description of the MOD function.Erratum ContentTable 1 on page 8 of the ADQL-2.0 recommendation reports
RationaleConsidering what current TAP services using ADQL and the mathematical description of the modulo operator where M % N = R with
Impact AssesmentThe change proposed by this erratum should impact no existing IVOA resource. Checks against the major TAP services shows they already act following the behaviour here above described. Checks against a choice of RDBMS-es (PostgreSQL, MySQL, MariaDB, Apache Derby, HyperSQL and Oracle) shows the same bahaviour too. See the mail thread referenced in the introduction of this page for details.<--
|