[Bug] 导出工具在导出 SQL 时,双引号未转义
- Dominant language
- Java
- Stars
- 6.4k
- Forks
- 1.2k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 115
Description
### 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!
Contributor guide
Research direction
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.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, sql
- Domain
- cli, database
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100