How to add new column with metadata value to csv when loading it to bigquery
问题 I have a daily csv file coming into my bucket on google storage and I built a function that load this csv and append it into a table in BigQuery when it comes in. However, I want to add a new column to the csv with the function execution id (context["id"]) before I load the data to Big query. is that possible? thanks in advance! def TimeTableToBigQuery(data, context): # Getting metadata about the uploaded file, the storage and datetime of insert excution_id = context['event_id'] bucketname =