【已解决】在 python3 代码中连接 doris , conn.close(),为什么没有作用,我在 fe 节点的 session 中,仍然能看到

Viewed 40
my_uri = "XXXXXXXX"
my_db_kwargs = {
    adbc_driver_manager.DatabaseOptions.USERNAME.value: "XXX",
    adbc_driver_manager.DatabaseOptions.PASSWORD.value: "XXX",
}
conn = flight_sql.connect(uri=my_uri, db_kwargs=my_db_kwargs, autocommit=True)
cursor = conn.cursor()
start_time = datetime.now()
cursor.execute(sql)
arrow_data = cursor.fetchallarrow()
dataframe = arrow_data.to_pandas()
cursor.close()
conn.close()
1 Answers