by
Anku_
• New Contributor II
- 2066 Views
- 2 replies
- 0 kudos
Hi all,I am trying to get the domain from an email field using below expression; but getting an error.Kindly help. df.select(df.email, substring(df.email,instr(df.email,'@'),length(df.email).alias('domain')))
- 2066 Views
- 2 replies
- 0 kudos
Latest Reply
In your case, you want to extract the domain from the email, which starts from the position just after '@'. So, you should add 1 to the position of '@'. Also, the length of the substring should be the difference between the total length of the email ...
1 More Replies
- 1432 Views
- 1 replies
- 0 kudos
Below is the pileine design in databricks and it's not working out , kindly look on this and let me know whether it will work or not , I'm getting json files of different schemas from directory under the root directory and it read all the files using...
- 1432 Views
- 1 replies
- 0 kudos
Latest Reply
Could you please share some sample of your dataset and code snippet of what you're trying to implement?