[Bug] flink CDCExample不能用
- 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 1.3.2
### Describe the bug and provide the minimal reproduce step
参考官方例子:
public static void main(String[] args) {
EnvironmentSettings settings = EnvironmentSettings.newInstance().inStreamingMode().build();
TableEnvironment tableEnv = TableEnvironment.create(settings);
// source
Schema sourceTableSchema =
Schema.newBuilder()
.column("Time_", DataTypes.BIGINT())
.column("root.zhang.table3.id", DataTypes.INT())
.column("root.zhang.table3.name", DataTypes.STRING())
.column("root.zhang.table3.address", DataTypes.STRING())
.build();
TableDescriptor tableDescriptor =
TableDescriptor.forConnector("IoTDB")
.schema(sourceTableSchema)
.option("mode", "CDC")
.option("cdc.task.name", "test2")
.option("cdc.pattern", "root.zhang.table3")
.option("cdc.port", "18089")
.build();
tableEnv.createTemporaryTable("source_table", tableDescriptor);
// output table
tableEnv.from("source_table").execute().print();
发现执行后,没有数据打印
在iot界面,这个实体是有数据的

### What did you expect to see?
期望官方例子 CDCExample,能够正确执行
### What did you see instead?
no
### 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
Commencez par le point d’entrée officiel de CDCExample et exécutez la reproduction fournie pour IoTDB 1.3.2 avec les options CDC et le schéma indiqués. Vérifiez pourquoi l’exécution de la table source n’affiche aucune ligne alors que l’entité contient des données dans l’interface IoTDB. Le travail est terminé lorsque l’exemple affiche correctement les données CDC de root.zhang.table3.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- databases
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100