PDGGK opened a new pull request, #115:
URL: https://github.com/apache/iotdb-extras/pull/115

   ## Summary
   
   Implements the aggregation and telemetry key-discovery parts of the 
ThingsBoard Table Mode integration, on top of the merged BaseDao / 
TimeseriesDao / LatestDao (#110, #113).
   
   ## Changes
   
   - Aggregated reads (`IoTDBTableTimeseriesDao`): `date_bin` bucketed 
aggregation covering fixed-width (millisecond) buckets and calendar buckets 
(WEEK / MONTH / QUARTER). Calendar bucket boundaries are computed on the Java 
side (via `TimeUtils`) to avoid time-zone drift.
   - Key discovery (`IoTDBTableLatestDao`): `findAllKeysByEntityIds` / 
`findAllKeysByTenant` now union the `telemetry` and `telemetry_latest` sources, 
so keys that only ever appear in the latest overlay are also discovered.
   
   ## Tests
   
   - Unit tests: `IoTDBTableTimeseriesDaoTest` (74) and 
`IoTDBTableLatestDaoTest` (40) cover the aggregation and key-discovery logic.
   - Container integration tests (testcontainers, 
apache/iotdb:2.0.8-standalone): `IoTDBTableTimeseriesAggregationIT` (11), 
`IoTDBTableLatestDaoIT` (19), `IoTDBTableTimeseriesDaoIT` (10). All green.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to