[Bug] 导出工具在导出 SQL 时,双引号未转义
- 主要语言
- Java
- 星标
- 6.4k
- 派生
- 1.2k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 115
描述
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.
### Version
Wingows 11
IoTDB 1.3.3
### Describe the bug and provide the minimal reproduce step
如果 TEXT 类型的时间序列的值中包含 `"`,按照语法规范应该转写为 `""`。
具体代码位置为 [ExportData.java#L761](https://github.com/apache/iotdb/blob/94e0f30598fbe76ac15e019e442b4b430b7afb5f/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/data/ExportData.java#L761)
### What did you expect to see?
-
### What did you see instead?
-
### Anything else?
_No response_
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
贡献指南
调研方向
Read iotdb-client/cli/src/main/java/org/apache/iotdb/tool/data/ExportData.java around line 761, where SQL export handles TEXT values. Reproduce an export containing a double quote and compare the generated SQL with the required doubled-quote syntax. Done means exported SQL escapes every embedded double quote correctly.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, sql
- 领域
- cli, database
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100