-
Notifications
You must be signed in to change notification settings - Fork 187
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
Bug: FromUnixtimeOperatorTransformer
possibly built on false supposisions.
#459
Comments
Steps to reproduce the issue hive
trino
trino version 420 while using coral version 2.2.9
trino version
trinoSql in ViewReaderUtil
|
FromUtcTimestampOperatorTransformer is playing with both:
Translation of from_unixtime_nanos works as expected.
Given the fact that |
The
FromUnixtimeOperatorTransformer
from https://github.com/linkedin/coral/pull/426/files#diff-e26e325f65fb1f3341468a92d2e1051ee2b8b94b56c74203054aca3b2c790e4eseems to be built on false premises.
The function https://trino.io/docs/current/functions/datetime.html#from_unixtime returns a
timestamp(3) with time zone
However, the
FromUnixtimeOperatorTransformer
transformsfrom_unixtime
expressions toFORMAT_DATETIME(FROM_UNIXTIME(10000), 'yyyy-MM-dd HH:mm:ss')
which is a varcharThis is causing the failure of statements like the following:
with the exception:
Related PR: #426
The text was updated successfully, but these errors were encountered: