Forum Discussion
Problem loading Lakehouse file/table into warehouse
Hi westf
It seems df.to_sql() is a Pandas dataframe function. I haven't tested it yet.
BTW, do you consider using copy data activity in data pipeline to copy data from lakehouse into warehouse? You can set up the column mapping within the activity. This will be easier.
How to copy data using copy activity - Microsoft Fabric | Microsoft Learn
Best Regards,
Jing
Community Support Team
- westf1 year agoRegular Visitor
Thanks for the reply. i can't use copy activity becuase im writing dynamic pipeline using notebook. All i need is a way to push Lakhouse table data into Warehouse.
- Anonymous1 year agoNot applicable
Hi westf
You may check the data type of the datetime column in the Pandas dataframe. In my testing, I got the following datetime64. It may be not compatible with the datetime2 type in the destination warehouse. I guess this might be the cause of the error. Not sure if this data type could be converted to meet the target. You may research this further.
Best Regards,
Jing