This is an automated email from the ASF dual-hosted git repository.
critas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 02e3517c536 Fix the issue of SQL conversion in export tool (#16913)
02e3517c536 is described below
commit 02e3517c53654d397cc08030d143f7fe0796d363
Author: Adam <[email protected]>
AuthorDate: Wed Dec 17 09:59:56 2025 +0800
Fix the issue of SQL conversion in export tool (#16913)
Co-authored-by: machengzhuo <[email protected]>
---
.../cli/src/main/java/org/apache/iotdb/tool/data/ExportData.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/data/ExportData.java
b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/data/ExportData.java
index a78ef723471..9f52c6834be 100644
--- a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/data/ExportData.java
+++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/data/ExportData.java
@@ -238,7 +238,10 @@ public class ExportData extends AbstractDataTool {
exportData.exportBySql(values[i], i);
}
} else {
- exportData.exportBySql(queryCommand, 0);
+ String[] values = queryCommand.trim().split(";");
+ for (int i = 0; i < values.length; i++) {
+ exportData.exportBySql(values[i], i);
+ }
}
} catch (IOException e) {
ioTPrinter.println("Failed to operate on file, because " +
e.getMessage());