For details, see “Compatible Types” in Teradata Vantage™ - SQL External Routine Programming, B035-1147.