bramhanandlingala opened a new pull request, #67429:
URL: https://github.com/apache/airflow/pull/67429
## What this does
The Tableau Server Client library has supported an `incremental` flag on
both `datasources.refresh()` and `workbooks.refresh()` for a while now, but the
`TableauOperator` had no way to pass it through every refresh was always a full
refresh.
This adds `incremental: bool = False` to the operator. When you set it to
`True`, the operator will trigger an incremental extract refresh rather than a
full one, which is useful when your datasource is configured for incremental
refresh in Tableau Server.
Example usage:
```python
TableauOperator(
task_id="incremental_refresh_sales",
resource="datasources",
method="refresh",
find="my_datasource",
match_with="name",
incremental=True,
)
```
## What didn't change
Everything else behaves exactly as before. The incremental param is only
forwarded when method="refresh" delete, tasks.run, and all other paths are
completely unaffected. The default is False so no existing DAGs need to change.
Tests
Updated four existing test assertions to include the now-explicit
incremental=False kwarg (they would have started failing without this).
Added test_execute_datasources_incremental and
test_execute_workbooks_incremental to verify incremental=True is correctly
passed through to the underlying library call.
--
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]