Data Type Mapping
                                                            This table describes the data type mapping between Teradata and Exasol.
| Teradata | Exasol | Comment | 
|---|---|---|
| Numeric Data Types | ||
| 
                                                                             
  | 
                                                                        DECIMAL(9)
                                                                         | 
                                                                        |
| 
                                                                             
  | 
                                                                        DECIMAL(9) or SMALLINT (Alias)
                                                                         | 
                                                                        
                                                                             You can also use the alias   | 
                                                                    
| 
                                                                             
  | 
                                                                        DECIMAL(10) or INTEGER
                                                                         | 
                                                                        
                                                                             You can also use the alias   | 
                                                                    
| 
                                                                             
  | 
                                                                        DECIMAL(20) or BIGINT
                                                                         | 
                                                                        
                                                                             You can also use the Alias   | 
                                                                    
| 
                                                                             
  | 
                                                                        DECIMAL(p,s)
                                                                         | 
                                                                        
                                                                             The maximum precision in Exasol is 36, but in Teradata is 38  | 
                                                                    
| 
                                                                             
  | 
                                                                        DOUBLE PRECISION
                                                                         | 
                                                                        Possible loss in precision | 
| 
                                                                             
  | 
                                                                        DECIMAL(p,s) | 
                                                                        |
| 
                                                                             
  | 
                                                                        DECIMAL(p,s) | 
                                                                        |
| 
                                                                             
  | 
                                                                        DOUBLE PRECISION
                                                                         | 
                                                                        |
| Character Data Types | ||
| 
                                                                             
  | 
                                                                        CHAR(n) if n <= 2000 
VARCHAR(n) if n >2000
                                                                         | 
                                                                        
                                                                             For Exasol, the maximum for   | 
                                                                    
| 
                                                                             
  | 
                                                                        VARCHAR(n)
                                                                         | 
                                                                        
                                                                             
The maximum   | 
                                                                    
| 
                                                                             
  | 
                                                                        VARCHAR(2000000)
                                                                         | 
                                                                        
                                                                             Exasol can store a maximum of 2,000,000 characters versus Teradata, which can store a maximum of 2,097,088,000 characters in a   | 
                                                                    
| 
                                                                             
  | 
                                                                        VARCHAR(2000000)
                                                                         | 
                                                                        |
| 
                                                                             
  | 
                                                                        VARCHAR(2000000)
                                                                         | 
                                                                        |
| Date and Time Data Types | ||
DATE
                                                                         | 
                                                                        DATE
                                                                         | 
                                                                        |
| 
                                                                             
  | 
                                                                        TIMESTAMP
                                                                         | 
                                                                        
                                                                             Exasol does not have a dedicated data type for   | 
                                                                    
TIME WITH TIME ZONE
                                                                         | 
                                                                        TIMESTAMP
                                                                         | 
                                                                        
                                                                             We recommend normalizing the timestamps to UTC in Exasol. Exasol also offers a   | 
                                                                    
| 
                                                                             
  | 
                                                                        TIMESTAMP
                                                                         | 
                                                                        
                                                                             The accuracy is limited to milliseconds  | 
                                                                    
| 
                                                                             
  | 
                                                                        TIMESTAMP
                                                                         | 
                                                                        
                                                                             We recommend normalizing the timestamps to UTC in Exasol. Exasol also offers a   | 
                                                                    
| 
                                                                             
  | 
                                                                        DATE, DATE
                                                                         | 
                                                                        
                                                                             Split the   | 
                                                                    
| 
                                                                             
  | 
                                                                        
                                                                             
  | 
                                                                        
                                                                             Split the   | 
                                                                    
| 
                                                                             
  | 
                                                                        TIMESTAMP, TIMESTAMP
                                                                         | 
                                                                        
                                                                             Split the   | 
                                                                    
| Interval Data Types | ||
| 
                                                                             
  | 
                                                                        INTERVAL YEAR  TO MONTH
                                                                         | 
                                                                        |
| 
                                                                             
  | 
                                                                        
                                                                             
  | 
                                                                        |
| 
                                                                             
  | 
                                                                        
                                                                             
  | 
                                                                        |
| 
                                                                             
  | 
                                                                        
                                                                             
  | 
                                                                        |
| 
                                                                             
  | 
                                                                        INTERVAL DAY TO SECOND
                                                                         | 
                                                                        |
| 
                                                                             
  | 
                                                                        
                                                                             
  | 
                                                                        |
| 
                                                                             
  | 
                                                                        INTERVAL DAY TO SECOND
 | 
                                                                        |
| 
                                                                             
  | 
                                                                        INTERVAL DAY TO SECOND
 | 
                                                                        |
| 
                                                                             
  | 
                                                                        INTERVAL DAY TO SECOND
                                                                         | 
                                                                        |
| 
                                                                             
  | 
                                                                        
                                                                             
  | 
                                                                        |
| 
                                                                             
  | 
                                                                        
                                                                             
  | 
                                                                        |
| Unsupported Data Types | ||
| 
                                                                             
  | 
                                                                        
                                                                             Not supported  | 
                                                                        
                                                                             Exasol does not support binary data  | 
                                                                    
| 
                                                                             
  | 
                                                                        
                                                                             Not supported  | 
                                                                        
                                                                             Exasol does not support binary data  | 
                                                                    
| 
                                                                             
  | 
                                                                        Not supported | 
                                                                             Exasol does not support binary data  | 
                                                                    
| 
                                                                             
  | 
                                                                        
                                                                             Depends on type of   | 
                                                                        
                                                                             
Distinct   | 
                                                                    
| 
                                                                             
  | 
                                                                        
                                                                             
  | 
                                                                        
                                                                             
  |