Hello @Heta Desai ,
Thanks for the question and using MS Q&A platform.
As we understand the ask here is to get rid of the error , please do let us know if its not accurate.
I am assuming that on the creation of the delta tyable side you have selected the MERGE opertation , let me know if that correct ? I did tried to repro the issue as it worked fine for me , to me its due to the fact its realted to the date which is in the rate column . As you mentioned that you have a metadata table and I am assuming the you have the SELECT query or the column name against the table name . I suggest that you add a cast function in the metadata and try agian . It should work .
Something like .
select SomeMoney,CAST(SomeMoney as decimal(19,2)) from MoneyTypeTest
Please do let me if you have any queries.
Thanks
Himanshu
- Please don't forget to click on
or upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
I also tried using dataflow where source will read data from SQL server and sink (inline database) writes to delta lake table. But it is also not working
For SQL server data types like decimal, numeric, money I have used decimal type with size same as SQL server. But at the time of data insertion it throws an error which I mentioned in question.
@HimanshuSinha-msft
I did try using CAST() in select query for Money column while pulling data from SQL Server table. Still it is giving same error. I save below SELECT wuery in metadata table which is used in dataflow to pull the data from source.
Hello @Heta Desai ,
I did called this out in my reply also . Can you please check if the MERGE option is checked ?
, If yes what happens when you unselect it and run the pipeline ?
Thanks
Himanshu
Hello @Heta Desai ,
We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet .In case if you have any resolution please do share that same with the community as it can be helpful to others . Otherwise, will respond back with the more details and we will try to help .
Thanks
Himanshu\
Sign in to comment