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

Popular posts from this blog

Date format issue with spark sql

Hive Partition sub folders HIVE_UNION_SUBDIR_1,HIVE_UNION_SUBDIR_2,HIVE_UNION_SUBDIR_8