Skip to content

Commit

Permalink
Add ref. to type system in UDF definition
Browse files Browse the repository at this point in the history
  • Loading branch information
gmantele committed Jul 26, 2023
1 parent b97051c commit 87dc48a
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions ADQL.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2552,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

0 comments on commit 87dc48a

Please sign in to comment.