FrankYang0529 opened a new pull request, #75542: URL: https://github.com/apache/airflow/pull/75542
- Add `DagRun.getConf(Class<T>)`, which converts the conf into a new instance of the given class. A task calls it as `context.dagRun.getConf(EtlConf.class)`. The class can have public fields or setters, or it can be a record. - A key goes to the field whose name matches it when case and underscores are ignored, so `target_table` reaches `targetTable`. - `getConf` ignores keys that match no field. A field with no matching key keeps its Java default. --- ##### Was generative AI tooling used to co-author this PR? <!-- If generative AI tooling has been used in the process of authoring this PR, please change below checkbox to `[X]` followed by the name of the tool, uncomment the "Generated-by". --> - [X] Yes - Claude Code <!-- Generated-by: [Tool Name] following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) --> -- 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]
