This question has been put out on 2018.03.19, and i met this question again.
The link:https://community.cloudera.com/t5/Support-Questions/Export-query-to-csv-with-no-delimeter-and-no-ext...
My sql query :
select name from ${table};
the hue shows:
![1.png 1.png](https://community.cloudera.com/t5/image/serverpage/image-id/36313iFF97AB99A82F4F31/image-size/large?v=v2&px=999)
and i try to export data to dat format by using impala-shell.
Here is my query
impala-shell -i ${load_balancer} -u ${username} -q "SELECT IFNULL(CAST(NAME AS STRING),'') FROM DBNAME.TBNAME LIMIT 100" -B -o ${file_path};
the result data.dat shows:
![2.png 2.png](/t5/image/serverpage/image-id/36315i83853216DB9D209B/image-size/large?v=v2&px=999)
I try to change query to:
impala-shell -i ${load_balancer} -u ${username} -q "SELECT IFNULL(CAST(NAME AS STRING),'') FROM DBNAME.TBNAME LIMIT 100" -B -o ${file_path} '--output_delimiter=,'
the result is same.
I want : KURDISTAN ("THE PKK")
NOT:"KURDISTAN (""THE PKK"")"
How can I accomplish this through impala-shell?
Thank you