We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84b5321 commit 3aa72c8Copy full SHA for 3aa72c8
data-loader/core/src/main/java/com/scalar/db/dataloader/core/util/ColumnUtils.java
@@ -83,9 +83,14 @@ public static Column<?> createColumnFromValue(
83
DataType dataType, ColumnInfo columnInfo, @Nullable String value)
84
throws ColumnParsingException {
85
String columnName = columnInfo.getColumnName();
86
- if (value != null && (!dataType.equals(DataType.TEXT) && value.equalsIgnoreCase("null"))
87
- || (dataType.equals(DataType.TEXT) && "\\N".equals(value))) {
88
- value = null;
+ if (value != null) {
+ if (dataType.equals(DataType.TEXT)) {
+ if ("\\N".equals(value)) {
89
+ value = null;
90
+ }
91
+ } else if (value.equalsIgnoreCase("null")) {
92
93
94
}
95
try {
96
switch (dataType) {
0 commit comments