From 9c35199f6cef82665022423fd1c1b6621c2df88b Mon Sep 17 00:00:00 2001 From: Xin Zhang Date: Mon, 13 May 2024 17:06:04 +0800 Subject: [PATCH] fix lower case create statement (#267) --- dbgpt_hub/data_process/sql_data_process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbgpt_hub/data_process/sql_data_process.py b/dbgpt_hub/data_process/sql_data_process.py index f376e48..6e94acb 100644 --- a/dbgpt_hub/data_process/sql_data_process.py +++ b/dbgpt_hub/data_process/sql_data_process.py @@ -159,7 +159,7 @@ def decode_json_file( with open(schema_file_path, "r") as file: schema_content = file.read() create_statements = re.findall( - r"CREATE\s.*?;", schema_content, re.DOTALL + r"CREATE\s.*?;", schema_content, re.DOTALL|re.IGNORECASE ) input = { "db_id": data[db_id_name],