Update table by Hour - The data types time and datetime2 are incompatible

BGO 46 Reputation points
2023-06-28T18:37:15.3333333+00:00

Hello,

I'm trying to update a table in Synapse by LocalDate and Hour columns. The LocalDate defined as a DATE and Hour as a TIME(7) in the database. There is a problem with the Hour column as it's coming from the source as a string.

Here is an example of the source data:
User's image

I added Derived Column and tried to convert the string to the timestamp

User's image

This is how the sink looks like:
User's image

but I'm getting the following error:
Job failed due to reason: at Sink 'sink1': The data types time and datetime2 are incompatible in the equal to operator.

How can I convert the Hour string to the right time format?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,609 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.