Skip to content

Commit 0f50503

Browse files
committed
fix: special characters used as delimiters (such as |) must be escaped
1 parent d3acccf commit 0f50503

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pixels-cli/src/main/java/io/pixelsdb/pixels/cli/load/PixelsConsumer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
import java.util.concurrent.ConcurrentLinkedQueue;
5050
import java.util.concurrent.TimeUnit;
5151
import java.util.concurrent.atomic.AtomicInteger;
52+
import java.util.regex.Pattern;
5253

5354
/**
5455
* @author: tao
@@ -190,7 +191,7 @@ public void run()
190191
rowBatch.size++;
191192
rowCounter++;
192193

193-
String[] colsInLine = line.split(regex);
194+
String[] colsInLine = line.split(Pattern.quote(regex));
194195
for (int i = 0; i < columnVectors.length - 1; i++)
195196
{
196197
try

0 commit comments

Comments
 (0)