Dataiku and Dremio date difference
In dataiku you have applied to_date function to convert string to date datatype in SparkSQL and when query same dataset in dremio then you will difference of 1 day.
Example - In dataiku
SELECT offer_date FROM temp
Result : 2023-05-18T00:00:00.000Z
Dremio :
SELECT offer_date FROM temp
Result : 2023-05-17 08:00:00.000
Now you will find the difference of 1 day and 8 hours (sometime 16 hours) between Dataiku and Dremio.
Solutions:
This difference is due to time difference. In Dataiku we have correct date to correct it Dremio please use TO_TIMESTAMP function to get correct date.
Example :
select TO_TIMESTAMP(offer_date,'yyyy-mm-dd') as offer_date from temp
Comments
Post a Comment