Forum Discussion
Kanika123
1 year agoNew Member
Data Type Conversion
I have a pipeline in fabric and source has 2-3 fields that has datetime as datattype and in pipeline I am using copy activity to copy data from source to lakehouse table. Now lakehouse table has fiel...
tharunkumarRTK
1 year agoSuper User
I am assuming you are able to view the data from lakehosue explorer and you are facing this error when ran the query in spark sql, is it?
Are you able run a T-SQL query on this table from sql analytics end point?
if the answer for the above two questions is yes then I am guessing its a type conversion problem. Please checkout this blog
was there any unsual datetime value like '31-12-9999' ?
I would suggest you to performing manual type casting in the spark sql
BTW, in Fabric lakehouse timestamp datatype is datetime2.
https://learn.microsoft.com/en-us/fabric/data-warehouse/data-types
Need a Power BI Consultation? Hire me on Upwork
Connect on LinkedIn
|