Hi Team,
If Snowflake is the source connection to CDP and LoginDate field is a Varchar in snowflake View 'ABC' - when dataflow is created for the View ABC to ABC Schema in CDP, and the data type of field LoginDate is set up as DateTime in Schema.. will CDP automatically convert the data type of that Varchar field in source to DateTime in CDP during ingestion?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @mansibedi Yes, AEP doesn't perform any conversion on data type here. You can request the source team to change the datatype for the date field. Also, wondering that did you get any error on mapping these fields? would like to know.
Ingestion wont convert the string automatically, during the ingestion there is option to add calculated field, using the data prep function and then assign the schema field to the calculated fields
Example:
Syntax: date(DATE, FORMAT, DEFAULT_DATE)
e.g.date(“2019-10-23 11:24”, “yyyy-MM-dd HH:mm”, now())
I hope this would be helpful.
Views
Replies
Total Likes
thanks @hariprasathg that is helpful.
Views
Replies
Total Likes
Hi @mansibedi - CDP doesn't perform any conversion. However, in your scenario it shouldn't be any issue as it was already a "DateTime" field and dataflow will be sooth from snowflake.
Views
Replies
Total Likes
@jayakrishnaaparthasarathy the DateTime field is in CDP, but in the source data (snowflake in this case) - the data value is a Varchar. So CDP won't perform conversion in this case i believe?
Snowflake View ABC -----------------------> source ingestion -----> CDP Schema ABC
(field name - loginDate) (field name - loginDate)
(data type - varchar) (data type - DateTime)
Hi @mansibedi Yes, AEP doesn't perform any conversion on data type here. You can request the source team to change the datatype for the date field. Also, wondering that did you get any error on mapping these fields? would like to know.