apache / apache/iotdb

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

Ouverte
#14,587 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Java
Étoiles
6.4k
Forks
1.2k
Merge moyen
1 j 23 h
PR mergées (30 j)
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!

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java, sql
Domaine
cli, database
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Clairement spécifiée
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.