- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Hive: Regex_replace special character issue
- Labels:
-
Apache Hive
Created on ‎04-26-2017 06:38 AM - edited ‎09-16-2022 04:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Experts ,
I have a string column in a hive table and it each row contains few lines of text in the that string column .
file looks like below 3 lines . .
daodaodkaodiaoraajdbajgioraeaeama
fmrkfjiffm=\n,daodjaoduaofaklfmadkaodk
adaiuaidjadmdoajdaodkada;d,adadoo
I am trying to replace "=\n" with a space ( '') with regex_replace( columnname , '^=\\n$|=\\n', '')
but it seems it's working . Also if i simply write SELECT 'fmrkfjiffm=\n,daodjaoduaofaklfmadkaodk' in hue
and run , I see only 'fmrkfjiffm= ,daodjaoduaofaklfmadkaodk' which is quite weird for me .
Is this a character set issue ?
Please help me sharing your knowledge on this. Thanks in advance .
Created ‎04-01-2019 07:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
function actual name is regexp_replace and not regex_replace
