Update table by Hour - The data types time and datetime2 are incompatible
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:
I added Derived Column and tried to convert the string to the timestamp
This is how the sink looks like:
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?