I am trying to get a quoted csv output from beeline. My query looks like:
beeline -u 'jdbc:hive2://localhost:10000/' --outputformat=csv2 -e 'set system:disable.quoting.for.sv=false; select 1 as a, 2 as b'
I expect as output
"a","b"
"1","2"
But only get the non-quoted version.
According to the documentation:
The quoting can be disabled by setting the disable.quoting.for.sv system variable to true.
I suppose I am doing something wrong here. How can I set this variable to false? Having it in my query does not seem to do the trick, having it on hive-site.xml neither.
Note: hive 1.2.1 on hdp 2.5.