DATE Data Type
Description
Oracle's date data type stores both date and time information, however Snowflake's date data type only stores date information. (Oracle SQL Language Reference Date Data Type)
The default transformation for Oracle DATE
is to Snowflake TIMESTAMP
. You can add the disableDateAsTimestamp
flag (SnowConvert Command Line Interface) or disable the Transform Date as Timestamp setting (SnowConvert desktop application) in order to transform the DATE
type to TIMESTAMP
. Keep in mind that Snowflake DATE
only stores date information and Oracle stores date and time information, if you want to avoid losing information you should transform DATE
to TIMESTAMP
.
Sample Source Patterns
Date in Create Table
Oracle
Snowflake without --disableDateAsTimestamp flag or with "Transform Date as Timestamp" setting enabled
Snowflake with --disableDateAsTimestamp flag or with "Transform Date as Timestamp" setting disabled
Retrieving data from a Date column
Oracle
Snowflake
Known Issues
1. Input and output format may differ between languages
In Snowflake, DATE
input and output formats depend on the DATE_INPUT_FORMAT
and DATE_OUTPUT_FORMAT
session variables. Insertions may fail because the DATE_INPUT_FORMAT
enforces the user to use a specific format when a date is added by text. You can modify those variables using the following syntax.
Related EWIs
SSC-FDM-OR0042: Date Type Transformed To Timestamp Has A Different Behavior
Last updated