Skip to content

Commit 0e456ee

Browse files
committed
comment added for /N conversion of null in CSV mode export
1 parent 32d222e commit 0e456ee

File tree

1 file changed

+2
-0
lines changed
  • data-loader/core/src/main/java/com/scalar/db/dataloader/core/dataexport/producer

1 file changed

+2
-0
lines changed

data-loader/core/src/main/java/com/scalar/db/dataloader/core/dataexport/producer/CsvProducerTask.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ private String convertResultToCsv(Result result) {
118118
*/
119119
private String convertToString(Result result, String columnName, DataType dataType) {
120120
if (result.isNull(columnName)) {
121+
// "/N" is added when a column of text data type has null value. This is only converted for
122+
// CSV files
121123
if (dataType.equals(DataType.TEXT)) {
122124
return "/N";
123125
}

0 commit comments

Comments
 (0)