The script saves the data to a csv file, this is the cur.execute command, and then nothing happens, just hangs in the same place, print(0) never prints
exit(),quit(),sys.exit() does not help
import teradatasql
def teradata_to_bigquery_export(bqproject = 'project', tddatabase = 'db', tdtable = 'table',bqdataset = 'dataset', gcpSA = 'key.json', host = 'host', user = 'user', password = 'pwd'):
print(123)
# teradata read data and save to dataframe
with teradatasql.connect(host=host, user=user, password=password) as con:
print(-2)
with con.cursor() as cur:
print(-1)
cur.execute("{fn teradata_try_fastexport}{fn teradata_write_csv(myFile.csv)}SELECT * FROM " + tddatabase + "." + tdtable + " WHERE date_creation = CURRENT_DATE")
print(0)
cur.close()
print(1)