Skip to content
Advertisement

Create external table from csv on HDFS , all values come with quotes

I have a csv file on HDFS and I am trying to create an impala table , the situation is it created the table and values with all the “

The output is
name tile last pno
“abc” “mr” “xyz” “1234”
“rew” “ms” “pre” “654”

I just want to create table from csv file without quotes. Please guide where I am going wrong. Regards, R

Advertisement

Answer

A way to do that is creating a stage table that load the file with quotes and then with CTAS (Create table as select) create the right table cleaning the fields with replace function. As an example

Hope this helps.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement