Statistics Functions Behavior for bool, char, bit, and varbit Data Types - Aster R

Teradata Aster® R User GuideUpdate 3

Product
Aster R
Release Number
7.00.02.01
Published
December 2017
Language
English (United States)
Last Update
2018-04-13
dita:mapPath
fop1497542774450.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
fbp1477004286096
lifecycle
previous
Product Category
Software

The behavior of the bool, char, bit, and varbit data types for statistics functions is:

  • For character columns, the values can contain "", "NA", or an all digit string. For example, "123".
  • For boolean columns, the Aster boolean is:
    • converted to 1 or 0 (numeric) through RODBC
    • converted to "t" or "f" through ta.pull
    • converted to "t" or "f" in the STREAM Rexec call
  • For bit and varbit columns, the values only contain "1" and "0".

In each case, RODBC will recognize the data type value as a numeric (double or integer) values. As a result, statistics functions do not detect non-numeric columns before executing the SQL.