Support Questions
Find answers, ask questions, and share your expertise

How to Chang Double Quotes to Single Quotes

How to Chang Double Quotes to Single Quotes

New Contributor

Dears,

I successfully used the below commands and the string, that has comma  "," within it, is quoted by double quotes; I need please to use single quotes so the result will be '2,3' not "2,3".

 

$export HADOOP_CLIENT_OPTS="-Ddisable.quoting.for.sv=false"

$ beeline -u 'jdbc:hive2://localhost:10000/' --outputformat=csv2 -e "select 1 as a, '2,3' as b"

 

a ,    b
1 , "2,3"

 

regards,

Omran Badarneh

Don't have an account?