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
  • 151,199
  • 17
  • 111
  • 216
Shijo
  • 8,307
  • 2
  • 16
  • 30

0 Answers0