Open hashir0981 opened 9 months ago
Describe the bug It is hallucinating some expressions that include datetime. That should'nt be the expected result.
To Reproduce def strip_alias_from_group_by(group_by: str) -> str: sql = f""" SELECT {group_by.strip()} FROM TABLE1 """.strip() parsed_sql = parse_one(sql, dialect="databricks", read="databricks") return ", ".join(map(lambda i: f"{i.alias}" if i.alias else i.sql(), parsed_sql.expressions))
{i.alias}
What's the concrete error / traceback.
Expected behavior A clear and concise description of what you expected to happen.
Versions (please complete the following information):
Additional context Add any other context about the problem here.
Please provide more details about the error. How to reproduce it, the expected and actual output of any kind.
Describe the bug It is hallucinating some expressions that include datetime. That should'nt be the expected result.
To Reproduce def strip_alias_from_group_by(group_by: str) -> str: sql = f""" SELECT {group_by.strip()} FROM TABLE1 """.strip() parsed_sql = parse_one(sql, dialect="databricks", read="databricks") return ", ".join(map(lambda i: f"
{i.alias}
" if i.alias else i.sql(), parsed_sql.expressions))What's the concrete error / traceback.
Expected behavior A clear and concise description of what you expected to happen.
Versions (please complete the following information):
Additional context Add any other context about the problem here.