Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Ops suggested modifications #92

Merged
merged 6 commits into from
Aug 8, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 20 additions & 17 deletions ADQL.tex
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,11 @@ \subsubsection{Search condition}

\begin{itemize}
\item Standard comparison operators: \verb:=:, \verb:!=:, \verb:<>:, \verb:<:, \verb:>:, \verb:<=:, \verb:>=:
\item Range comparison, \verb:BETWEEN:
\item Case-sensitive string comparison, \verb:LIKE:
\item Null value checks, \verb:IS NULL: and \verb:IS NOT NULL:
\item Non-empty subquery check, \verb:EXISTS:
\item Range comparison: \verb:BETWEEN:
\item Membership check: \verb:IN:
\item Case-sensitive string comparison: \verb:LIKE:
\item Null value checks: \verb:IS NULL:, \verb:IS NOT NULL:
\item Non-empty subquery check: \verb:EXISTS:
\end{itemize}

In addition, some service implementations may also support the optional \verb:ILIKE:
Expand Down Expand Up @@ -2511,9 +2512,9 @@ \subsubsection{Overview}
gavo_convert()
\end{verbatim}

The \verb:ivo: prefix is reserved for functions that have been defined
in an IVOA specification. For example the \RegTAPSpec{} defines the following
functions:
The \verb:ivo: prefix is reserved for functions that have been defined in an
IVOA specification or Endorsed Note. For example the \CatalogueUDF{} defines the
following functions:
\begin{verbatim}
ivo_nocasematch()
ivo_hasword()
Expand Down Expand Up @@ -2551,19 +2552,21 @@ \subsubsection{Metadata}
arg ::= <regular_identifier> <type_name>
\end{verbatim}

\verb:<type_name>: should be one of the terms defined in \SectionRef{sec:types}.

For example, the following fragment declares a user defined function that
takes two \verb:TEXT: parameters and returns an integer, zero or one,
takes two string parameters and returns an integer, zero or one,
depending on the regular expression pattern matching:
\begin{verbatim}
<languageFeatures type="ivo://ivoa.net/std/tapregext#features-udf">
<feature>
<form>match(pattern TEXT, string TEXT) -> INTEGER</form>
<description>
match returns 1 if the POSIX regular expression pattern
matches anything in string, 0 otherwise.
</description>
</feature>
</languageFeatures>
<languageFeatures type="ivo://ivoa.net/std/tapregext#features-udf">
<feature>
<form>match(pattern VARCHAR, string VARCHAR) -> INTEGER</form>
<description>
match returns 1 if the POSIX regular expression pattern
matches anything in string, 0 otherwise.
</description>
</feature>
</languageFeatures>
\end{verbatim}

See the \TAPRegSpec{} for full details on how to use the
Expand Down