[Bug] export data error
- 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
iotdb 2.0.5
RH9
### Describe the bug and provide the minimal reproduce step
/usr/local/apache-iotdb-2.0.5/tools/export-data.sh -ft sql -pw '' -sql_dialect table -db nezha -table table -t /tmp/testIotdb/data
error msg:
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "org.apache.iotdb.service.rpc.thrift.TSExecuteStatementResp.getStatus()" because "execResp" is null
at org.apache.iotdb.session.SessionConnection.executeQueryStatement(SessionConnection.java:411)
at org.apache.iotdb.session.Session.executeStatementMayRedirect(Session.java:958)
at org.apache.iotdb.session.Session.executeQueryStatement(Session.java:943)
at org.apache.iotdb.session.TableSession.executeQueryStatement(TableSession.java:57)
at org.apache.iotdb.tool.data.ExportDataTable.exportBySql(ExportDataTable.java:130)
at org.apache.iotdb.tool.data.ExportData.main(ExportData.java:243)
but limit 1000 is success
/usr/local/apache-iotdb-2.0.5/tools/export-data.sh -ft sql -pw '' -sql_dialect table -db nezha -q “select * from table limit 1000” -t /tmp/testIotdb/data
desc table :
CREATE TABLE IF NOT EXISTS table(
time TIMESTAMP TIME,
effect_date TIMESTAMP FIELD,
content TEXT FIELD
);
### What did you expect to see?
Successfully exported
### What did you see instead?
Exception in thread
### 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
Reproduisez la commande export-data.sh défaillante sur IoTDB 2.0.5 et comparez-la avec la requête réussie utilisant limit 1000. Commencez à SessionConnection.java:411 et suivez l’appel via Session.java:958, TableSession.java:57 et ExportDataTable.java:130. C’est terminé lorsque l’export présenté avec le dialecte de table s’exécute correctement sans la null-response exception.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java, sql
- Domaine
- databases
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 68/100