apache / apache/iotdb

[Bug] 导出工具在导出 SQL 时,双引号未转义

オープン
#14,587 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
6.4k
フォーク
1.2k
平均マージ
1日 23時間
マージ済み PR(30日)
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。