NIFI-2897: Fixed SelectHiveQL for CSV output of complex types

This closes #1132
This commit is contained in:
Matt Burgess 2016-10-13 13:27:49 -04:00 committed by Oleg Zhurakousky
parent 88d125137e
commit b52b839895
1 changed files with 10 additions and 0 deletions

View File

@ -339,6 +339,16 @@ public class HiveJdbcCommon {
rowValues.add("");
}
break;
case ARRAY:
case STRUCT:
case JAVA_OBJECT:
String complexValueString = rs.getString(i);
if (complexValueString != null) {
rowValues.add(StringEscapeUtils.escapeCsv(complexValueString));
} else {
rowValues.add("");
}
break;
default:
if (value != null) {
rowValues.add(value.toString());