Skip to content
Permalink
Browse files
Fix split discard empty str (#270)
  • Loading branch information
Linary committed Nov 26, 2020
1 parent ffa510e commit ba85ed858d9fcce47a92f2ad2cd9eb2e109a6f7c
Showing 1 changed file with 2 additions and 1 deletion.
@@ -59,6 +59,7 @@
import com.baidu.hugegraph.options.HubbleOptions;
import com.baidu.hugegraph.util.Ex;
import com.baidu.hugegraph.util.HubbleUtil;
import com.baidu.hugegraph.util.StringUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
@@ -267,7 +268,7 @@ public void extractColumns(FileMapping mapping) {
columnNames = firstLine;
// The second line as column values
line = reader.readLine();
columnValues = StringUtils.split(line, delimiter);
columnValues = StringUtil.split(line, delimiter);
} else {
// Let columns names as: column-1, column-2 ...
columnNames = new String[firstLine.length];

0 comments on commit ba85ed8

Please sign in to comment.