-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Teradata invalid strftime function - DATE colums failing #740
Comments
Error message when running a TD to BQ hash validation on a DATE column:
|
The above issue should be fixed by PR: #736 |
But the problem in this issue still needs to be looked at separately. |
@nehanene15 I've made some changes the associated branch for this issue, including adding an integration test. |
@nj1973 Interesting... I can test this out now and try copying the code from scratch.. |
@nj1973 I had to make the same changes as you to get the code working.. I think its normal for it to look different compared to Oracle/Postgres since SQLAlchemy doesn't support Teradata so the functions/column name compilations look different |
The Teradata implementation of strftime compiles FORMAT_DATE() which is an invalid function.
This needs to be changed to a CAST(date_column AS DATE FORMAT 'DD-MM-YYYY')
The text was updated successfully, but these errors were encountered: