atul-astronomer opened a new issue, #46955:
URL: https://github.com/apache/airflow/issues/46955
### Apache Airflow version
main (development)
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
As per the asset decorator feature, user can explicitly provide name to the
asset but thats not working now.
```
Broken DAG: [/files/dags/datasets/AIP-75/asset_decorator.py, Bundle name:
dags-folder] Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 228, in
_call_with_frames_removed
File "/files/dags/datasets/AIP-75/asset_decorator.py", line 5, in <module>
@asset(name='asset_abc',
uri="s3://aws_conn_id@bucket/raw_bus_trips.parquet", schedule=None)
TypeError: __init__() got an unexpected keyword argument 'name'
```
### What you think should happen instead?
User should be able to provide the name attribute to the asset decorator
### How to reproduce
Create the below Dag and see the error.
```python
@asset(name='asset_abc',
uri="s3://aws_conn_id@bucket/raw_bus_trips.parquet", schedule=None)
def asset_decorator():
@task
def do_nothing():
pass
```
### Operating System
Linux
### Versions of Apache Airflow Providers
_No response_
### Deployment
Other
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]