try:
# 根据解析后的SQL字典和参数生成最终的SQL查询。 这个函数有问题,一直要求什么外键,这个人写的内部代码绝对有问题
final_sql = inference_sql(p_nsql, find_table, args, sq=sq)
这个函数一直无法运行,导致无法生成SQL,
这个函数内部:
from_table_net,table_fk_list = get_table_network(table_json, table_list, join_on_label, sq=sq, sql_dict=sql_dict, group_list=top_left_col_list+top_groupby_list if top_groupby_list else [] )
代码运行到这里就会中断,因为数据没有所谓的network, 但是这里必须有, 写代码的老哥,仔细看看,你这里怕是个大bug