0

In Hive how can I replace multiple spaces between a strings ?

select regexp_replace('foot ball',' ',' ')

Expected output is a string with only one space between them

foot ball

Any help is appreciated

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Shijo
  • 9,313
  • 3
  • 19
  • 31

0 Answers0