hareshkh commented on PR #18596:
URL: https://github.com/apache/datafusion/pull/18596#issuecomment-3516409668
@comphead
Verified that without this fix `slt` has the following error:
```
query error
SELECT
date_trunc('millisecond', ts)
FROM ts_data_micros_kolkata
----
DataFusion error: Internal error: Function 'date_trunc' returned value of
type 'Timestamp(Nanosecond, None)' while the following type was promised at
planning time and expected: 'Timestamp(Nanosecond, Some("Asia/Kolkata"))'.
This issue was likely caused by a bug in DataFusion's code. Please help us
to resolve this by filing a bug report in our issue tracker:
https://github.com/apache/datafusion/issues
```
<img width="1653" height="180" alt="image"
src="https://github.com/user-attachments/assets/9c3cf188-fab4-42f2-b33d-5f299e4817ea"
/>
But after the fix:
```
query P
SELECT
date_trunc('millisecond', ts)
FROM ts_data_micros_kolkata
----
2020-09-08T19:12:29.190+05:30
2020-09-08T18:12:29.190+05:30
2020-09-08T17:12:29.190+05:30
```
Pushed the SLT test now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]