Teradata Database Message 6979 - 6979 - Analytics Database - Teradata Vantage

Analytics Database Messages

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
15.xx,16.xx,17.xx
Published
June 2022
ft:locale
en-US
ft:lastEdition
2023-01-05
dita:mapPath
sfx1628096178347.ditamap
dita:ditavalPath
ft:empty
dita:id
B035-1096
lifecycle
latest
Product Category
Teradata Vantageā„¢
Message
Invalid CAST. Casting a Period value as the specified target type is not allowed.
Explanation
A Period value can be cast only as CHARACTER, VARCHAR, PERIOD , DATE, TIME, or TIMESTAMP when using the CAST function. Using the CAST function for casting a Period value as any other data type is not allowed. Note that a PERIOD(DATE) value cannot be cast as PERIOD(TIME) or TIME. Also, a PERIOD(TIME) value cannot be cast as PERIOD(DATE) or DATE.
Generated By
Parser modules.
For Whom
End User.
Notes
None
Remedy
Rewrite the statement by correcting the source value to have a data type such that it is valid to cast the source value as the specified target type and re-submit.