Apache Doris 中文技术论坛
Questions Tags Users Badges

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

Asked May 15, 2024 Modified May 17, 2024
Viewed 48
2.1
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()
edited May 17, 2024
____5
asked May 15, 2024
1 Answers

https://github.com/apache/doris/pull/32911 这个 PR 预期修复了这个问题
2.1.3 版本已修复。

edited Jan 1, 1970
徐振超@SelectDB7446
answered May 16, 2024
Related Questions
求助!x2doris同步经常中断
1 answers
Doris开启了2阶段提交,且事务已经被清理了,如何判断最近一次的ckp对应的事务是否正常提交了
Apache Doris内存不够,为什么不像spark一样排队处理,Tablet排队一个个处理,而是报错,请问这个解释对吗
1 answers
fe节点jvm gc频繁,偶尔出现fe节点be节点通讯报错
为什么相同的内存,执行一样的任务,spark可以执行完,但是doris却报内存不足错误,doris已经调整了单个任务可以使用集权资源的80%
1 answers
自动分区与动态分区联用分区名称不一致
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2025 Apache Doris 中文技术论坛.