Skip to content

Commit

Permalink
fix: remove default mysql dialect
Browse files Browse the repository at this point in the history
  • Loading branch information
scaliseraoul committed Feb 7, 2025
1 parent b98fb72 commit 182ce68
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pandasai/data_loader/duck_db_connection_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ def register(self, name: str, df):

def sql(self, query: str):
"""Executes an SQL query and returns the result as a Pandas DataFrame."""
query = SQLParser.transpile_sql_dialect(
query, to_dialect="duckdb", from_dialect="mysql"
)
query = SQLParser.transpile_sql_dialect(query, to_dialect="duckdb")
return self.connection.sql(query)

def close(self):
Expand Down

0 comments on commit 182ce68

Please sign in to comment.