You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iotdb.apache.org by "anukalp2804 (via GitHub)" <gi...@apache.org> on 2026/01/31 11:54:07 UTC

[D] [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor [iotdb]

GitHub user anukalp2804 created a discussion: [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor

Hello,

I’m Anukalp, a CS undergraduate with a strong interest in Java-based backend and data integration systems. I’ve been going through the GSoC idea around building a Flink connector for Apache IoTDB 2.X table mode, and the scope and motivation behind the project are very clear and interesting.

From my understanding, the existing Flink connectors mainly focus on the tree mode, and this project aims to provide first-class support for IoTDB’s table mode through Flink’s DataStream and Table APIs, including schema mapping, read/write support, and fault tolerance.

I’m preparing for GSoC 2026 and plan to start by exploring the existing `flink-iotdb-connector`, the table-mode SQL features in IoTDB 2.X, and Flink’s connector architecture. I had a couple of questions:

- Are there specific modules or existing connectors you would recommend focusing on first to better understand the current limitations around table mode?
- For the initial implementation, do you see it leaning more toward the Flink Table API, or should both the Table and DataStream APIs be considered from the beginning?

I’d appreciate any guidance on how to prepare effectively and where early exploratory contributions would be most useful.

Thank you for your time.

GitHub link: https://github.com/apache/iotdb/discussions/17128

----
This is an automatically sent email for dev@iotdb.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@iotdb.apache.org


Re: [D] [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor [iotdb]

Posted by Yuan Tian <ja...@gmail.com>.
Hi Anukalp,

Thank you for your strong interest in the Apache IoTDB Flink connector
project. We are impressed with your thorough preparation and understanding
of the project's goals.

Regarding your questions, here is some guidance:

   - *Research Focus:* We recommend you start by delving into the Source
   and Sink implementations for the *Tree Mode* within the existing
   flink-iotdb-connector[1]. This will provide you with a solid
   understanding of the current data flow and architecture, which is key to
   identifying the refactoring or challenges required to properly
adapt it for *Table
   Mode*. Your plan to explore Table Mode SQL features is also excellent.
   - *API Prioritization:* Given that the Flink Table API is the primary
   integration path for many users, I suggest focusing your initial proposal
   and implementation on strong *Table API* support to quickly achieve a
   Minimal Viable Product (MVP) for core read/write functionality. However,
   the *DataStream API* is the underlying foundation, and a complete
   connector should ideally support both, so please keep it in mind for the
   overall design.

Your initial steps are sound. We encourage you to share your exploratory
findings or any preliminary design ideas with us, perhaps as a Pull Request
(PR) or another Discussion thread, so we can provide more specific feedback.

Looking forward to your proposal!

[1]
https://github.com/apache/iotdb-extras/tree/master/connectors/flink-iotdb-connector


Best regards,
---------------------
Yuan Tian


On Sat, Jan 31, 2026 at 7:54 PM anukalp2804 (via GitHub) <gi...@apache.org>
wrote:

>
> GitHub user anukalp2804 created a discussion: [GSoC 2026] Flink connector
> for IoTDB table mode – prospective contributor
>
> Hello,
>
> I’m Anukalp, a CS undergraduate with a strong interest in Java-based
> backend and data integration systems. I’ve been going through the GSoC idea
> around building a Flink connector for Apache IoTDB 2.X table mode, and the
> scope and motivation behind the project are very clear and interesting.
>
> From my understanding, the existing Flink connectors mainly focus on the
> tree mode, and this project aims to provide first-class support for IoTDB’s
> table mode through Flink’s DataStream and Table APIs, including schema
> mapping, read/write support, and fault tolerance.
>
> I’m preparing for GSoC 2026 and plan to start by exploring the existing
> `flink-iotdb-connector`, the table-mode SQL features in IoTDB 2.X, and
> Flink’s connector architecture. I had a couple of questions:
>
> - Are there specific modules or existing connectors you would recommend
> focusing on first to better understand the current limitations around table
> mode?
> - For the initial implementation, do you see it leaning more toward the
> Flink Table API, or should both the Table and DataStream APIs be considered
> from the beginning?
>
> I’d appreciate any guidance on how to prepare effectively and where early
> exploratory contributions would be most useful.
>
> Thank you for your time.
>
> GitHub link: https://github.com/apache/iotdb/discussions/17128
>
> ----
> This is an automatically sent email for dev@iotdb.apache.org.
> To unsubscribe, please send an email to: dev-unsubscribe@iotdb.apache.org
>
>

Re: [D] [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor [iotdb]

Posted by "HTHou (via GitHub)" <gi...@apache.org>.
GitHub user HTHou added a comment to the discussion: [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor

Hi Anukalp,

Thank you for your enthusiasm and for already starting on the code — Really appreciate it!

A gentle note: the GSoC project approvals are still pending, so we don’t know yet if it will be accepted. See [1].

For now, it might be best to wait for the official results. If you're interested, we could explore some other IoTDB-related tasks or contributions.

We’ll let you know as soon as we hear anything. Feel free to reach out if you have any questions. 

[1] https://developers.google.com/open-source/gsoc/timeline 

Warm regards,
Haonan

GitHub link: https://github.com/apache/iotdb/discussions/17128#discussioncomment-15751171

----
This is an automatically sent email for dev@iotdb.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@iotdb.apache.org


Re: [D] [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor [iotdb]

Posted by "anukalp2804 (via GitHub)" <gi...@apache.org>.
GitHub user anukalp2804 added a comment to the discussion: [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor

Hello @HTHou / @everyone

After understanding and analyzing the problem structure and the project requirements from the mailing list and mentor discussions, I have written my draft proposal. I hope this meets your expectations.

I kindly ask the mentors and the community to please read and review my draft proposal. Please let me know if there are any errors or if it looks good. This way, I can fix any mistakes and make it perfectly aligned with the project goals before submitting it to the GSoC website on time.

Here is the link of the Draft Proposal: https://drive.google.com/file/d/1jjtdx7h6LwwK4WL2IKsVMWs24eAAjxyQ/view?usp=drive_link 

I am looking forward to your replies and suggestions!

Thank you,
Best Regards,
Anukalp Pandey

GitHub link: https://github.com/apache/iotdb/discussions/17128#discussioncomment-16258962

----
This is an automatically sent email for dev@iotdb.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@iotdb.apache.org


Re: [D] [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor [iotdb]

Posted by "JackieTien97 (via GitHub)" <gi...@apache.org>.
GitHub user JackieTien97 added a comment to the discussion: [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor

Thank you for your strong interest in the Apache IoTDB Flink connector project. We are impressed with your thorough preparation and understanding of the project's goals.

Regarding your questions, here is some guidance:
Research Focus: We recommend you start by delving into the Source and Sink implementations for the Tree Mode within the existing flink-iotdb-connector[1]. This will provide you with a solid understanding of the current data flow and architecture, which is key to identifying the refactoring or challenges required to properly adapt it for Table Mode. Your plan to explore Table Mode SQL features is also excellent.
API Prioritization: Given that the Flink Table API is the primary integration path for many users, I suggest focusing your initial proposal and implementation on strong Table API support to quickly achieve a Minimal Viable Product (MVP) for core read/write functionality. However, the DataStream API is the underlying foundation, and a complete connector should ideally support both, so please keep it in mind for the overall design.
Your initial steps are sound. We encourage you to share your exploratory findings or any preliminary design ideas with us, perhaps as a Pull Request (PR) or another Discussion thread, so we can provide more specific feedback.

[1] [1] https://github.com/apache/iotdb-extras/tree/master/connectors/flink-iotdb-connector

GitHub link: https://github.com/apache/iotdb/discussions/17128#discussioncomment-15667638

----
This is an automatically sent email for dev@iotdb.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@iotdb.apache.org


Re: [D] [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor [iotdb]

Posted by "anukalp2804 (via GitHub)" <gi...@apache.org>.
GitHub user anukalp2804 added a comment to the discussion: [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor

Hello,

I just saw the recent feedback given to another contributor regarding building the connector as a completely separate module and prioritizing the Table API as the MVP. This makes perfect sense to keep the legacy code safe and ensure a solid core product. I will align my  architecture plan and proposal timeline exactly with this direction!

Also, I recently opened a small PR of Iotdb: 
- https://github.com/apache/iotdb/pull/17247
- https://github.com/apache/iotdb/pull/17256
- https://github.com/apache/iotdb/pull/17288

When anyone has a free moment, I would love a quick review to see if I need to make any changes or if my code style matches the project's standards.

Thank you
Anukalp Pandey

GitHub link: https://github.com/apache/iotdb/discussions/17128#discussioncomment-16101568

----
This is an automatically sent email for dev@iotdb.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@iotdb.apache.org


Re: [D] [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor [iotdb]

Posted by "anukalp2804 (via GitHub)" <gi...@apache.org>.
GitHub user anukalp2804 added a comment to the discussion: [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor

Thank you for the review. I will go ahead and submit the final PDF to the official GSoC portal today. I really appreciate your time and guidance!

GitHub link: https://github.com/apache/iotdb/discussions/17128#discussioncomment-16298093

----
This is an automatically sent email for dev@iotdb.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@iotdb.apache.org


Re: [D] [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor [iotdb]

Posted by "JackieTien97 (via GitHub)" <gi...@apache.org>.
GitHub user JackieTien97 edited a comment on the discussion: [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor

Thank you for your strong interest in the Apache IoTDB Flink connector project. We are impressed with your thorough preparation and understanding of the project's goals.

Regarding your questions, here is some guidance:
Research Focus: We recommend you start by delving into the Source and Sink implementations for the Tree Mode within the existing flink-iotdb-connector[1]. This will provide you with a solid understanding of the current data flow and architecture, which is key to identifying the refactoring or challenges required to properly adapt it for Table Mode. Your plan to explore Table Mode SQL features is also excellent.
API Prioritization: Given that the Flink Table API is the primary integration path for many users, I suggest focusing your initial proposal and implementation on strong Table API support to quickly achieve a Minimal Viable Product (MVP) for core read/write functionality. However, the DataStream API is the underlying foundation, and a complete connector should ideally support both, so please keep it in mind for the overall design.
Your initial steps are sound. We encourage you to share your exploratory findings or any preliminary design ideas with us, perhaps as a Pull Request (PR) or another Discussion thread, so we can provide more specific feedback.

[1] https://github.com/apache/iotdb-extras/tree/master/connectors/flink-iotdb-connector

GitHub link: https://github.com/apache/iotdb/discussions/17128#discussioncomment-15667638

----
This is an automatically sent email for dev@iotdb.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@iotdb.apache.org


Re: [D] [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor [iotdb]

Posted by "anukalp2804 (via GitHub)" <gi...@apache.org>.
GitHub user anukalp2804 added a comment to the discussion: [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor

Hello ,

Following our previous discussion, I wanted to share a quick update on my progress with the IoTDB 2.0 Table Model integration.

To better understand the new API, I built a functional Proof of Concept (PoC) that successfully connects Flink 1.18 to IoTDB in Table Mode.

Key Findings: During implementation, I confirmed that the standard Session class defaults to the legacy Tree Model, which caused syntax errors when executing SQL (e.g., CREATE TABLE). I resolved this by switching to the TableSessionBuilder, which explicitly initializes the connection with the correct SQL dialect.

I have implemented a custom Flink SourceFunction that executes SQL queries and streams the result rows into Flink. You can review the prototype code and execution logs here:

https://github.com/anukalp2804/flink-iotdb-table-connector

Next Steps for GSoC Proposal: Based on this PoC, my plan for the official proposal is to:

1. Upgrade from SourceFunction to the new FLIP-27 Source API to support parallelism.
2. Implement a Type Mapping utility to convert IoTDB types (INT32, FLOAT) to Flink RowData.
3. Develop the corresponding Sink for writing data back to IoTDB.

I would love to hear your thoughts on this approach. Does this align with the project's vision?

Thank you for your time.

Sincerely,
Anukalp Pandey

GitHub link: https://github.com/apache/iotdb/discussions/17128#discussioncomment-15738336

----
This is an automatically sent email for dev@iotdb.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@iotdb.apache.org


Re: [D] [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor [iotdb]

Posted by "anukalp2804 (via GitHub)" <gi...@apache.org>.
GitHub user anukalp2804 added a comment to the discussion: [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor

Hello Haonan,

I am very excited to see the "Flink connector for IoTDB 2.X Table Mode" on the official GSoC ideas list! As discussed previously, I recently built a basic PoC using TableSessionBuilder to understand the 2.0 API, and now I'd like to outline my plan for the production-ready architecture.

I have analyzed the existing iotdb-extras repository (flink-iotdb-connector and flink-sql-iotdb-connector) to identify the current limitations with table mode. I've also been studying the Flink and IoTDB official documentation regarding Modeling Scheme Design and Syntax Overview. Here is my proposed approach:

1. Architecture: I plan to build a utility that maps IoTDB's Table API data types (like INT32, INT64, FLOAT, DOUBLE, TEXT, BOOLEAN) directly to Flink's internal types. The mapper will explicitly handle IoTDB's schema structure, mapping the time column to Flink's TIMESTAMP, and properly distinguishing tags and fields. To ensure compatibility with Flink 1.18+, I will avoid legacy source functions and instead use the modern FLIP-27 architecture for the source, and SinkV2 for the sink.

2. Implement IoTDB Table Source: For reading data, I will implement the IoTDBTableSource. To optimize performance and avoid downloading unnecessary data over the network, I'll implement SupportsFilterPushDown. This ensures that Flink passes WHERE clauses (like time ranges and tags) down to IoTDB so filtering happens natively at the storage layer.

3. Implement IoTDB Table Sink: I will create the IoTDBTableSink to support both BOUNDED (batch) and UNBOUNDED (streaming) data. For a better user experience, if a user tries to insert data into a non-existent table, the sink will intercept the "Table Not Found" error and automatically send a CREATE TABLE command based on the Flink schema. I will also implement robust error handling if data violates constraints (like a TTL or a type mismatch), the sink will log a warning and drop the bad row without crashing the entire Flink job.

4. Testing & Documentation: I know the code is only half the project. I plan to write unit tests for the schema mapping. For integration testing, I will use Flink's MiniCluster alongside IoTDB's test clusters. I'll write clear documentation with SQL queries examples and a configuration table. Additionally, I plan to create a short video tutorial explaining how to use the connector, which should help both community and new open-source contributors.

5. Community Contributions: I will submit the PRs to the upstream iotdb-extras repository. Along with the PRs, I will include a fully runnable example Flink job (e.g., a simple factory temperature aggregation demo) so developers can clone it, run the main() method, and see the Table API working immediately.

6. Advanced: To prove the efficiency of the parallel read/write optimizations mentioned above, my final goal is to develop benchmarks comparing the new table-mode connector against the legacy tree-mode connector. I will focus on measuring throughput, latency, and resource usage under heavy IoT scenarios.

My Question is
Before I start drafting my formal proposal document, are there any specific changes regarding IoTDB's dynamic table changes or schema inference that you would like me to explicitly cover in the design?

(P.S. I also created a small PR in the main IoTDB repo. It would really appreciate.
https://github.com/apache/iotdb/pull/17129)

Thanks for your valuable time and guidance!
Anukalp Pandey

GitHub link: https://github.com/apache/iotdb/discussions/17128#discussioncomment-15950183

----
This is an automatically sent email for dev@iotdb.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@iotdb.apache.org


Re: [D] [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor [iotdb]

Posted by "anukalp2804 (via GitHub)" <gi...@apache.org>.
GitHub user anukalp2804 added a comment to the discussion: [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor

Hi Haonan,

Thank you for the kind words and the heads-up regarding the GSoC organization acceptance status. I completely understand that the official results are pending.

Regardless of the GSoC outcome, building this prototype was a great way for me to understand the internal changes in IoTDB 2.0. I am definitely interested in contributing to the project in the meantime to get more familiar with the codebase.

You mentioned exploring other IoTDB-related tasks—are there any specific modules, 'good first issues,' or documentation updates you would recommend I look into? I have my environment set up and ready to go.

Best regards, 
Anukalp Pandey

GitHub link: https://github.com/apache/iotdb/discussions/17128#discussioncomment-15757916

----
This is an automatically sent email for dev@iotdb.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@iotdb.apache.org


Re: [D] [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor [iotdb]

Posted by "anukalp2804 (via GitHub)" <gi...@apache.org>.
GitHub user anukalp2804 added a comment to the discussion: [GSoC 2026] Flink connector for IoTDB table mode – prospective contributor

Thank you for the detailed guidance and encouragement.

I’ll start by studying the Source and Sink implementations for Tree Mode in the existing flink-iotdb-connector to better understand the current data flow and architecture. In parallel, I’ll continue exploring IoTDB’s table-mode SQL features to identify where adaptations may be needed.

I’ll keep the Flink Table API as the primary focus for an initial MVP while keeping the DataStream API in mind for the overall design. Once I have some exploratory findings or early design thoughts, I’ll be happy to share them in a follow-up discussion or small PR for feedback.

Thanks again for your guidance.

Sincerely,
Anukalp Pandey

GitHub link: https://github.com/apache/iotdb/discussions/17128#discussioncomment-15672699

----
This is an automatically sent email for dev@iotdb.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@iotdb.apache.org