Table of Contents

Search

  1. Preface
  2. Function reference
  3. Constants
  4. Operators
  5. Dates
  6. Functions
  7. System variables
  8. Datatype reference

Function Reference

Function Reference

Date/Time data type

Date/Time data type

The Date/Time data type handles years from 1 A.D. to 9999 A.D. in the Gregorian calendar system. Years beyond 9999 A.D. cause an error. Mappings process Date/Time data types in complex file formats such as Parquet, Avro, and ORC using the local time zone of the Secure Agent machine.
The Date/Time data type supports dates with precision to the nanosecond. The data type has a precision of 29 and a scale of 9. Some native data types have a smaller precision. When you import a source that contains datetime values, the import process imports the correct precision from the source column. For example, the Microsoft SQL Server Datetime data type has a precision of 23 and a scale of 3. When you import a Microsoft SQL Server source that contains Datetime values, the Datetime columns in the mapping source have a precision of 23 and a scale of 3.
Data Integration
reads datetime values from the source to the precision specified in the mapping source. When
Data Integration
transforms the datetime values, it supports precision up to 29 digits. For example, if you import a datetime value with precision to the millisecond, you can use the ADD_TO_DATE function in an Expression transformation to add nanoseconds to the date.
If you write a Date/Time value to a target column that supports a smaller precision,
Data Integration
truncates the value to the precision of the target column. If you write a Date/Time value to a target column that supports a larger precision,
Data Integration
inserts zeroes in the unsupported portion of the datetime value.
An
advanced cluster
processes Date/Time precision to the microsecond. If a Date/Time value contains nanoseconds, the
advanced cluster
truncates trailing digits.

0 COMMENTS

We’d like to hear from you!