mirror of https://github.com/apache/nifi.git
NIFI-2897: Fixed SelectHiveQL for CSV output of complex types
This closes #1132
This commit is contained in:
parent
88d125137e
commit
b52b839895
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue