Hi everyone,

We have opened PR #929 to add the initial Go API support for Apache TsFile:

https://github.com/apache/tsfile/pull/929

The main goals of this PR are:

- Add the public Go package github.com/apache/tsfile/go/tsfile;
- Provide Go APIs for Reader, ResultSet, Writer, and Tablet;
- Support tree/table schemas, time-range queries, offset/limit queries, typed 
values, null handling, and resource lifecycle management;
- Add a public C wrapper ABI for the Go/cgo layer, without depending on private 
Python symbols;
- Add Go and C integration tests, race tests, examples, documentation, and a 
Makefile;
- Add CI coverage for Linux, macOS, Windows MinGW, and Windows MSVC;
- Run the Go API tests with MinGW on Windows and verify the native 
DLL/import-library output produced by MSVC.

We also fixed a cross-platform test issue where parallel CTest cases could 
conflict because of shared temporary file names.

We would especially appreciate feedback on the following areas:

1. Go API naming and overall interface design;
2. Error handling and resource lifetime semantics;
3. Safety and ownership rules across the C ABI and cgo boundary;
4. Tree/table query behavior and index mapping;
5. Windows MinGW/MSVC build support and maintenance cost;
6. API compatibility and possible future extensions.

Please feel free to leave comments directly on the PR or suggest changes. We 
would be grateful if the community could review whether this API is a suitable 
foundation for future Go support in TsFile.

Thank you for your time and feedback.

Best regards,
Colin

Reply via email to