<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Aptos;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#467886;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">TLDR: Are Booleans acceptable data types in TAP and if not, should they be converted to another data type?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I’m wondering if anyone can assist with either pointing me to the correct documentation containing a definitive list of supported data types for TAP please?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I’m currently looking at the Vollt libraries and there seems to be
<a href="https://github.com/gmantele/vollt/blob/master/src/adql/db/DBType.java">a list of validated types</a>
</span><i><span style="font-size:10.0pt">SMALLINT</span></i><span style="font-size:10.0pt">,
<i>INTEGER</i>, <i>BIGINT</i>, <i>REAL</i>, <i>DOUBLE</i>, <i>BINARY</i>, <i>VARBINARY</i>,
<i>CHAR</i>, <i>VARCHAR</i>, <i>BLOB</i>, <i>CLOB</i>, <i>TIMESTAMP</i>, <i>POINT</i>,
<i>CIRCLE</i>, <i>POLYGON</i>, <i>REGION</i>, <i>UNKNOWN</i>, UK<i>NOWN_NUMERIC</i> but no BOOLEAN.
</span><span style="font-size:11.0pt">I have existing database tables/columns that have BOOLEAN data types but they get converted to UNKNOWN at runtime due to the validation in Vollt.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Should TAP support BOOLEAN or should it be converted to say SMALLINT (as a 0/1)?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Stephen Lloyd<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Research Software Engineer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">University of Manchester<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">UKSRC<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p></o:p></span></p>
</div>
</body>
</html>