Skip to content
Advertisement

Azure Data Bricks – Convert to Date for Ordering

I have had to construct a string that has a millisecond compoment as source where data is being extracted does not allow a date field to hold a milli second component. However not the problem ..

Query

The problem is that I can not order records in Azure Data Bricks Sql Analaytics using the STRING version of the field . I need to change it to timestamp data type to do this but cant seem to get the syntax right . This is what my query gives me currently :

enter image description here

Advertisement

Answer

Got this to work now . Syntax issue POWERAPPCAPTURETIME, ‘dd/M/yyyy HH:mm’. This then works for partition by and ordering using that column .

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement