JNSimba opened a new pull request, #62490:
URL: https://github.com/apache/doris/pull/62490
## Summary
- Support specifying offset (binlog position, LSN, named modes) when
creating or altering a StreamingInsertJob via `FROM MYSQL/POSTGRES` path.
- FE: extend `DataSourceConfigValidator` to validate offset formats
(initial/snapshot/latest/earliest/JSON); `earliest` is MySQL-only, rejected for
PostgreSQL. Implement `JdbcSourceOffsetProvider.deserializeOffsetProperty()`
for named modes and JSON offset parsing. Remove S3-only restriction in
`StreamingInsertJob.initInsertJob()` and `modifyPropertiesInternal()` so CDC
jobs can also use offset property. On ALTER, sync offset to `sourceProperties`
for the FROM...TO path.
- BE: support JSON LSN offset `{"lsn":"N"}` in
`PostgresSourceReader.generatePostgresConfig()`, and handle `SPECIFIC_OFFSETS`
mode in `JdbcIncrementalSourceReader.getStartOffsetFromConfig()`.
- Fix `JdbcOffset.isValidOffset()` and `toSerializedJson()` to return
meaningful values instead of hardcoded false/null.
## Test plan
- [ ] Regression test: `test_streaming_mysql_job_special_offset` —
earliest/latest/JSON binlog offset with data sync verification, ALTER JOB
offset change, invalid format rejection
- [ ] Regression test: `test_streaming_postgres_job_special_offset` —
initial/latest with data sync, ALTER JOB with JSON LSN offset and data sync
verification, earliest rejection for PG, invalid format rejection
- [ ] Regression test: `test_streaming_mysql_job_special_offset_restart_fe`
— create job with JSON binlog offset, verify data sync, restart FE, verify job
recovery and continued sync
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]