DanielLeens opened a new pull request, #13713: URL: https://github.com/apache/seatunnel/pull/13713
Yes, this contributes to Apache SeaTunnel. Related to #10753. ### Resulting behavior Adds a bounded ExchangeRatesApi source for the native marketplace exchange_rates resource. The fixed api.apilayer.com gateway receives GET requests with the native apikey header; access_key is never a URL parameter and credentials are not translated or retried at another gateway. Historical mode reads actual dated endpoints with inclusive bounds, UTC upper-bound freezing and optional weekend exclusion. Latest mode reads one snapshot without a date query and filters its native quote date; it does not pretend to backfill history. Each validated quote emits resource/requested_date/date/base/record. The complete record preserves exact JSON rate numbers, nulls, zeros and unknown fields. Optional native base/symbol parameters are forwarded without local currency conversion. Missing requested symbols, wrong native dates/bases, malformed maps and HTTP-200 business errors fail before publication. Empty maps remain valid quote objects. Publication and date advancement share the checkpoint lock. Copied serialized progress binds credentials, mode, dates and currency selection to frozen UTC metadata, without storing credentials, certificates or quotes. In-flight requests resume at the same date, committed dates do not replay, and terminal/latest-filtered restores make no further request. Includes isolated production/E2E modules, approved additive module/install/distribution registration, Factory SPI and bilingual source guides/changelogs. Reuses existing HTTP/Jackson versions without introducing a new SDK, root version or shared framework change. ### Validation - Scoped Java 11 Spotless apply/check passed for both modules. - Source/static checks covered 26 paths, 13 Java files, 22 documented types, all 16 option tables, XML/ASF/whitespace, Factory/registration and checkpoint scope. No Python or existing capability deletions are included. - Authored 11 real Zeta E2E methods plus one packaged-reader entry with six modes. Independent Java TLS fixtures check exact header/path/query contracts; historical/latest distinction; leap, same-day and inclusive bounds; empty and weekend windows; currency filtering, precise/null/zero rates and business errors; invalid configuration; finite budgets; retryable/permanent failures; independent wire/decoded limits; gzip/JSON/UTF-8/media/TLS/deadline behavior; and socket closure before cleanup. Four engine savepoint paths cover the pending first date, committed daily suffix, weekend skipping and terminal state. Six packaged modes cover date/snapshot restoration, omitted-upper freezing, copy isolation, scope/state rejection and zero-work states. - Compilation and runtime/E2E results remain pending GitHub CI. No local compilation, tests, containers, fixture services or live subscription were run. Live data availability near UTC midnight, account history/base/symbol entitlements and real subscription interoperability remain external validation requirements. This bounded source does not establish a transaction snapshot or a shared cross-job watermark. -- 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]
