Skip to content
Advertisement

How do I convert to date data_type after concatenating?

I have a query where I am concatenating month and year and saving it as MY, which converts it to string. Need help converting to date data_type from string after concatenating.

Advertisement

Answer

If you want to convert to a date in Sparksql:

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