Hive and comma delimited fields in managed table
Hi everyone,
I am uploading Navigator logs into Hive for analysis. I used this:
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'
WITH SERDEPROPERTIES (
"separatorChar" = ",",
"quoteChar" = '"',
"escapeChar" = "\\"
)
STORED AS TEXTFILE
Based off: https://community.cloudera.com/t5/Support-Questions/Hive-escaping-field-delimiter-in-column-value/m-p/233346#M195173 to get an external table to handle the commas in queries. I think it's working fine (but will test tomorrow to make sure).
However, I then do a move to a managed partitioned table, but it is not handling the commas in queries correctly. I created it as:
PARTITIONED BY(event_day INT, event_month INT, event_year INT);
How do I handle the commas in queries as part of this move?
Does the managed table need the same delimter & escape info as the external table?
If that's the case, what's the syntax for it?
Schwifty

