jedcunningham opened a new pull request, #28246:
URL: https://github.com/apache/airflow/pull/28246
We should warn users when they provide table names that are not valid, and
make it clear no cleaning happens when you provide no valid tables.
e.g.
```
$ airflow db clean -t fake,task_instance --clean-before-timestamp 2022-12-08
[2022-12-08 17:03:33,729] {db_cleanup.py:345} WARNING - The following
table(s) are not valid choices and will be skipped: {'fake'}
You have requested that we purge all data prior to 2022-12-08T00:00:00+00:00
for tables {'task_instance'}.
...
```
```
$ airflow db clean -t only,fake,tables --clean-before-timestamp 2022-12-08
[2022-12-08 17:04:20,060] {db_cleanup.py:345} WARNING - The following
table(s) are not valid choices and will be skipped: {'only', 'tables', 'fake'}
No tables selected for db cleanup. Please choose valid table names.
```
--
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]