apache spark sql – How to split a column?

apache spark sql – How to split a column?

Try this:

SELECT explode(split(str, _))

Or this:

SELECT split(str,  )[0] as part1, split(str,  )[1] as part2

apache spark sql – How to split a column?

Leave a Reply

Your email address will not be published. Required fields are marked *