Please kindly use other channels for troubleshooting. Devlist is used for development discussions, users@ is more for user's questions, Slack and Github Discussions are mostly used for troubleshooting and issues is where you have reproducible issue that you have quite a certainty it's an Airflow issue. See https://airflow.apache.org/community/ for all the options.
On Wed, Dec 20, 2023 at 2:10 PM Sunny Arora <[email protected]> wrote: > Hi Team, > > We are working on one of the use cases where in airflow we have to process > multiple files in parallel and run a series of tasks for each file. For > this we are using TaskGroup and expand. When we are trying to access the > data passed via expand function outside/inside the context of any > task(except PythonOperator), I am getting an error "TypeError: > '*MappedArgument' > object is not subscriptable*". > > Attaching the sample reference code. > > In the attached code, I am able to access "file"(passed via expand) in > get_file_id in PythonOperator(*line 31 in attached code*), whereas when > trying to use it in insert_into_audit_table BigQueryInsertJobOperator(*line > 58/77 in attached code*) I am getting the above mentioned error. > This is blocking critical delivery, and we are looking for solution or > alternative approach to this. > > Thank you in advance. > > Regards, > > Sunny Arora > > Customer Solutions Engineer - Data > > [email protected] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected]
