I'm running airflow on a docker container on my local machine. I was looking around but I could not find anyone that may have a similar issue. I'm trying to save some results to a CSV and then into my local machine, but for some reason i keep getting issues in my DAG.
def astra_connect():
query = "SELECT * FROM iac689.data_2 limit 5;"
df = pd.DataFrame(list(session.execute(query)))
df = df.drop(columns=['ui'])
return df.to_csv('localpath/output.csv')
Any ideas what I should be looking out for? Maybe permissions, a specific path, configuration of Airflow/docker itself?