sqlgpt-parser is a Python implementation of an SQL parser that effectively converts SQL statements into Abstract Syntax Trees (AST). By leveraging AST tree comparisons between two SQL queries, it becomes possible to achieve robust evaluation of text-to-SQL models.
SELECT date FROM `inv` WHERE date=DATE_ADD(creation_time, INTERVAL 4 HOUR)
But error happened
def visit_function_call(self, node, unmangle_names):
ret = ""
> arguments = self._join_expressions(node.args, unmangle_names)
E AttributeError: 'FunctionCall' object has no attribute 'args'
It is caused by FunctionCall not having attribute args but having attribute arguments.
And format code do not having visit_time_interval
Format SQL
But error happened
It is caused by
FunctionCall
not having attribute args but having attribute arguments. And format code do not havingvisit_time_interval