This portion of a query surfaced that has comments that we cannot trace to anything maintained on this end. It's either coming from Tableau or Data Point.
" -- for unlnown reasons TOAD/or Client or something else formats the number ?????"
This query is not something we generate, but it's being executed by TDP or Tableau.
SELECT
ColumnId,
ColumnName AS NAME,
ColumnType,
CASE
WHEN Cols.ColumnType = 'I' THEN 'INTEGER'
WHEN Cols.ColumnType = 'D' THEN 'DECIMAL' || Coalesce('(' || DecimalTotalDigits || Coalesce(',' || DecimalFractionalDigits, '') || ')', '')
WHEN Cols.ColumnType = 'I1' THEN 'BYTEINT'
WHEN Cols.ColumnType = 'I2' THEN 'SMALLINT'
WHEN Cols.ColumnType = 'I8' THEN 'BIGINT'
WHEN Cols.ColumnType = 'F' THEN 'FLOAT'
WHEN Cols.ColumnType = 'DA' THEN 'DATE'
WHEN Cols.ColumnType = 'AT' THEN 'TIME' || Coalesce('(' || DecimalFractionalDigits || ')', '')
WHEN Cols.ColumnType = 'TS' THEN 'TIMESTAMP' || Coalesce('(' || DecimalFractionalDigits || ')', '')
WHEN Cols.ColumnType = 'TZ' THEN 'TIME' || Coalesce('(' || DecimalFractionalDigits || ')', '') || ' WITH TIME ZONE'
WHEN Cols.ColumnType = 'SZ' THEN 'TIMESTAMP' || Coalesce('(' || DecimalFractionalDigits || ')', '') || ' WITH TIME ZONE'
WHEN Cols.ColumnType = 'YR' THEN 'INERVAL YEAR' || Coalesce('(' || DecimalTotalDigits || ')', '')
WHEN Cols.ColumnType = 'YM' THEN 'INERVAL YEAR' || Coalesce('(' || DecimalTotalDigits || ')', '') || ' TO MONTH'
WHEN Cols.ColumnType = 'MO' THEN 'INERVAL MONTH' || Coalesce('(' || DecimalTotalDigits || ')', '')
WHEN Cols.ColumnType = 'DY' THEN 'INERVAL DAY' || Coalesce('(' || DecimalTotalDigits || ')', '')
WHEN Cols.ColumnType = 'DH' THEN 'INERVAL DAY' || Coalesce('(' || DecimalTotalDigits || ')', '') || ' TO HOUR'
WHEN Cols.ColumnType = 'DM' THEN 'INERVAL DAY' || Coalesce('(' || DecimalTotalDigits || ')', '') || ' TO MINUTE'
WHEN Cols.ColumnType = 'DS' THEN 'INERVAL DAY' || Coalesce('(' || DecimalTotalDigits || ')', '') || ' TO SECOND' || Coalesce('(' || DecimalFractionalDigits || ')', '')
WHEN Cols.ColumnType = 'HR' THEN 'INERVAL HOUR' || Coalesce('(' || DecimalTotalDigits || ')', '')
WHEN Cols.ColumnType = 'HM' THEN 'INERVAL HOUR' || Coalesce('(' || DecimalTotalDigits || ')', '') || ' TO MINUTE'
WHEN Cols.ColumnType = 'HS' THEN 'INERVAL HOUR' || Coalesce('(' || DecimalTotalDigits || ')', '') || ' TO SECOND' || Coalesce('(' || DecimalFractionalDigits || ')', '')
WHEN Cols.ColumnType = 'MI' THEN 'INERVAL MINUTE' || Coalesce('(' || DecimalTotalDigits || ')', '')
WHEN Cols.ColumnType = 'MS' THEN 'INERVAL MINUTE' || Coalesce('(' || DecimalTotalDigits || ')', '') || ' TO SECOND' || Coalesce('(' || DecimalFractionalDigits || ')', '')
WHEN Cols.ColumnType = 'SC' THEN 'INERVAL SECOND' || Coalesce('(' || DecimalTotalDigits || Coalesce(',' || DecimalFractionalDigits, '') || ')', '')
WHEN Cols.ColumnType = 'PD' THEN 'PERIOD(DATE)'
WHEN Cols.ColumnType = 'PT' THEN 'PERIOD(TIME' || Coalesce('(' || DecimalFractionalDigits || ')', '') || ')'
WHEN Cols.ColumnType = 'PZ' THEN 'PERIOD(TIME' || Coalesce('(' || DecimalFractionalDigits || ')', '') || ' WITH TIME ZONE)'
WHEN Cols.ColumnType = 'PS' THEN 'PERIOD(TIMESTAMP' || Coalesce('(' || DecimalFractionalDigits || ')', '') || ')'
WHEN Cols.ColumnType = 'PM' THEN 'PERIOD(TIMESTAMP' || Coalesce('(' || DecimalFractionalDigits || ')', '') || ' WITH TIME ZONE)'
WHEN Cols.ColumnType = 'CF' THEN 'CHAR' || CASE -- CAST is needed to avoid expression like CHAR(2,300 ). -- for unlnown reasons TOAD/or Client or something else formats the number ?????
WHEN CharType = 2 OR CharType = 4 THEN -- UNICODE or GRAPHIC COALESCE('(' || TRIM(CAST(ColumnLength/2 as INTEGER)) || ')', '')
ELSE Coalesce('(' || Trim(Cast(ColumnLength AS INTEGER)) || ')', '')
end