Skip to content

Commit 02e3517

Browse files
Adam-chengzhuomachengzhuo
andauthored
Fix the issue of SQL conversion in export tool (#16913)
Co-authored-by: machengzhuo <chengzhuo.ma@timecho.com>
1 parent c663477 commit 02e3517

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

iotdb-client/cli/src/main/java/org/apache/iotdb/tool/data/ExportData.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,10 @@ public static void main(String[] args) {
238238
exportData.exportBySql(values[i], i);
239239
}
240240
} else {
241-
exportData.exportBySql(queryCommand, 0);
241+
String[] values = queryCommand.trim().split(";");
242+
for (int i = 0; i < values.length; i++) {
243+
exportData.exportBySql(values[i], i);
244+
}
242245
}
243246
} catch (IOException e) {
244247
ioTPrinter.println("Failed to operate on file, because " + e.getMessage());

0 commit comments

Comments
 (0)