When connected to Amazon Redshift, you want to combine a DATE column and a TIME column and convert them into a TIMESTAMP data type.
Because Tableau does not natively support the database TIME data type and Amazon Redshift does not support a direct CAST from TIME to TIMESTAMP, simply concatenating or casting these columns can result in errors such as:
"ERROR: cannot cast type time without time zone to timestamp without time zone".
To resolve this issue, use one of the following options.
MAKEDATETIME([date_column], [time_column])
SELECT CAST(date_column || ' ' || time_column AS TIMESTAMP) AS date_time_cast FROM your_table
Alternatively:
SELECT (date_column + time_column) AS date_time_cast FROM your_table
For more information on separating time from a Date & Time field, see the following article:
Isolate Time from Date and Time Field
Please note that, as described in the following article, you cannot use TIME data type columns in Tableau Desktop directly via drag-and-drop:
Fields with TIME Data Type Not Imported Into Tableau Desktop for MS SQL Server
005393489

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.