Skip to content

NatSQL\natsql2sql\natsql_parser.py报错 #78

@litterairplane

Description

@litterairplane
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions