Skip to content

Commit

Permalink
[hotfix][hdfs]when writing to hdfs, null value is set to '\N' (#1408)
Browse files Browse the repository at this point in the history
[hotfix][hdfs]when writing to hdfs, null value is set to '\N' for hive specification so that hdfs connector can read from the output

(cherry picked from commit a924b98)
  • Loading branch information
conghe2402 authored and OT-XY committed Mar 3, 2023
1 parent d863ff6 commit 0ac81e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ protected ISerializationConverter<String[]> wrapIntoNullableExternalConverter(
ISerializationConverter serializationConverter, String type) {
return (rowData, index, data) -> {
if (rowData == null || rowData.isNullAt(index)) {
data[index] = null;
data[index] = "\\N";
} else {
serializationConverter.serialize(rowData, index, data);
}
Expand Down

0 comments on commit 0ac81e1

Please sign in to comment.