Skip to content

Commit

Permalink
DATA-2068/changing the logger method
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaPourreza committed Mar 26, 2024
1 parent f6472ef commit ecfa1f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dataherald/sql_generator/dataherald_finetuning_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def similart_tables_based_on_few_shot_examples(self, df: pd.DataFrame) -> List[s
try:
tables = Parser(example["sql"]).tables
except Exception as e:
logger.info(f"Error: {str(e)}")
logger.error(f"Error parsing SQL: {str(e)}")
most_similar_tables.update(tables)
df.drop(df[df.table_name.isin(most_similar_tables)].index, inplace=True)
return most_similar_tables
Expand Down
2 changes: 1 addition & 1 deletion dataherald/sql_generator/dataherald_sqlagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def similart_tables_based_on_few_shot_examples(self, df: pd.DataFrame) -> List[s
try:
tables = Parser(example["sql"]).tables
except Exception as e:
logger.info(f"Error: {str(e)}")
logger.error(f"Error parsing SQL: {str(e)}")
most_similar_tables.update(tables)
df.drop(df[df.table_name.isin(most_similar_tables)].index, inplace=True)
return most_similar_tables
Expand Down

0 comments on commit ecfa1f4

Please sign in to comment.